cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
420 Views
Registered: ‎01-19-2020

PetaLinux cannot boot from SD on ZCU104

Jump to solution

Hi,

We'd like to make PetaLinux boot from SD card on ZCU104.

However, it stuck at following messages:

 [ 3.513156] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
 [ 3.520257] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
 [ 3.527357] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
 [ 3.534456] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
 [ 3.541558] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success

at the same time, DS1 LED on ZCU104 is red, which means "FPGA initialization is in progress".

 

Do you have any suggestion?

Thanks.

 

Screenshot from 2020-06-16 17-10-46.png
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
243 Views
Registered: ‎04-23-2019

Hi,

I got the same error. I solved it by:

1. In petalinux-config:

Subsystem AUTO Hardware Settings -> Advanced bootable image storage settings ->

boot image settings = primary_sd

kernel image settings = primary_sd

Image Packaging Configuration ->

Root filesystem type = INITRAMFS

FPGA Manager ->

Fpga Manager = Selected

2. petalinux-build

3. cd {PetaLinuxBuildRoot}/images/linux

4. petalinux-package --boot --format BIN --fsbl zynqmp_fsbl.elf --u-boot

5. copy the image.ub and BOOT.BIN to the SD-card and boot

I got some x-window and matchbox errors during boot but Linux is up and running.

 

NOTE
I started with the ZCU104 BSP and thus eliminated any need for Vivado/Vitis.

 

Cheers
/Nils

View solution in original post

0 Kudos
5 Replies
Highlighted
Voyager
Voyager
407 Views
Registered: ‎08-02-2019

Hi @chiaming_hung ,

There is a similar known issue and it has a patch.

Title : "2019.1 Zynq UltraScale+ MPSoC: Linux USB 3.0 device mode does not work".

Are you sure, you properly configured your board as SD Card boot mode.

To test it, you can use prebuild image of your board. 

 

Saban

 

<------------------------------------------------------------------------------>

if(solves_problem) mark_as_solution <= 1 else if(helpful) Kudo <= Kudo + 1

<--- If reply is helpful, please feel free to give Kudos, and close if it answers your question --->
0 Kudos
Highlighted
Contributor
Contributor
346 Views
Registered: ‎01-19-2020

Hi @sabankocal ,

Are you sure, you properly configured your board as SD Card boot mode.

=>  I followed the UG1267 to configure zcu104 board as SD Card boot mode. (SW6 switched to {off,off,off,on} )

zcu104 boot modezcu104 boot mode

 

I followed AR#72409 to patch the u-boot files, but I got the following error while rebuilding the u-boot:

rebuilt u-boot failrebuilt u-boot fail

I noticed that the petalinux version I used (2019.2) and the version in AR#72409 (2019.1) are different.

 

is  there another patch file for petalinux version 2019.2?

 

thanks 

0 Kudos
Highlighted
Contributor
Contributor
306 Views
Registered: ‎01-19-2020

Hi,

 

Add some information.

We notice that DS1 LED is always red, not green.

Is that normal?

 

S__14884871.jpg

 

S__14884871.jpg
0 Kudos
Highlighted
Voyager
Voyager
301 Views
Registered: ‎08-02-2019

Hi @chiaming_hung ,

I attached your board's description about DS1 Led.

Saban

 

<--- If reply is helpful, please feel free to give Kudos, and close if it answers your question --->
led_ds1.png
0 Kudos
Highlighted
Observer
Observer
244 Views
Registered: ‎04-23-2019

Hi,

I got the same error. I solved it by:

1. In petalinux-config:

Subsystem AUTO Hardware Settings -> Advanced bootable image storage settings ->

boot image settings = primary_sd

kernel image settings = primary_sd

Image Packaging Configuration ->

Root filesystem type = INITRAMFS

FPGA Manager ->

Fpga Manager = Selected

2. petalinux-build

3. cd {PetaLinuxBuildRoot}/images/linux

4. petalinux-package --boot --format BIN --fsbl zynqmp_fsbl.elf --u-boot

5. copy the image.ub and BOOT.BIN to the SD-card and boot

I got some x-window and matchbox errors during boot but Linux is up and running.

 

NOTE
I started with the ZCU104 BSP and thus eliminated any need for Vivado/Vitis.

 

Cheers
/Nils

View solution in original post

0 Kudos