Yocto Harpoon for iMX8MN custom board

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

Yocto Harpoon for iMX8MN custom board

Jump to solution
504 Views
khang_letruong
Senior Contributor III

Hi Forum,

I am porting Yocto Harpoon for an iMX8MN custom board. So far, I could generate and load the imx-image-core into the board then stopped at u-boot prompt and ran :

setenv jh_root_dtb imx8mn-custom-harpoon.dtb
run jh_mmcboot

 

However, the system seemed to run very slowly and I could not reach the Linux console any more:

U-Boot SPL 2023.04-lf_v2023.04+g06e9a4d71cf (Nov 21 2023 - 07:28:53 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3200MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0:  RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x0, pagesize 0x200, ivt offset 0x0
NOTICE:  Do not release JR0 to NS as it can be used by HAB
NOTICE:  BL31: v2.8(release):lf-6.1.55-2.2.1-rc1-0-g08e9d4eef
NOTICE:  BL31: Built : 06:43:30, Nov 21 2023


U-Boot 2023.04-lf_v2023.04+g06e9a4d71cf (Nov 21 2023 - 07:28:53 +0000)

CPU:   i.MX8MNano Quad rev1.0 1500 MHz (running at 1200 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 43C
Reset cause: POR
Model: Custom i.MX8MNano based board
DRAM:  2 GiB
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52]
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
Power supply on USB1
Core:  192 devices, 33 uclasses, devicetree: separate
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-Video Link 0mxs_video lcd-controller@32e00000: failed to get any display timings
probe video device failed, ret -22

        [0] lcd-controller@32e00000, video
mxs_video lcd-controller@32e00000: failed to get any display timings
probe video device failed, ret -22
In:    serial
Out:   serial
Err:   serial
SEC0:  RNG instantiated
switch to partitions #0, OK
mmc2(part 0) is current device
flash target is MMC:2
Net:   Could not get PHY for FEC0: addr 0
No ethernet found.

Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
u-boot=> 
u-boot=> 
u-boot=> 
u-boot=> 
u-boot=> 
u-boot=> 
u-boot=> 
u-boot=> setenv jh_root_dtb imx8mn-custom-harpoon.dtb
u-boot=> run jh_mmcboot
32856576 bytes read in 113 ms (277.3 MiB/s)
Booting from mmc ...
42747 bytes read in 8 ms (5.1 MiB/s)
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
Working FDT set to 43000000
   Using Device Tree in place at 0000000043000000, end 000000004300d6fa
Working FDT set to 43000000
mxs_video lcd-controller@32e00000: failed to get any display timings
probe video device failed, ret -22

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.55+g3cc6b768e08a (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.40.0.20230703) #1 SMP PREEMPT Sun Dec 15 03:28:12 UTC 2024
[    0.000000] Machine model: NXP i.MX8MNano ADSAI board
[    0.000000] Memory limited to 1212MB
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000065c00000, size 640 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000b8700000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node vdevbuffer-ca53@b8700000, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000008dbfffff]
[    0.000000] NUMA: NODE_DATA [mem 0x65966700-0x65968fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000008dbfffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000055ffffff]
[    0.000000]   node   0: [mem 0x0000000058000000-0x000000008dbfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000008dbfffff]
[    0.000000] On node 0, zone DMA: 8192 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 9216 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 20 pages/cpu s44520 r8192 d29208 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 305296
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: clk_ignore_unused mem=1212MB console=ttymxc1,115200 root=/dev/mmcblk2p2 rootwait rw
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] Memory: 526384K/1241088K available (19776K kernel code, 1622K rwdata, 7228K rodata, 3328K init, 644K bss, 59344K reserved, 655360K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 128 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000000] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000391] Console: colour dummy device 80x25
[    0.000455] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[    0.000466] pid_max: default: 32768 minimum: 301
[    0.000521] LSM: Security Framework initializing
[    0.000612] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000628] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002045] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002053] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.002123] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002126] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.002281] rcu: Hierarchical SRCU implementation.
[    0.002284] rcu:     Max phase no-delay instances is 1000.
[    0.003334] EFI services will not be available.
[    0.003547] smp: Bringing up secondary CPUs ...
[    0.004009] Detected VIPT I-cache on CPU1
[    0.004088] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[    0.004129] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004652] Detected VIPT I-cache on CPU2
[    0.004711] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[    0.004733] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005182] Detected VIPT I-cache on CPU3
[    0.005245] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[    0.005265] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005321] smp: Brought up 1 node, 4 CPUs
[    0.005328] SMP: Total of 4 processors activated.
[    0.005332] CPU features: detected: 32-bit EL0 Support
[    0.005334] CPU features: detected: 32-bit EL1 Support
[    0.005339] CPU features: detected: CRC32 instructions
[    0.005399] CPU: All CPU(s) started at EL2
[    0.005418] alternatives: applying system-wide alternatives
[    0.006962] devtmpfs: initialized
[    0.013454] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.013478] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.032658] pinctrl core: initialized pinctrl subsystem
[    0.034684] DMI not present or invalid.
[    0.035309] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.036931] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.037723] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.038388] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.038476] audit: initializing netlink subsys (disabled)
[    0.038692] audit: type=2000 audit(0.036:1): state=initialized audit_enabled=0 res=1
[    0.039217] thermal_sys: Registered thermal governor 'step_wise'
[    0.039221] thermal_sys: Registered thermal governor 'power_allocator'
[    0.039263] cpuidle: using governor menu
[    0.039496] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.039580] ASID allocator initialised with 32768 entries
[    0.040448] Serial: AMBA PL011 UART driver
[    0.040515] imx mu driver is registered.
[    0.040536] imx rpmsg driver is registered.
[    0.045540] platform soc@0: Fixed dependency cycle(s) with /soc@0/bus@30000000/efuse@30350000/unique-id@4
[    0.048460] imx8mn-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[    0.048984] platform 30350000.efuse: Fixed dependency cycle(s) with /soc@0/bus@30000000/clock-controller@30380000
[    0.058752] KASLR enabled
[    0.077851] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.077863] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.077867] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.077873] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.077877] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.077882] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.077886] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.077891] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.079637] ACPI: Interpreter disabled.
[    0.080318] iommu: Default domain type: Translated 
[    0.080323] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.080617] SCSI subsystem initialized
[    0.080931] usbcore: registered new interface driver usbfs
[    0.080973] usbcore: registered new interface driver hub
[    0.080997] usbcore: registered new device driver usb
[    0.081879] mc: Linux media interface: v0.10
[    0.081914] videodev: Linux video capture interface: v2.00
[    0.081986] pps_core: LinuxPPS API ver. 1 registered
[    0.081990] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.082004] PTP clock support registered
[    0.082127] EDAC MC: Ver: 3.0.0
[    0.083056] FPGA manager framework
[    0.083129] Advanced Linux Sound Architecture Driver Initialized.
[    0.083658] Bluetooth: Core ver 2.22
[    0.083686] NET: Registered PF_BLUETOOTH protocol family
[    0.083690] Bluetooth: HCI device and connection manager initialized
[    0.083698] Bluetooth: HCI socket layer initialized
[    0.083703] Bluetooth: L2CAP socket layer initialized
[    0.083714] Bluetooth: SCO socket layer initialized
[    0.084052] vgaarb: loaded
[    0.084525] clocksource: Switched to clocksource arch_sys_counter
[    0.084866] VFS: Disk quotas dquot_6.6.0
[    0.084905] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.085081] pnp: PnP ACPI: disabled
[    0.091717] NET: Registered PF_INET protocol family
[    0.091946] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.093569] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.093643] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.093659] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.093769] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.094294] TCP: Hash tables configured (established 16384 bind 16384)
[    0.094418] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.094462] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.094624] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.095019] RPC: Registered named UNIX socket transport module.
[    0.095023] RPC: Registered udp transport module.
[    0.095026] RPC: Registered tcp transport module.
[    0.095029] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.095779] PCI: CLS 0 bytes, default 64
[    0.096449] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.097187] kvm [1]: IPA Size Limit: 40 bits
[    0.098966] kvm [1]: GICv3: no GICV resource entry
[    0.098970] kvm [1]: disabling GICv2 emulation
[    0.098982] kvm [1]: GIC system register CPU interface enabled
[    0.099073] kvm [1]: vgic interrupt IRQ9
[    0.099156] kvm [1]: Hyp mode initialized successfully
[    0.100291] Initialise system trusted keyrings
[    0.100480] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.106871] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.107505] NFS: Registering the id_resolver key type
[    0.107531] Key type id_resolver registered
[    0.107535] Key type id_legacy registered
[    0.107606] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.107610] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.107632] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.107961] 9p: Installing v9fs 9p2000 file system support
[    0.143277] Key type asymmetric registered
[    0.143282] Asymmetric key parser 'x509' registered
[    0.143328] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    0.143334] io scheduler mq-deadline registered
[    0.143338] io scheduler kyber registered
[    0.148887] EINJ: ACPI disabled.
[    0.159641] imx-sdma 302b0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[    0.159657] imx-sdma 302b0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin
[    0.166529] mxs-dma 33000000.dma-controller: initialized
[    0.169882] SoC: i.MX8MN revision 1.0
[    0.171194] Bus freq driver module loaded
[    0.176202] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.178493] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 19, base_baud = 5000000) is a IMX
[    0.179088] 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 20, base_baud = 5000000) is a IMX
[    0.179595] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 21, base_baud = 1500000) is a IMX
[    1.335963] printk: console [ttymxc1] enabled
[    1.341812] imx-drm 32c00000.bus:display-subsystem: no available port
[    1.358681] loop: module loaded
[    1.363061] of_reserved_mem_lookup() returned NULL
[    1.368029] megasas: 07.719.03.00-rc1
[    1.376155] spi-nor spi3.0: n25q256ax1 (32768 Kbytes)
[    1.385400] tun: Universal TUN/TAP device driver, 1.6
[    1.391179] thunder_xcv, ver 1.0
[    1.394455] thunder_bgx, ver 1.0
[    1.397722] nicpf, ver 1.0
[    1.402076] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.409308] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.414680] hclge is initializing
[    1.418016] e1000: Intel(R) PRO/1000 Network Driver
[    1.422900] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.428683] e1000e: Intel(R) PRO/1000 Network Driver
[    1.433656] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.439621] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.445062] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.450674] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.456951] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.463024] sky2: driver version 1.30
[    1.467161] usbcore: registered new interface driver r8152
[    1.472929] VFIO - User Level meta-driver version: 0.3
[    1.480869] usbcore: registered new interface driver uas
[    1.486244] usbcore: registered new interface driver usb-storage
[    1.492322] usbcore: registered new interface driver usbserial_generic
[    1.498874] usbserial: USB Serial support registered for generic
[    1.504910] usbcore: registered new interface driver ftdi_sio
[    1.510681] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.518028] usbcore: registered new interface driver usb_serial_simple
[    1.524579] usbserial: USB Serial support registered for carelink
[    1.530695] usbserial: USB Serial support registered for flashloader
[    1.537076] usbserial: USB Serial support registered for funsoft
[    1.543105] usbserial: USB Serial support registered for google
[    1.549048] usbserial: USB Serial support registered for hp4x
[    1.554818] usbserial: USB Serial support registered for kaufmann
[    1.560935] usbserial: USB Serial support registered for libtransistor
[    1.567484] usbserial: USB Serial support registered for moto_modem
[    1.573777] usbserial: USB Serial support registered for motorola_tetra
[    1.580409] usbserial: USB Serial support registered for nokia
[    1.586262] usbserial: USB Serial support registered for novatel_gps
[    1.592638] usbserial: USB Serial support registered for siemens_mpi
[    1.599019] usbserial: USB Serial support registered for suunto
[    1.604958] usbserial: USB Serial support registered for vivopay
[    1.610987] usbserial: USB Serial support registered for zio
[    1.616681] usbcore: registered new interface driver usb_ehset_test
[    1.625467] input: 30370000.snvs:snvs-powerkey as /devices/platform/soc@0/30000000.bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
[    1.639860] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc0
[    1.646081] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 2025-02-24T14:00:33 UTC (1740405633)
[    1.656021] i2c_dev: i2c /dev entries driver
[    1.664255] Bluetooth: HCI UART driver ver 2.3
[    1.668725] Bluetooth: HCI UART protocol H4 registered
[    1.673873] Bluetooth: HCI UART protocol BCSP registered
[    1.679213] Bluetooth: HCI UART protocol LL registered
[    1.684359] Bluetooth: HCI UART protocol ATH3K registered
[    1.689783] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.696138] Bluetooth: HCI UART protocol Broadcom registered
[    1.701823] Bluetooth: HCI UART protocol QCA registered
[    1.708175] sdhci: Secure Digital Host Controller Interface driver
[    1.714377] sdhci: Copyright(c) Pierre Ossman
[    1.719285] Synopsys Designware Multimedia Card Interface Driver
[    1.725787] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.733120] ledtrig-cpu: registered to indicate activity on CPUs
[    1.739993] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.746960] usbcore: registered new interface driver usbhid
[    1.752547] usbhid: USB HID core driver
[    1.760807]  cs_system_cfg: CoreSight Configuration manager initialised
[    1.769024] optee: probing for conduit method.
[    1.773502] optee: revision 4.0 (a303fc80)
[    1.773776] optee: dynamic shared memory is enabled
[    1.783099] optee: initialized driver
[    1.787874] galcore: clk_get 2d core clock failed, disable 2d/vg!
[    1.794386] Galcore version 6.4.11.p2.711242
[    1.858297] [drm] Initialized vivante 1.0.0 20170808 for 38000000.gpu on minor 0
[    1.868320] NET: Registered PF_LLC protocol family
[    1.873836] NET: Registered PF_INET6 protocol family
[    1.879655] Segment Routing with IPv6
[    1.883369] In-situ OAM (IOAM) with IPv6
[    1.887348] NET: Registered PF_PACKET protocol family
[    1.892435] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.905478] Bluetooth: RFCOMM TTY layer initialized
[    1.910376] Bluetooth: RFCOMM socket layer initialized
[    1.915541] Bluetooth: RFCOMM ver 1.11
[    1.919309] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.924629] Bluetooth: BNEP filters: protocol multicast
[    1.929867] Bluetooth: BNEP socket layer initialized
[    1.934836] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.940767] Bluetooth: HIDP socket layer initialized
[    1.945856] 8021q: 802.1Q VLAN Support v1.8
[    1.950064] lib80211: common routines for IEEE802.11 drivers
[    1.955829] 9pnet: Installing 9P2000 support
[    1.960231] Key type dns_resolver registered
[    1.964928] registered taskstats version 1
[    1.969057] Loading compiled-in X.509 certificates
[    1.991350] imx-rpmsg b8600000.rpmsg-ca53: assigned reserved memory node vdevbuffer-ca53@b8700000
[    2.024534] virtio_rpmsg_bus virtio0: rpmsg host is online
[    2.036978] usb_phy_generic usbphynop1: supply vcc not found, using dummy regulator
[    2.044768] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[    2.063682] nxp-pca9450 0-0025: pca9450bc probed.
[    2.068509] i2c i2c-0: IMX I2C adapter registered
[    2.073818] gpio-144 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[    2.083180] i2c 1-0050: Fixed dependency cycle(s) with /soc@0/bus@32c00000/usb@32e40000/port/endpoint
[    2.093404] i2c i2c-1: IMX I2C adapter registered
[    2.100334] pps pps0: new PPS source ptp0
[    2.107744] fec 30be0000.ethernet: Invalid MAC address: 00:00:00:00:00:00
[    2.114590] fec 30be0000.ethernet: Using random MAC address: 12:0e:0a:66:46:0e
[    2.123597] fec 30be0000.ethernet eth0: registered PHC device 0
[    2.134632] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 8 mkt segment 0 supported-hw 0x100 0x1
[    2.144664] Hot alarm is canceled. GPU3D clock will return to 64/64
[    2.154960] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[    2.157854] OF: graph: no port node found in /soc@0/bus@30800000/i2c@30a30000/tcpc@50/connector
[    2.168758] OF: graph: no port node found in /soc@0/bus@30800000/i2c@30a30000/tcpc@50/connector
[    2.177501] OF: graph: no port node found in /soc@0/bus@30800000/i2c@30a30000/tcpc@50/connector
[    2.185079] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA
[    2.191386] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[    2.198534] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.209811] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.216429] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.220580] clk: Not disabling unused clocks
[    2.225107] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.229349] ALSA device list:
[    2.240140]   No soundcards found.
[    2.243811] Waiting for root device /dev/mmcblk2p2...
[   12.262434] platform sound-bt-sco: deferred probe pending
[   12.267875] platform regulator-audio-board: deferred probe pending
[   60.416613] imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[   60.427089] imx-sdma 302c0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin
[   62.436596] cfg80211: failed to load regulatory.db
[  121.828563] imx-sdma 30bd0000.dma-controller: external firmware not found, using ROM firmware
[  121.828563] imx-sdma 302b0000.dma-controller: external firmware not found, using ROM firmware
[  121.828633] imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware

 

Could you help, please ?

Best Regards,

Khang

Labels (1)
0 Kudos
Reply
1 Solution
8 Replies
470 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

The mentioned DTS is required to boot, please fix that.

But the issue is likely to porting issues, please go through the following posts and review your built image, try both solutions.

https://community.nxp.com/t5/i-MX-Processors/Yocto-build-external-firmware-error/m-p/1227957

https://community.nxp.com/t5/i-MX-Processors/imx6-linux-imx-sdma-firmware-load-failed-error/m-p/1193...

Regards

0 Kudos
Reply
446 Views
khang_letruong
Senior Contributor III

Hi @JosephAtNXP,

Thanks for your support. Our custom board is similar to the iMX8MN EVK in terms of DDR memory (2 GiB) with only difference being the Ethernet PHY. So it would be straightforward for the porting. Of course we did the DDR training and the board works well with Yocto without Harpoon.

 

I think my current problem is that the jailhouse mode could NOT be entered even I added the imx8mn-custom-inmate.dts copied from imx8mn-evk-inmate.dts with slight change in the header :

 

 

        model = "NXP i.MX8MNano CUSTOM board";
        compatible = "fsl,imx8mn-custom", "fsl,imx8mm";
        interrupt-parent = <&gic>;
        #address-cells = <2>;
        #size-cells = <2>;

 

 

 

0 Kudos
Reply
444 Views
khang_letruong
Senior Contributor III

Hi again,

Also, currently I only have access to the main console. Am I missing any UART connection for interacting with Jailhouse?

Thanks,

K.

0 Kudos
Reply
309 Views
khang_letruong
Senior Contributor III

Hello @JosephAtNXP,

 

Could you help to give more instruction about interracting with the Jailhouse on iMX8MN based board, please?

0 Kudos
Reply
214 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

The EVK boards expose serial ports through their USB debug interface. One of these serial ports is used by Linux for its console, and another one is used by the guest RTOS.

To run the reference applications, open both serial ports with terminal emulators. Insert the micro-SD card, on which the Yocto image has been flashed, in the EVK and power up the board.

Make sure that your boot partition has the DTB and that your environment points to it.

u-boot => setenv jh_root_dtb imx8mn-evk-harpoon.dtb
u-boot => run jh_mmcboot

Regards,

0 Kudos
Reply
170 Views
khang_letruong
Senior Contributor III

Hi @JosephAtNXP,

I double-checked the console output of NXP's iMX8MP-EVK flashed/installed with the Yocto Harpoon of the same BSP version and got similar trace for the main debug console :

[    3.445096] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    3.449382] ALSA device list:
[    3.460120]   No soundcards found.
[    3.463714] Waiting for root device /dev/mmcblk2p2...
[   13.542494] platform sound-bt-sco: deferred probe pending
[   60.417495] imx-sdma 30bd0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[   60.427957] imx-sdma 30bd0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin
[   64.485494] cfg80211: failed to load regulatory.db
[   64.485494] cfg80211: failed to load regulatory.db
[  121.829456] imx-sdma 30e10000.dma-controller: external firmware not found, using ROM firmware
[  121.829501] imx-sdma 30bd0000.dma-controller: external firmware not found, using ROM firmware

 

I expected that there would be certain log relevant to the launching of the jailhouse mode but there was not.

Full log is in attachment.

 

Could you help?

K.

 

0 Kudos
Reply
134 Views
khang_letruong
Senior Contributor III
0 Kudos
Reply
483 Views
khang_letruong
Senior Contributor III

Hi again,

Compared to other device-trees of the EVKs and linked to my previous ticket, is the missing of imx8mn-custom-inmate.dts the cause ?

The following guide also seems to add the inmate related device-tree as well : https://variwiki.com/index.php?title=Jailhouse_Guide&release=mx8mn-yocto-mickledore-6.1.36_2.1.0-v1....

Best Regards,

Khang

 

0 Kudos
Reply