uboot fails to boot squashfs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uboot fails to boot squashfs

Jump to solution
2,317 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
2,297 Views
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

 

View solution in original post

0 Kudos
3 Replies
2,298 Views
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 Kudos
2,311 Views
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 Kudos
2,299 Views
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 Kudos