How can you get the burn address of u-boot.bin on P2020RDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can you get the burn address of u-boot.bin on P2020RDB

1,115 Views
xuchen
Contributor II

   Recently, I am working with P2020, I have a P2020RDB, through with the Code Warrior 10.5.1 TAP + USB,I can burn my board,uboot, linux kernel,initrd,dtb and so on. when i flash the nor flash on board,i can use the flash programer tools in IDE,and the IDE provide the "Flash Configuration File" - P10xx-P20xxRDB_P2020_NOR_FLASH.xml ,below is the content:

<?xml version="1.0" encoding="UTF-8"?>
<TargetTaskFramework GroupFullPath="Root">
<Element Type="TargetTask">
<TargetTask ContextIndex="9" ExecutionContextName="Active Debug Context" ProviderIndex="9" TaskName="P10xx-P20xxRDB_P2020_NOR_FLASH" TaskProvider="Flash Programmer for Power Architecture">
<TaskConfiguration Actions_Count="0" Buffer_Address="0" Buffer_Size="262144" Flash_Base_Address_0="4278190080" Flash_Device_Name_0="S29GL128P" Flash_Device_Organization_0="8Mx16x1" Flash_Devices_Count="1" Flash_Top_Address_0="4294967295" Verify_Memory_Writes="false"/>
</TargetTask>
</Element>
</TargetTaskFramework>

Refer to the P1020_P2020RDB_BSP_User_Manual.pdf, I found the burn address of uboot:0xFFF80000.

pastedImage_2.png

Questions:

1、Flash_Base_Address_0="4278190080" in P10xx-P20xxRDB_P2020_NOR_FLASH.xml ,how to calculate the Flash_Base_Address_0, in an other word, what do you base on to get the base address?

2、In the P1020_P2020RDB_BSP_User_Manual.pdf,uboot burn address FFF80000,how to calculate the uboot burn address, in an other word, what do you base on to get the uboot burn address?

3、I have token a long time on these qeustions, beg an answer in detail!!!!!!!

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

714 Views
bpe
NXP Employee
NXP Employee

>1、Flash_Base_Address_0="4278190080"

>in P10xx-P20xxRDB_P2020_NOR_FLASH.xml, how to calculate the

>Flash_Base_Address_0, in an other word, what do you base on to get the

>base address?

[Platon] P2020 memory map is software-configurable. 4278190080 in

hex is 0xFF000000. This is the base address CodeWarior board initialization

script puts NOR flash at. Refer to P2020RM, Sections 2.3, 12.4.1.1,

12.3.1, 12.3.2

>2、In the P1020_P2020RDB_BSP_User_Manual.pdf, uboot burn address

>FFF80000, how to calculate the uboot burn address, in an other word,

>what do you base on to get the uboot burn address?

>

[Platon] Note that in the newer SDKs the burn address has changed to

0xFFF40000 because u-Boot has grown from 512K to 768K.

Due to the way the core sees the physical address map immediately after

power on, u-Boot should be placed at the top of the Flash memory window.

For this reason,

<u-Boot_burn_address>=CONFIG_SYS_TEXT_BASE-CONFIG_SYS_FLASH_BASE+Flash_Base_Address_0

CONFIG_SYS_FLASH_BASE and CONFIG_SYS_TEXT_BASE are macros defined in

include/configs/<your_board>.h. More details can be found in

P2020RM, Sections 12.4.2.5, 4.5.3.4, 4.3.3.

>3、I have token a long time on these qeustions, beg an answer in

>detail!!!!!!!

[Platon] Please refer to the documentation mentioned above for additional

details.


Have a great day,

Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------