[meta-xilinx] rel-v2018.1 / zcu102-zynqmp: U-boot crashes with error "fdt_root: FDT_ERR_BADMAGIC"

Martin Lund malu at gomspace.com
Tue May 1 02:05:32 PDT 2018


Hi Manju,


Ok, I've updated u-boot-mkimage to use the 2018.1 recipe from meta-petalinux by copying the files to the meta-xilinx layer.


Then when building arm-trusted-firmware it triggered a rebuild to update u-boot-mkimage which resulted in an updated atf-uboot.ub. I notice that u-boot-xlnx does not depend on u-boot-mkimage.


However, it did not solve the issue - I still see the following error:

U-Boot SPL 2018.01 (May 01 2018 - 09:26:36)
EL Level:       EL3
Trying to boot from MMC1
reading u-boot.bin
reading atf-uboot.ub
reading atf-uboot.ub
fdt_root: FDT_ERR_BADMAGIC
"Synchronous Abort" handler, esr 0x02000000
ELR:     fffea008
LR:      fffc14e8
x0 : 0000000030c50830 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 0000000000000000
x4 : 00000000fffea000 x5 : 0000000000000001
x6 : 00000000000003c9 x7 : 0000000000000000
x8 : 00000000ffff7c90 x9 : 0000000000000002
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 00000000000008f8
x14: 0000000000000000 x15: 00000000fffc0cd0
x16: 290c820384080c00 x17: b023822044851147
x18: 00000000ffff7e90 x19: 00000000ffff7e48
x20: 00000000fffdc228 x21: 0000000000000000
x22: 00000000fffd7ee8 x23: 00000000ffff7e30
x24: 00000000fffd7ed0 x25: 00000000fffdc000
x26: 00000000deadbeef x27: 83cf122300800323
x28: 8201900006090c13 x29: 00000000ffff7db0

Resetting CPU ...

### ERROR ### Please RESET the board ###


Any ideas what else might be broken?



FYI - on a similar note, I've pushed a patch upstream to update the README.booting.md in meta-xilinx to include updated SD install steps for ZynqMP:

https://lists.yoctoproject.org/pipermail/meta-xilinx/2018-May/003793.html


Those are the install steps we are following and expected to work for meta-xilinx after building core-image-minimal.


Thanks.

________________________________
From: Manjukumar Harthikote Matha <MANJUKUM at xilinx.com>
Sent: Monday, April 30, 2018 7:50:17 PM
To: Martin Lund; meta-xilinx at yoctoproject.org
Subject: RE: [meta-xilinx] rel-v2018.1 / zcu102-zynqmp: U-boot crashes with error "fdt_root: FDT_ERR_BADMAGIC"

Hi Martin,

Can you update the u-boot-mkimage recipe as well?
https://github.com/Xilinx/meta-petalinux/blob/master/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb

An give it a shot?

We use the entire layer stack during testing meta-petalinux,meta-xilinx and meta-xilinx-tools and did not see this breakage

Thanks,
Manju
> -----Original Message-----
> From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-
> bounces at yoctoproject.org] On Behalf Of Martin Lund
> Sent: Monday, April 30, 2018 4:14 AM
> To: meta-xilinx at yoctoproject.org
> Subject: [meta-xilinx] rel-v2018.1 / zcu102-zynqmp: U-boot crashes with error
> "fdt_root: FDT_ERR_BADMAGIC"
>
> Building and running core-image-minimal for the zcu102-zynqmp machine on the
> recently released rel-v2018.1 branch results in u-boot crashing with the following
> error:
>
> fdt_root: FDT_ERR_BADMAGIC
>
>
> Boot files are installed on the SD card following the normal guildelines - first
> partition (BOOT, vfat) is populated with the following files:
>
> atf-uboot.ub
> boot.bin
> Image
> Image-zynqmp-zcu102-rev1.0.dtb
> u-boot.bin
> uEnv.txt
>
> We've seen the same error on two rel-2018.1 builds from two different build
> hosts.
>
> Any ideas what might cause the .dtb / fdt to become broken like that?
>
> Perhaps a broken dtc toolchain?
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20180501/47bd2833/attachment.html>


More information about the meta-xilinx mailing list