Tao,

> I have booted the omap ldp board with nfs. I want to bootup from flash.
> so I want to test if linux kernel could read/write flash device.

before booting, execute a  'nand unlock' in u-boot

>> > / # dd if=/dev/mtblock4 of=test2  count=1

# dd if=/dev/mtdblock4 of=test2  count=1
1+0 records in
1+0 records out

>> > / # / # dd if=ext2.img of=/dev/mtdblock5 count=4

# dd if=rd-ext2.bin of=/dev/mtdblock5 count=4
4+0 records in
4+0 records out
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "X-Loader-NAND"
mtd1: 00080000 00020000 "U-Boot-NAND"
mtd2: 00040000 00020000 "Boot Env-NAND"
mtd3: 00400000 00020000 "Kernel-NAND"
mtd4: 0fac0000 00020000 "File System - NAND"
# dd if=rd-ext2.bin of=/dev/mtdblock4 count=4
4+0 records in
4+0 records out

Best Regards
Abraham
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to