Hi John,
The suggestion you provided solved the issue in the example design provided by trenz.
When I tried to make the same change to my custom design (adapted from trenz),
the imageub_addr changes from 0x10000000 to 0x8000000
but the boot process is still halting (indefinitely) while loading the Ramdisk as shown below.
U-Boot 2020.01 (Jul 21 2021 - 12:22:46 +0000)
CPU: Zynq 7z020
Silicon: v3.1
DRAM: ECC disabled 1 GiB
Flash: 0 Bytes
NAND: 0 MiB
MMC: mmc@e0100000: 0
In: serial@e0000000
Out: serial@e0000000
Err: serial@e0000000
Net:
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr 0, interface rgmii-id
Warning: ethernet@e000b000 using MAC address from DT
eth0: ethernet@e000b000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
2010 bytes read in 22 ms (88.9 KiB/s)
## Executing script at 03000000
11549096 bytes read in 647 ms (17 MiB/s)
## Loading kernel from FIT Image at 08000000 ...
Using 'conf@system-top.dtb' configuration
Verifying Hash Integrity ... OK
Trying 'kernel@1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x080000f8
Data Size: 4327792 Bytes = 4.1 MiB
Architecture: ARM
OS: Linux
Load Address: 0x00200000
Entry Point: 0x00200000
Hash algo: sha256
Hash value: 6bd266db40ac3f6752d7b17b53692980a6e3701c6b1fe259c81a20bb27a52d40
Verifying Hash Integrity ... sha256+ OK
## Loading ramdisk from FIT Image at 08000000 ...
Using 'conf@system-top.dtb' configuration
Verifying Hash Integrity ... OK
Trying 'ramdisk@1' ramdisk subimage
Description: petalinux-image-minimal
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0x08426278
Data Size: 7197116 Bytes = 6.9 MiB
Architecture: ARM
OS: Linux
Load Address: unavailable
Entry Point: unavailable
Hash algo: sha256
Hash value: 7e879a71c37268ceb7d70344d271484713bf7f956ebe48ef21a2421086093227
Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 08000000 ...
Using 'conf@system-top.dtb' configuration
Verifying Hash Integrity ... OK
Trying 'fdt@system-top.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x08420b74
Data Size: 22071 Bytes = 21.6 KiB
Architecture: ARM
Hash algo: sha256
Hash value: 3dc5567fde128fb2b75f9d6b5c6371389b0cdeca1e348a093c9f4b19da270ea2
Verifying Hash Integrity ... sha256+ OK
Booting using the fdt blob at 0x8420b74
Loading Kernel Image
Loading Ramdisk to 1f922000, end 1ffff1bc ...
What is really puzzling is the specific address to where the Ramdisk loads, I think the address shown below is not valid (as my device has only 256 MB).
I have been trying to find the location from where the address is coming from, but yet to find them.
Do you have some idea from where this address is coming from ?
Loading Kernel Image
Loading Ramdisk to 1f922000, end 1ffff1bc ...
The reason why I am interested in changing the address to which the Ramdisk loads is that,
I have seen that when the example design works the Ramdisk was loading to (0e42b000 - 0eb07fd0) as shown below.
Loading Kernel Image
Loading Ramdisk to 0e42b000, end 0eb07fd0 ... OK
Loading Device Tree to 0e423000, end 0e42ae14 ... OK
Starting kernel ...
Thanks,
Neels