How to modify uboot burn address?

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

How to modify uboot burn address?

1,190 Views
jackjiang
Contributor II

Dear,

The board using i.mx6ull, and linux starts from Nandflash.
I used MFGTool to burn Uboot, kernel and rootFS, which can be started normally.
Now I want to modify uboot or kernel burning addresses, but I did not find out how to operate in "IMX6ULLRM" and "i.mx_linux_user 's_Guide", could you help me solve this case?

Looking forward to your reply.

Labels (1)
0 Kudos
8 Replies

964 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jack

NAND uses FCB structure which contains the page address for
primary and secondary boot images. Table 8-11. Flash control block structure
i.MX6ULL Reference Manual describes Firmware1_startingPage: Page number
address where the first copy of bootable firmware is located.
in uboot/include/configs/mx6ul_14x14_evk.h one can check
#define CONFIG_MFG_NAND_PARTITION
Mfg Tool uses ucl2.xml script and kobs-ng for writing uboot to nand partitions.

cafatgithub/imx-kobs - i.MX tool for flashing NAND boot to nand flash 

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

0 Kudos

964 Views
jackjiang
Contributor II

Thanks igorpadykov,

Do we have documentation on which address Uboot or the kernel should burn to?

0 Kudos

964 Views
igorpadykov
NXP Employee
NXP Employee

could you clarify what "address" do you mean ?

Best regards
igor

0 Kudos

964 Views
jackjiang
Contributor II

Now we burn uboot and kernel to Nand Flash, but automatically completes this work by the MFG Tool . Now I want to determine whether we can modify this address by ourselves?

0 Kudos

964 Views
igorpadykov
NXP Employee
NXP Employee

you can look at first answer describing procedure of flashing nand image,

in particular ucl2.xml script. Unfortunately I can not understand what "address" do you mean.

Best regards
igor

0 Kudos

963 Views
jackjiang
Contributor II

For example, MFG burns uboot to 0x100000 of Nand Flash, the system can start normally, but I want to change the address to 0x5000000, what do I need to change? ucl2.xml script? Boot PIN?  Uboot source code?

In addition, if the uboot of i.mx6ull must burn to 0x100000 of Nand Flash, which document has instructions about the Flash Map(Uboot address, kernel address, DTB address, rootfs address etc..)

Thanks.

0 Kudos

964 Views
igorpadykov
NXP Employee
NXP Employee

could you show in documenation or sources where MFG burns uboot to 0x100000.

In general there is no good nand programming documentation, most detailed is Reference Manual.

If "address" question refers to uboot addresses one can look at some uboot explanations:

arm - Understanding Linux load address for U-Boot process - Stack Overflow 

Best regards
igor

0 Kudos

964 Views
jackjiang
Contributor II

Thanks Igorpadykov ,

Our concerns are as follows:

Actually, booting from nand flash , we found out the uboot should be located at 0x100000 in the nand flash.
The address should be modify to any other address, we hope that the uboot can be located in the first nand flash block.

0 Kudos