Linux-mtd Archive on lore.kernel.org
 help / color / Atom feed
* Unable to mount root fs (UBIFS volume)
@ 2020-02-15  3:09 JH
  2020-02-15  7:17 ` Richard Weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: JH @ 2020-02-15  3:09 UTC (permalink / raw)
  To: linux-mtd

Hi,

I am running MTD on customized imx6ull evk board, the root is a UBIFS
volume, installed from s ubinize image.

If I boot from a ramdisk to Linux, I could run ubiattach -p /dev/mtd2
and mount -t ubifs -r -v ubi0:rootfs-volume /mnt in ramdisk Linux, but
it failed in NAND kernel boot, looks like that the kernel was not able
to attach the mtd device or not able to mount to the rootfs-volume, do
I need to pass more parameters to kernel? Or what could I be missing
in the u-boot bootargs setup?

=> setenv bootargs "console=ttymxc0,115200 earlycon
mtdparts=gpmi-nand:1m(boot),1m(ubootenv),-(storage)
root=storage:rootfs-volume ro ubi.mtd=2,2048 noinitrd rootfstype=ubifs
mem=256M rootwait=1"


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 Fri Feb 14 22:40:57 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] 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=mtdparts=gpmi-nand:1m(boot),1m(ubootenv),-(storage)
root=storage:rootfs-volume ro ubi.mtd=2,2048 noinitrd rootfstype=ubifs
mem=256M r1
[    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.000021] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps
every 89478484971ns
[    0.007844] clocksource: mxc_timer1: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 79635851949 ns
[    0.020236] Console: colour dummy device 80x30
[    0.021920] Lock dependency validator: Copyright (c) 2006 Red Hat,
Inc., Ingo Molnar
[    0.029976] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.033742] ... MAX_LOCK_DEPTH:          48
[    0.037914] ... MAX_LOCKDEP_KEYS:        8191
[    0.042376] ... CLASSHASH_SIZE:          4096
[    0.046616] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.051052] ... MAX_LOCKDEP_CHAINS:      65536
[    0.055587] ... CHAINHASH_SIZE:          32768
[    0.059926]  memory used by lock dependency info: 4655 kB
[    0.065321]  per task-struct memory footprint: 1536 bytes
[    0.070916] Calibrating delay loop (skipped), value calculated
using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.081178] pid_max: default: 32768 minimum: 301
[    0.086495] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092450] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103723] CPU: Testing write buffer coherency: ok
[    0.108097] /cpus/cpu@0 missing clock-frequency property
[    0.111302] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.122965] Setting up static identity map for 0x80100000 - 0x80100078
[    0.128336] rcu: Hierarchical SRCU implementation.
[    0.137107] smp: Bringing up secondary CPUs ...
[    0.139066] smp: Brought up 1 node, 1 CPU
[    0.142858] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.149170] CPU: All CPU(s) started in SVC mode.
[    0.158872] devtmpfs: initialized
[    0.200966] VFP support v0.3: implementor 41 architecture 2 part 30
variant 7 rev 5
[    0.207789] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.216079] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.228712] pinctrl core: initialized pinctrl subsystem
[    0.240713] NET: Registered protocol family 16
[    0.321687] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.334284] cpuidle: using governor menu
[    0.376297] vdd3p0: supplied by regulator-dummy
[    0.382754] cpu: supplied by regulator-dummy
[    0.388657] vddsoc: supplied by regulator-dummy
[    0.440195] No ATAGs?
[    0.440770] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4
watchpoint registers.
[    0.448333] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.466585] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.472752] imx6ul-pinctrl 2290000.iomuxc-snvs: no groups defined
in /soc/aips-bus@2200000/iomuxc-snvs@2290000
[    0.480827] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX
pinctrl driver
[    0.651795] mxs-dma 1804000.dma-apbh: initialized
[    0.665448] vgaarb: loaded
[    0.668516] SCSI subsystem initialized
[    0.673058] usbcore: registered new interface driver usbfs
[    0.676758] usbcore: registered new interface driver hub
[    0.681642] usbcore: registered new device driver usb
[    0.690391] media: Linux media interface: v0.10
[    0.692431] videodev: Linux video capture interface: v2.00
[    0.698896] pps_core: LinuxPPS API ver. 1 registered
[    0.702576] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@linux.it>
[    0.712048] PTP clock support registered
[    0.717925] Advanced Linux Sound Architecture Driver Initialized.
[    0.727978] Bluetooth: Core ver 2.22
[    0.729043] NET: Registered protocol family 31
[    0.733424] Bluetooth: HCI device and connection manager initialized
[    0.739727] Bluetooth: HCI socket layer initialized
[    0.744639] Bluetooth: L2CAP socket layer initialized
[    0.749907] Bluetooth: SCO socket layer initialized
[    0.759614] clocksource: Switched to clocksource mxc_timer1
[    1.422391] VFS: Disk quotas dquot_6.6.0
[    1.423946] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.509648] NET: Registered protocol family 2
[    1.516073] tcp_listen_portaddr_hash hash table entries: 128
(order: 0, 5120 bytes)
[    1.521622] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    1.528061] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
[    1.535311] TCP: Hash tables configured (established 2048 bind 2048)
[    1.542121] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    1.546857] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    1.554667] NET: Registered protocol family 1
[    1.562907] RPC: Registered named UNIX socket transport module.
[    1.566119] RPC: Registered udp transport module.
[    1.571053] RPC: Registered tcp transport module.
[    1.575490] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.601308] Initialise system trusted keyrings
[    1.604647] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    1.660230] NFS: Registering the id_resolver key type
[    1.662716] Key type id_resolver registered
[    1.666703] Key type id_legacy registered
[    1.671509] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    1.681451] fuse init (API version 7.27)
[    1.727496] Key type asymmetric registered
[    1.729019] Asymmetric key parser 'x509' registered
[    1.736020] io scheduler noop registered
[    1.737607] io scheduler deadline registered
[    1.744152] io scheduler cfq registered (default)
[    1.746569] io scheduler mq-deadline registered
[    1.751543] io scheduler kyber registered
[    1.798375] imx-sdma 20ec000.sdma: Direct firmware load for
imx/sdma/sdma-imx6q.bin failed with error -2
[    1.805758] imx-sdma 20ec000.sdma: external firmware not found,
using ROM firmware
[    1.825291] console [ttymxc0] enabled
[    1.829185] bootconsole [ec_imx6q0] disabled
[    1.842903] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 49,
base_baud = 5000000) is a IMX
[    1.857335] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 50,
base_baud = 5000000) is a IMX
[    1.972367] brd: module loaded
[    2.047816] loop: module loaded
[    2.075652] random: fast init done
[    2.106993] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda
[    2.113719] nand: Winbond W29N02GV
[    2.117250] nand: 256 MiB, SLC, erase size: 128 KiB, page size:
2048, OOB size: 64
[    2.131720] Bad block table found at page 131008, version 0x01
[    2.138804] Bad block table found at page 130944, version 0x01
[    2.156885] gpmi-nand 1806000.gpmi-nand: driver registered.
[    2.172838] libphy: Fixed MDIO Bus: probed
[    2.181204] CAN device driver interface
[    2.192606] usbcore: registered new interface driver asix
[    2.198457] usbcore: registered new interface driver ax88179_178a
[    2.205193] usbcore: registered new interface driver cdc_ether
[    2.211614] usbcore: registered new interface driver net1080
[    2.217662] usbcore: registered new interface driver cdc_subset
[    2.224160] usbcore: registered new interface driver zaurus
[    2.230465] usbcore: registered new interface driver cdc_ncm
[    2.236555] usbcore: registered new interface driver qmi_wwan
[    2.242614] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.249269] ehci-pci: EHCI PCI platform driver
[    2.254288] ehci-mxc: Freescale On-Chip EHCI Host driver
[    2.261992] usbcore: registered new interface driver cdc_wdm
[    2.268168] usbcore: registered new interface driver usb-storage
[    2.565405] imx_usb 2184200.usb: 2184200.usb supply vbus not found,
using dummy regulator
[    2.574902] imx_usb 2184200.usb: Linked as a consumer to regulator.0
[    2.587979] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    2.593841] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    2.629828] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    2.645105] hub 1-0:1.0: USB hub found
[    2.650266] hub 1-0:1.0: 1 port detected
[    2.671822] input: 20cc000.snvs:snvs-powerkey as
/devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[    2.703479] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered
20cc000.snvs:snvs-rtc-lp as rtc0
[    2.714221] i2c /dev entries driver
[    2.736473] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    2.744825] Bluetooth: HCI UART driver ver 2.3
[    2.749641] Bluetooth: HCI UART protocol H4 registered
[    2.756099] Bluetooth: HCI UART protocol LL registered
[    2.770342] sdhci: Secure Digital Host Controller Interface driver
[    2.776668] sdhci: Copyright(c) Pierre Ossman
[    2.781338] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.792037] sdhci-esdhc-imx 2190000.usdhc: Linked as a consumer to
regulator.4
[    2.840527] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc]
using ADMA
[    2.865974] usbcore: registered new interface driver usbhid
[    2.872063] usbhid: USB HID core driver
[    2.948916] mmc0: new high speed SDIO card at address 0001
[    2.960211] NET: Registered protocol family 10
[    2.976293] Segment Routing with IPv6
[    2.982237] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.993952] NET: Registered protocol family 17
[    2.998628] can: controller area network core (rev 20170425 abi 9)
[    3.006057] NET: Registered protocol family 29
[    3.010907] can: raw protocol (rev 20170425)
[    3.015529] can: broadcast manager protocol (rev 20170425 t)
[    3.021598] can: netlink gateway (rev 20170425) max_hops=1
[    3.028917] Key type dns_resolver registered
[    3.039665] cpu cpu0: Linked as a consumer to regulator.2
[    3.046097] cpu cpu0: Linked as a consumer to regulator.3
[    3.057102] cpu cpu0: failed to disable 696MHz OPP
[    3.067524] Registering SWP/SWPB emulation handler
[    3.079065] Loading compiled-in X.509 certificates
[    3.193074] imx_thermal tempmon: Commercial CPU temperature grade -
max:95C critical:90C passive:85C
[    3.206295] UBI error: cannot open mtd 2, error -19
[    3.212881] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock
to 1970-01-01 00:00:00 UTC (0)
[    3.222366] cfg80211: Loading compiled-in X.509 certificates for
regulatory database
[    3.238598] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.247514] vdd3p0: disabling
[    3.251026] ALSA device list:
[    3.254050]   No soundcards found.
[    3.258544] platform regulatory.0: Direct firmware load for
regulatory.db failed with error -2
[    3.267496] cfg80211: failed to load regulatory.db
[    3.274900] List of all partitions:
[    3.278481] 0100           65536 ram0
[    3.278500]  (driver?)
[    3.285047] 0101           65536 ram1
[    3.285070]  (driver?)
[    3.291339] 0102           65536 ram2
[    3.291357]  (driver?)
[    3.297532] 0103           65536 ram3
[    3.297549]  (driver?)
[    3.303791] 0104           65536 ram4
[    3.303809]  (driver?)
[    3.310041] 0105           65536 ram5
[    3.310057]  (driver?)
[    3.316233] 0106           65536 ram6
[    3.316248]  (driver?)
[    3.322478] 0107           65536 ram7
[    3.322494]  (driver?)
[    3.328658] 0108           65536 ram8
[    3.328674]  (driver?)
[    3.334905] 0109           65536 ram9
[    3.334921]  (driver?)
[    3.341150] 010a           65536 ram10
[    3.341166]  (driver?)
[    3.347424] 010b           65536 ram11
[    3.347439]  (driver?)
[    3.353757] 010c           65536 ram12
[    3.353772]  (driver?)
[    3.360084] 010d           65536 ram13
[    3.360100]  (driver?)
[    3.366354] 010e           65536 ram14
[    3.366369]  (driver?)
[    3.372684] 010f           65536 ram15
[    3.372701]  (driver?)
[    3.378978] 1f00          262144 mtdblock0
[    3.378995]  (driver?)
[    3.385648] No filesystem could mount root, tried:
[    3.385666]  ubifs
[    3.390629]
[    3.394181] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(0,0)
[    3.402692] ---[ end Kernel panic - not syncing: VFS: Unable to
mount root fs on unknown-block(0,0) ]---

Thank you.

Kind regards,

- jh

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-15  3:09 Unable to mount root fs (UBIFS volume) JH
2020-02-15  7:17 ` Richard Weinberger
2020-02-15  7:36   ` JH
2020-02-15 10:12   ` JH
2020-02-15 12:40     ` JH
2020-02-16 10:19       ` JH

Linux-mtd Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mtd/0 linux-mtd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mtd linux-mtd/ https://lore.kernel.org/linux-mtd \
		linux-mtd@lists.infradead.org
	public-inbox-index linux-mtd

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-mtd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git