Problem while debugging RAM based u-boot image on P1022 based custom board

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

Problem while debugging RAM based u-boot image on P1022 based custom board

965 Views
senthil_k
Contributor I

Hi,

 

We are using SDK version 1.6, codewarrior 10.4 and uSB tap to bringup our P1022 processor based custom board.

 

Through codewarrior, uboot elf file is successfully copied to DDR location 0x11000000 and while trying to execute from _start address 0x11001000 we are getting exception in fdt_fixup_phy_connection() function of fdt.c file.

 

I had attached the init script file used to initialize the core before downloading the u-boot image.

 

Please let us any correction needs to be done either in this init script file or in the u-boot source to successfully boot the u-boot image from RAM through codewarrior.

Original Attachment has been moved to: P1022DS_init_core.tcl.zip

Labels (1)
0 Kudos
1 Reply

410 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Senthilkumar R,

In the above scenario, the LAW and MMU TLB configuration in CW initialization file will affect the following u-boot execution. In PowerPC architecture, after the target resets, u-boot starts executing in the 4K boot page range at 0xFFFFF000, this default TLB entry is configured by hardware. It is recommended to run and debug u-boot from NOR/NAND/SPI flash or SD card, then follow the application note CodeWarrior U-Boot Debugging  to debug u-boot.

If you still want to debug u-boot from DDR RAM, please try this method.

Please modify CONFIG_SPL_TEXT_BASE as 0x11001000 in include/configs/P1022DS.h, then rebuild u-boot image, and download the image P1022DS_SDCARD_config/u-boot-with-spl.bin to DDR RAM.

Please custom the CW initialization file to only keep CCSR and DDR LAW and TLB configuration sections, after download the u-boot image to DDR, please clear CCSR TLB configuration from CodeWarrior IDE, only including TLB configuration for DDR  memory to execute the code from DDR.


Have a great day,
Yiping

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

0 Kudos