Error with U-Boot download for mpc5125

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

Error with U-Boot download for mpc5125

917 Views
Champaka
Contributor III

We have made a custom board with mpc5125 processor. We want to download U-boot to the nand flash. We are trying it through serial connection (RS232).

After we run the uboot.elf file to the SRAM , few errors are listed in the hyperterminal window. If we try to transfer u-boot-spl-2k and u-boot-second-usb files through kermit protocol (using loadb command), environment variables errors are listed.

We are not able to download U-boot to the nand flash.

How to sort this out ?

Please find the attachment for the terminal window screenshot which has listed the errors.

Labels (1)
0 Kudos
2 Replies

372 Views
Pavel
NXP Employee
NXP Employee

We use u-boot from latest BSP for the TWR-MPC5125 board (http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPC5125&fpsp=1&tab=Design_Tools_Tab#).

1)”u-boot” file was renamed to “u-boot.elf” file

2) unrar the twr-mpc5125-pre-compiled-binaries.rar

The “u-boot-spl-2k.bin” and “u-boot-second-usb.bin” files were used from this .rar

3) copy the “u-boot.elf”, “u-boot-spl-2k.bin”, “u-boot-second-usb.bin” and “5125-TWR_init.cfg” files to “D:\BSP\tftpboot” folder.

4) Start a terminal program.

5) Start the CodeWarrior 9.2 for windows.

6) Click "File->Open" in CodeWarrior.

Open “u-boot.elf” file. See “Clipboard02.jpg” file.

Choose USB TAP. See “Clipboard04.jpg” file.

Press “Ok” on “Warning” message. See “Clipboard06.jpg” file.

Press “Cancel” if “Can’t find the file …” windows is appeared.

Set “Ignore all unknown files” and press “Ok”. See “Clipboard08.jpg” file.

Set “CodeWarrior USB TAP” connection. See “Clipboard10.jpg” file.

Assign the “5125-TWR_init.cfg” file as “Target Initialization file”. See “Clipboard12.jpg” file.

Run this project. See “Clipboard14.jpg” file.

7) Stop autoboot in terminal window.

8) Start tftp program and assign this program to “tftpboot” folder. See “Clipboard16.jpg” file.

9) Program loader:

=> tftp 0x4000000 u-boot-spl-2k.bin

=> nand_e 0x00 0x01

=> nand_loader 0x4000000 0x00 0x800

=> nand_r 0x2000000 0x00 0x800

=> md 0x2000000

10) Program u-boot:

=> tftp 0x4000000 u-boot-second-usb.bin

=> nand_e 0x100 0x1AD (since size of the u-boot-second-usb.bin file is 0x56260)

=> nand_w 0x4000000 0x100 0x56800

=> nand_r 0x2000000 0x100 0x800

=> md 0x2000000

See “Clipboard16.jpg” file.

0 Kudos

372 Views
rameshchandraka
Contributor III

Dear Champaka


you are mixing up two things

1.Erasing and writing binary via USB TAP -->JTAG and  Erasing via u-boot commands like tftp , loadb.

     both are different cases.

2.Seems to be your board having already u-boot in it.

3.seems to be you are not doing protect off all before erase/writing

0 Kudos