U-Boot for N900
---------------

These patches add support for the Nokia RX-51/N900 to U-Boot. Rather than totally
replace NOLO (which could be dangerous) I instead create a combined image containing 
u-boot and a Linux kernel, and then flash this like a regular kernel. U-Boot loads
first, stores the environment, and then checks for boot files on the SD card, if
present. If the bootfiles are not found, it will instead load the appended kernel 
image. This should in theory be totally transparent.

This allows you to dual boot the N900 by flashing a single "kernel" image one time
only. You can then select the operating system by inserting an appropriate SD card.

Instructions
------------

Toolchain: Code Sourcery Arm 2008Q1:

wget http://www.codesourcery.com/sgpp/lite/arm/portal/package2549/public/arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
sudo tar -C /opt arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

Clone Repository:

git clone git://github.com/ali1234/u-boot-n900.git
cd u-boot-n900.git
git checkout n900-v2011.06-3

Build it:

(If you want, you can skip this step and use the provided u-boot.bin below.)

export CROSS_COMPILE=arm-none-linux-gnueabi-
export PATH=$PATH:/opt/arm2008q1/bin
make nokia_rx51_config
make

Test it on device:

sudo flasher-3.5 -k u-boot.bin -l -b

Test it on qemu:

qflasher -m rx51 -x meego/xloader-qemu.bin -s meego/secondary-qemu.bin -k u-boot.bin -o nand.raw
qemu-system-arm  -M n900 -mtdblock nand.raw -serial stdio -sdl

Make the combined image:

Take the u-boot.bin, pad it to 0x40000 bytes. Turn the normal zImage into a uImage
then append to padded u-boot.bin. The total size of the resulting image must be less 
than 2MB, which is easily possible using the PR1.2 kernel. Finally flash the new 
combined image to N900 like a regular kernel.

You can use builder.py (below) to make the combined image.

Flash it:

sudo flasher-3.5 -k combined.bin -f -b


[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -
[DIR]old/01-Sep-2011 18:35 -
[DIR]rx34/26-Sep-2010 13:27 -
[IMG]20100919_001.jpg19-Sep-2010 05:43 945K
[TXT]PATCHES_MOVED_TO_GITHUB01-Sep-2011 18:35 0
[   ]builder.py13-Sep-2010 22:18 456
[   ]u-boot.bin01-Sep-2011 23:18 170K