Code is getting stucking while kernel is loading to imx7lup-evk board.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code is getting stucking while kernel is loading to imx7lup-evk board.

765 Views
Soubhagya_Sahoo
Contributor I

Hi team, 

 

I am trying to boot my 'imx7ulp-evk' board, so I can load the bootloader while the Kernel is loading code is getting stuck. I am using the 'Yocto project' to build the image and in that the Kernel version is 5.4 and the u-boot version is 2019.04. 

For the reference below I am mentioning the log that I'm getting.

 

U-Boot 2019.04-lf-5.4.y_v2019.04+g228843c (Mar 27 2023 - 07:27:19 +0000)

CPU: Freescale i.MX7ULP rev1.0 at 500 MHz
Reset cause: POR
Boot mode: Dual boot
Model: NXP i.MX7ULP EVK
DRAM: 1 GiB
MMC: FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to RM68200_WXGA
Display: RM68200_WXGA (720x1280)
Video: 720x1280x24
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc0 is current device
flash target is MMC:0
Net: Net Initialization Skipped
No ethernet found.
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
8546336 bytes read in 420 ms (19.4 MiB/s)
Booting from mmc ...
21439 bytes read in 8 ms (2.6 MiB/s)
263432 bytes read in 18 ms (14 MiB/s)
## Booting kernel from Legacy Image at 64000000 ...
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 263368 Bytes = 257.2 KiB
Load Address: 64000000
Entry Point: 64000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 63000000
Booting using the fdt blob at 0x63000000
Loading Kernel Image ... OK
Using Device Tree in place at 63000000, end 630083be

Starting kernel ...

E/TC:0 plat_rng_init:354 Warning: seeding RNG with zeroes
E/TC:0 call_initcalls:32 Initial call 0x640001dc failed
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Linux version 5.4.47-lts-lf-5.4.y+g88b2efd (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Mon Mar 27 06:15:42 UTC 2023
[ 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: NXP i.MX7ULP EVKB
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x92000000, size 192 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 251650
[ 0.000000] Kernel command line: console=ttyLP0,115200 root=/dev/mmcblk0p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 790540K/1014784K available (11264K kernel code, 526K rwdata, 4120K rodata, 1024K init, 430K bss, 27636K reserved, 196608K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 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] random: get_random_bytes called from start_kernel+0x2c8/0x46c with crng_init=0
[ 0.000000] Switching to timer-based delay loop, resolution 333ns
[ 0.000011] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[ 0.000040] clocksource: imx-tpm: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[ 0.001227] Console: colour dummy device 80x30
[ 0.001276] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.001298] pid_max: default: 32768 minimum: 301
[ 0.001505] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.001533] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002623] CPU: Testing write buffer coherency: ok
[ 0.003101] /cpus/cpu@f00 missing clock-frequency property
[ 0.003129] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[ 0.060255] Setting up static identity map for 0x60100000 - 0x60100060
[ 0.080233] rcu: Hierarchical SRCU implementation.
[ 0.120328] smp: Bringing up secondary CPUs ...
[ 0.120349] smp: Brought up 1 node, 1 CPU
[ 0.120363] SMP: Total of 1 processors activated (6.00 BogoMIPS).
[ 0.120373] CPU: All CPU(s) started in SVC mode.
[ 0.120937] devtmpfs: initialized
[ 0.128375] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.129033] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.129072] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.140212] pinctrl core: initialized pinctrl subsystem
[ 0.142044] NET: Registered protocol family 16
[ 0.161179] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.163013] cpuidle: using governor menu
[ 0.171360] mxs_phy 40350000.usb-phy: 40350000.usb-phy supply phy-3p0 not found, using dummy regulator
[ 0.181836] No ATAGs?
[ 0.181926] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.181951] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.184451] imx7ulp-pinctrl 40ac0000.pinctrl: initialized IMX pinctrl driver
[ 0.185970] imx mu driver is registered.
[ 0.187005] imx rpmsg driver is registered.
[ 0.188216] MU is ready for cross core communication!
[ 0.229557] vgaarb: loaded
[ 0.230684] SCSI subsystem initialized
[ 0.241566] usbcore: registered new interface driver usbfs
[ 0.241658] usbcore: registered new interface driver hub
[ 0.241794] usbcore: registered new device driver usb
[ 0.244008] i2c i2c-2: LPI2C adapter registered
[ 0.245550] i2c i2c-1: LPI2C adapter registered
[ 0.245803] mc: Linux media interface: v0.10
[ 0.245876] videodev: Linux video capture interface: v2.00
[ 0.245990] pps_core: LinuxPPS API ver. 1 registered
[ 0.246003] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.246040] PTP clock support registered
[ 0.271068] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 0.301106] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 0.302583] MIPI CSI2 driver module loaded
[ 0.302684] Advanced Linux Sound Architecture Driver Initialized.
[ 0.303778] Bluetooth: Core ver 2.22
[ 0.303864] NET: Registered protocol family 31
[ 0.303878] Bluetooth: HCI device and connection manager initialized
[ 0.303904] Bluetooth: HCI socket layer initialized
[ 0.303922] Bluetooth: L2CAP socket layer initialized
[ 0.303960] Bluetooth: SCO socket layer initialized
[ 0.304741] clocksource: Switched to clocksource imx-tpm
[ 0.304983] VFS: Disk quotas dquot_6.6.0
[ 0.305107] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.319352] thermal_sys: Registered thermal governor 'step_wise'
[ 0.319762] NET: Registered protocol family 2
[ 0.320737] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.320793] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.320933] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.321161] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.321336] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.321406] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.321691] NET: Registered protocol family 1
[ 0.352678] RPC: Registered named UNIX socket transport module.
[ 0.352699] RPC: Registered udp transport module.
[ 0.352710] RPC: Registered tcp transport module.
[ 0.352720] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.363689] PCI: CLS 0 bytes, default 64
[ 0.365643] Bus freq driver module loaded
[ 0.366938] Initialise system trusted keyrings
[ 0.367286] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.387319] NFS: Registering the id_resolver key type
[ 0.387371] Key type id_resolver registered
[ 0.387384] Key type id_legacy registered
[ 0.387463] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.388211] fuse: init (API version 7.31)
[ 0.456048] Key type asymmetric registered
[ 0.456071] Asymmetric key parser 'x509' registered
[ 0.456107] io scheduler mq-deadline registered
[ 0.456120] io scheduler kyber registered
[ 0.467923] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 0.468858] mipi_dsi_northwest 40a90000.mipi_dsi: i.MX MIPI DSI driver probed
[ 0.469343] adv7535 probing phase
[ 0.469368] adv7535 2-003d: main addr = 0x3d
[ 0.469443] i2c i2c-2: ADV7535 not found
[ 0.471615] mxsfb 40aa0000.lcdif: 40aa0000.lcdif supply lcd not found, using dummy regulator
[ 0.597711] mipi_dsi_northwest 40a90000.mipi_dsi: MIPI DSI dispdv inited
[ 0.597745] mxsfb 40aa0000.lcdif: registered mxc display driver mipi_dsi_northwest
[ 0.635306] sii902x bound to mxs-lcdif from 40aa0000.lcdif
[ 0.644931] Console: switching to colour frame buffer device 80x30
[ 0.749460] mxsfb 40aa0000.lcdif: initialized
[ 0.755029] 402d0000.serial: ttyLP0 at MMIO 0x402d0010 (irq = 39, base_baud = 1500000) is a FSL_LPUART
[ 1.483878] printk: console [ttyLP0] enabled
[ 1.488968] fsl-lpuart 402d0000.serial: DMA tx channel request failed, operating without tx DMA
[ 1.497715] fsl-lpuart 402d0000.serial: DMA rx channel request failed, operating without rx DMA
[ 1.507379] 40a60000.serial: ttyLP2 at MMIO 0x40a60010 (irq = 47, base_baud = 3000000) is a FSL_LPUART
[ 1.518857] imx sema4 driver is registered.
[ 1.544433] brd: module loaded
[ 1.561190] loop: module loaded
[ 1.565987] imx ahci driver is registered.
[ 1.576937] libphy: Fixed MDIO Bus: probed
[ 1.581957] CAN device driver interface
[ 1.588017] usbcore: registered new interface driver r8152
[ 1.593581] usbcore: registered new interface driver lan78xx
[ 1.599378] usbcore: registered new interface driver asix
[ 1.604873] usbcore: registered new interface driver ax88179_178a
[ 1.611021] usbcore: registered new interface driver cdc_ether
[ 1.616959] usbcore: registered new interface driver smsc95xx
[ 1.622754] usbcore: registered new interface driver net1080
[ 1.628505] usbcore: registered new interface driver cdc_subset
[ 1.634471] usbcore: registered new interface driver zaurus
[ 1.640134] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 1.647641] usbcore: registered new interface driver cdc_ncm
[ 1.653294] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.659837] ehci-pci: EHCI PCI platform driver
[ 1.664337] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 1.670111] usbcore: registered new interface driver usb-storage
[ 1.680154] input: rpmsg-keys as /devices/soc0/rpmsg-keys/input/input0
[ 1.688517] input: fts_ts as /devices/soc0/40800000.bus/40a50000.i2c/i2c-1/1-0038/input/input1
[ 2.557496] input: step_detector as /devices/soc0/rpmsg-sensor/input/input2
[ 2.565012] input: step_counter as /devices/soc0/rpmsg-sensor/input/input3
[ 2.573743] imx_rpmsg_rtc rtc-rpmsg: registered as rtc0
[ 2.580260] i2c /dev entries driver
[ 2.589100] Bluetooth: HCI UART driver ver 2.3
[ 2.593553] Bluetooth: HCI UART protocol H4 registered
[ 2.598753] Bluetooth: HCI UART protocol BCSP registered
[ 2.604114] Bluetooth: HCI UART protocol LL registered
[ 2.609319] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 2.615650] Bluetooth: HCI UART protocol Marvell registered
[ 2.621298] usbcore: registered new interface driver btusb
[ 2.627748] pwrseq_simple: probe of usdhc1_pwrseq failed with error -22
[ 2.634696] sdhci: Secure Digital Host Controller Interface driver
[ 2.640921] sdhci: Copyright(c) Pierre Ossman
[ 2.645294] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.652270] sdhci-esdhc-imx 40370000.mmc: Got CD GPIO
[ 2.660324] caam 40240000.crypto: device ID = 0x0a16030100000000 (Era 9)
[ 2.667111] caam 40240000.crypto: job rings = 2, qi = 0
[ 2.696788] caam algorithms registered in /proc/crypto
[ 2.704323] caam_jr 40241000.jr0: 2000035b: CCB: desc idx 3: RNG: Hardware error.
[ 2.711974] caam_jr 40241000.jr0: 2000035b: CCB: desc idx 3: RNG: Hardware error.
[ 2.719572] caam_jr 40241000.jr0: registering rng-caam
[ 2.737407] usbcore: registered new interface driver usbhid
[ 2.742979] usbhid: USB HID core driver
[ 2.749225] optee: probing for conduit method from DT.
[ 2.754384] optee: revision 3.2 (6d99b525)
[ 2.754963] optee: dynamic shared memory is enabled
[ 2.764213] optee: initialized driver
[ 2.777494] imx-audio-rpmsg sound-rpmsg: ASoC: failed to init link rpmsg hifi: -517
[ 2.785289] imx-audio-rpmsg sound-rpmsg: snd_soc_register_card failed (-517)
[ 2.793593] NET: Registered protocol family 26
[ 2.799229] NET: Registered protocol family 10
[ 2.815205] Segment Routing with IPv6
[ 2.818985] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.826059] NET: Registered protocol family 17
[ 2.830523] can: controller area network core (rev 20170425 abi 9)
[ 2.836869] NET: Registered protocol family 29
[ 2.841315] can: raw protocol (rev 20170425)
[ 2.845622] can: broadcast manager protocol (rev 20170425 t)
[ 2.851288] can: netlink gateway (rev 20190810) max_hops=1
[ 2.857184] Bluetooth: RFCOMM TTY layer initialized
[ 2.862085] Bluetooth: RFCOMM socket layer initialized
[ 2.867386] Bluetooth: RFCOMM ver 1.11
[ 2.871149] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.876493] Bluetooth: BNEP filters: protocol multicast
[ 2.881738] Bluetooth: BNEP socket layer initialized
[ 2.886729] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.892652] Bluetooth: HIDP socket layer initialized
[ 2.897706] lib80211: common routines for IEEE802.11 drivers
[ 2.903419] Key type dns_resolver registered
[ 2.908569] cpu cpu0: failed to get regulator
[ 2.912967] imx7ulp-cpufreq: probe of imx7ulp-cpufreq failed with error -2
[ 2.920393] Registering SWP/SWPB emulation handler
[ 2.925635] Loading compiled-in X.509 certificates
[ 2.945115] gpio-reset modem-reset: failed to request gpio 143: -22
[ 2.951418] gpio-reset: probe of modem-reset failed with error -22
[ 2.984091] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 2.989097] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 3.024849] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 3.030621] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.038928] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.046171] usb usb1: Product: EHCI Host Controller
[ 3.051050] usb usb1: Manufacturer: Linux 5.4.47-lts-lf-5.4.y+g88b2efd ehci_hcd
[ 3.058379] usb usb1: SerialNumber: ci_hdrc.0
[ 3.063782] hub 1-0:1.0: USB hub found
[ 3.067713] hub 1-0:1.0: 1 port detected
[ 3.084785] random: fast init done
[ 3.088725] sdhci-esdhc-imx 40370000.mmc: Got CD GPIO
[ 3.097881] imx-audio-rpmsg sound-rpmsg: ASoC: failed to init link rpmsg hifi: -517
[ 3.105719] imx-audio-rpmsg sound-rpmsg: snd_soc_register_card failed (-517)
[ 3.115675] sdhci-esdhc-imx 40370000.mmc: Got CD GPIO
[ 3.124550] imx-audio-rpmsg sound-rpmsg: ASoC: failed to init link rpmsg hifi: -517
[ 3.132385] imx-audio-rpmsg sound-rpmsg: snd_soc_register_card failed (-517)
[ 3.141257] imx_rpmsg_rtc rtc-rpmsg: hctosys: unable to read the hardware clock
[ 3.149069] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.172144] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.179346] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.188178] ALSA device list:
[ 3.191151] No soundcards found.
[ 3.194924] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 3.203368] Waiting for root device /dev/mmcblk0p2...
[ 33.764771] VSD_3V3: disabling
[ 64.484931] cfg80211: failed to load regulatory.db
[ 212.184816] random: crng init done 

Thanks!

Labels (1)
0 Kudos
1 Reply

728 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @Soubhagya_Sahoo,

I hope you are doing well.

Please make sure that the m4 image ( Provided in BSP with the same version ) is flashed and the value of the kernel parameter root is correctly specified.

Please follow the steps mentioned (For i.MX 7ULP) in 4.4.1.2 Downloading an image to MMC/SD in i.MX Linux ® User's Guide in Linux 5.4.47_2.2.0​​_DOC

Please mention the boot device and the fdtfile environment value in u-boot.

Please provide the image name and the command used for flashing for further debugging.

Alternatively, One can try with pre-built images provided at Embedded Linux for i.MX Applications Processors

Thanks & Regards,
Dhruvit Vasavada

0 Kudos