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: 
962 Views
Registered: ‎09-28-2018

UltraScale+ ZCU102 - Yocto - Bad Linux ARM64 Image magic!

Jump to solution

Hello,

 

I've builded an images for ZCU102 Ultrascale + Evaluation board.

When I want to start kernel, it show the message "Bad Linux ARM64 Image magic!"

 

I use this commands to start my kernel :

Zynmp > fatload mmc 0 0x3000000 Image

Zynmp > fatload mmc 0 0x2A00000 system.dtb

Zynmp > fatload mmc 0 0x2000000 initramfs.ub

Zynmp > booti 0x3000000 0x2000000 0x2A00000

 

The size of my rootfs is 71 MB.  This can be an issue for u-boot ?

Because, when i use a smaller one < 16 Mo (core-image-minimal), the kernel start correctly.

 

Any help please ?

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
911 Views
Registered: ‎09-12-2007

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

Jump to solution
You should create a fit image for your files and use mkimage to create a u-bootable image
See wiki here for help

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841722/ZCU102+Image+creation+in+OSL+flow
0 Kudos
4 Replies
Observer senkoo
Observer
957 Views
Registered: ‎08-28-2018

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

Jump to solution

Hello @marwen_brikcha,

 

I'm not an expert and I don't know if this is the correct answer. But you do fatload mmc 0 0x2000000 initramfs.ub

 

If your rootfs is 71MB which is 71 000 000 bytes. The hex value is 43B5FC0. This seems to be way bigger then the value's youre are using.

 

Maybe look into making the values bigger for the initramfs.ub.

 

I never used fatload before but when you take to first adress + the size of the initramfs.ub maybe put the system.dtb at B76BF80?

 

Again, never done this before so im just trying to help out of the blank.

0 Kudos
Moderator
Moderator
912 Views
Registered: ‎09-12-2007

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

Jump to solution
You should create a fit image for your files and use mkimage to create a u-bootable image
See wiki here for help

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841722/ZCU102+Image+creation+in+OSL+flow
0 Kudos
881 Views
Registered: ‎09-28-2018

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

Jump to solution

Thank you stephen. It workes using FIT image.

 

0 Kudos
Moderator
Moderator
864 Views
Registered: ‎04-24-2017

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

Jump to solution

Hi @marwen_brikcha,

 

These issue could be when you are trying overlap the address in memory. You can use something like this

 

ZynqMP> tftpboot 0x80000 Image.bin && tftpboot 0x4000000 system.dtb && tftpboot 0x6000000 rootfs.cpio.gz.u-boot && booti 0x80000 0x6000000 0x4000000
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos