News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

Not QSPI boot with TE0808-04-9BE21-A

Started by mantise, August 18, 2020, 07:32:02 AM

Previous topic - Next topic

mantise

Board : TE0808-04-9BE21-A
Vivado/Petalinux : 2020.1

Hi,

I booted with QSPI with the following settings. However, when I do "saveenv" in boot mode, it does not boot as shown below.
How do I change the petalinux settings to get a normal boot?
I want to change the ip and mac address and save it in the environment.

1. project create "petalinux-create -t project --template zynqMP -n te0808"

2. In petalinux-config default setting, only the following setting was changed.
  -  Subsystem AUTO Hardware Settings --> Advanced bootable images storage Settings -->
     boot image settings --> image storage media (primary flash)
     u-boot env partition settings --> image storage media (primary flash)
     jffs2 rootfs image settings --> image storage media (primary flash)
     dtb image settings --> image storage media (from boot image)
  - DTG Settings --> select "Remove PL from devicetree"

3. In "petinux-conifg -c u-boot" default setting, only the following setting was changed.
  - unselect "Environment is not stored"
  - select "Environment is in SPI flash"


------------boot error message-----------------

U-Boot 2020.01 (Aug 14 2020 - 08:26:40 +0000)

Board: Xilinx ZynqMP
DRAM:  4 GiB
PMUFW:  v1.1
EL Level:       EL2
Chip ID:        zu9eg
NAND:  0 MiB
MMC:   mmc@ff160000: 0
Loading Environment from SPI Flash... SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
OK
In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Net:
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr -1, interface rgmii-id
eth0: ethernet@ff0e0000
Hit any key to stop autoboot:  0
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
device 0 offset 0x3e80000, size 0x80000
SF: 524288 bytes @ 0x3e80000 Read: OK
## Executing script at 20000000
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
device 0 offset 0xf00000, size 0x6400000
SF: 104857600 bytes @ 0xf00000 Read: OK
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'kernel@1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x100000f8
     Data Size:    8135360 Bytes = 7.8 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x00080000
     Entry Point:  0x00080000
     Hash algo:    sha256
     Hash value:   afa7a40bb92af3840824cc23d371faf3cb9599d74bc59ff364a7005c95c73b85
   Verifying Hash Integrity ... sha256+ OK
## Loading ramdisk from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'ramdisk@1' ramdisk subimage
     Description:  petalinux-image-minimal
     Type:         RAMDisk Image
     Compression:  uncompressed
     Data Start:   0x107cb8ac
     Data Size:    8720812 Bytes = 8.3 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    sha256
     Hash value:   8ce810ac28997b94fe0b7d53e59a59a1b48f68eece1593ea5e0f8abcf14eb74b
   Verifying Hash Integrity ... sha256 error!
Bad hash value for 'hash@1' hash node in 'ramdisk@1' image node
Bad Data Hash
Ramdisk image is corrupt or invalid
SCRIPT FAILED: continuing...


JH

Hi,
it  looks like your RAM disk was not correct loaded. See for example:
https://forums.xilinx.com/t5/Embedded-Linux/Booting-Error-Reading-Image-but-not-successful/td-p/894893

We didn't test 20.1 until now. So I can't help much.

We have only 19.2 example design with petalinux template.
All changes we have done are described here:
https://wiki.trenz-electronic.de/display/PD/TE0808+StarterKit#TE0808StarterKit-SoftwareDesign-PetaLinux
--> we have deactivated load environment from QSPI flash on the examples, you must activate again, when you use the template with 19.2 or do not disable this in the uboot config. --> From you description it seems Xilinx has changed default parameter, because you wrote you has enable it after generation a new project.


br
John


mantise

Hi,

Even if I tested it in 19.2, it does not boot.

I want to change and save the ip address in the environment in QSPI.
How can I set it up in 19.2?

JH

Hi,
I thinks you has still some wrong configuration, when you get the same error.

Use our reference design prebuilts, this should boot.

if this works generate a new 19.2 project with the XSA from the reference design and  add all modification we have done (excepted the changes in uboot to disable QSPI environment (default should be QSPI,you can verify with "petalinux -c u-boot" ))
https://wiki.trenz-electronic.de/display/PD/TE0808+StarterKit#TE0808StarterKit-SoftwareDesign-PetaLinux
--> or use our template and activate QSPI enviroment again on petalinux uboot config

With your regenerate image it should be possible to save you environment with uboot commands(https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842223/U-boot) into QSPI flash --> Uboot will search for setup in QSPI flash at first (if QSPI enviroment is enable) before he use the default setup which was configured with petalinux (you can also setup MAC and IP in petalinux config, but in this case it's fix in your image.ub --> only a problem when you use more than one board with this design in one network)

PS: Reference design use EEPROM MAC from one of the EEPROM of TEBF0808 carrier and IP will be requested from Router via DHCP. --> So you has unique MAC and you can setup IP easier with your router --> give fix IP when board request one.

br
John