spl/u-boot-spl.bin': No such file or directory

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

spl/u-boot-spl.bin': No such file or directory

3,153 Views
gonewithwind-peter
Senior Contributor I

hi all,

I am playing iwave board (imx8qm_2gb).

the original yocto code from the iwave company does not support optee now. I am going to ad. optee feather,

but when I bitbake (for example bitbake u-boot-iwg27s), an error happened as blow:

 

I want to know how to generate   u-boot-spl.bin ?

before I played maaxboard(imx8qmmek) ,the yocto source code from the vendor  did not support optee either, but after I added optee feather , no error happened, and I found the u-boot-spl.bin the compilation folder.

 

the Two yocto version  from freescale are same.

I do not know what the difference for the key to generate  u-boot-spl.bin?

any help,

thank you.

---

 

error:

install: cannot stat '/opt/oe/iw/iw/iwg27s-release-bsp/build_imx8qm_2gb/tmp/work/imx8qm_iwg27s_2gb-poky-linux/u-boot-iwg27s/2018.03-r0/build/imx8qm_iwg27s_2gb_defconfig/spl/u-boot-spl.bin': No such file or directory

0 Kudos
8 Replies

3,032 Views
gonewithwind-peter
Senior Contributor I

@igorpadykov 

It seem I fix u-boot coe. because u-boot patch from iwave disable CONFIG_SPL,
but after boot, kernel panic
I directly chosen mx8qmmek for optee, becuase in optee source code ,there no imx8qm_iwg27s board.
can I use mx8qmmek ? or need to porting some code add imx8qm_iwg27s board iin optee?
any suggestion?
thanks

 

-------
U-Boot 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g87a19df5e4 (Sep 23 2020 - 14:06:00 +0000)

CPU: Freescale i.MX8QM revB A53 at 1200 MHz at 58C
Model: iW-RainboW-G27S-i.MX8QM/QP-SBC
Board: iW-RainboW-G27S-i.MX8QM/QP Pico ITX SBC
Boot: MMC0
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
In: serial
Out: serial
Err: serial

BuildInfo:

SCFW 550f3079, SECO-FW 92ef1143, IMX-MKIMAGE dd023400, ATF 1cb68fa
U-Boot 2018.03-imx_v2018.03_4.14.98_2.0.0_ga+g87a19df5e4
Board Info:
BSP Version : iW-PRGEE-SC-01-R1.0-REL1.0a-Linux4.14.98
SOM Version : iW-PRGEE-AP-01-R1.3

switch to partitions #0, OK
mmc0(part 0) is current device
Saving Environment to MMC... Writing to MMC(0)... OK
flash target is MMC:0
Net: eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
22481408 bytes read in 80 ms (268 MiB/s)
Booting from mmc ...
102464 bytes read in 9 ms (10.9 MiB/s)
Loading hdp firmware from 0x0000000084000000 offset 0x0000000000002000
Loading hdp firmware Complete
102464 bytes read in 10 ms (9.8 MiB/s)
Loading hdprx firmware from 0x0000000084800000 offset 0x0000000000002000
Loading hdp rx firmware Complete
97919 bytes read in 9 ms (10.4 MiB/s)

Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 0000000083000000, end 000000008301ae7e
/dma-controller@5a1f0000, 67668
/dma-controller@591F0000, 68460
/dma-controller@591F0000, 68460
/dma-controller@599F0000, 69436

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbeafb80c (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP PREEMPT Tue Sep 22 17:46:32 UTC 2020
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: iW-RainboW-G27D-i.MX8QM-SBC
[ 0.000000] earlycon: lpuart32 at MMIO 0x000000005a0a0000 (options '115200')
[ 0.000000] bootconsole [lpuart32] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000aa000000, 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 0x0000000090400000, size 28 MiB
[ 0.000000] OF: reserved mem: initialized node rpmsg_dma@0x90400000, compatible id shared-dma-pool
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xfff65680-0xfff6747f]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x0000000083ffffff]
[ 0.000000] node 0: [mem 0x0000000086400000-0x000000008fffffff]
[ 0.000000] node 0: [mem 0x0000000094c00000-0x00000000fdffffff]
[ 0.000000] node 0: [mem 0x00000000ffc00000-0x00000000ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000ffffffff]
[ 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.1
[ 0.000000] percpu: Embedded 24 pages/cpu @ffff80007fed0000 s57624 r8192 d32488 u98304
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 480312
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: console=ttyLP4,115200 earlycon=lpuart32,0x5a0a0000,115200 root=/dev/mmcblk0p2 rootwait rw
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory: 1239856K/1951744K available (13052K kernel code, 1666K rwdata, 5928K rodata, 1280K init, 431K bss, 56528K reserved, 655360K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffff000000000000 - 0xffff000008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000 (129022 GB)
[ 0.000000] .text : 0xffff000008080000 - 0xffff000008d40000 ( 13056 KB)
[ 0.000000] .rodata : 0xffff000008d40000 - 0xffff000009310000 ( 5952 KB)
[ 0.000000] .init : 0xffff000009310000 - 0xffff000009450000 ( 1280 KB)
[ 0.000000] .data : 0xffff000009450000 - 0xffff0000095f0a00 ( 1667 KB)
[ 0.000000] .bss : 0xffff0000095f0a00 - 0xffff00000965c7f0 ( 432 KB)
[ 0.000000] fixed : 0xffff7dfffe7f9000 - 0xffff7dfffec00000 ( 4124 KB)
[ 0.000000] PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffff7e0000000000 - 0xffff800000000000 ( 2048 GB maximum)
[ 0.000000] 0xffff7e0000008000 - 0xffff7e0002000000 ( 31 MB actual)
[ 0.000000] memory : 0xffff800000200000 - 0xffff800080000000 ( 2046 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=6.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000051b00000
[ 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.000004] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[ 0.010846] Console: colour dummy device 80x25
[ 0.014994] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[ 0.025197] pid_max: default: 32768 minimum: 301
[ 0.029862] Security Framework initialized
[ 0.034515] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.041625] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.048372] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.055047] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.078219] ASID allocator initialised with 32768 entries
[ 0.091295] Hierarchical SRCU implementation.
[ 0.103908] *****Initialized MU
[ 0.106722] ***** imx8_init_pm_domains *****
[ 0.112117] CPU identified as i.MX8QM, silicon rev 1.1
[ 0.118369] EFI services will not be available.
[ 0.130577] smp: Bringing up secondary CPUs ...
[ 0.163570] Detected VIPT I-cache on CPU1
[ 0.163600] GICv3: CPU1: found redistributor 1 region 0:0x0000000051b20000
[ 0.163627] CPU1: Booted secondary processor [410fd034]
[ 0.191580] Detected VIPT I-cache on CPU2
[ 0.191594] GICv3: CPU2: found redistributor 2 region 0:0x0000000051b40000
[ 0.191608] CPU2: Booted secondary processor [410fd034]
[ 0.219623] Detected VIPT I-cache on CPU3
[ 0.219637] GICv3: CPU3: found redistributor 3 region 0:0x0000000051b60000
[ 0.219650] CPU3: Booted secondary processor [410fd034]
[ 0.248779] Detected PIPT I-cache on CPU4
[ 0.248797] GICv3: CPU4: found redistributor 100 region 0:0x0000000051b80000
[ 0.248813] CPU4: Booted secondary processor [410fd082]
[ 0.275704] Detected PIPT I-cache on CPU5
[ 0.275715] GICv3: CPU5: found redistributor 101 region 0:0x0000000051ba0000
[ 0.275725] CPU5: Booted secondary processor [410fd082]
[ 0.275780] smp: Brought up 1 node, 6 CPUs
[ 0.360245] SMP: Total of 6 processors activated.
[ 0.364934] CPU features: detected feature: GIC system register CPU interface
[ 0.372066] CPU features: detected feature: 32-bit EL0 Support
[ 0.377876] CPU features: detected feature: Kernel page table isolation (KPTI)
[ 0.392980] CPU: All CPU(s) started at EL2
[ 0.396753] alternatives: patching kernel code
[ 0.401822] devtmpfs: initialized
[ 0.416894] random: get_random_u32 called from bucket_table_alloc+0x108/0x260 with crng_init=0
[ 0.425678] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.435145] futex hash table entries: 2048 (order: 6, 262144 bytes)
[ 0.455837] pinctrl core: initialized pinctrl subsystem
[ 0.462690] DMI not present or invalid.
[ 0.466503] NET: Registered protocol family 16
[ 0.474657] cpuidle: using governor menu
[ 0.479339] vdso: 2 pages (1 code @ ffff000008d46000, 1 data @ ffff000009454000)
[ 0.486455] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.498210] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.504514] Serial: AMBA PL011 UART driver
[ 0.508396] imx rpmsg driver is registered.
[ 0.514764] MU and Power domains initialized
[ 0.518708] ***** imx8qm_clocks_init *****
[ 0.584421] imx8qm-pinctrl iomuxc: initialized IMX pinctrl driver
[ 0.592129] ARM CCI_400_r1 PMU driver probed
[ 0.627442] mxs_phy 5b100000.usbphy: 5b100000.usbphy supply phy-3p0 not found, using dummy regulator
[ 0.658509] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.700028] ACPI: Interpreter disabled.
[ 0.709710] vgaarb: loaded
[ 0.712341] SCSI subsystem initialized
[ 0.716210] usbcore: registered new interface driver usbfs
[ 0.721389] usbcore: registered new interface driver hub
[ 0.726710] usbcore: registered new device driver usb
[ 0.732246] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[ 0.740842] usb_phy_generic usbphynop2: usbphynop2 supply vcc not found, using dummy regulator
[ 0.750707] i2c i2c-2: LPI2C adapter registered
[ 0.755882] media: Linux media interface: v0.10
[ 0.760101] Linux video capture interface: v2.00
[ 0.764853] pps_core: LinuxPPS API ver. 1 registered
[ 0.769629] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.778766] PTP clock support registered
[ 0.782838] EDAC MC: Ver: 3.0.0
[ 0.786012] dmi: Firmware registration failed.
[ 0.791407] Advanced Linux Sound Architecture Driver Initialized.
[ 0.798372] clocksource: Switched to clocksource arch_sys_counter
[ 0.804262] VFS: Disk quotas dquot_6.6.0
[ 0.808081] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.815017] pnp: PnP ACPI: disabled
[ 0.823916] NET: Registered protocol family 2
[ 0.828515] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.835542] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.842217] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.848605] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.854648] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.861075] NET: Registered protocol family 1
[ 0.865701] RPC: Registered named UNIX socket transport module.
[ 0.871284] RPC: Registered udp transport module.
[ 0.875981] RPC: Registered tcp transport module.
[ 0.880665] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.888357] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.896237] kvm [1]: 8-bit VMID
[ 0.900297] kvm [1]: vgic-v2@52020000
[ 0.903650] kvm [1]: GIC system register CPU interface enabled
[ 0.909533] kvm [1]: vgic interrupt IRQ1
[ 0.913457] kvm [1]: Hyp mode initialized successfully
[ 0.921040] audit: initializing netlink subsys (disabled)
[ 0.926188] audit: type=2000 audit(0.812:1): state=initialized audit_enabled=0 res=1
[ 0.926595] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[ 0.945398] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.951389] NFS: Registering the id_resolver key type
[ 0.956124] Key type id_resolver registered
[ 0.960266] Key type id_legacy registered
[ 0.964271] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.970970] jffs2: version 2.2. (NAND) ?© 2001-2006 Red Hat, Inc.
[ 0.977640] 9p: Installing v9fs 9p2000 file system support
[ 0.987114] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.994190] io scheduler noop registered
[ 0.998180] io scheduler cfq registered (default)
[ 1.002776] io scheduler mq-deadline registered
[ 1.007295] io scheduler kyber registered
[ 1.028024] Bus freq driver module loaded
[ 1.033170]
[ 1.034312] Board Info:
[ 1.036753] BSP Version : iW-PRGEE-SC-01-R1.0-REL1.0a-Linux4.14.98
[ 1.043358] SOM Version : iW-PRGEE-AP-01-R1.3
[ 1.048134]
[ 1.055237] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.063661] SuperH (H)SCI(F) driver initialized
[ 1.068712] msm_serial: driver initialized
[ 1.073695] Unable to handle kernel NULL pointer dereference at virtual address 00000170
[ 1.073713] 5a060000.serial: ttyLP0 at MMIO 0x5a060010 (irq = 50, base_baud = 5000000) is a FSL_LPUART
[ 1.081441] Mem abort info:
[ 1.081444] Exception class = DABT (current EL), IL = 32 bits
[ 1.081446] SET = 0, FnV = 0
[ 1.081448] EA = 0, S1PTW = 0
[ 1.081449] Data abort info:
[ 1.081451] ISV = 0, ISS = 0x00000004
[ 1.081453] CM = 0, WnR = 0
[ 1.081455] [0000000000000170] user address but active_mm is swapper
[ 1.081460] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 1.081462] Modules linked in[ 1.081471] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbeafb80c #1
[ 1.081473] Hardware name: iW-RainboW-G27D-i.MX8QM-SBC (DT)
[ 1.081476] task: ffff000009462580 task.stack: ffff000009450000
[ 1.081490] PC is at lpuart_txint.isra.5+0x6c/0x388
[ 1.081494] LR is at lpuart_txint.isra.5+0x1c/0x388
[ 1.081497] pc : [] lr : [] pstate: 600001c5
[ 1.081498] sp : ffff000008003de0
[ 1.081500] x29: ffff000008003de0 x28: ffff000009462580
[ 1.081505] x27: 0000000000000000 x26: ffff00000915b028
[ 1.081509] x25: ffff0000095d4733 x24: ffff80007aad4400
[ 1.081513] x23: 0000000000000032 x22: 00000000000001c0
[ 1.081517] x21: 0000000000000200 x20: 0000000000c00000
[ 1.081522] x19: ffff80007ac84818 x18: 0000000000000007
[ 1.081526] x17: 0000000000000001 x16: 0000000000000019
[ 1.081530] x15: 0000000000000033 x14: ffff80007ab1d180
[ 1.081534] x13: 0000000000000000 x12: 0000000000000001
[ 1.081538] x11: 0000000000000000 x10: 0000000000000040
[ 1.091098] fsl-lpuart 5a060000.serial: NO DMA tx channel, run at cpu mode
[ 1.099436] fsl-lpuart 5a060000.serial: NO DMA rx channel, run at cpu mode
[ 1.102464] x9 : ffff000009472fe8 x8 : ffff800078000248
[ 1.102468] x7 : ffff800078000270 x6 : 0000000000000000
[ 1.106222] 5a070000.serial: ttyLP1 at MMIO 0x5a070010 (irq = 51, base_baud = 5000000) is a FSL_LPUART
[ 1.108459] x5 : ffff800078000248 x4 : 0000000000000000
[ 1.108463] x3 : 00000000000001c0 x2 : 0000000000000000
[ 1.108468] x1 : 0000000000000003
[ 1.113156] 5a090000.serial: ttyLP3 at MMIO 0x5a090010 (irq = 52, base_baud = 5000000) is a FSL_LPUART
[ 1.115234] x0 : 0000000000000000
[ 1.115238] Process swapper/0 (pid: 0, stack limit = 0xffff000009450000)
[ 1.115241] Call trace:
[ 1.115245] Exception stack(0xffff000008003ca0 to 0xffff000008003de0)
[ 1.115249] 3ca0: 0000000000000000 0000000000000003 0000000000000000 00000000000001c0
[ 1.122384] 5a0a0000.serial: ttyLP4 at MMIO 0x5a0a0010 (irq = 53, base_baud = 5000000) is a FSL_LPUART
[ 1.127138] 3cc0: 0000000000000000 ffff800078000248 0000000000000000 ffff800078000270
[ 1.127142] 3ce0: ffff800078000248 ffff000009472fe8 0000000000000040 0000000000000000
[ 1.127146] 3d00: 0000000000000001 0000000000000000 ffff80007ab1d180 0000000000000033
[ 1.340503] 3d20: 0000000000000019 0000000000000001 0000000000000007 ffff80007ac84818
[ 1.348322] 3d40: 0000000000c00000 0000000000000200 00000000000001c0 0000000000000032
[ 1.356141] 3d60: ffff80007aad4400 ffff0000095d4733 ffff00000915b028 0000000000000000
[ 1.363962] 3d80: ffff000009462580 ffff000008003de0 ffff0000086390a4 ffff000008003de0
[ 1.371779] 3da0: ffff0000086390f4 00000000600001c5 00000000fffedbfa ffff000008003db0
[ 1.379599] 3dc0: 0000ffffffffffff ffff000008104a84 ffff000008003de0 ffff0000086390f4
[ 1.387421] [] lpuart_txint.isra.5+0x6c/0x388
[ 1.393324] [] lpuart32_int+0x2a8/0x680
[ 1.398717] [] __handle_irq_event_percpu+0x5c/0x148
[ 1.405139] [] handle_irq_event_percpu+0x1c/0x58
[ 1.411308] [] handle_irq_event+0x48/0x78
[ 1.416872] [] handle_fasteoi_irq+0xa8/0x180
[ 1.422690] [] generic_handle_irq+0x24/0x38
[ 1.428423] [] __handle_domain_irq+0x5c/0xb8
[ 1.434245] [] gic_handle_irq+0x78/0x174
[ 1.439715] Exception stack(0xffff000009453dd0 to 0xffff000009453f10)
[ 1.446144] 3dc0: 0000000000000000 0000000000000000
[ 1.453962] 3de0: 0000000000000001 0000000000000000 ffff000009442388 ffff000009453f00
[ 1.461783] 3e00: 0000800076a94000 00000000ffffffff ffff000009462f60 ffff000009453e90
[ 1.469599] 3e20: 0000000000000980 0000000000000000 0000000000000001 0000000000000000
[ 1.477420] 3e40: ffff80007ab1d180 0000000000000033 0000000000000019 0000000000000001
[ 1.485237] 3e60: 0000000000000007 ffff00000943c018 ffff000009458000 ffff000009458000
[ 1.493056] 3e80: ffff000009447cc0 ffff000009458e9c 0000000000000000 0000000000000000
[ 1.500875] 3ea0: ffff000009462580 0000000000000400 0000000081510018 ffff000009453f10
[ 1.508695] 3ec0: ffff00000808581c ffff000009453f10 ffff000008085820 0000000000000045
[ 1.516514] 3ee0: 0000000000000000 00000000fde72b80 ffffffffffffffff ffff000008141ad4
[ 1.524330] 3f00: ffff000009453f10 ffff000008085820
[ 1.529197] [] el1_irq+0xb0/0x124
[ 1.534064] [] arch_cpu_idle+0x10/0x18
[ 1.539365] [] do_idle+0x120/0x1e0
[ 1.544312] [] cpu_startup_entry+0x20/0x28
[ 1.549965] [] rest_init+0xd0/0xe0
[ 1.554919] [] start_kernel+0x398/0x3ac
[ 1.560300] Code: 14000022 910802b5 39428a61 71000c3f (296e0aa3)
[ 1.566391] ---[ end trace db317933232d2f66 ]---
[ 1.570984] Kernel panic - not syncing: Fatal exception in interrupt
[ 1.577326] SMP: stopping secondary CPUs
[ 1.581417] Kernel Offset: disabled
[ 1.584803] CPU features: 0x180200c
[ 1.588277] Memory Limit: none
[ 1.591319] ---[ end Kernel panic - not syncing: Fatal exception in interrupt

 

0 Kudos

3,142 Views
igorpadykov
NXP Employee
NXP Employee

Hi jin1

 

for optee one can try nxp linux from source.codeaurora.org/external/imx/linux-imx repository:


https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.24_2.1.0

use sect.5.6.10 OP-TEE enablement  i.MX Yocto Project User’s Guide​

Linux documentation

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

iwave software is supported by its vendor directly:

https://www.iwavesystems.com/support.html

 

Best regards
igor

0 Kudos

3,132 Views
gonewithwind-peter
Senior Contributor I

hi @igorpadykov 

my yocto version from iwave   vendor is 

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml

and patches from the company.

if I use your higher yocto  version ,I need to do  a lot of work.

I guess I can not generate  spl/u-boot-spl.bin file . mayby the issue is in uboot code ,for example , the iwave company disable optee support in u-boot source code.

I posted my question at here too:

https://github.com/OP-TEE/optee_os/issues/4078

 

any suggestions?

Thank you very much.

 

0 Kudos

3,125 Views
gonewithwind-peter
Senior Contributor I

Hi

 

@igorpadykov 

 

 

 

after read 

 

i.MX Linux® User's Guide, Rev. L4.14.98_2.3.0, 22 January 2020

 

it seems this yocto  version  can not support optee for imx8qm processor ? right?

 

before I tried to  compile the board imx8qmmek  with optee for testing , it did NOT pass the compilatiom

 

DISTRO=fsl-imx-xwayland MACHINE=imx8qmmek source imx-setup-release.sh -b build

 

bitbake fsl-image-validation-imx

0 Kudos

3,117 Views
igorpadykov
NXP Employee
NXP Employee

Hi jin1

 

one can try sect.5.6.10 OP-TEE enablement i.MX Yocto Project User’s Guide​

and nxp linux from source.codeaurora.org/external/imx/linux-imx repository
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.24_2.1.0

 

Best regards
igor

0 Kudos

3,102 Views
gonewithwind-peter
Senior Contributor I

Hi @igorpadykov 

thank you very much.

I have read  sect.5.6.10 . and done like that. I can generate optee_os,optee_examples, libs in kernal and rootfs.

but the issue seems it's  in u-boot source code. it's can not generate u-boot-spl.bin file in u-boot . maybe the source code from iwave was changed something, I am comparing iwave with maaxboard  that I did before ,and worked well for optee. the two boards are same yocto version, only add different patches from two companies.

I tried MACHINE=imx8qmmek  again    in   repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml yesterday

 

that source code  from iwave ,worked well for imx8qmmek  optee.(I disable a line in  patches from iwave) that means this version is well for optee from nxp.

so I think  iwave disable something in u-boot patches, so the u-boot code does not support optee after adding the patches.

I asked the iwave supporter, they told me they will support the optee in next souce code release. no more info from him.

 

0 Kudos

3,096 Views
gonewithwind-peter
Senior Contributor I

@igorpadykov 

 

in iwave  imx8qm_iwg27s_2gb_defconfig  for u-boot config that is from iwave patches, there is no any config about SPL.

so I add some SPL config in it( in patches) as below

when I compile u-boot code ,I find my SPL config is added into  imx8qm_iwg27s_2gb_defconfig , but I can not find  the SPL config as the below in .confg in build folder.

What happened? where is the issue?

any help?

-----

CONFIG_SPL=y

21 CONFIG_SPL_GPIO_SUPPORT=y

22 CONFIG_SPL_MMC_SUPPORT=y

23 CONFIG_FIT=y

24 CONFIG_SPL_LOAD_FIT=y

25 CONFIG_SPL_BOARD_INIT=y

26 CONFIG_SPL_TINY_MEMSET=y

27 CONFIG_SPL_MTD_SUPPORT=y

28 CONFIG_SPL_OF_CONTROL=y

29 CONFIG_SPL_SPI_FLASH_SUPPORT=y

30 CONFIG_SPL_SPI_SUPPORT=y

31 CONFIG_SPL_NOR_SUPPORT=y

32 CONFIG_PANIC_HANG=y

33

34 CONFIG_SPL_GPIO_SUPPORT=y

35 CONFIG_SPL_MMC_SUPPORT=y

36 CONFIG_SPL_FIT=y

37 CONFIG_SPL_LOAD_FIT=y

38 CONFIG_SPL_FIT_SOURCE=""

39 CONFIG_SPL_FIT_GENERATOR=""

40 CONFIG_SUPPORT_SPL=y

41 CONFIG_SPL=y

42 CONFIG_SPL_FRAMEWORK=y

43 CONFIG_SPL_BOARD_INIT=y

44 CONFIG_SPL_LEGACY_IMAGE_SUPPORT=y

45 CONFIG_SPL_USB_HOST_SUPPORT=y

46 CONFIG_SPL_USB_GADGET_SUPPORT=y

47 CONFIG_SPL_USB_SDP_SUPPORT=y

48 CONFIG_SPL_SDP_USB_DEV=1

49 CONFIG_SPL_DOS_PARTITION=y

50 CONFIG_SPL_EFI_PARTITION=y

51 CONFIG_SPL_PARTITION_UUIDS=y

52 CONFIG_SPL_OF_CONTROL=y

0 Kudos

3,095 Views
gonewithwind-peter
Senior Contributor I

@igorpadykov 

maybe  I find the reason. the iwave company was porting(adding) a processor imx8qm_iwg27s ,but it not complete porting all the code .

I tried  make menuconfig at folder

/opt/oe/iw/iw/iwg27s-release-bsp/build_imx8qm_2gb/tmp/work/imx8qm_iwg27s_2gb-poky-linux/u-boot-iwg27s/2018.03-r0/build/imx8qm_iwg27s_2gb_defconfig

to  find it is empty  for SPL/TPL config.

although I add CONFIG_SPL in defconfig ,but no Kconfig porting before for imx8qm_iwg27s. I have to add everything by myself.

0 Kudos