title: Debugging u-boot
body: <p>I am using NXP-S32G evaluation board and try to debug u-boot before and after relocation. I build uboot with configs/s32g274aevb_qspi_defconfig.</p>
  <p>1- The entry point in the elf file is CONFIG_SYS_TEXT_BASE = 0x34020000 but the flashing address of u-boot.bin is 0x24400, so how would it be possible to debug before relocation is done? the addresses in the image and in the elf file are not matching ?, is there a specific procedure or configuration that should be done ?</p>
  <p>2- I am a bit confused about CONFIG_SYS_TEXT_BASE, <a href="https://source.denx.de/u-boot/u-boot/-/blob/HEAD/README#L2388" rel="nofollow noreferrer">here</a> it says that is the flashing address of uboot but <a href="https://stackoverflow.com/questions/55303762/relationship-between-u-boot-config-sys-text-base-and-sdram">here</a> it says that is the adress in RAM where uboot gets copied after relocation, so what is the right answer</p>