i.MX6UL nand configuration in 4.19.35 kernel

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX6UL nand configuration in 4.19.35 kernel

142 Views
Contributor I

Hello everyone,

Greetings of the day...

kernel verison: 4.19.35

issue: unable to load the rootfs image, getting kernel panic.

I am working on imx6UL, i m trying to boot from nand. but while booting, at the stage of the rootfs(ubifs) image getting below error. What might be the issue here. Please suggest.

total boot log:

*****************
barebox 2017.04.0-BSP-Yocto-Vendor-phyBOARD-Segin-PD17.1.2 #1 Thu Oct 12 00:28:59 CEST 2017


Board: Phytec phyCORE-i.MX6 Ultra Lite SOM
detected i.MX6 UltraLite revision 1.2
mdio_bus: miibus0: probed
eth0: got preset MAC address: 50:2d:f4:10:82:c3
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_bbt: ECC error in BBT at 0x00001ffe0005
nand_bbt: ECC error in BBT at 0x00001ffc0005
Scanning device for bad blocks
Bad eraseblock 2605 at 0x0000145a0000
Bad block table written to 0x00001ffe0000, version 0x01
Bad block table written to 0x00001ffc0000, version 0x01
imx-usb 2184200.usb: USB EHCI 1.00
imx-esdhc 2190000.usdhc: registered as 2190000.usdhc
netconsole: registered as netconsole-1
phySOM-i.MX6: Using environment in NAND flash
malloc space: 0x8fefd4c0 -> 0x9fdfa97f (size 255 MiB)
envfs: no envfs (magic mismatch) - envfs never written?
running /env/bin/init...

Hit m for menu or any other key to stop autoboot:    0
booting 'nand'
ubi0: attached by fastmap
ubi0: fastmap pool size: 200
ubi0: fastmap WL pool size: 100
ubi0: registering /dev/nand0.root.ubi
ubi0: registering kernel as /dev/nand0.root.ubi.kernel
ubi0: registering oftree as /dev/nand0.root.ubi.oftree
ubi0: registering root as /dev/nand0.root.ubi.root
ubi0: attached mtd0 (name "nand0.root", size 507 MiB) to ubi0
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: 4051, bad PEBs: 5, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 3/2, WL threshold: 4096, image sequence number: 22008
ubi0: available PEBs: 0, total reserved PEBs: 4051, PEBs reserved for bad PEB handling: 75

Loading ARM Linux zImage '/dev/nand0.root.ubi.kernel'
Loading devicetree from '/dev/nand0.root.ubi.oftree'
nand0: Cannot find nodepath /soc/gpmi-nand@01806000, cannot fixup
Failed to fixup node in of_mtd_fixup+0x1/0x17c: Invalid argument
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
commandline: consoleblank=0 console=ttymxc0,115200n8  root=ubi0:root ubi.mtd=root rootfstype=ubifs rw rootwait ro fsck.repair=yes
Booting Linux on physical CPU 0x0
Linux version 4.19.35-00019-gc9383d1-dirty (ganesh@ganesh) (gcc version 7.3.0 (GCC)) #53 SMP PREEMPT Mon Jun 8 15:39:51 IST 2020
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Phytec phyBOARD-Segin i.MX6 UltraLite Full Featured
Memory policy: Data cache writealloc
random: get_random_bytes called from start_kernel+0xa0/0x3fc with crng_init=0
percpu: Embedded 16 pages/cpu @(ptrval) s36236 r8192 d21108 u65536
Built 1 zonelists, mobility grouping on.  Total pages: 130048
Kernel command line: consoleblank=0 console=ttymxc0,115200n8  root=ubi0:root ubi.mtd=root rootfstype=ubifs rw rootwait ro fsck.repair=yes
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 503116K/524288K available (10240K kernel code, 655K rwdata, 3256K rodata, 1024K init, 438K bss, 21172K reserved, 0K cma-reserved, 0K h)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xa0800000 - 0xff800000   (1520 MB)
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x(ptrval) - 0x(ptrval)   (11232 kB)
      .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
      .data : 0x(ptrval) - 0x(ptrval)   ( 656 kB)
       .bss : 0x(ptrval) - 0x(ptrval)   ( 439 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
rcu: Preemptible hierarchical RCU implementation.
rcu:    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
        Tasks RCU enabled.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
Switching to timer-based delay loop, resolution 333ns
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100060
rcu: Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
smp: Brought up 1 node, 1 CPU
SMP: Total of 1 processors activated (6.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: 2, 16384 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
vdd3p0: supplied by regulator-dummy
cpu: supplied by regulator-dummy
vddsoc: supplied by regulator-dummy
mxs_phy 20c9000.usbphy: Linked as a consumer to regulator.1
mxs_phy 20ca000.usbphy: Linked as a consumer to regulator.1
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
imx rpmsg driver is registered.
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pca953x 0-0027: 0-0027 supply vcc not found, using dummy regulator
pca953x 0-0027: Linked as a consumer to regulator.0
pca953x 0-0027: failed reading register
pca953x 0-0027: Dropping the link to regulator.0
i2c i2c-0: IMX I2C adapter registered
i2c i2c-0: can't use DMA, using PIO instead.
i2c i2c-3: IMX I2C adapter registered
i2c i2c-3: can't use DMA, using PIO instead.
videodev: Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
clocksource: Switched to clocksource mxc_timer1
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Bus freq driver module loaded
Initialise system trusted keyrings
workingset: timestamp_bits=30 max_order=17 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
fuse init (API version 7.27)
Key type asymmetric registered
Asymmetric key parser 'x509' registered
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
imx-weim 21b8000.weim: Driver registered.
mxsfb 21c8000.lcdif: 21c8000.lcdif supply lcd not found, using dummy regulator
mxsfb 21c8000.lcdif: Linked as a consumer to regulator.0
mxsfb 21c8000.lcdif: find lcd reset gpio pin.
Console: switching to colour frame buffer device 30x40
mxsfb 21c8000.lcdif: initialized
imx-sdma 20ec000.sdma: Falling back to syfs fallback for: imx/sdma/sdma-imx6q.bin
mxs-dma 1804000.dma-apbh: initialized
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 24, base_baud = 5000000) is a IMX
console [ttymxc0] enabled
2024000.serial: ttymxc7 at MMIO 0x2024000 (irq = 25, base_baud = 5000000) is a IMX
21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 63, base_baud = 5000000) is a IMX
21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 64, base_baud = 5000000) is a IMX
21fc000.serial: ttymxc5 at MMIO 0x21fc000 (irq = 66, base_baud = 5000000) is a IMX
imx sema4 driver is registered.
[drm] Initialized vivante 1.0.0 20120216 for platform:Vivante GCCore on minor 0
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
at24 0-0052: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
random: fast init done
nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
nand: Micron MT29F4G08ABADAH4
nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_bbt: ECC error in BBT at 0x00001ffe0005
nand_bbt: ECC error in BBT at 0x00001ffc0005
Scanning device for bad blocks
Bad eraseblock 2605 at 0x0000145a0000
Bad block table written to 0x00001ffe0000, version 0x01
Bad block table written to 0x00001ffc0000, version 0x01
gpmi-nand 1806000.gpmi-nand: driver registered.
spi_imx 2008000.ecspi: dma setup error -19, use pio
spi_imx 2008000.ecspi: probed
spi_imx 2010000.ecspi: dma setup error -19, use pio
spi_imx 2010000.ecspi: probed
libphy: Fixed MDIO Bus: probed
CAN device driver interface
fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
fec 2188000.ethernet: Linked as a consumer to regulator.0
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
mdio_bus 2188000.ethernet-1: MDIO device at address 2 is missing.
fec 2188000.ethernet eth0: registered PHC device 0
usbcore: registered new interface driver kaweth
pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver rtl8150
usbcore: registered new interface driver r8152
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver cdc_ncm
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb_ehset_test
usbmisc_imx 2184800.usbmisc: 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
usbmisc_imx 2184800.usbmisc: Linked as a consumer to regulator.0
imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
imx_usb 2184000.usb: Linked as a consumer to regulator.0
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
imx_usb 2184200.usb: Linked as a consumer to regulator.0
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
input: fts_ts as /devices/soc0/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-0038/input/input1
rtc-m41t80 0-0068: Oscillator failure, data is invalid.
rtc-m41t80 0-0068: registered as rtc0
i2c /dev entries driver
random: crng init done
ov7670 0-0021: chip found @ 0x42 (21a0000.i2c)
CSI: Registered sensor subdevice: ov7670 0-0021
imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol ATH3K registered
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
caam 2140000.caam: ERA source: CCBVID.
caam 2140000.caam: device ID = 0x0a16030000000000 (Era 8)
caam 2140000.caam: job rings = 3, qi = 0, dpaa2 = no
caam_jr 2141000.jr0: Entropy delay = 3200
caam_jr 2141000.jr0: Instantiated RNG4 SH0.
caam_jr 2141000.jr0: Instantiated RNG4 SH1.
caam algorithms registered in /proc/crypto
caam_jr 2141000.jr0: registering rng-caam
mmc0: host does not support reading read-only switch, assuming write-enable
caam 2140000.caam: caam pkc algorithms registered in /proc/crypto
platform caam_sm: blkkey_ex: 8 keystore units available
mmc0: new high speed SDHC card at address aaaa
caam 2140000.caam: SM test passed
caam-snvs 20cc000.caam-snvs: can't get snvs clock
caam-snvs 20cc000.caam-snvs: violation handlers armed - non-secure state
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
mmcblk0: mmc0:aaaa SL16G 14.8 GiB
vf610-adc 2198000.adc: Linked as a consumer to regulator.6
 mmcblk0: p1 p2
NET: Registered protocol family 26
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
8021q: 802.1Q VLAN Support v1.8
lib80211: common routines for IEEE802.11 drivers
Key type dns_resolver registered
cpu cpu0: Linked as a consumer to regulator.2
cpu cpu0: Linked as a consumer to regulator.3
cpu cpu0: Linked as a consumer to regulator.8
Loading compiled-in X.509 certificates
imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
UBI error: cannot open mtd root, error -22
rtc-m41t80 0-0068: Oscillator failure, data is invalid.
rtc-m41t80 0-0068: hctosys: unable to read the hardware clock
cfg80211: Loading compiled-in X.509 certificates for regulatory database
cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
platform regulatory.0: Falling back to syfs fallback for: regulatory.db
i2s-audio-1v8: disabling
i2s-audio-3v3: disabling
Backlight: disabling
gpio_dvfs: disabling
ALSA device list:
  No soundcards found.
VFS: Cannot open root device "ubi0:root" or unknown-block(0,0): error -19
Please append a correct "root=" boot option; here are the available partitions:
0100           65536 ram0
 (driver?)
0101           65536 ram1
 (driver?)
0102           65536 ram2
 (driver?)
0103           65536 ram3
 (driver?)
0104           65536 ram4
 (driver?)
0105           65536 ram5
 (driver?)
0106           65536 ram6
 (driver?)
0107           65536 ram7
 (driver?)
0108           65536 ram8
 (driver?)
0109           65536 ram9
 (driver?)
010a           65536 ram10
 (driver?)
010b           65536 ram11
 (driver?)
010c           65536 ram12
 (driver?)
010d           65536 ram13
 (driver?)
010e           65536 ram14
 (driver?)
010f           65536 ram15
 (driver?)
1f00          524288 mtdblock0
 (driver?)
b300        15558144 mmcblk0
 driver: mmcblk
  b301         1048576 mmcblk0p1 0e8ff414-01

  b302        14500864 mmcblk0p2 0e8ff414-02

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Thanks & Regards

Ganesh.K

0 Kudos
1 Reply

32 Views
NXP TechSupport
NXP TechSupport

Hi Ganesh

one can try to follow guidelines provided on :

How-To use NAND boot on i.MX6UL EVK board 

Note, use exactly uboot imx_v2019.04 (not v.2017.04)

uboot-imx - i.MX U-Boot 

linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos