cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
1,637 Views
Registered: ‎03-21-2019

Cannot boot from SD card on ZCU106

Hi,
I cannot boot from SD card on my Zync UltaScale+ MPSoC ZCU106 Evaluation Kit.

I did these steps:
1. Install PetaLinux.


2. Download xilinx-zcu106-v2018.3-final-v2.bsp.


3. Make two partitions on SD card: 

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sda1  *       2048  2099199  2097152    1G 83 Linux
/dev/sda2       2099200 31116287 29017088 13,9G 83 Linux
mkfs.vfat -F 32 -n BOOT /dev/sda1
mkfs.ext4 -L rootfs /dev/sda2

 

4. Create project:

petalinux-create -t project -s xilinx-zcu106-v2018.3-final-v2.bsp

 

5. Config project:

petalinux-config

Root filesystem type: SD card
Device node of SD device: /dev/sda2

5. Build system image:

petalinux-build

I have one warning in this step:

WARNING: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 1 warning message in the logfile:
[log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.zcu106_zynqmp) scriptlet failed, exit status 1

NOTE: Tasks Summary: Attempted 7107 tasks of which 5292 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
INFO: Copying Images from deploy to images
INFO: Creating images/linux directory
NOTE: copy to TFTP-boot directory is not enabled !!
[INFO] successfully built project

 

6. Generate boot image:

petalinux-package --boot --fsbl images/linux/zynqmp_fsbl.elf --fpga images/linux/system.bit --pmufw images/linux/pmufw.elf --u-boot

7. Copy files to SD card:

cp images/linux/BOOT.bin /media/sda1
cp images/linux/image.ub /media/sda1
cp images/linux/rootfs.cpio /media/sda2
cd /media/sda2
pax -f rootfs.cpio

 

8. Configure SW6:
SD        1110       OFF,OFF,OFF,ON

9. Insert SD card and power on.

Done LED is RED. Also in UART terminal:

!! Press ESC to enter System Controller Mode
:R

 

 

 

0 Kudos
11 Replies
Highlighted
Explorer
Explorer
1,570 Views
Registered: ‎02-22-2012

You can instrument your FSBL to dump its progress on serial consol.

Might give some clue.

How to is described in this forum message.

Highlighted
1,561 Views
Registered: ‎03-21-2019

Thanks for your help!

I did these steps: 
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips#PetaLinuxYoctoTips-ConfiguringFSBLandPMUFWdebugsinPetaLinuxProject

But anyway in terminal I see only:

!! Press ESC to enter System Controller Mode
:R
0 Kudos
Highlighted
Explorer
Explorer
1,539 Views
Registered: ‎02-22-2012

To be more clear. To enable serial console FSBL messages form petalinux fsbl build you put:

#Add compiler flags for FSBL
YAML_COMPILER_FLAGS_append = " -DFSBL_DEBUG"
YAML_COMPILER_FLAGS_append = " -DFSBL_DEBUG_INFO"

in fsbl_%.bbappend.

You don't need to put everything from that link.

Highlighted
1,530 Views
Registered: ‎03-21-2019

 Thanks! I tried it.

1. In project-spec/meta-user/recipes-bsp/fsbl/fsbl_%.bbappend  :

YAML_COMPILER_FLAGS_append = " -DXPS_BOARD_ZCU106"
YAML_COMPILER_FLAGS_append = " -DFSBL_DEBUG"
YAML_COMPILER_FLAGS_append = " -DFSBL_DEBUG_INFO"

2. Build system image:

petalinux-build -x mrproper
petalinux-build

3. Generate boot image:

petalinux-package --boot --fsbl images/linux/zynqmp_fsbl.elf --fpga images/linux/system.bit --pmufw images/linux/pmufw.elf --u-boot 

4. Copy BOOT.BIN and image.ub to the SD card. Plug it. Power on.

Unfortunately in terminal only:

!! Press ESC to enter System Controller Mode
:R
0 Kudos
Highlighted
Explorer
Explorer
1,514 Views
Registered: ‎02-22-2012

I would first exclude HW and/or HW config problems. I don't own ZCU106 but usually Xilinx provides prebuild images for their boards. You should first read carfully board documentation and try first with Xilinx provided demo images.

If this works ok (I.e. no HW problems), then you will have to go back to your Vivado project because very likely your project PS configuration and/or constraints does not match what ZCU106 requires.

Highlighted
1,506 Views
Registered: ‎03-21-2019

I downloaded HW config with BSP, from this source:
https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html
(ZCU106 V2 BSP).

I created the project:

petalinux-create -t project -s ./xilinx-zcu106-v2018.3-final-v2.bsp

 

And I didn't change HW config in <plnx-proj-root>/hardware directory. Should I try any configuration?

0 Kudos
Highlighted
Explorer
Explorer
1,474 Views
Registered: ‎02-22-2012

All petalinux commands you type looks ok to me.

Guessing, it could also be HW fault.

If you can, try find some other SD card that worked on this ZC106.

You can also try with Vivado Hardware Manager and JTAG to see if FPGA and PS are accesible.

It is difficult to diagnose so remotelly. Not knowing if this HW ever worked and so.

Highlighted
Xilinx Employee
Xilinx Employee
1,433 Views
Registered: ‎09-01-2014

which UART channels are you connected? ZCU106 has four UART channels.
The message is showing that you are connected to the UART channel of System controller. Please connect to channel 0 which is from the PS side.
Highlighted
1,421 Views
Registered: ‎03-21-2019

I am connecting to the channel 3, in other channels is always silence, in channel 0 too.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
1,352 Views
Registered: ‎09-01-2014


If PS UART channel is no output, it means FSBL is not loaded or hang in psu_init.
Please check the BootROM Error Codes reason for the reason using the register dump TCL from following AR.
https://www.xilinx.com/support/answers/69006.html

ZCU106 BSP contains pre-build boot image, does it work?

if you are using a new DIMM ZCU106 board, please check this.
https://www.xilinx.com/support/answers/72113.html
0 Kudos
Highlighted
Adventurer
Adventurer
815 Views
Registered: ‎05-31-2019

Hi @ritakur kornilov@arrival.com @primoz_beltram I am facing a similar situation but with ZCU104. I have posted the issue here: https://forums.xilinx.com/t5/Xilinx-Evaluation-Boards/SD-card-does-not-boot-in-ZCU104/m-p/1028130. If you can provide any help that will be great. Thank you!

0 Kudos