ext4 cartão SD formatado com rootfs.squashfs

1

Eu tenho um sistema embarcado com um cartão SD que possui um sistema de arquivos ext4. Eu tenho um rootfs.squasfs que é colocado no sistema de arquivos ext4 e estou tentando inicializá-lo. Eu construí um initramfs onde eu posso montar o cartão SD e depois montar o squashfs. Mas eu não posso mudar para isso. Quando tento exec switch_root /newroot /linuxrc , obtenho uma falha:

/ # mount
rootfs on / type rootfs (rw)
/dev/root.old on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
/proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/mmcblk0p1 on /tmp type ext4 (rw,relatime,data=ordered)
/dev/loop0 on /newroot type squashfs (ro,relatime)

/ # exec switch_root /newroot /linuxrc
BusyBox v1.22.1 VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
0700          119920 loop0  (driver?)
b300         7634944 mmcblk0  driver: mmcblk
  b301          262144 mmcblk0p1 00000000-0000-0000-0000-000000000000
  b302          262144 mmcblk0p2 00000000-0000-0000-0000-000000000000
  b303         2202010 mmcblk0p3 00000000-0000-0000-0000-000000000000
b310            4096 mmcblk0boot1  (driver?)
b308            4096 mmcblk0boot0  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c000eab4>] (unwind_backtrace+0x0/0xfc) from [<c041b0d4>] (panic+0x94/0x1c0)
[<c041b0d4>] (panic+0x94/0x1c0) from [<c0592c9c>] (mount_block_root+0x194/0x224)
[<c0592c9c>] (mount_block_root+0x194/0x224) from [<c0592f20>] (mount_root+0x108/0x110)
[<c0592f20>] (mount_root+0x108/0x110) from [<c0593b6c>] (initrd_load+0x270/0x360)
[<c0593b6c>] (initrd_load+0x270/0x360) from [<c0593010>] (prepare_namespace+0xe8/0x1d8)
[<c0593010>] (prepare_namespace+0xe8/0x1d8) from [<c0592970>] (kernel_init+0x1b4/0x1bc)
[<c0592970>] (kernel_init+0x1b4/0x1bc) from [<c0009ccc>] (kernel_thread_exit+0x0/0x8)
(2015-04-07 17:27:21 CDT) multi-call binary.

Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]

Alguém pode me ajudar a entender o que estou fazendo de errado?

    
por sumeet 13.04.2015 / 15:57

0 respostas

Tags