FIT image parameters question - kernel load address, entry point.

Lev Olshvang lev_o at rad.com
Tue Apr 9 20:55:17 CEST 2024


Hi List,

My board - Armada 3720 Expressobin extended with marvell switch and couple of other network interfaces,  running Linux 4.19

Our platform has 2GB RAM,
TIM-1.0
WTMI-armada-17.10.5-7de3572
WTMI: system early-init

DDR topology parameters:
========================
ddr type               DDR3
ddr speedbin           12
bus width              16-bits
cs num                 2
  cs[0] - group num    0
  cs[0] - bank num     8
  cs[0] - capacity     1024MiB
  cs[1] - group num    0
  cs[1] - bank num     8
  cs[1] - capacity     1024MiB
SVC REV: 5, CPU VDD voltage: 1.143V

DRAM windows:
=============
WIN[0] - base addr     0x60000000
WIN[0] - size          0x40000000
WIN[1] - base addr     0xa0000000
WIN[1] - size          0x20000000

=================== 

Recently I spent several days trying to figure out what kernel load address and entry point to use as  FIT image parameters.

I started by  adding printk to arch/arm64/mm/mmu.c:436 and  got kernel start address 0x80000 when board was booted from /boot/Image

I then put FIT image into memory 0x500000 and applied bootm  with a single argument - bootm  0x5000000
Uboot successfully verified signature but freeze after messages
>    Loading Kernel Image ... OK
>    Using Device Tree in place at 0000000004f00000, end 
> 0000000004f05c7e
>
> Starting kernel ...

Kernel is compiled with RELOCATABLE config on,
Some uboot specialists make claim that the memory is corrupted, but there are no other running actors

So I return to my questions :
Question 1. What is the magic, how load address and entry could be figured ?
                      I tried more then 20 different addresses to no success, except thet some addresses immediately reset board
Question 2. What should I choose as load fdt address?
Question 3. On what address FIT image should be loaded, I load it with tftp command?
Question 4. What form of bootm command to use; cause bootm may accept 3 parameters
                  (fortunately IU do not have initrd)
Question 5. I cconfused by DRAM windows base adddr & size that uboot reports (see 30 lines above)
                      Should I just ignore it, cause higher up I see 2 banks of 1GB each and I am OK with It.


More information about the U-Boot mailing list