UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer b@buji
Observer
447 Views
Registered: ‎05-30-2018

UltraScale+ ZCU102 - Bad Linux ARM64 Image magic!

Jump to solution

Hi,

I am using ZCU102 evaluation kit with vivado and PetaLinux2018.3 . When I boot ZCU102 in "SD" mode with "system.dtb" loading from "boot image" its works fine but when I boot zcu102 with "system.dtb" generated using PetaLinux and set path to load .dtb from SD CARD I am getting an error as "Bad Linux ARM64 Image magic!", how can we use "system.dtb" to load from SD card?

0 Kudos
1 Solution

Accepted Solutions
Observer b@buji
Observer
339 Views
Registered: ‎05-30-2018

Re: UltraScale+ ZCU102 - Bad Linux ARM64 Image magic!

Jump to solution

When followed it up with Xilinx local FAE, they provided the following workaround and the issue got resolved.

  1. Copy BOOT.BIN, system.dtb and Image (not image.ub) to the SD card and boot from SD.
  2. Halt at U-Boot then add the below env settings:

ZynqMP> setenv kernel_img Image

ZynqMP> setenv cp_kernel2ram 'mmcinfo && fatload mmc 0 ${netstart}  ${kernel_img}'

ZynqMP> setenv cp_dtb2ram 'mmcinfo && fatload mmc 0:1 ${dtbnetstart} ${dtb_img}'

ZynqMP> setenv default_bootcmd 'run cp_kernel2ram && run cp_dtb2ram && booti ${netstart} - ${dtbnetstart}'

ZynqMP> boot

0 Kudos
2 Replies
Observer b@buji
Observer
390 Views
Registered: ‎05-30-2018

Re: UltraScale+ ZCU102 - Bad Linux ARM64 Image magic!

Jump to solution

Hi,

In case the issue is not clear, here is a detailed description of the problem that we are facing:

Following are 2 ways of generating the boot image for ZCU102:

  1. Include system.dtb file at the time of Petalinux image generation.
  2. Create an image with options such that system.dtb file is loaded from SD card at the time of booting

With option-1, ZCU102 is booting well (except for an Ethernet issue that is being discussed in another thread). But, with option-2, ZCU102 boot is failing with an error “Bad Linux ARM64 Image magic!”.

Both options were working with Vivado 2017.2. But the option-2 is not working in Vivado 2018.2 and 2018.3.

We use option-2, as it takes much less time to generate a system.dtb file rather than generating a complete image every time, whenever addresses of IPs get changed in block diagram.

The steps used to build the image along with build  and boot log files are attached for reference. Could anyone please suggest if any changes are required and help us resolve it? Do let us know if any clarification is required.

0 Kudos
Observer b@buji
Observer
340 Views
Registered: ‎05-30-2018

Re: UltraScale+ ZCU102 - Bad Linux ARM64 Image magic!

Jump to solution

When followed it up with Xilinx local FAE, they provided the following workaround and the issue got resolved.

  1. Copy BOOT.BIN, system.dtb and Image (not image.ub) to the SD card and boot from SD.
  2. Halt at U-Boot then add the below env settings:

ZynqMP> setenv kernel_img Image

ZynqMP> setenv cp_kernel2ram 'mmcinfo && fatload mmc 0 ${netstart}  ${kernel_img}'

ZynqMP> setenv cp_dtb2ram 'mmcinfo && fatload mmc 0:1 ${dtbnetstart} ${dtb_img}'

ZynqMP> setenv default_bootcmd 'run cp_kernel2ram && run cp_dtb2ram && booti ${netstart} - ${dtbnetstart}'

ZynqMP> boot

0 Kudos