imx8mp based custom board fail to load kernel of android-13

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

imx8mp based custom board fail to load kernel of android-13

Jump to solution
1,585 Views
kalarav_p
Contributor II

We have imx8mp based custom board we are able to load SPL > UBOOT.
In Kernel loading facing issue: reboot: Restarting system with command 'bootloader'

Here are the detailed logs of kernel:

Starting kernel ...

[ 0.000000][ T0] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000][ T0] Linux version 6.1.25-00001-g4e4d9450b6c9-dirty (falcon@falcon) (Android (10087095, +pgo, +bolt, +lto, -mlgo, based on r487747c) clang version 17.0.2 (https://android.googlesource.co3
[ 0.000000][ T0] Machine model: i.MX8MPlus
[ 0.000000][ T0] Stack Depot is disabled
[ 0.000000][ T0] earlycon: ec_imx6q0 at I/O port 0x0 (options '')
[ 0.000000][ T0] Malformed early option 'earlycon'
[ 0.000000][ T0] Enabling dynamic shadow call stack
[ 0.000000][ T0] efi: UEFI not found.
[ 0.000000][ T0] Reserved memory: bypass linux,cma node, using cmdline CMA params instead
[ 0.000000][ T0] OF: reserved mem: node linux,cma compatible matching fail
[ 0.000000][ T0] Reserved memory: created DMA memory pool at 0x0000000094300000, size 1 MiB
[ 0.000000][ T0] OF: reserved mem: initialized node vdev0buffer@94300000, compatible id shared-dma-pool
[ 0.000000][ T0] kvm [0]: Reserved 16 MiB at 0xbea00000
[ 0.000000][ T0] Zone ranges:
[ 0.000000][ T0] DMA32 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] Normal empty
[ 0.000000][ T0] Device empty
[ 0.000000][ T0] Movable zone start for each node
[ 0.000000][ T0] Early memory node ranges
[ 0.000000][ T0] node 0: [mem 0x0000000040000000-0x00000000923fffff]
[ 0.000000][ T0] node 0: [mem 0x0000000092400000-0x00000000943fffff]
[ 0.000000][ T0] node 0: [mem 0x0000000094400000-0x00000000bfffffff]
[ 0.000000][ T0] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000][ T0] cma: Reserved 1184 MiB at 0x0000000048400000
[ 0.000000][ T0] psci: probing for conduit method from DT.
[ 0.000000][ T0] psci: PSCIv1.1 detected in firmware.
[ 0.000000][ T0] psci: Using standard PSCI v0.2 function IDs
[ 0.000000][ T0] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000][ T0] psci: SMC Calling Convention v1.2
[ 0.000000][ T0] 'bootconfig' found on command line, but no bootconfig found
[ 0.000000][ T0] percpu: Embedded 30 pages/cpu s82088 r8192 d32600 u122880
[ 0.000000][ T0] Detected VIPT I-cache on CPU0
[ 0.000000][ T0] CPU features: SYS_ID_AA64MMFR1_EL1[11:8]: already set to 0
[ 0.000000][ T0] CPU features: detected: GIC system register CPU interface
[ 0.000000][ T0] CPU features: detected: ARM erratum 845719
[ 0.000000][ T0] alternatives: applying boot alternatives
[ 0.000000][ T0] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000][ T0] Kernel command line: console=ttynull stack_depot_disable=on cgroup_disable=pressure kasan.page_alloc.sample=10 kasan.stacktrace=off kvm-arm.mode=protected bootconfig ioremap_guard c.
[ 0.000000][ T0] cgroup: Disabling pressure control group feature
[ 0.000000][ T0] Unknown kernel command line parameters "buildvariant=userdebug", will be passed to user space.
[ 0.000000][ T0] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000][ T0] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000][ T0] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[ 0.000000][ T0] Memory: 740108K/2097152K available (16384K kernel code, 1934K rwdata, 11392K rodata, 4608K init, 639K bss, 144628K reserved, 1212416K cma-reserved)
[ 0.000000][ T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000][ T0] trace event string verifier disabled
[ 0.000000][ T0] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000][ T0] rcu: RCU event tracing is enabled.
[ 0.000000][ T0] rcu: RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
[ 0.000000][ T0] rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.000000][ T0] Trampoline variant of Tasks RCU enabled.
[ 0.000000][ T0] Tracing variant of Tasks RCU enabled.
[ 0.000000][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000][ T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000][ T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000][ T0] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000][ T0] GICv3: 160 SPIs implemented
[ 0.000000][ T0] GICv3: 0 Extended SPIs implemented
[ 0.000000][ T0] Root IRQ handler: gic_handle_irq
[ 0.000000][ T0] GICv3: GICv3 features: 16 PPIs
[ 0.000000][ T0] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[ 0.000000][ T0] ITS: No ITS available, not enabling LPIs
[ 0.000000][ T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000][ T0] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[ 0.000000][ T0] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[ 0.000000][ T0] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.000679][ T0] kfence: initialized - using 524288 bytes for 63 objects at 0x(____ptrval____)-0x(____ptrval____)
[ 0.000830][ T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[ 0.000843][ T0] pid_max: default: 32768 minimum: 301
[ 0.001115][ T0] LSM: Security Framework initializing
[ 0.001188][ T0] SELinux: Initializing.
[ 0.001546][ T0] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.001558][ T0] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.003615][ T1] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.003626][ T1] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.003723][ T1] cblist_init_generic: Setting shift to 2 and lim to 1.
[ 0.003968][ T1] rcu: Hierarchical SRCU implementation.
[ 0.003971][ T1] rcu: Max phase no-delay instances is 1000.
[ 0.005115][ T1] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.005508][ T1] EFI services will not be available.
[ 0.005940][ T1] smp: Bringing up secondary CPUs ...
[ 0.006485][ T0] Detected VIPT I-cache on CPU1
[ 0.006576][ T0] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[ 0.006612][ T0] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.007249][ T0] Detected VIPT I-cache on CPU2
[ 0.007330][ T0] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[ 0.007352][ T0] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.008038][ T0] Detected VIPT I-cache on CPU3
[ 0.008124][ T0] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[ 0.008146][ T0] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.008215][ T1] smp: Brought up 1 node, 4 CPUs
[ 0.008223][ T1] SMP: Total of 4 processors activated.
[ 0.008227][ T1] CPU features: detected: 32-bit EL0 Support
[ 0.008230][ T1] CPU features: detected: 32-bit EL1 Support
[ 0.008234][ T1] CPU features: detected: CRC32 instructions
[ 0.008241][ T1] CPU features: detected: Protected KVM
[ 0.008295][ T1] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.008300][ T1] CPU: All CPU(s) started at EL2
[ 0.008322][ T1] alternatives: applying system-wide alternatives
[ 0.027437][ T1] Registered cp15_barrier emulation handler
[ 0.027451][ T1] Registered setend emulation handler
[ 0.027637][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.027660][ T1] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.061074][ T1] pinctrl core: initialized pinctrl subsystem
[ 0.062402][ T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.064600][ T1] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.064764][ T1] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.064836][ T1] audit: initializing netlink subsys (disabled)
[ 0.065082][ T37] audit: type=2000 audit(0.064:1): state=initialized audit_enabled=0 res=1
[ 0.065658][ T1] thermal_sys: Registered thermal governor 'step_wise'
[ 0.065663][ T1] thermal_sys: Registered thermal governor 'user_space'
[ 0.065666][ T1] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.065705][ T1] cpuidle: using governor menu
[ 0.066167][ T1] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.066265][ T1] ASID allocator initialised with 65536 entries
[ 0.066435][ T1] Serial: AMBA PL011 UART driver
[ 0.066509][ T1] imx rpmsg driver is registered.
[ 0.096798][ T1] KASLR disabled due to lack of seed
[ 0.109050][ T1] iommu: Default domain type: Translated
[ 0.109060][ T1] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.109660][ T1] SCSI subsystem initialized
[ 0.109830][ T1] usbcore: registered new interface driver usbfs
[ 0.109878][ T1] usbcore: registered new interface driver hub
[ 0.109907][ T1] usbcore: registered new device driver usb
[ 0.110110][ T1] mc: Linux media interface: v0.10
[ 0.110139][ T1] videodev: Linux video capture interface: v2.00
[ 0.110255][ T1] pps_core: LinuxPPS API ver. 1 registered
[ 0.110259][ T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.110274][ T1] PTP clock support registered
[ 0.110299][ T1] EDAC MC: Ver: 3.0.0
[ 0.111328][ T1] FPGA manager framework
[ 0.111373][ T1] Advanced Linux Sound Architecture Driver Initialized.
[ 0.112432][ T1] clocksource: Switched to clocksource arch_sys_counter
[ 0.112906][ T1] VFS: Disk quotas dquot_6.6.0
[ 0.112953][ T1] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.113814][ T1] NET: Registered PF_INET protocol family
[ 0.113954][ T1] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.115499][ T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.115554][ T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.115614][ T1] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.115889][ T1] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.116747][ T1] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.117049][ T1] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.117097][ T1] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.117393][ T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.117436][ T1] NET: Registered PF_XDP protocol family
[ 0.117450][ T1] PCI: CLS 0 bytes, default 64
[ 0.118001][ T48] Trying to unpack rootfs image as initramfs...
[ 0.118420][ T1] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.119170][ T1] kvm [1]: IPA Size Limit: 40 bits
[ 0.164416][ T1] kvm [1]: GICv3: no GICV resource entry
[ 0.164477][ T1] kvm [1]: disabling GICv2 emulation
[ 0.164495][ T1] kvm [1]: GIC system register CPU interface enabled
[ 0.164683][ T1] kvm [1]: vgic interrupt IRQ9
[ 0.165112][ T1] kvm [1]: Protected nVHE mode initialized successfully
[ 0.166846][ T1] Initialise system trusted keyrings
[ 0.167190][ T1] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.178203][ T1] fuse: init (API version 7.37)
[ 0.221131][ T1] Key type asymmetric registered
[ 0.221147][ T1] Asymmetric key parser 'x509' registered
[ 0.221285][ T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 239)
[ 0.221526][ T1] io scheduler mq-deadline registered
[ 0.221532][ T1] io scheduler kyber registered
[ 0.221724][ T1] io scheduler bfq registered
[ 0.227090][ T1] printk: console [ttynull0] enabled
[ 0.236166][ T1] brd: module loaded
[ 0.248639][ T1] loop: module loaded
[ 0.250753][ T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 0.250763][ T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[ 0.251512][ T1] MACsec IEEE 802.1AE
[ 0.252036][ T1] tun: Universal TUN/TAP device driver, 1.6
[ 0.254233][ T1] usbcore: registered new interface driver uas
[ 0.254291][ T1] usbcore: registered new interface driver usb-storage
[ 0.254590][ T1] usbcore: registered new interface driver xpad
[ 0.254737][ T1] gspca_main: v2.14.0 registered
[ 0.254797][ T1] usbcore: registered new interface driver uvcvideo
[ 0.255431][ T1] device-mapper: uevent: version 1.0.3
[ 0.255706][ T1] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[ 0.257125][ T1] sdhci: Secure Digital Host Controller Interface driver
[ 0.257134][ T1] sdhci: Copyright(c) Pierre Ossman
[ 0.257137][ T1] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.257811][ T1] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 0.257866][ T1] hid: raw HID events driver (C) Jiri Kosina
[ 0.259064][ T1] usbcore: registered new interface driver usbhid
[ 0.259077][ T1] usbhid: USB HID core driver
[ 0.259399][ T1] ashmem: initialized
[ 0.260150][ T1] gnss: GNSS driver registered with major 504
[ 0.261060][ T1] usbcore: registered new interface driver snd-usb-audio
[ 0.261486][ T1] GACT probability NOT on
[ 0.261502][ T1] Mirror/redirect action on
[ 0.261522][ T1] netem: version 1.3
[ 0.261625][ T1] u32 classifier
[ 0.261628][ T1] input device check on
[ 0.261630][ T1] Actions configured
[ 0.318139][ T1] xt_time: kernel timezone is -0000
[ 0.318256][ T1] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 0.318802][ T1] gre: GRE over IPv4 demultiplexor driver
[ 0.318808][ T1] ip_gre: GRE over IPv4 tunneling driver
[ 0.319977][ T1] IPv4 over IPsec tunneling driver
[ 0.320498][ T1] Initializing XFRM netlink socket
[ 0.320532][ T1] IPsec XFRM device driver
[ 0.321123][ T1] NET: Registered PF_INET6 protocol family
[ 0.323403][ T1] Segment Routing with IPv6
[ 0.323437][ T1] In-situ OAM (IOAM) with IPv6
[ 0.323596][ T1] mip6: Mobile IPv6
[ 0.324300][ T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.325478][ T1] ip6_gre: GRE over IPv6 tunneling driver
[ 0.326159][ T1] NET: Registered PF_PACKET protocol family
[ 0.326183][ T1] NET: Registered PF_KEY protocol family
[ 0.326486][ T1] NET: Registered PF_VSOCK protocol family
[ 0.328321][ T1] registered taskstats version 1
[ 0.328376][ T1] Loading compiled-in X.509 certificates
[ 0.329277][ T68] cryptomgr_probe (68) used greatest stack depth: 14080 bytes left
[ 0.331297][ T1] Loaded X.509 cert 'Build time autogenerated kernel key: 323c58ad7b15debfeb3ed4ae2d7c413813e18145'
[ 0.331397][ T1] page_owner is disabled
[ 0.331660][ T1] Key type .fscrypt registered
[ 0.331667][ T1] Key type fscrypt-provisioning registered
[ 0.334212][ T1] ALSA device list:
[ 0.334229][ T1] No soundcards found.
[ 0.353588][ T48] Freeing initrd memory: 18980K
[ 0.355474][ T1] Freeing unused kernel memory: 4608K
[ 0.376557][ T1] Run /init as init process
[ 0.410193][ T1] init: init first stage started!
[ 0.411832][ T1] init: alias lines in modules.alias must have 3 entries, not 4
[ 0.412326][ T1] init: alias lines in modules.alias must have 3 entries, not 4
[ 0.414368][ T1] init: alias lines in modules.alias must have 3 entries, not 4
[ 0.417150][ T1] init: Loading module /lib/modules/soc-imx8m.ko with args ''
[ 0.417377][ T1] soc_imx8m: module verification failed: signature and/or required key missing - tainting kernel
[ 0.418514][ T1] SoC: i.MX8MP revision 1.1
[ 0.418800][ T1] init: Loaded kernel module /lib/modules/soc-imx8m.ko
[ 0.419035][ T1] init: Loading module /lib/modules/mxc-clk.ko with args ''
[ 0.421693][ T1] init: Loaded kernel module /lib/modules/mxc-clk.ko
[ 0.421956][ T1] init: Loading module /lib/modules/clk-imx8mp.ko with args ''
[ 0.454357][ T1] init: Loaded kernel module /lib/modules/clk-imx8mp.ko
[ 0.485215][ T48] imx8m-blk-ctrl 38330000.blk-ctl: BLK CTRL use normal mode
[ 0.488589][ T1] Bus freq driver module loaded
[ 0.489784][ T48] imx8m-blk-ctrl 32ec0000.blk-ctrl: BLK CTRL use normal mode
[ 0.493086][ T1] imx8mp-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[ 0.495521][ T1] gpio-8 (PMIC_IRQ#): hogged as input
[ 0.495539][ T1] gpio-11 (USB_HUB_RST#): hogged as output/high
[ 0.496957][ T1] gpio-39 (PERST#): hogged as output/high
[ 0.496973][ T1] gpio-42 (CLKREQ#): hogged as input
[ 0.496984][ T1] gpio-43 (PEWAKE#): hogged as input
[ 0.499378][ T1] gpio-97 (ETH0_PHY_IRQ#): hogged as input
[ 0.499402][ T1] gpio-99 (ETH1_PHY_IRQ#): hogged as input
[ 0.499413][ T1] gpio-114 (DSI_DP_BRIDGE_IRQ#): hogged as input
[ 0.499424][ T1] gpio-118 (PCIE_REFCLK): hogged as output/high
[ 0.499435][ T1] gpio-124 (RTC_IRQ#): hogged as input
[ 0.500855][ T1] gpio-146 (FAN_RPM#): hogged as input
[ 0.501180][ T48] gpio-keys gpio-keys: Unable to get irq number for GPIO 0, error -6
[ 0.505053][ T1] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 187, base_baud = 5000000) is a IMX
[ 0.505607][ T1] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 188, base_baud = 5000000) is a IMX
[ 0.505929][ T1] clk: failed to reparent uart2 to sys_pll1_80m: -16
[ 0.506121][ T1] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 189, base_baud = 1500000) is a IMX
[ 0.506639][ T1] 30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 190, base_baud = 1500000) is a IMX
[ 2.212556][ T1] printk: console [ttymxc3] enabled
[ 2.224769][ T1] i2c i2c-0: IMX I2C adapter registered
[ 2.231480][ T1] i2c i2c-1: IMX I2C adapter registered
[ 2.237585][ T1] i2c i2c-3: IMX I2C adapter registered
[ 2.243633][ T1] i2c i2c-5: IMX I2C adapter registered
[ 2.251174][ T1] i2c_dev: i2c /dev entries driver
[ 2.272904][ T1] nxp-pca9450 0-0025: pca9450bc probed.
[ 2.286698][ T48] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 2.312458][ T10] mmc0: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[ 2.326108][ T48] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[ 2.350804][ T1] imx8-pcie-phy 32f00000.pcie-phy: failed to get imx pcie phy clock
[ 2.358690][ T1] imx8-pcie-phy: probe of 32f00000.pcie-phy failed with error -2
[ 2.368635][ T1] snvs_pwrkey 30370000.snvs:snvs-powerkey: snvs pwkey: failed to find trusty node. Use normal mode.
[ 2.379678][ T1] input: 30370000.snvs:snvs-powerkey as /devices/platform/soc@0/30000000.bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input4
[ 2.426635][ T70] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[ 2.434942][ T70] mmcblk0: mmc0:0001 DA6016 14.7 GiB
[ 2.442876][ T70] mmcblk0boot0: mmc0:0001 DA6016 4.00 MiB
[ 2.450246][ T70] mmcblk0boot1: mmc0:0001 DA6016 4.00 MiB
[ 2.451939][ T1] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops [imx_lcdifv3_crtc])
[ 2.457296][ T70] mmcblk0rpmb: mmc0:0001 DA6016 4.00 MiB, chardev (508:0)
[ 2.466413][ T1] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 0
[ 2.496872][ T1] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.503137][ T1] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 2.511974][ T1] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000002001010010
[ 2.522148][ T1] xhci-hcd xhci-hcd.0.auto: irq 202, io mem 0x38200000
[ 2.529130][ T1] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.535543][ T1] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 2.543921][ T1] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 2.551308][ T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[ 2.560282][ T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.565376][ T47] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[ 2.568215][ T1] usb usb1: Product: xHCI Host Controller
[ 2.576958][ T47] mmcblk1: mmc1:aaaa SC16G 14.8 GiB
[ 2.581100][ T1] usb usb1: Manufacturer: Linux 6.1.25-00001-g4e4d9450b6c9-dirty xhci-hcd
[ 2.594601][ T1] usb usb1: SerialNumber: xhci-hcd.0.auto
[ 2.597045][ T47] Alternate GPT is invalid, using primary GPT.
[ 2.600610][ T1] hub 1-0:1.0: USB hub found
[ 2.606260][ T47] mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16
[ 2.610683][ T1] hub 1-0:1.0: 1 port detected
[ 2.623446][ T1] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.632371][ T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[ 2.641347][ T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.649365][ T1] usb usb2: Product: xHCI Host Controller
[ 2.654951][ T1] usb usb2: Manufacturer: Linux 6.1.25-00001-g4e4d9450b6c9-dirty xhci-hcd
[ 2.663314][ T1] usb usb2: SerialNumber: xhci-hcd.0.auto
[ 2.669324][ T1] hub 2-0:1.0: USB hub found
[ 2.673804][ T1] hub 2-0:1.0: 1 port detected
[ 2.683600][ T1] __power_supply_register: Expected proper parent device for 'battery'
[ 2.692198][ T1] __power_supply_register: Expected proper parent device for 'usb'
[ 2.710174][ T1] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 7 mkt segment 2 supported-hw 0x80 0x4
[ 2.726548][ T1] imx8_isi_hw: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.738589][ T1] imx8_isi_mem2mem: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.751438][ T1] imx8_isi_capture: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.764309][ T1] imx8_capture: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.776839][ T1] imx8_mipi_csi2_sam: module is from the staging directory, the quality is unknown, you have been warned.
[ 2.795934][ T97] imx-sdma 30bd0000.dma-controller: firmware found.
[ 2.802625][ T97] imx-sdma 30bd0000.dma-controller: loaded firmware 4.6
[ 2.807370][ T1] kvm: exiting hardware virtualization
[ 2.815191][ T47] imx-sdma 30e10000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[ 2.853117][ T47] imx-sdma 30e10000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[ 2.864278][ T47] imx-sdma 30e10000.dma-controller: external firmware not found, using ROM firmware
[ 2.903883][ T1] reboot: Restarting system with command 'bootloader'


here imx-sdma is configured as a module



0 Kudos
Reply
1 Solution
1,498 Views
kalarav_p
Contributor II

Hi @Dhruvit , SDMA firmware is present in rootfs at /lib/firmware. 
Problem was related bootconfig, we are using a customised vendors 
board's u-boot so there was not bootconfig supported in u-boot. 
So, we have taken changes related bootconfig from latest u-boot. and appended to our u-boot. Now we are able to load the kenrel and getting the bootconfig also.
Please refer to this link for more details.

https://source.android.com/docs/core/architecture/bootloader/implementing-bootconfig

Thanks @_angelo_ for your response.

View solution in original post

0 Kudos
Reply
5 Replies
1,499 Views
kalarav_p
Contributor II

Hi @Dhruvit , SDMA firmware is present in rootfs at /lib/firmware. 
Problem was related bootconfig, we are using a customised vendors 
board's u-boot so there was not bootconfig supported in u-boot. 
So, we have taken changes related bootconfig from latest u-boot. and appended to our u-boot. Now we are able to load the kenrel and getting the bootconfig also.
Please refer to this link for more details.

https://source.android.com/docs/core/architecture/bootloader/implementing-bootconfig

Thanks @_angelo_ for your response.

0 Kudos
Reply
1,476 Views
kalarav_p
Contributor II

Hi  @_angelo_ , We tried using the modified Kernel command line as you suggested to remove the bootconfig, but we are still facing the same issue

here we have added some more logs to identify the issue.

[ 4.340395][ T1] init: Loaded kernel module /lib/modules/jc42.ko
[ 4.346946][ T1] init: Loading module /lib/modules/lm75.ko with args ''
[ 4.355106][ T1] init: Loaded kernel module /lib/modules/lm75.ko
[ 4.361631][ T1] init: Loading module /lib/modules/at24.ko with args ''
[ 4.369536][ T1] Error: Driver 'at24' is already registered, aborting...
[ 4.411715][ T1] init: Failed to insmod '/lib/modules/at24.ko' with args '': Device or resource busy
[ 4.421170][ T1] init: LoadWithAliases was unable to load at24
[ 4.427768][ T1] init: Failed to load kernel modules, starting console
[ 4.434593][ T1] init: ===============================================================start module load================================
[ 4.447062][ T1] init: Loaded 88 kernel modules took 4066 ms
[ 4.453007][ T1] init: ===============================================================end module load================================
[ 4.465288][ T1] init: ===============================================================start 1
[ 4.474134][ T1] init: ===============================================================start 2
[ 4.482956][ T1] init: ===============================================================start 3
[ 4.491774][ T1] init: ===============================================================ForceNormalBoot
[ 4.501300][ T1] init: /first_stage_ramdisk/system/bin/snapuserd already exists and it can be executed
[ 4.511248][ T1] init: Switching root to '/first_stage_ramdisk'
[ 4.517736][ T1] init: ===============================================================start 4
[ 4.526794][ T1] init: ================================= InitAndroidDtDir android_dt_dir:/proc/device-tree/firmware/android
[ 4.538245][ T1] init: =================================is_dt_compatible ==============================
[ 4.548071][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.558712][ T1] init: =================================IsDtFstabCompatible==============================
[ 4.568593][ T1] init: =================================IsDtFstabCompatible ret false
[ 4.576713][ T1] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt
[ 4.584481][ T1] init: =================================is_dt_compatible ==============================
[ 4.594201][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.604835][ T1] init: =================================IsDtFstabCompatible==============================
[ 4.614708][ T1] init: =================================IsDtFstabCompatible ret false
[ 4.622905][ T1] init: =================================is_dt_compatible ==============================
[ 4.632623][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.643443][ T1] init: =================================is_dt_compatible ==============================
[ 4.653158][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.663968][ T1] init: =================================is_dt_compatible ==============================
[ 4.673693][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.684508][ T1] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
[ 4.692979][ T1] init: Failed to create FirstStageMount failed to read default fstab for first stage mount
[ 4.703032][ T1] init: Failed to mount required partitions early ...
[ 4.711137][ T1] init: InitFatalReboot: signal 6
[ 4.721664][ T1] init: #00 pc 000000000012e97c /system/bin/init
[ 4.728010][ T1] init: #01 pc 00000000000c1b90 /system/bin/init
[ 4.734322][ T1] init: #02 pc 0000000000017560 /system/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+80)
[ 4.750085][ T1] init: #03 pc 0000000000016a84 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+356)
[ 4.761154][ T1] init: #04 pc 00000000000ed568 /system/bin/init
[ 4.767448][ T1] init: #05 pc 00000000000ae110 /system/bin/init
[ 4.773752][ T1] init: #06 pc 000000000004b730 /system/lib64/libc.so (__libc_init+96)
[ 4.781955][ T1] init: Reboot ending, jumping to kernel
[ 4.787480][ T1] kvm: exiting hardware virtualization
[ 4.821304][ T1] reboot: Restarting system with command 'bootloader'


So here this is potential issue 
[ 4.692979][ T1] init: Failed to create FirstStageMount failed to read default fstab for first stage mount
[ 4.703032][ T1] init: Failed to mount required partitions early ...

may be due to missing configuraions in bootconfig we are not getting proper data, Is there any method how we can pass the bootconfig ? 

0 Kudos
Reply
1,570 Views
_angelo_
Contributor III

sdma firmware generally doesn't stop the boot, but i suggest to fix that, since some
driver/device may not work properly. So load the firmware.

Beside this, check your commandline passed from the bootloader, there is something that is triggering a reboot.

[ 0.000000][ T0] Kernel command line: console=ttynull stack_depot_disable=on cgroup_disable=pressure kasan.page_alloc.sample=10 kasan.stacktrace=off kvm-arm.mode=protected bootconfig ioremap_guard c.

[ 0.000000][ T0] 'bootconfig' found on command line, but no bootconfig found

Try to remove bootconfig maybe

 

 

 

0 Kudos
Reply
1,541 Views
kalarav_p
Contributor II

Hi @_angelo_ , We tried to remove bootconfig still facing same issue 

Added some more debug logs in
[ 4.332878][ T1] hwmon hwmon3: temp1_input not attached to any thermal zone
[ 4.340761][ T1] init: Loaded kernel module /lib/modules/jc42.ko
[ 4.347328][ T1] init: Loading module /lib/modules/lm75.ko with args ''
[ 4.355871][ T1] init: Loaded kernel module /lib/modules/lm75.ko
[ 4.362452][ T1] init: Loading module /lib/modules/at24.ko with args ''
[ 4.370451][ T1] Error: Driver 'at24' is already registered, aborting...
[ 4.407059][ T1] init: Failed to insmod '/lib/modules/at24.ko' with args '': Device or resource busy
[ 4.416528][ T1] init: LoadWithAliases was unable to load at24
[ 4.423315][ T1] init: Failed to load kernel modules, starting console
[ 4.430167][ T1] init: ===============================================================start module load================================
[ 4.442662][ T1] init: Loaded 88 kernel modules took 4061 ms
[ 4.448609][ T1] init: ===============================================================end module load================================
[ 4.460893][ T1] init: ===============================================================start 1
[ 4.469736][ T1] init: ===============================================================start 2
[ 4.478574][ T1] init: ===============================================================start 3
[ 4.487415][ T1] init: ===============================================================ForceNormalBoot
[ 4.496962][ T1] init: /first_stage_ramdisk/system/bin/snapuserd already exists and it can be executed
[ 4.506864][ T1] init: Switching root to '/first_stage_ramdisk'
[ 4.513369][ T1] init: ===============================================================start 4
[ 4.522479][ T1] init: ================================= InitAndroidDtDir android_dt_dir:/proc/device-tree/firmware/android
[ 4.533954][ T1] init: =================================is_dt_compatible ==============================
[ 4.543780][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.554438][ T1] init: =================================IsDtFstabCompatible==============================
[ 4.564333][ T1] init: =================================IsDtFstabCompatible ret false
[ 4.572472][ T1] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt
[ 4.580259][ T1] init: =================================is_dt_compatible ==============================
[ 4.589976][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.600627][ T1] init: =================================IsDtFstabCompatible==============================
[ 4.610544][ T1] init: =================================IsDtFstabCompatible ret false
[ 4.618698][ T1] init: =================================is_dt_compatible ==============================
[ 4.628436][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.639283][ T1] init: =================================is_dt_compatible ==============================
[ 4.649018][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.659851][ T1] init: =================================is_dt_compatible ==============================
[ 4.669601][ T1] init: =================================is_dt_compatible true==============================start 2
[ 4.680420][ T1] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
[ 4.688921][ T1] init: Failed to create FirstStageMount failed to read default fstab for first stage mount
[ 4.699010][ T1] init: Failed to mount required partitions early ...
[ 4.707154][ T1] init: InitFatalReboot: signal 6
[ 4.717688][ T1] init: #00 pc 000000000012e97c /system/bin/init
[ 4.724113][ T1] init: #01 pc 00000000000c1b90 /system/bin/init
[ 4.730437][ T1] init: #02 pc 0000000000017560 /system/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+80)
[ 4.746222][ T1] init: #03 pc 0000000000016a84 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+356)
[ 4.757298][ T1] init: #04 pc 00000000000ed568 /system/bin/init
[ 4.763589][ T1] init: #05 pc 00000000000ae110 /system/bin/init
[ 4.769899][ T1] init: #06 pc 000000000004b730 /system/lib64/libc.so (__libc_init+96)
[ 4.778101][ T1] init: Reboot ending, jumping to kernel
[ 4.783629][ T1] kvm: exiting hardware virtualization
[ 4.817978][ T1] reboot: Restarting system with command 'bootloader'

[ 4.688921][ T1] init: Failed to create FirstStageMount failed to read default fstab for first stage mount
[ 4.699010][ T1] init: Failed to mount required partitions early ...
may be this is potential issue because of  missing configuraions in bootconfig we are not getting proper data

0 Kudos
Reply
1,515 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @kalarav_p,

I hope you are doing well.

Please make sure that SDMA firmware is present in rootfs at /lib/firmware

The detailed solution is discussed in the thread below.
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos
Reply