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