cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shixiaoke
Participant
Participant
288 Views
Registered: ‎07-04-2018

Linux Booting Error:: zcu102-dpu-trd-2019-1 on ZCU102-ES2(xczu9eg-ffvb1156-2-i-es2)

I used Etche software to make xilinx-zcu102-prod-dpu1.4-2018.3-desktop-buster-2019-04-24.img.zip on the SD card. After putting it into the board card, it can enter the Linux system normally.
The log message is:
==============================================================================
U-Boot 2018.01 (Apr 24 2019 - 01:54:10 +0000) Xilinx ZynqMP ZCU102 rev1.0

I2C: ready
DRAM: 4 GiB
EL Level: EL2
Chip ID: zu9eg
MMC: mmc@ff170000: 0 (SD)
*** Warning - bad CRC, using default environment

In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Model: ZynqMP ZCU102 Rev1.0
Board: Xilinx ZynqMP
Bootmode: LVL_SHFT_SD_MODE1
Net: ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id

Warning: ethernet@ff0e0000 using MAC address from ROM
eth0: ethernet@ff0e0000
U-BOOT for xilinx-zcu102-2018_3

Hit any key to stop autoboot: 0
Device: mmc@ff170000
Manufacturer ID: 2
OEM: 544d
Name: SA08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.2 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading Image
14901760 bytes read in 987 ms (14.4 MiB/s)
Device: mmc@ff170000
Manufacturer ID: 2
OEM: 544d
Name: SA08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.2 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading system.dtb
43066 bytes read in 20 ms (2.1 MiB/s)
## Flattened Device Tree blob at 23fff000
Booting using the fdt blob at 0x23fff000
Loading Device Tree to 0000000007ff2000, end 0000000007fff839 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.0-xilinx-v2018.3 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Wed Apr 24 01:54:49 UTC 2019
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]

...................
[ OK ] Started Serial Getty on ttyPS0.
[ OK ] Reached target Login Prompts.

Debian GNU/Linux buster/sid zcu102 ttyPS0

zcu102 login: root (automatic login)

root@zcu102:~#
==============================================================================

However, when I changed the code on the PL project, regenerated the HDF file, and used petalinux to generate the boot.bin and image.ub files, and put them into the SD card's BOOT partition, I was unable to start the board card.
And ,the log message is:
==============================================================================
U-Boot 2018.01 (Mar 27 2020 - 15:28:08 +0800) Xilinx ZynqMP ZCU102 rev1.0

I2C: ready
DRAM: 4 GiB
EL Level: EL2
Chip ID: zu9eg
MMC: sdhci@ff170000: 0 (SD)
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
In: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Model: ZynqMP ZCU102 Rev1.0
Board: Xilinx ZynqMP
Net: ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id
eth0: ethernet@ff0e0000
Hit any key to stop autoboot: 0
** Unable to read file zcu102.bit **
fpga - loadable FPGA image support

Usage:
fpga [operation type] [device number] [image address] [image size]
fpga operations:
dump [dev] [address] [size] Load device to memory buffer
info [dev] list known device information
load [dev] [address] [size] Load device from memory buffer
loadp [dev] [address] [size] Load device from memory buffer with partial bitstream
loadb [dev] [address] [size] Load device from bitstream buffer (Xilinx only)
loadbp [dev] [address] [size] Load device from bitstream buffer with partial bitstream(Xilinx only)
Load encrypted bitstream (Xilinx only)
loads [dev] [address] [size] [auth-OCM-0/DDR-1/noauth-2]
[enc-devkey(0)/userkey(1)/nenc(2) [Userkey address]
Loads the secure bistreams(authenticated/encrypted/both
encrypted and encrypted) of [size] from [address].
The auth-OCM/DDR flag specifies to perform authentication
in OCM or in DDR. 0 for OCM, 1 for DDR, 2 for no authentication.
The enc flag specifies which key to be used for decryption
0-device key, 1-user key, 2-no encryption.
The optional Userkey address specifies from which address key
has to be used for decryption if user key is selected.
NOTE: the sceure bitstream has to be created using xilinx
bootgen tool only.

reading image
14684672 bytes read in 973 ms (14.4 MiB/s)
** Unable to read file devicetree.dtb **
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
ZynqMP>

==============================================================================
So far I've found some differences. In the SD card made by xilinx-zcu102-prod-dpu1.4-2018.3-desktop-buster-2019-04-24.img.zip, there are three files: boot.bin, Image and system.dtb in the BOOT partition. Instead, I put the boot.bin and image.ub files into the BOOT partition.

When the board card starts properly, it will print "MMC: MMC @ff170000:0 (SD)", "*** warn-bad CRC, using default environment" and "Bootmode: LVL_SHFT_SD_MODE1".

When the board card cannot be started, "MMC: sdhci@ff170000: 0 (SD)" and "SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB" are printed, missing "Bootmode" information.

The process I use petalinux is:
1,petalinux-create --type project --template zynqMP --name ZCU102
2,cd ./ZCU102
3,petalinux-config --get-hw-description=<PATH-TO-HDF>
4,DTG Settings-->MACHINE_NAME-->zcu102-rev1.0
5,Image Packaging Configuration-->SD
6,petalinux-build
7,petalinux-package --boot --fsbl zynqmp_fsbl.elf --u-boot u-boot.elf --pmufw pmufw.elf --fpga system.bit --force

I have tried setting the device to xczu9eg-ffvb1156-2-i (active) or xczu9eg-ffvb1156-2-i-es2 on the PL side. But it didn't work. Also confirm that the selection in the Image Packaging Configuration is
"(image.ub) name for bootable kernel image"

0 Kudos
0 Replies