uboot fails to boot squashfs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

uboot fails to boot squashfs

ソリューションへジャンプ
2,553件の閲覧回数
greeran
Contributor III

hi

i created a squashfs rootfs via yocto. i copyied it to the mmc from the SDCard. from the SDCard i can mount the mmc and correctly

#mount -ls  = (/dev/mmcblk2p1 on /run/media/mmcblk2p1 type squashfs (ro,relatime))

when i boot from internal mmc i get 

Production date: 2020 Feb 11
Serial Number: f8:dc:7a:3b:8e:90
switch to partitions #0, OK
mmc2(part 0) is current device
flash target is MMC:2
Net: AR8033 PHY detected at addr 0
eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc2(part 0) is current device
** Unrecognized filesystem type **
** Unrecognized filesystem type **
Error: Bad gzipped data
Booting from net ...

 

what am i doing wrong

thanks

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
2,533件の閲覧回数
greeran
Contributor III

hi

i found my problem, i misunderstood the boot sequence. the (current) U-Boot does not support SquashFS so i created a boot partition mmc1part2 with ext4 and added the /boot files. in the boot args i directed the kernel image and the fdt to the ext4 boot and the rootfs to the squash rootfs in another partition.

the boot was successful after that

thanks

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,534件の閲覧回数
greeran
Contributor III

hi

i found my problem, i misunderstood the boot sequence. the (current) U-Boot does not support SquashFS so i created a boot partition mmc1part2 with ext4 and added the /boot files. in the boot args i directed the kernel image and the fdt to the ext4 boot and the rootfs to the squash rootfs in another partition.

the boot was successful after that

thanks

 

0 件の賞賛
返信
2,547件の閲覧回数
dvlogic
Contributor III

Hi,

I think you need to enable this option in your uboot defconfig:

CONFIG_FS_SQUASHFS=y
 
My system uses a squashfs with a overlay and I'm able to boot successfully from the squashfs.
 
-- d

 

0 件の賞賛
返信
2,535件の閲覧回数
greeran
Contributor III

hi

i tried to add the squashfs to the uboot but it does not have an option for squash. this are the options that i see

# Filesystem commands
#
# CONFIG_CMD_BTRFS is not set
# CONFIG_CMD_EXT2 is not set
CONFIG_CMD_EXT4=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
# CONFIG_CMD_FS_UUID is not set
# CONFIG_CMD_JFFS2 is not set
# CONFIG_CMD_REISER is not set
# CONFIG_CMD_ZFS is not set

 

 

Do i need to add it manually ??

thanks

Ran

0 件の賞賛
返信