Tool/software: Linux
Hi,
I am working to change our custom board(AM3356)'s file system from Ext 4 (RW) to SquashFS (RO).
The partitioning information for a uSD is shown below :
/dev/sdg1 on /media/yjhong/BOOT type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/sdg2 on /media/yjhong/disk type squashfs (ro,nosuid,nodev,relatime,uhelper=udisks2)
/dev/sdg3 on /media/yjhong/DATA type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
Made in the following thread :
sudo tar xvf tisdk-rootfs-image-am335x-evm.tar.xz -C rootfs/
sudo mkdir -p rootfs/media/ram
sudo mksquashfs rootfs/ filesystem.squashfs
sudo dd if=filesystem.squashfs of=/dev/sdX2
But, our custom board can't mount the squashfs partition (mmcblk0p2) as shown below :
U-Boot 2014.07-svn993 (Jul 30 2018 - 13:59:09)
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
mmc_init: 0, time 84
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
384688 bytes read in 25 ms (14.7 MiB/s)
mmc_init: 0, time 84
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
312 bytes read in 1 ms (304.7 KiB/s)
Importing environment from mmc (uEnv.txt) ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Card did not respond to voltage select!
mmc_init: -17, time 13
SD/MMC found on device 1
Card did not respond to voltage select!
mmc_init: -17, time 13
** Bad device mmc 1 **
Card did not respond to voltage select!
mmc_init: -17, time 13
** Bad device mmc 1 **
U-Boot#
Here is a kernel CMD on U-Boot :
mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=squashfs rootwait
How can the squashFS partition be mounted and booted normally?
I respectfully ask for your help.