Montag, 8. Dezember 2008

Prepare uboot to boot Android

Connect to uboot:
Type in Macosx console: screen /dev/tty.usbmodem0000001
And start in parallel on Freerunner uboot menu: Connect to USB

Reconfigure uboot:
setenv bootcmd setenv bootargs \${bootargs_base} \${mtdparts}\; nand read.e 0x32000000 kernel 0x300000\; bootm 0x32000000
saveenv

Mittwoch, 5. November 2008

uboot configuration

Load uboot configuration file:
nanddump -b -o -f /media/card/u-boot-env /dev/mtd2

Get editing programs:
wget http://svn.openmoko.org/trunk/src/host/devirginator/envedit.pl
wget http://svn.openmoko.org/trunk/src/host/devirginator/crc32.pl
chmod +x envedit.pl

Convert to human-readable txt file:
./envedit.pl -s 262144 -p -i /home/username/u-boot-env > /home/username/u-boot-env.txt

Edit

Dienstag, 4. November 2008

Mounting JFFS2

modprobe mtdcore
modprobe jffs2
modprobe mtdram total_size=sizeOfRequiredRAM
modprobe mtdchar
modprobe mtdblock

dd if=image-jffs2 of=/dev/mtd0
mount -t jffs2 /dev/mtdblock0 mnt