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: 
Highlighted
Observer arturo_pg
Observer
806 Views
Registered: ‎10-07-2016

[U-boot v2019.1] ERROR: Did not find a cmdline Flattened Device Tree

Jump to solution

Hi, I'm encountering this error in u-boot when booting from the SD card. I was able to boot Linux correctly using v2018.1. Now I'm  porting all the components of my project  (fsbl, PMU_fw, u-boot...) to v2019.1  

The log is:

Xilinx Zynq MP First Stage Boot Loader 
Release 2019.1   Jul  2 2019  -  16:39:27
PMU Firmware 2019.1	Jul  2 2019   16:41:04
PMU_ROM Version: xpbr-v8.1.0-0
NOTICE:  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x850000000
NOTICE:  BL31: v2.0(release):xilinx-v2019.1
NOTICE:  BL31: Built : 16:43:04, Jul  2 2019
PMUFW:	v1.1


U-Boot 2019.01-dirty (Jul 03 2019 - 13:34:02 +0200)

Model: ZynqMP ZCU102 Rev1.0
Board: Xilinx ZynqMP
DRAM:  4 GiB
EL Level:	EL2
Chip ID:	zu9eg
MMC:   mmc@ff170000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Bootmode: LVL_SHFT_SD_MODE1
Reset reason:	EXTERNAL 
Net:   ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id

Warning: ethernet@ff0e0000 using MAC address from ROM
eth0: ethernet@ff0e0000
Hit any key to stop autoboot:  0 
ZynqMP> run sdboot
!!!
!!! Booting cmd is deprecated (will be removed in 2020).
!!! Please move to distro bootcmd.
!!!
switch to partitions #0, OK
mmc0 is current device
Device: mmc@ff170000
Manufacturer ID: 3
OEM: 5344
Name: SL16G 
Bus Speed: 50000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
41288 bytes read in 16 ms (2.5 MiB/s)
18008576 bytes read in 1339 ms (12.8 MiB/s)
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree

 

 

But I think the FDT is ok because:

 

The size of the file is correct (41288 B).

 

It is read and put in memory correctly:

 

ZynqMP> load mmc $sdbootdev:$partid $fdt_addr system.dtb
41288 bytes read in 15 ms (2.6 MiB/s)
ZynqMP> md $fdt_addr
800f00000: edfe0dd0 48a10000 b8000000 cc870000 .......H........
800f00010: 28000000 11000000 10000000 00000000 ...(............
800f00020: 7c090000 14870000 00000000 00000000 ...|............
800f00030: 00000000 00000000 00000000 00000000 ................
800f00040: 00000000 00000000 00000000 00000000 ................
800f00050: 00000000 00000000 00000000 00000000 ................
800f00060: 00000000 00000000 00000000 00000000 ................
800f00070: 00000000 00000000 00000000 00000000 ................
800f00080: 00000000 00000000 00000000 00000000 ................
800f00090: 00000000 00000000 00000000 00000000 ................
800f000a0: 00000000 00000000 00000000 00000000 ................
800f000b0: 00000000 00000000 01000000 00000000 ................
800f000c0: 03000000 39000000 00000000 786e6c78 .......9....xlnx
800f000d0: 6e797a2c 2d706d71 3175637a 722d3230 ,zynqmp-zcu102-r
800f000e0: 2e317665 6c780030 7a2c786e 6d716e79 ev1.0.xlnx,zynqm
800f000f0: 637a2d70 32303175 6e6c7800 797a2c78 p-zcu102.xlnx,zy

 

 

This is a capture from the file opened with GHex:
Selection_079.png

I was compiling the DTS sources with the dtc of my host:

arturopg@arturopg-PC-xub:~$ dtc --vers
Version: DTC 1.4.0

But I've also tried with the DTB delivered with the release: 2019.1-zcu102-release.tar.xz that I found in: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/135364615/Zynq+2019.1+Release

Any help would be appreciated.

 

Regards,

Arturo.

 

 

1 Solution

Accepted Solutions
Observer arturo_pg
Observer
753 Views
Registered: ‎10-07-2016

Re: [U-boot v2019.1] ERROR: Did not find a cmdline Flattened Device Tree

Jump to solution

I was causing the problem because I was changing the addresses where the kernel Image and dtb are loaded in RAM by the u-boot.

With the v2019.1 the kernel Image is around 18MB

With the v2018.1 the kernel Image is around 14MB

As I was using old addresses:

First, the dtb was loaded in RAM. Then It was being overwritten with the kernel Image

 

 

2 Replies
Observer arturo_pg
Observer
758 Views
Registered: ‎10-07-2016

Re: [U-boot v2019.1] ERROR: Did not find a cmdline Flattened Device Tree

Jump to solution

I just realesed that this problem doesn't appear when an older kernel Image is used. I mean, generating the kernel Image with the linux-xlnx repo set in the tag v2018.1 instead of using the v2019.1.

0 Kudos
Observer arturo_pg
Observer
754 Views
Registered: ‎10-07-2016

Re: [U-boot v2019.1] ERROR: Did not find a cmdline Flattened Device Tree

Jump to solution

I was causing the problem because I was changing the addresses where the kernel Image and dtb are loaded in RAM by the u-boot.

With the v2019.1 the kernel Image is around 18MB

With the v2018.1 the kernel Image is around 14MB

As I was using old addresses:

First, the dtb was loaded in RAM. Then It was being overwritten with the kernel Image