Issues regarding the kernel panic (kernel 3.10.20)

Hello,

I am using kernel 3.10.20 and having issues while flashing the image.
I tried some solution for examples adding some file system drivers but still didnt succeed.
Any help would be great releif for me.

[    4.049416] (1)[1:swapper/0]7 cmdlinepart partitions found on MTD device eMMC
[    4.056397] (1)[1:swapper/0]Creating 7 MTD partitions on "eMMC":
[    4.062288] (1)[1:swapper/0]0x000000000000-0x000000040000 : "mbr"
[    4.069312] (1)[1:swapper/0]0x000000040000-0x0000000c0000 : "uboot"
[    4.076270] (1)[1:swapper/0]0x0000000c0000-0x000000100000 : "config"
[    4.083301] (1)[1:swapper/0]0x000000100000-0x000000140000 : "factory"
[    4.090375] (1)[1:swapper/0]0x000000140000-0x000002540000 : "firmware"
[    4.099222] (1)[1:swapper/0]0x00000040b510-0x000002540000 : "rootfs"
[    4.105390] (1)[1:swapper/0]mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    4.120104] (1)[1:swapper/0]0x000002540000-0x0000c4140000 : "rootfs_data"
[    4.127532] (1)[1:swapper/0]0x0000c4140000-0x0000d1e00000 : "bmtpool"
[    4.138435] (1)[1:swapper/0]SLEEP_EN = 0x1
                                             [    4.144722] (1)[1:swapper/0]SQUASHFS error: Failed to initialise xz decompressor
[    4.152036] (1)[1:swapper/0]VFS: Cannot open root device "mtdblock5" or unknown-block(31,5): error -5
[    4.161130] (1)[1:swapper/0]Please append a correct "root=" boot option; here are the available partitions:
[    4.170707]b300         7632896 mmcblk0  driver: mmcblk
[    4.175852]  b301            8192 mmcblk0p1 00001d52-01
[    4.181020]  b302         7587840 mmcblk0p2 00001d52-02
[    4.186193]b360            4096 mmcblk0rpmb  (driver?)
[    4.191273]b340            4096 mmcblk0boot1  (driver?)
[    4.196443]b320            4096 mmcblk0boot0  (driver?)
[    4.201611]1f00             256 mtdblock0  (driver?)
[    4.206523]1f01             512 mtdblock1  (driver?)
[    4.211433]1f02             256 mtdblock2  (driver?)
[    4.216344]1f03             256 mtdblock3  (driver?)
[    4.221254]1f04           36864 mtdblock4  (driver?)
[    4.226165]1f05           34002 mtdblock5  (driver?)
[    4.231075]1f06         3174400 mtdblock6  (driver?)
[    4.236123]1f07          226048 mtdblock7  (driver?)
[    4.241033]-(1)[1:swapper/0]Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5)
[    4.250682]-(0)[0:swapper/0]CPU0: stopping

None of the kernel versions currently supported by OpenWrt is 3.10.x

I got the openwrt sdk from the vendor, So i think they are using this version for there product as the current openwrt kernel has issue wuth the usb host drivers...

I am using kernel 3.10.20 and having issues while flashing the image.
I tried some solution for examples adding some file system drivers but still didnt succeed.
Any help would be great releif for me.

[ 4.049416] (1)[1:swapper/0]7 cmdlinepart partitions found on MTD device eMMC
[ 4.056397] (1)[1:swapper/0]Creating 7 MTD partitions on "eMMC":
[ 4.062288] (1)[1:swapper/0]0x000000000000-0x000000040000 : "mbr"
[ 4.069312] (1)[1:swapper/0]0x000000040000-0x0000000c0000 : "uboot"
[ 4.076270] (1)[1:swapper/0]0x0000000c0000-0x000000100000 : "config"
[ 4.083301] (1)[1:swapper/0]0x000000100000-0x000000140000 : "factory"
[ 4.090375] (1)[1:swapper/0]0x000000140000-0x000002540000 : "firmware"
[ 4.099222] (1)[1:swapper/0]0x00000040b510-0x000002540000 : "rootfs"
[ 4.105390] (1)[1:swapper/0]mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 4.120104] (1)[1:swapper/0]0x000002540000-0x0000c4140000 : "rootfs_data"
[ 4.127532] (1)[1:swapper/0]0x0000c4140000-0x0000d1e00000 : "bmtpool"
[ 4.138435] (1)[1:swapper/0]SLEEP_EN = 0x1
[ 4.144722] (1)[1:swapper/0]SQUASHFS error: Failed to initialise xz decompressor
[ 4.152036] (1)[1:swapper/0]VFS: Cannot open root device "mtdblock5" or unknown-block(31,5): error -5
[ 4.161130] (1)[1:swapper/0]Please append a correct "root=" boot option; here are the available partitions:
[ 4.170707]b300 7632896 mmcblk0 driver: mmcblk
[ 4.175852] b301 8192 mmcblk0p1 00001d52-01
[ 4.181020] b302 7587840 mmcblk0p2 00001d52-02
[ 4.186193]b360 4096 mmcblk0rpmb (driver?)
[ 4.191273]b340 4096 mmcblk0boot1 (driver?)
[ 4.196443]b320 4096 mmcblk0boot0 (driver?)
[ 4.201611]1f00 256 mtdblock0 (driver?)
[ 4.206523]1f01 512 mtdblock1 (driver?)
[ 4.211433]1f02 256 mtdblock2 (driver?)
[ 4.216344]1f03 256 mtdblock3 (driver?)
[ 4.221254]1f04 36864 mtdblock4 (driver?)
[ 4.226165]1f05 34002 mtdblock5 (driver?)
[ 4.231075]1f06 3174400 mtdblock6 (driver?)
[ 4.236123]1f07 226048 mtdblock7 (driver?)
[ 4.241033]-(1)[1:swapper/0]Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5)
[ 4.250682]-(0)[0:swapper/0]CPU0: stopping

I would recommend contacting the vendor for support. Kernel 3.10 was in 14.07 released in 2014, I think. I do not believe the OpenWrt project still supports versions that old. It is likely that you are dealing with a SDK derived from an old version of OpenWrt.

Yes; I understand your concern,
But the current openwrt version doesn't support the USB host, it has some issue with the musb drivers.
Also, for the vendor they recommend us to use the mtk-sdk openwrt version in this version it works perfect.
So i am trying to backport the kernel 3.10.20 version with the current openwrt, after all this i have this memory issue...

Master is at 4.19 and moving to 5.4. You should ask assistance from your vendor; they're getting your money, not the OpenWrt community.

Your error message points to XZ not being supported for now, so I'd investigage that. Chances are you'll end up hacking a lot more than you'd like.

thanks a lot for your reply...