View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#110
Originally Posted by x_mony View Post
we need a step by step tutorial to install u-boot with nitdroid, or else we would ask pali to make kernel power compatible with multiboot
life without kernel power and nitdroid is hard
And here you go:
HTML Code:
Topic: U-boot and Nitdroid for n900 [Camera fixed, Network Working!!!]  (Read 53793 times)
Offline vakkov

    * NITDroid user
    * **
    * Posts: 48
    *
          o View Profile
          o Personal Message (Offline)

U-boot and Nitdroid for n900 [Camera fixed, Network Working!!!]
« on: February 26, 2012, 09:24:56 pm »

    * Quote

Ok this is a short guide for more andvanced users:
1. Download Nitdroid 2.3.4 N12_Umay and install it on ext3/ext4 partition (mmcblk1p2) - for ext4 kernel support use the second link!
2. Your first sd card partition should be FAT (for ext2/ext3 and etc will explain tomorrow)
3. Install U-boot by Pali - [url]http://talk.maemo.org/showthread.php?t=81613[/url]
4. Download nitdroid rc7 kernel and extract the file - then go to /system/lib/modules/2.6.28.NIT.07/  and copy all the files to  /system/lib/modules/current in NITDROID partition (mmcblk1p2)
4.1. Replace init.nokia.rc with mine
5. Now download boot.scr from attachments and copy it to the first partition (FAT)
6. Dowload uImage and copy it to the same place as boot.scr
7. Insert sd card in n900 and power on with opened keeyboard
8. Stop u-boot counting and enter U-boot console
9. Write - run sdboot... and watch booting

Bluetooth, Wi-fi, charging, hardware acceleration, lights and other things NOW working!!!  Just replace init_subsys in /system/maemo/bin

P.S. If using boot.scr from the archive below it will stop for 10 seconds to wait for rootfs to be mounted! If these steps are not convenient for you read the text below to find out how to configure your own boot.scr

Credits: E-yes (For help and Nitdroid), Pali (for help and U-boot), Marex_ (at #u-boot at freenode) for help and Vakkov for making it possible. and everybody else who i have forgot about.

FILES: [url]http://www.mediafire.com/?lu5hq6rinitce5e[/url]
Kernel only(with ext4 support): [url]http://www.mediafire.com/?0v7ed0jzp6zcqb0[/url]


- I want to boot Nitdroid from a partition different from mmcblk1p2 (second partiton of sd card). How to do it?
- Here is how to:
nit.src is the "source" file of boot.src. You can open it with a text editor and see its contents
Change "root=/dev/mmcblk1p2" to your desired partition (where Nitdroid is stored) - for example /dev/mmcblk0p2 (that's eMMC).
rootdelay=10 is the time in seconds to wait for the rootfs to be mounted before continuing with loading the kernel. You can set it to 1 if you want or you can replace the whole rootdelay parameter with rootwait (it will wait for the file system to mount and then continue). FOR EXT4 USE THE KERNEL FROM THE SECOND LINK!

- I want to place the kernel (uImage) wherever I want. How to do it?
Go on the second line of nit.scr (starts with setenv bootcmd) i Used fatload mmc 1:1 This means it will search for the uImage at the first partition of the sd card and that partition has to be a FAT one.
The format of this can be:
Code: [Select]
fatload mmc <device>:<partition number> 0x82000000 <filepath/file>
ext2load mmc <device>:<partition number> 0x82000000 <filepath/file>So if you want to use an ext2/ext3 partition to store the kernel use ext2load (yes, it's also loading ext3)

Generating boot.scr
When you finish editing nit.scr to your desired settings save it and run in terminal:
Code: [Select]
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "NITDroid" -d nit.scr boot.scrThis will generate a valid boot.scr which you have to copy to the FIRST partition of sd card or to boot.scr

New init.nokia.rc and camd - Camera FIXED! Works on N12_UMay (2.3.4) with 2.3.7 camera libs, should also work on 2.3.7
P.s. Replace camd in system/maemo/bin (where init_subsys is stored)

Soon - bootmenu guide!
* nit.scr (0.26 kB - downloaded 1501 times.)
* init_subsys (1.95 kB - downloaded 1672 times.)
* init.nokia.rc (7.86 kB - downloaded 1548 times.)
* camd (0.21 kB - downloaded 1535 times.)
« Last Edit: May 02, 2012, 07:23:22 pm by vakkov »
http://forum.nitdroid.com/index.php?topic=73

Sorry pali for derailing ...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 6 Users Say Thank You to peterleinchen For This Useful Post: