We are trying to bring up Beaglebone board using squashfs filesystem through SD card. We get following error during kernel booting:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Data Size: 2880644 Bytes = 2.7 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.066713] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.128617] Could not set LED4 to fully on
[ 0.220443] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.280993] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 0.287153] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 0.293258] omap2_set_init_voltage: unable to get clk l3_ick
[ 0.299225] omap2_set_init_voltage: unable to set vdd_core
[ 0.311040]
[ 0.311048] CPSW phy found : id is : 0x7c0f1
[ 0.317867] PHY 0:01 not found
INIT: version 2.86 booting
[ 5.520926] SQUASHFS error: zlib_inflate error, data probably corrupt
[ 5.527750] SQUASHFS error: squashfs_read_data failed to read block 0x60
[ 5.534860] SQUASHFS error: Unable to read data cache entry [60]
[ 5.541210] SQUASHFS error: Unable to read page, block 60, size 120cf
[ 5.548031] SQUASHFS error: Unable to read data cache entry [60]
[ 5.554380] SQUASHFS error: Unable to read page, block 60, size 120cf
[ 5.561192] SQUASHFS error: Unable to read data cache entry [60]
[ 5.567528] SQUASHFS error: Unable to read page, block 60, size 120cf
[ 5.574337] SQUASHFS error: Unable to read data cache entry [60]
[ 5.580681] SQUASHFS error: Unable to read page, block 60, size 120cf
[ 5.587484] SQUASHFS error: Unable to read data cache entry [60]
[ 5.593830] SQUASHFS error: Unable to read page, block 60, size 120cf
INIT: Entering runlevel: 5
[ 5.682593] SQUASHFS error: Unable to read data cache entry [60]
[ 5.688945] SQUASHFS error: Unable to read page, block 60, size 120cf
INIT: cannot execute "/etc/init.d/rc"
INIT: Id "S" respawning too fast: disabled for 5 minutes
INIT: Id "S" respawning too fast: disabled for 5 minutes
INIT: Id "S" respawning too fast: disabled for 5 minutes
This is the sequence we followed:
1. Build u-boot and MLO image
2. Build uImage after enabling squashfs filesystem through menuconfig
3. Create squash.sqfs (Filesystem) using command mksquashfs
4. Copy the file system to SD card (/dev/sdd2 in Ubuntu) using command sudo dd if=squash.sqfs of=/dev/sdd2
5. Copied u-boot,MLO,uImage and uEnv.txt in the SD card first partition /dev/sdd1
My uEnv.txt contents:
optargs=run_hardware_tests quiet
6. Boot to the hardware
7. Stop booting process at the U-Boot in serial console
8. Change environment variable as follows: setenv mmc_root=/dev/mmcblk0p2
9. setenv mmc_root_fs_type =squashfs
10. boot the kernel