Есть КФС под ТИОН270, скачанная с wiki zeo
Есть U-boot-1.3.3
Вот переменные окружения:
bootcmd=setenv bootargs ${bootargs} ${mtdparts}; bootm 80000
bootdelay=1
baudrate=115200
ethaddr=40:D8:55:07:02:AF
ipaddr=192.168.0.110
serverip=192.168.0.86
gatewayip=192.168.0.86
netmask=255.255.255.0
bootfile="uImage"
mtdparts=mtdparts=flash:512k(u-boot)ro,4m(kernel)ro,-(root)
fileaddr=0xa0000000
machid=e66
kern_file=uImage
rfs_file=rootfs_tion270.jffs2
kern_fladdr=0x80000
rfs_fladdr=0x480000
rfs_addr=0xa1000000
splashimage=0x400000
stdout=serial
stderr=serial
kern_flash=tftpboot ${fileaddr} ${kern_file};flash protect off nor0,1;erase ${kern_fladdr} +${filesize};cp.b ${fileaddr} ${kern_fladdr} ${filesize};cmp.b ${kern_fladdr} ${fileaddr} ${filesize};flash protect on nor0,1
rfs_flash=tftpboot ${fileaddr} ${rfs_file};flash protect off nor0,2;erase ${rfs_fladdr} +${filesize};cp.b ${fileaddr} ${rfs_fladdr} ${filesize};cmp.b ${rfs_fladdr} ${fileaddr} ${filesize};flash protect on nor0,2;setenv rfs_size ${filesize};saveenv
reflash=run kern_flash;run rfs_flash
bootargs=console=ttyS0,115200n8 root=/dev/mtdblock2 rw rootfstype=jffs2
mtdids=nor0=flash
partition=nor0,2
mtddevnum=2
mtddevname=root
Environment size: 1105/262140 bytes
$ mtdparts
device nor0 <flash>, # parts = 3
#: name size offset mask_flags
0: u-boot 0x00080000 0x00000000 1
1: kernel 0x00400000 0x00080000 1
2: root 0x01b80000 0x00480000 0
active partition: nor0,2 - (root) 0x01b80000 @ 0x00480000
defaults:
mtdids : nor0=flash
mtdparts: mtdparts=flash:512k(u-boot)ro,4m(kernel)ro,-(root)
Вот как не происходит монтирование
[ 9.253392] VFS: Unable to mount root fs via NFS, trying floppy.
[ 9.259721] List of all partitions:
[ 9.263309] 1f00 32768 mtdblock0 (driver?)
[ 9.268351] No filesystem could mount root, tried: jffs2
[ 9.273740] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 9.282070] [<c003186c>] (unwind_backtrace+0x0/0xec) from [<c03bfcb4>] (panic+0x58/0xe4)
[ 9.290174] [<c03bfcb4>] (panic+0x58/0xe4) from [<c000912c>] (mount_block_root+0x1d4/0x21c)
[ 9.298513] [<c000912c>] (mount_block_root+0x1d4/0x21c) from [<c00093dc>] (prepare_namespace+0x164/0x1c8)
[ 9.308066] [<c00093dc>] (prepare_namespace+0x164/0x1c8) from [<c0008610>] (kernel_init+0x120/0x16c)
[ 9.317183] [<c0008610>] (kernel_init+0x120/0x16c) from [<c002d000>] (kernel_thread_exit+0x0/0x8)
Если использовать
bootargs=console=ttyS0,115200n8 root=/dev/mtdblock0 rw rootfstype=jffs2
То файловая система в принципе запускается, но я не понимаю как!
Как сделать так, чтобы было mtdblock2 и jffs2?