[solved] Yún bricked? SQUASHFS error: Unable to read -> kernel panic

Hi,

I bought a maybe bricked used arduino. The seller declared it as new :frowning:

I uploaded "YunSerialTerminal". After that I created a screen session with Serial Monitor and as an alternative with screen /dev/ttyacm0 115200.

The output stopped with (the whole output is at the end):

[    4.200000] SQUASHFS error: Unable to read page, block 1a2162, size 12c10
[    4.200000] SQUASHFS error: Unable to read fragment cache entry [1a2162]
[    4.200000] SQUASHFS error: Unable to read page, block 1a2162, size 12c10
[    4.310000] Kernel panic - not syncing: Attempted to kill init!

I tried to access U-Boot but I can't because at the beginning of the serial session I just see non-printable characters. Strange - at the moment I do not understand why.

Can someone help? Thanks you very much.

dmq

Here is the whole output:

怘�怘�ff�����`����`����������~�x�昆�x����x��~�������x�������~f�x�����怘�������������x���f�x�����ff����`f���`��ff���x���f���`f���x�ff����f��~�����`fx�f���f����~���f����`��f�f��~�����xf��~x����f~f��f�怘��f��~f�f����f����~f~~�������f���f`�憀��f�f���~��fx`~���~�`f���fx����f�f�~��fx`~���~�`f���f�xx����f�f�~��fx`~���~�`f��ff��f�f��x����f�f�~��f�����������������������~�`f���f����`�����f���怘��f�f��~�f�������fx~f������f������~����f�f�~���~��`������~~������������f����fx�f�f�f����f�f���~�ff��fx~f�~f��fx`���`���xf������x怘��f�f���~�f��f~f��f���f����~���f����`��f�f��~��x`���xf��~����f~f��f�怘��f�xx�~�f`f����`fx����~���f����`��f�f��~xf���xf��~����f~f��f�怘��f�xx�~�ff��fx~f�~f��fx`���`���xf�����������f�x�~��ff~���x��~~f����f����������������f�����������f�x��f��f����f�x���~��`x昆x~f����f����x�����`f��fff����ff�����fff��ff���ff��f���`f`�ff�f���ff�f��f�x����x�fx`�~������怘��f�x�~�����x������fxf����fx`~���������f�x�~�������ffx����f��xf��f��f�����x��xf�xfx~f����f�����`���xfx�����xf��怘��f�x��~��������fxf�f��������fx~f�~f��fx`f����f�x��~��������fxf�f��xffx�����f�fx~f�~f��fx`�`fxxff~�`f�怘��f�x�~��fxf���xf��f��xf�xfx����~����ff�����f��~�������fx怘��f�x���~����f�xf�ff��~�~`fff����~�f�����fx���f�����������
�AR933X UART
[    0.700000] console [ttyATH0] enabled, bootconsole disabled
[    0.700000] console [ttyATH0] enabled, bootconsole disabled
[    0.700000] m25p80 spi0.0: found w25q128, expected m25p80
[    0.710000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.710000] 7 cmdlinepart partitions found on MTD device spi0.0
[    0.710000] Creating 7 MTD partitions on "spi0.0":
[    0.710000] 0x000000000000-0x000000040000 : "u-boot"
[    0.720000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.720000] 0x000000050000-0x000000ea0000 : "rootfs"
[    0.720000] mtd: partition "rootfs" set to be root filesystem
[    0.730000] mtd: partition "rootfs_data" created automatically, ofs=7B0000, len=6F0000
[    0.730000] 0x0000007b0000-0x000000ea0000 : "rootfs_data"
[    0.730000] 0x000000ea0000-0x000000fe0000 : "kernel"
[    0.740000] 0x000000fe0000-0x000000ff0000 : "nvram"
[    0.740000] 0x000000ff0000-0x000001000000 : "art"
[    0.740000] 0x000000050000-0x000000fe0000 : "firmware"
[    0.770000] ag71xx_mdio: probed
[    0.770000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    1.320000] eth0: Found an AR7240/AR9330 built-in switch
[    2.350000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    2.900000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    2.900000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[    2.910000] TCP cubic registered
[    2.910000] NET: Registered protocol family 17
[    2.910000] Bridge firewalling registered
[    2.910000] 8021q: 802.1Q VLAN Support v1.8
[    2.920000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.920000] Freeing unused kernel memory: 216k freed
[    3.740000] SQUASHFS error: xz_dec_run error, data probably corrupt
[    3.740000] SQUASHFS error: squashfs_read_data failed to read block 0x1a2162
[    3.740000] SQUASHFS error: Unable to read fragment cache entry [1a2162]
[    4.200000] SQUASHFS error: Unable to read fragment cache entry [1a2162]
[    4.200000] SQUASHFS error: Unable to read page, block 1a2162, size 12c10
[    4.310000] Kernel panic - not syncing: Attempted to kill init!

Hi,

is it really so bad that nobody has an idea?

Thanks for any idea on that issue

Hi,

I fixed it by myself. I checked the YunSerialTerminal code and modified the VAR "long linuxBaud = 250000;" to "long linuxBaud = 115200;".

After that the special chars were gone.

After that I reflashed kernel + filesystem.

After hat the Yun is working :slight_smile:

Hope it can help someone.

dmq

Congratulations, that was good detective work!

Thanks for sharing your solution, hopefully it will help the next person with that issue.