FAQs
- Boot Linux either using NFS or USB recovery.
- At the Linux prompt, check for the NAND flash partition, there should be 2 partitions after issuing the commands below:
-sh-3.2# cat /proc/mtd
dev: size erasesize name
mtd0: 00400000 00020000 "uImage"
mtd1: 1fb00000 00020000 "rootfs" - Erase file system partitions on the NAND
-sh-3.2# flash_eraseall -j /dev/mtd1
Erasing 128 Kibyte @ 15300000 -- 66 % complete. Cleanmarker written at 15300000.8 Kibyte @ f800000 -- 48 % complete. Cleanma.Skipping bad block at 0x15320000
Erasing 128 Kibyte @ 1b240000 -- 85 % complete. Cleanmarker written at 1b240000.
Skipping bad block at 0x1b260000
Erasing 128 Kibyte @ 1d7a0000 -- 93 % complete. Cleanmarker written at 1d7a0000.
Skipping bad block at 0x1d7c0000
Erasing 128 Kibyte @ 1fae0000 -- 99 % complete. Cleanmarker written at 1fae0000.
-sh-3.2# - Write the File System jffs2 image onto the flash
-sh-3.2# nandwrite -p -q /dev/mtd1 fc8.release.x11.openrd.nand.jffs2 - Create a mount directory and mount the jffs2 image on the NAND flash mtdblock1
-sh-3.2# mkdir mnt1
-sh-3.2#
-sh-3.2#
-sh-3.2# mount -t jffs2 /dev/mtdblock1 /mnt1
-sh-3.2# umount /mnt1 - Booting Linux Kernel, jffs2 file system, from the NAND flash
Marvell>> setenv console 'console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw'
Marvell>> setenv bootargs $(console) root=/dev/mtdblock1 fb=xgifb
Marvell>> setenv bootcmd 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
Marvell>> saveenv


