Hi Richard, On 2/15/20, Richard Weinberger <richard.weinberger@xxxxxxxxx> wrote: > There is no mtd2. Sorry, that was fixed, please see an updated log that the mtd2 was actually attached "ubi0: attaching mtd2", I am wondering if I edited the /etc/fstab wrongly to cause the sytax issue and to fail the root mount? Here is the /etc/fstab: ubi0:rootfs-volume / ubifs defaults,relatime,ro,ubi=0,vol=2 0 0 ubi0:data-volume /data ubifs defaults,noatime,rw,mode=0755,ubi=0,vol=3 0 0 #/dev/root / auto defaults 1 1 proc /proc proc defaults 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0 tmpfs /var/volatile tmpfs defaults 0 0 Again attached the bootargs: => setenv bootargs "console=ttymxc0,115200 earlycon mtdparts=gpmi-nand:1m(boot),1m(ubootenv),-(storage) root=${root} ubi.mtd=2,2048 noinitrd rootfstype=ubifs mem=256M rootwait=5" => run bootcmd; ubi0: attaching mtd1 ubi0: scanning is finished ubi0: attached mtd1 (name "mtd=2", size 254 MiB) ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 ubi0: good PEBs: 2028, bad PEBs: 4, corrupted PEBs: 0 ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 591639195 ubi0: available PEBs: 0, total reserved PEBs: 2028, PEBs reserved for bad PEB handling: 36 Read 0 bytes from volume kernel-volume to 80800000 No size specified -> Using max size (8325592) Read 0 bytes from volume dtb-volume to 88c00000 No size specified -> Using max size (22907) Kernel image @ 0x80800000 [ 0x000000 - 0x7f09d8 ] ## Flattened Device Tree blob at 88c00000 Booting using the fdt blob at 0x88c00000 Using Device Tree in place at 88c00000, end 88c0897a ft_system_setup for mx6 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.75 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Sat Feb 15 01:18:31 UTC 2020 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Solar Analytics CN-44 RevD [ 0.000000] earlycon: ec_imx6q0 at MMIO 0x02020000 (options '') [ 0.000000] bootconsole [ec_imx6q0] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 64 MiB at 0x8c000000 [ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x48c with crng_init=0 [ 0.000000] percpu: Embedded 18 pages/cpu s41896 r8192 d23640 u73728 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttymxc0,115200 earlycon mtdparts=gpmi-nand:1m(boot),1m(ubootenv),-(storage) root= ubi.mtd=2,2048 noinitrd rootfstype=ubifs mem=256M rootwait=5 [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Memory: 169124K/262144K available (11264K kernel code, 881K rwdata, 3664K rodata, 1024K init, 7648K bss, 27484K reserved, 65536K cma-reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB) [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (12256 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 882 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) (7649 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Running RCU self tests [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU event tracing is enabled. [ 0.000000] rcu: RCU lockdep checking is enabled. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] Switching to timer-based delay loop, resolution 41ns [ 0.000022] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.007842] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.020230] Console: colour dummy device 80x30 [ 0.021910] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 0.029966] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 0.033731] ... MAX_LOCK_DEPTH: 48 [ 0.037904] ... MAX_LOCKDEP_KEYS: 8191 [ 0.042366] ... CLASSHASH_SIZE: 4096 [ 0.046608] ... MAX_LOCKDEP_ENTRIES: 32768 [ 0.051043] ... MAX_LOCKDEP_CHAINS: 65536 [ 0.055578] ... CHAINHASH_SIZE: 32768 [ 0.059918] memory used by lock dependency info: 4655 kB [ 0.065311] per task-struct memory footprint: 1536 bytes [ 0.070908] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.081166] pid_max: default: 32768 minimum: 301 [ 0.086495] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.092430] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.103686] CPU: Testing write buffer coherency: ok [ 0.108054] /cpus/cpu@0 missing clock-frequency property [ 0.111262] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.122926] Setting up static identity map for 0x80100000 - 0x80100078 [ 0.128297] rcu: Hierarchical SRCU implementation. [ 0.137058] smp: Bringing up secondary CPUs ... [ 0.139018] smp: Brought up 1 node, 1 CPU [ 0.142814] SMP: Total of 1 processors activated (48.00 BogoMIPS). [ 0.149122] CPU: All CPU(s) started in SVC mode. [ 0.158834] devtmpfs: initialized [ 0.200877] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.207710] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.215990] futex hash table entries: 256 (order: 2, 16384 bytes) [ 0.228488] pinctrl core: initialized pinctrl subsystem [ 0.240456] NET: Registered protocol family 16 [ 0.321590] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.334161] cpuidle: using governor menu [ 0.376204] vdd3p0: supplied by regulator-dummy [ 0.382644] cpu: supplied by regulator-dummy [ 0.388572] vddsoc: supplied by regulator-dummy [ 0.440042] No ATAGs? [ 0.440618] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.448182] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.466390] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver [ 0.472528] imx6ul-pinctrl 2290000.iomuxc-snvs: no groups defined in /soc/aips-bus@2200000/iomuxc-snvs@2290000 [ 0.480632] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver [ 0.651410] mxs-dma 1804000.dma-apbh: initialized [ 0.665027] vgaarb: loaded [ 0.668106] SCSI subsystem initialized [ 0.672658] usbcore: registered new interface driver usbfs [ 0.676351] usbcore: registered new interface driver hub [ 0.681241] usbcore: registered new device driver usb [ 0.690008] media: Linux media interface: v0.10 [ 0.692049] videodev: Linux video capture interface: v2.00 [ 0.698507] pps_core: LinuxPPS API ver. 1 registered [ 0.702192] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@xxxxxxxx> [ 0.711667] PTP clock support registered [ 0.717581] Advanced Linux Sound Architecture Driver Initialized. [ 0.727606] Bluetooth: Core ver 2.22 [ 0.728679] NET: Registered protocol family 31 [ 0.733056] Bluetooth: HCI device and connection manager initialized [ 0.739354] Bluetooth: HCI socket layer initialized [ 0.744269] Bluetooth: L2CAP socket layer initialized [ 0.749544] Bluetooth: SCO socket layer initialized [ 0.759205] clocksource: Switched to clocksource mxc_timer1 [ 1.421313] VFS: Disk quotas dquot_6.6.0 [ 1.422876] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.508326] NET: Registered protocol family 2 [ 1.514993] tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 5120 bytes) [ 1.520544] TCP established hash table entries: 2048 (order: 1, 8192 bytes) [ 1.526979] TCP bind hash table entries: 2048 (order: 4, 73728 bytes) [ 1.534231] TCP: Hash tables configured (established 2048 bind 2048) [ 1.541016] UDP hash table entries: 256 (order: 2, 20480 bytes) [ 1.545775] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes) [ 1.553585] NET: Registered protocol family 1 [ 1.561852] RPC: Registered named UNIX socket transport module. [ 1.565063] RPC: Registered udp transport module. [ 1.569988] RPC: Registered tcp transport module. [ 1.574433] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.600078] Initialise system trusted keyrings [ 1.603405] workingset: timestamp_bits=30 max_order=16 bucket_order=0 [ 1.658901] NFS: Registering the id_resolver key type [ 1.661878] Key type id_resolver registered [ 1.665374] Key type id_legacy registered [ 1.669948] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. [ 1.680079] fuse init (API version 7.27) [ 1.726230] Key type asymmetric registered [ 1.727747] Asymmetric key parser 'x509' registered [ 1.734699] io scheduler noop registered [ 1.736343] io scheduler deadline registered [ 1.742878] io scheduler cfq registered (default) [ 1.745303] io scheduler mq-deadline registered [ 1.750283] io scheduler kyber registered [ 1.797214] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2 [ 1.804604] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware [ 1.824059] console [ttymxc0] enabled [ 1.827951] bootconsole [ec_imx6q0] disabled [ 1.841671] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 49, base_baud = 5000000) is a IMX [ 1.856113] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 50, base_baud = 5000000) is a IMX [ 1.971409] brd: module loaded [ 2.046973] loop: module loaded [ 2.075101] random: fast init done [ 2.106567] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda [ 2.113307] nand: Winbond W29N02GV [ 2.116842] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 2.131214] Bad block table found at page 131008, version 0x01 [ 2.138309] Bad block table found at page 130944, version 0x01 [ 2.146101] 3 cmdlinepart partitions found on MTD device gpmi-nand [ 2.152634] Creating 3 MTD partitions on "gpmi-nand": [ 2.157843] 0x000000000000-0x000000100000 : "boot" [ 2.175020] 0x000000100000-0x000000200000 : "ubootenv" [ 2.189695] 0x000000200000-0x000010000000 : "storage" [ 2.610333] gpmi-nand 1806000.gpmi-nand: driver registered. [ 2.625907] libphy: Fixed MDIO Bus: probed [ 2.634113] CAN device driver interface [ 2.645496] usbcore: registered new interface driver asix [ 2.651574] usbcore: registered new interface driver ax88179_178a [ 2.658066] usbcore: registered new interface driver cdc_ether [ 2.664534] usbcore: registered new interface driver net1080 [ 2.670779] usbcore: registered new interface driver cdc_subset [ 2.677074] usbcore: registered new interface driver zaurus [ 2.683381] usbcore: registered new interface driver cdc_ncm [ 2.689620] usbcore: registered new interface driver qmi_wwan [ 2.695501] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.702316] ehci-pci: EHCI PCI platform driver [ 2.707168] ehci-mxc: Freescale On-Chip EHCI Host driver [ 2.714921] usbcore: registered new interface driver cdc_wdm [ 2.721339] usbcore: registered new interface driver usb-storage [ 3.025086] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator [ 3.034565] imx_usb 2184200.usb: Linked as a consumer to regulator.0 [ 3.047616] ci_hdrc ci_hdrc.1: EHCI Host Controller [ 3.053461] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1 [ 3.089416] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 [ 3.104798] hub 1-0:1.0: USB hub found [ 3.109957] hub 1-0:1.0: 1 port detected [ 3.131624] input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0 [ 3.163344] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp as rtc0 [ 3.174107] i2c /dev entries driver [ 3.196218] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0) [ 3.204822] Bluetooth: HCI UART driver ver 2.3 [ 3.209654] Bluetooth: HCI UART protocol H4 registered [ 3.216099] Bluetooth: HCI UART protocol LL registered [ 3.230914] sdhci: Secure Digital Host Controller Interface driver [ 3.237240] sdhci: Copyright(c) Pierre Ossman [ 3.241935] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.252676] sdhci-esdhc-imx 2190000.usdhc: Linked as a consumer to regulator.4 [ 3.300771] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA [ 3.324292] usbcore: registered new interface driver usbhid [ 3.330247] usbhid: USB HID core driver [ 3.414207] NET: Registered protocol family 10 [ 3.420499] mmc0: new high speed SDIO card at address 0001 [ 3.437557] Segment Routing with IPv6 [ 3.443410] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 3.455001] NET: Registered protocol family 17 [ 3.460253] can: controller area network core (rev 20170425 abi 9) [ 3.467114] NET: Registered protocol family 29 [ 3.471938] can: raw protocol (rev 20170425) [ 3.476570] can: broadcast manager protocol (rev 20170425 t) [ 3.483604] can: netlink gateway (rev 20170425) max_hops=1 [ 3.491231] Key type dns_resolver registered [ 3.501055] cpu cpu0: Linked as a consumer to regulator.2 [ 3.507345] cpu cpu0: Linked as a consumer to regulator.3 [ 3.518347] cpu cpu0: failed to disable 696MHz OPP [ 3.528692] Registering SWP/SWPB emulation handler [ 3.540428] Loading compiled-in X.509 certificates [ 3.654350] imx_thermal tempmon: Commercial CPU temperature grade - max:95C critical:90C passive:85C [ 3.667738] ubi0: default fastmap pool size: 100 [ 3.672705] ubi0: default fastmap WL pool size: 50 [ 3.677555] ubi0: attaching mtd2 [ 5.310878] random: crng init done [ 5.811903] ubi0: scanning is finished [ 5.825036] ubi0 warning: ubi_read_volume_table: static volume 2 misses 1 LEBs - corrupted [ 5.840838] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 34, need 36 [ 5.866965] ubi0: attached mtd2 (name "storage", size 254 MiB) [ 5.873031] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 5.880093] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 5.886932] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 5.894018] ubi0: good PEBs: 2028, bad PEBs: 4, corrupted PEBs: 0 [ 5.900239] ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128 [ 5.907511] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 591639195 [ 5.916670] ubi0: available PEBs: 0, total reserved PEBs: 2028, PEBs reserved for bad PEB handling: 34 [ 5.926391] ubi0: background thread "ubi_bgt0d" started, PID 63 [ 5.933727] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:02 UTC (2) [ 5.943214] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 5.960159] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 5.968413] vdd3p0: disabling [ 5.971923] ALSA device list: [ 5.974951] No soundcards found. [ 5.979992] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 5.988771] cfg80211: failed to load regulatory.db [ 5.996639] List of all partitions: [ 6.000581] 0100 65536 ram0 [ 6.000603] (driver?) [ 6.006783] 0101 65536 ram1 [ 6.006799] (driver?) [ 6.013104] 0102 65536 ram2 [ 6.013124] (driver?) [ 6.019380] 0103 65536 ram3 [ 6.019396] (driver?) [ 6.025570] 0104 65536 ram4 [ 6.025586] (driver?) [ 6.031838] 0105 65536 ram5 [ 6.031856] (driver?) [ 6.038025] 0106 65536 ram6 [ 6.038040] (driver?) [ 6.044286] 0107 65536 ram7 [ 6.044304] (driver?) [ 6.050545] 0108 65536 ram8 [ 6.050561] (driver?) [ 6.056729] 0109 65536 ram9 [ 6.056745] (driver?) [ 6.062984] 010a 65536 ram10 [ 6.063000] (driver?) [ 6.069337] 010b 65536 ram11 [ 6.069355] (driver?) [ 6.075611] 010c 65536 ram12 [ 6.075626] (driver?) [ 6.081957] 010d 65536 ram13 [ 6.081975] (driver?) [ 6.088230] 010e 65536 ram14 [ 6.088245] (driver?) [ 6.094581] 010f 65536 ram15 [ 6.094597] (driver?) [ 6.100949] 1f00 1024 mtdblock0 [ 6.100967] (driver?) [ 6.107568] 1f01 1024 mtdblock1 [ 6.107584] (driver?) [ 6.114265] 1f02 260096 mtdblock2 [ 6.114281] (driver?) [ 6.120941] No filesystem could mount root, tried: [ 6.120957] ubifs [ 6.125863] [ 6.129482] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 6.138004] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]--- Thank you. - jh ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/