linux - Kernel and Rootfs booting through tftp -
task: load kernel , rootfs image , execute ram without storing onto spi flash
i loaded flashable image (zimage @ 0x200000) , flashable rootfs (jffs2 @ 0x200000+offset)
tftp zimage 0x200000
tftp jffs2 0x200000+offset
bootm 0x200000 0x200000+offset
it giving me error:
root-nfs: no nfs server available, giving up. vfs: unable mount root fs via nfs, trying floppy. vfs: cannot open root device "ram0" or unknown-block(2,0) please append correct "root=" boot option; here available partitions: 1f00 256 mtdblock0 (driver?) 1f01 256 mtdblock1 (driver?) 1f02 2048 mtdblock2 (driver?) 1f03 13824 mtdblock3 (driver?) kernel panic - not syncing: vfs: unable mount root fs on unknown-block(2,0)
and : bad magic number
any appreciated
@sawdust, right. jffs2 cannot used in ram if initrd or initramfs.
i loaded both images onto ram , executed onto ram based on ext2 filesystem.
bootargs: setenv bootargs root=/dev/ram0 console=ttymcs mem=64m@0x0 init=/bin/sh
Comments
Post a Comment