I think you are missing the secure boot part. I think you need to add
the file atf-uboot.ub to the boot partition.
Philip
U-Boot SPL 2021.01-rc1-00245-g35b7ca768f-dirty (Nov 07 2020 - 15:02:39
-0500)
PMUFW: v1.1
EL Level: EL3
Multiboot: 0
Trying to boot from MMC2
spl: could not initialize mmc. error: -19
Trying to boot from MMC1
J�NOTICE: ATF running on XCZU7EG/EV/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: v2.2(release):xilinx_rebase_v2.2_2020.2
NOTICE: BL31: Built : 17:48:14, Jan 26 2021
U-Boot 2021.01-rc1-00245-g35b7ca768f-dirty (Nov 07 2020 - 15:02:39 -0500)
Model: ZynqMP ZCU104 RevC
Board: Xilinx ZynqMP
DRAM: 2 GiB
PMUFW: v1.1
EL Level: EL2
Chip ID: zu7e
WDT: Started with servicing (60s timeout)
NAND: 0 MiB
MMC: mmc@ff170000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default
environment
In: serial@ff000000
Out: serial@ff000000
On 2/1/21 6:54 AM, Leon Woestenberg wrote:
> Hello all,
>
> using a very default ZCU102 build using 'gatesgarth', my kernel
> crashes on the ZCU102 board just after "psci: probing for conduit
> method from DT."
>
> QEMU succeeds (but is not using the SPL boot method). How can I test
> the SPL boot method under QEMU? I am not seeing anything
> FSBL/boot.bin/SPL related in QEMU?
>
> I tried both the Xilinx BSP prebuilt 'system.dtb" as well as the
> "zynqmp-zcu102-rev1.0.dtb". Both failed the same way.
>
>
> MACHINE = "zcu102-zynqmp"
> EXTRA_IMAGEDEPENDS_append = " u-boot-zynq-scr"
>
> build/tmp/deploy/images/zcu102-zynqmp$ strings boot.scr
> Boot script
> setenv sdbootdev 0
> setenv bootargs $bootargs root=/dev/mmcblk${sdbootdev}p2 rw rootwait
> earlycon clk_ignore_unused
> setenv bootargs $bootargs root=/dev/mmcblk0p2 rw rootwait earlycon
> clk_ignore_unused
> if test -n ""; then
> fatload mmc $sdbootdev 0x100000 && fpga load 0 0x100000 ${filesize}
> fatload mmc $sdbootdev 0x100000 zynqmp-zcu102-rev1.0.dtb
> fatload mmc $sdbootdev:$partid 0x200000 Image
> booti 0x200000 - 0x100000
>
> U-Boot SPL 2021.01 (Jan 21 2021 - 12:39:47 +0000)
> PMUFW: v1.1
> Loading new PMUFW cfg obj (2200 bytes)
> EL Level: EL3
> Chip ID: zu9eg
> Multiboot: 0
> Trying to boot from MMC2
> spl: could not initialize mmc. error: -19
> Trying to boot from MMC1
> spl_load_image_fat: error reading image atf-uboot.ub, err - -2
> spl_load_image_fat: error reading image u-boot.itb, err - -2
> Trying to boot from RAM
>
>
> U-Boot 2021.01 (Jan 21 2021 - 12:39:47 +0000)
>
> Model: ZynqMP ZCU102 Rev1.1
> Board: Xilinx ZynqMP
> DRAM: 4 GiB
> PMUFW: v1.1
> EL Level: EL3
> Chip ID: zu9eg
> Multiboot: 0
> WDT: Started with servicing (60s timeout)
> NAND: 0 MiB
> MMC: mmc@ff170000: 0
> Loading Environment from FAT... *** Warning - bad CRC, using default
> environment
>
> In: serial
> Out: serial
> Err: serial
> Bootmode: LVL_SHFT_SD_MODE1
> Reset reason: EXTERNAL
> Net:
> ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr 12, interface rgmii-id
>
> Warning: ethernet@ff0e0000 (eth0) using random MAC address - 92:89:ae:4d:f8:c3
> eth0: ethernet@ff0e0000
> Hit any key to stop autoboot: 0
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:1...
> Found U-Boot script /boot.scr
> 496 bytes read in 8 ms (60.5 KiB/s)
> ## Executing script at 20000000
> 39432 bytes read in 22 ms (1.7 MiB/s)
> 17426944 bytes read in 1307 ms (12.7 MiB/s)
> Moving Image from 0x200000 to 0x280000, end=13ac000
> ## Flattened Device Tree blob at 00100000
> Booting using the fdt blob at 0x100000
> Loading Device Tree to 000000007de12000, end 000000007de1ea07 ... OK
>
> Starting kernel ...
>
> [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
> [ 0.000000] Linux version 5.4.0-xilinx-v2020.2 (oe-user@oe-host)
> (gcc version 10.2.0 (GCC)) #1 SMP Wed Nov 4 10:19:54 UTC 2020
> [ 0.000000] Machine model: ZynqMP ZCU102 Rev1.0
> [ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
> [ 0.000000] printk: bootconsole [cdns0] enabled
> [ 0.000000] [ 0.000000] ------------[ cut here ]------------
> [ 0.000000] console 'cdns0' already registered
> [ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/printk/printk.c:2658
> register_console+0x50/0x350
> [ 0.000000] Modules linked in:
> [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.0-xilinx-v2020.2 #1
> [ 0.000000] Hardware name: ZynqMP ZCU102 Rev1.0 (DT)
> [ 0.000000] pstate: 600001c5 (nZCv dAIF -PAN -UAO)
> [ 0.000000] pc : register_console+0x50/0x350
> [ 0.000000] lr : register_console+0x50/0x350
> [ 0.000000] sp : ffff800011073ce0
> [ 0.000000] x29: ffff800011073ce0 x28: 000000000000005f
> [ 0.000000] x27: ffff80001105386c x26: ffff80001105a940
> [ 0.000000] x25: ffff8000110617d0 x24: 0000000000000000
> [ 0.000000] x23: ffff8000110b3000 x22: ffff8000110b4180
> [ 0.000000] x21: ffff800011126fb8 x20: 00000000000072ac
> [ 0.000000] x19: ffff8000110b4180 x18: 0000000000000030
> [ 0.000000] x17: 0000000000001800 x16: 0000000000000000
> [ 0.000000] x15: ffff800011084148 x14: ffffffffffffffff
> [ 0.000000] x13: ffff800091073a07 x12: ffff800011073a14
> [ 0.000000] x11: ffff800011093000 x10: 0000000000000000
> [ 0.000000] x9 : 0000000000000007 x8 : 7265747369676572
> [ 0.000000] x7 : 0000000000000008 x6 : ffff800011127549
> [ 0.000000] x5 : 00000000fffffffe x4 : 0000000000000000
> [ 0.000000] x3 : 0000000000000000 x2 : 00000000ffffffff
> [ 0.000000] x1 : 0000000000000000 x0 : 0000000000000000
> [ 0.000000] Call trace:
> [ 0.000000] register_console+0x50/0x350
> [ 0.000000] of_setup_earlycon+0x200/0x220
> [ 0.000000] early_init_dt_scan_chosen_stdout+0x158/0x19c
> [ 0.000000] param_setup_earlycon+0x24/0x2c
> [ 0.000000] do_early_param+0x80/0xc8
> [ 0.000000] parse_args+0x158/0x360
> [ 0.000000] parse_early_options+0x34/0x3c
> [ 0.000000] parse_early_param+0x38/0x50
> [ 0.000000] setup_arch+0x15c/0x5a4
> [ 0.000000] start_kernel+0x84/0x488
> [ 0.000000] random: get_random_bytes called from
> print_oops_end_marker+0x28/0x50 with crng_init=0
> [ 0.000000] ---[ end trace 0000000000000000 ]---
> [ 0.000000] efi: Getting EFI parameters from FDT:
> [ 0.000000] efi: UEFI not found.
> [ 0.000000] cma: Reserved 256 MiB at 0x000000006dc00000
> [ 0.000000] psci: probing for conduit method from DT.
> [ 0.000000] ------------[ cut here ]------------
> [ 0.000000] kernel BUG at arch/arm64/kernel/traps.c:405!
> [ 0.000000] Internal error: Oops - BUG: 0 [#1] SMP
> [ 0.000000] Modules linked in:
> [ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G W
> 5.4.0-xilinx-v2020.2 #1
> [ 0.000000] Hardware name: ZynqMP ZCU102 Rev1.0 (DT)
> [ 0.000000] pstate: 00000085 (nzcv daIf -PAN -UAO)
> [ 0.000000] pc : do_undefinstr+0x238/0x2b0
> [ 0.000000] lr : do_undefinstr+0xc4/0x2b0
> [ 0.000000] sp : ffff800011073c70
> [ 0.000000] x29: ffff800011073c70 x28: ffff800011083d80
> [ 0.000000] x27: ffff800010e5bff8 x26: ffff800010e75f48
> [ 0.000000] x25: 0000000000000080 x24: 0000000000000000
> [ 0.000000] x23: 0000000040000085 x22: ffff800010095b00
> [ 0.000000] x21: ffff800011073e10 x20: ffff800011083d80
> [ 0.000000] x19: ffff800011073cd0 x18: 0000000000000030
> [ 0.000000] x17: 0000000000001800 x16: 0000000000000000
> [ 0.000000] x15: ffff800011084148 x14: ffffffffffffffff
> [ 0.000000] x13: 0000000000000018 x12: 0101010101010101
> [ 0.000000] x11: 0000000000000018 x10: 0101010101010101
> [ 0.000000] x9 : 7f7f7f7f7f7f7f7f x8 : 7f7f7f7f7f7f7f7f
> [ 0.000000] x7 : 0000000000000000 x6 : 0000000000000000
> [ 0.000000] x5 : ffff800011085848 x4 : 0000000000000000
> [ 0.000000] x3 : 0000000000000001 x2 : ffff800011123110
> [ 0.000000] x1 : 0000000000000000 x0 : 0000000040000085
> [ 0.000000] Call trace:
> [ 0.000000] do_undefinstr+0x238/0x2b0
> [ 0.000000] el1_undef+0x10/0x84
> [ 0.000000] __arm_smccc_smc+0x0/0x2c
> [ 0.000000] psci_get_version+0x24/0x30
> [ 0.000000] psci_0_2_init+0x20/0x2a0
> [ 0.000000] psci_dt_init+0x64/0x9c
> [ 0.000000] setup_arch+0x414/0x5a4
> [ 0.000000] start_kernel+0x84/0x488
> [ 0.000000] Code: f9401bf7 17ffffa2 a9025bf5 f9001bf7 (d4210000)
> [ 0.000000] ---[ end trace f68728a0d3053b52 ]---
> [ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
> [ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill
> the idle task! ]---
>
> Regards,
>
> Leon.
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4836):
https://lists.yoctoproject.org/g/meta-xilinx/message/4836
Mute This Topic: https://lists.yoctoproject.org/mt/80282679/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-