Hi all,
I am using Lauterbach trace32 debugger with T4240RDB for flashing. I want to flash u-boot-spl.bin using sram.
I have the doubt in flash bass address. For lauterbach script which address want to use.
From QORIQ-SDK-2.0-IC-REV0.pdf
4.4.20.6 System Memory Map
0xfe0000000 - 0xfe7ffffff - IFC - NOR Flash
4.4.20.7 Flash Bank Usage
0xE8000000 - 0xEFFFFFFF
Thanks, VinothS
已解决! 转到解答。
Hi Matthias,
Thank you for reply.
My board have ddr controller issue. So, now I am using sram flash.
I generate u-boot-spl.bin (163.8KB) for u-boot debugging purpose and I check this map address (EFF40000) from u-boot-spl.map and I flash this binary into same memory location 0xEFF40000 - 0xEFFFFFFF.
Flash was done properly. Now, I start u-boot debugging.
If it possible please provide fix for this thread,
Lauterbach Trace32 Debugger with T4160RDB-64b
https://community.nxp.com/thread/494768
Regards, VinothS
Hello VinothS,
use the script in <your installation directory>\demo\powerpc64bit\hardware\qoriq_t4\all_boards\flash_cfi.cmm to prepare the flash process.
Answer the dialog "program now" with no and you will see the memory map of the flash in the Flash.List window.
You will see your 128MB flash, starting at F8000000 and ending at the end of the 32bit address range.
As your PC will start at 0xFFFFFFFC you have to flash your u-boot binary at the end of this 32bit address range.
The size of u-boot is 512KB, which means your starting address to flash this binary will be 0xFFF80000.
Use "FLASH.ReProgram ALL" to activate flash programming with check of sectors, then
Data.LOAD.Binary <path to u-boot binary> 0xFFF80000
You will then see changing sectors as "pending now" in the Flash.List window.
Using another "FLASH.ReProgram" command afterwards, the "pending" sectors will be flashed.
For more questions about the debugger, please contact us directly via support@lauterbach.com
Best regards,
Matthias
Hi Matthias,
Thank you for your reply.
https://community.nxp.com/message/807635?commentID=807635#comment-807635
And I am following this thread according to this I configured NOR Flash device connected to CS0 as 0xE8000000
If it possible please provide the default location of RCW for Flash (or) please check my thread,
How to flash RCW binary/ Hard-coded RCW using lauterbach
Regards, VinothS
Hi VinothS,
please follow my descriptions, it's just another address mapping in the script.
The NOR will be mapped to end of 32bit address range minus flash size (see inside).
The RCW is in the starting sector of the flash, in this case at 0xF8000000.
It won't work if you access non mapped address ranges as described in your other threads (0xE8yyyyyy).
Regards,
Matthias
Hi Matthias,
Thank you for your reply.
I am using fresh board and I want to flash and boot u-boot alone.
In my case If NOR flash base address is 0xE8000000
As per document (https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf) for U-boot,
For RCW -> 0xE8000000
and U-boot -> 0XEFF40000
Is it wright ?
Regards,
VinothS
Hi VinothS,
as you can read in your linked document, the bootloader even maps the NOR Flash to 0xFE8000000..
We us the same method in our flash_cfi.cmm scripts to map it to 0xF8000000.
Please read the chapter "Integrated Flash Controller (IFC)" in your processor reference manual to get an idea how it works and / or simply follow the description above (https://community.nxp.com/message/1108357?commentID=1108357&et=watches.email.thread#comment-1102911) to flash your u-boot binary. If you u-boot is 768KB as described you flash it to 0xFFF40000.
Regards,
Matthias
Hi Matthias,
Thank you for reply.
My board have ddr controller issue. So, now I am using sram flash.
I generate u-boot-spl.bin (163.8KB) for u-boot debugging purpose and I check this map address (EFF40000) from u-boot-spl.map and I flash this binary into same memory location 0xEFF40000 - 0xEFFFFFFF.
Flash was done properly. Now, I start u-boot debugging.
If it possible please provide fix for this thread,
Lauterbach Trace32 Debugger with T4160RDB-64b
https://community.nxp.com/thread/494768
Regards, VinothS