elektroman wrote:Boots this device into the shell or not ??
No, rootfs is on that ubi partition, so kernel panic
[ 2.430000] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[ 2.440000] nand: Unknown NAND 128MiB 3,3V 8-bit
[ 2.450000] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 2.460000] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 2.480000] Scanning device for bad blocks
[ 2.530000] Bad eraseblock 310 at 0x0000026c0000
[ 2.570000] Bad eraseblock 543 at 0x0000043e0000
[ 2.610000] Bad eraseblock 731 at 0x000005b60000
[ 2.620000] Bad eraseblock 755 at 0x000005e60000
[ 2.670000] 5 ofpart partitions found on MTD device MT7621-NAND
[ 2.680000] Creating 5 MTD partitions on "MT7621-NAND":
[ 2.690000] 0x000000000000-0x000000030000 : "u-boot"
[ 2.700000] 0x000000030000-0x000000031000 : "u-boot-env"
[ 2.710000] 0x000000080000-0x000000100000 : "config"
[ 2.720000] 0x000000100000-0x000000140000 : "factory"
[ 2.730000] 0x000000140000-0x000007f80000 : "firmware"
[ 4.490000] 2 uimage-fw partitions found on MTD device firmware
[ 4.510000] 0x000000140000-0x0000002c0000 : "kernel"
[ 4.520000] 0x0000002c0000-0x000007f80000 : "ubi"
[ 4.530000] [mtk_nand] probe successfully!
[ 4.540000] Signature matched and data read!
[ 4.550000] load_fact_bbt success 1023
[ 4.550000] netif_napi_add() called with weight 128 on device eth%d
[ 4.580000] libphy: mdio: probed
[ 4.600000] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.610000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[ 4.630000] mt7621_wdt 1e000100.wdt: Initialized
[ 4.640000] NET: Registered protocol family 10
[ 4.650000] NET: Registered protocol family 17
[ 4.660000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 4.680000] 8021q: 802.1Q VLAN Support v1.8
[ 4.690000] UBI: auto-attach mtd6
[ 4.700000] ubi0: attaching mtd6
[ 5.880000] ubi0: scanning is finished
[ 5.880000] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 5.900000] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -22
[ 5.910000] UBI error: cannot attach mtd6
[ 5.920000] hctosys: unable to open rtc device (rtc0)
[ 5.930000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 5.950000] Please append a correct "root=" boot option; here are the available partitions:
[ 5.960000] 1f00 192 mtdblock0 (driver?)
[ 5.970000] 1f01 4 mtdblock1 (driver?)
[ 5.980000] 1f02 512 mtdblock2 (driver?)
[ 5.990000] 1f03 256 mtdblock3 (driver?)
[ 6.000000] 1f04 129280 mtdblock4 (driver?)
[ 6.010000] 1f05 1536 mtdblock5 (driver?)
[ 6.020000] 1f06 127744 mtdblock6 (driver?)
[ 6.030000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 6.030000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
And this is normal log with fixed ubi partition offset:
[ 2.570000] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[ 2.580000] nand: Unknown NAND 128MiB 3,3V 8-bit
[ 2.590000] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[ 2.600000] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 2.620000] Scanning device for bad blocks
[ 2.670000] Bad eraseblock 310 at 0x0000026c0000
[ 2.710000] Bad eraseblock 543 at 0x0000043e0000
[ 2.750000] Bad eraseblock 731 at 0x000005b60000
[ 2.760000] Bad eraseblock 755 at 0x000005e60000
[ 2.810000] 7 ofpart partitions found on MTD device MT7621-NAND
[ 2.820000] Creating 7 MTD partitions on "MT7621-NAND":
[ 2.830000] 0x000000000000-0x000000030000 : "u-boot"
[ 2.840000] 0x000000080000-0x000000100000 : "config"
[ 2.850000] 0x000000100000-0x000000140000 : "factory"
[ 2.860000] 0x000000140000-0x000000340000 : "kernel"
[ 2.870000] 0x000000030000-0x000000031000 : "u-boot-env"
[ 2.880000] 0x000000140000-0x000007000000 : "firmware"
[ 4.930000] 0x000000340000-0x000007000000 : "ubi"
[ 4.940000] [mtk_nand] probe successfully!
[ 4.950000] Signature matched and data read!
[ 4.960000] load_fact_bbt success 1023
[ 4.970000] netif_napi_add() called with weight 128 on device eth%d
[ 4.990000] change HW-TRAP to 0x17ccf
[ 5.000000] libphy: mdio: probed
[ 5.020000] ralink_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 5.030000] ralink_soc_eth 1e100000.ethernet eth0: ralink at 0xbe100000, irq 11
[ 5.050000] mt7621_wdt 1e000100.wdt: Initialized
[ 5.060000] TCP: cubic registered
[ 5.060000] NET: Registered protocol family 10
[ 5.070000] NET: Registered protocol family 17
[ 5.080000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 5.110000] 8021q: 802.1Q VLAN Support v1.8
[ 5.120000] UBI: auto-attach mtd6
[ 5.120000] UBI: attaching mtd6 to ubi0
[ 6.150000] UBI: scanning is finished
[ 6.170000] UBI: attached mtd6 (name "ubi", size 108 MiB) to ubi0
[ 6.180000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 6.200000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 6.210000] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 6.220000] UBI: good PEBs: 866, bad PEBs: 4, corrupted PEBs: 0
[ 6.240000] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 6.250000] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 767279876
[ 6.270000] UBI: available PEBs: 0, total reserved PEBs: 866, PEBs reserved for bad PEB handling: 16
[ 6.290000] UBI: background thread "ubi_bgt0d" started, PID 294
[ 6.290000] UBI: ubiblock0_0 created from ubi0:0(rootfs)
[ 6.290000] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 6.290000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 6.340000] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
...
[ 12.630000] UBIFS: background thread "ubifs_bgt0_1" started, PID 368
[ 12.700000] UBIFS: recovery needed
[ 12.890000] UBIFS: recovery completed
[ 12.900000] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 12.910000] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 12.930000] UBIFS: FS size: 103612416 bytes (98 MiB, 816 LEBs), journal size 5206016 bytes (4 MiB, 41 LEBs)
[ 12.950000] UBIFS: reserved for root: 4893869 bytes (4779 KiB)
[ 12.960000] UBIFS: media format: w4/r0 (latest is w4/r0), UUID D60F4AAC-41AA-43C1-9827-3B937BF6AF51, small LPT model
[ 12.980000] mount_root: switching to jffs2 overlay