To launch the U-boot using the serial download mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

To launch the U-boot using the serial download mode

跳至解决方案
6,645 次查看
daisukekitsunai
Contributor I

Hello

Now, I have been developing a custom board based on MX53QSB.

I want to start U-boot using the serial download mode.

Does anyone know a way to anyone?

标签 (1)
0 项奖励
回复
1 解答
5,354 次查看
Yuri
NXP Employee
NXP Employee

It is possible to use the ATK toolkit (recent version – 1.71) to load and

run U-boot via UART port of the i.MX53.

https://www.freescale.com/webapp/Download?colCode=IMX_ADVANCEDTOOLKIT&location=null

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX25PDK&fpsp=1&tab=Design_Tools_Tab

To use it, please pay attention on the following :

1. It is needed to apply “Custom Initial File” for DRAM initialization.

2. Internal i.MX53 serial bootloader requires, that the flash header (IVT, DCD and the Boot Data strictures)

    is provided first in loaded data stream. Let me remind, the U-boot contains these structures at offset

   0x400 of its image. Therefore the next may be done :

   2.1. Remove first 0x400 bytes from u-boot image (no-padding u-boot images).

          One can use dd command :

          dd if=./u-boot.bin of=./u-boot-no-padding.bin bs=1024 skip=1 

   2.2. Load (start) address of U-boot (when using download command on the ATK) should be set as 0x7780_0400.

在原帖中查看解决方案

0 项奖励
回复
10 回复数
5,354 次查看
daisukekitsunai
Contributor I

I have successfully started the u-boot.

Well when I went to use the u-boot image that  remove the IVT table to be used on the iram.

0 项奖励
回复
5,354 次查看
Yuri
NXP Employee
NXP Employee

You may try the enclosed MFG configuration.

0 项奖励
回复
5,354 次查看
daisukekitsunai
Contributor I

I have received from you using the application, but this application did not work properly.

My development board that was not recognized by the PC as a device USB.

Is there a way to launch the U-boot using a serial cable?

0 项奖励
回复
5,355 次查看
Yuri
NXP Employee
NXP Employee

It is possible to use the ATK toolkit (recent version – 1.71) to load and

run U-boot via UART port of the i.MX53.

https://www.freescale.com/webapp/Download?colCode=IMX_ADVANCEDTOOLKIT&location=null

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX25PDK&fpsp=1&tab=Design_Tools_Tab

To use it, please pay attention on the following :

1. It is needed to apply “Custom Initial File” for DRAM initialization.

2. Internal i.MX53 serial bootloader requires, that the flash header (IVT, DCD and the Boot Data strictures)

    is provided first in loaded data stream. Let me remind, the U-boot contains these structures at offset

   0x400 of its image. Therefore the next may be done :

   2.1. Remove first 0x400 bytes from u-boot image (no-padding u-boot images).

          One can use dd command :

          dd if=./u-boot.bin of=./u-boot-no-padding.bin bs=1024 skip=1 

   2.2. Load (start) address of U-boot (when using download command on the ATK) should be set as 0x7780_0400.

0 项奖励
回复
5,354 次查看
daisukekitsunai
Contributor I

I went to work as procedure, I did not start u-boot.

IVT of u-boot.bin that I use is shown below.

Is there something wrong?

/*TEXT_BASE=77800000*/

ivt_header:             .long 0x402000D1/* Tag=0xD1, Len=0x0020, Ver=0x40 */

app_code_jump_v:        .long (0xF8006000 + (plugin_start - TEXT_BASE))

reserv1:                .long 0x0

dcd_ptr:                .long 0x0

boot_data_ptr:          .long (0xF8006000 + (boot_data - TEXT_BASE))

self_ptr:               .long (0xF8006000 + (ivt_header - TEXT_BASE))

app_code_csf:           .long 0x0

reserv2:                .long 0x0

boot_data:              .long 0xF8006000

image_len:              .long (3 * 1024)

plugin:                 .long 0x1

/* Second IVT to give entry point into the bootloader copied to DDR */

ivt2_header:            .long 0x402000D1/*Tag=0xD1, Len=0x0020, Ver=0x40 */

app2_code_jump_v:       .long _start   /* Entry point for the bootloader */

reserv3:                .long 0x0

dcd2_ptr:               .long 0x0

boot_data2_ptr:         .long boot_data2

self_ptr2:              .long ivt2_header

app_code_csf2:          .long 0x0

reserv4:                .long 0x0

boot_data2:             .long TEXT_BASE

image_len2:             .long  _end_of_copy - TEXT_BASE + CONFIG_FLASH_HEADER_OFFSET

plugin2:                .long 0x0

0 项奖励
回复
5,354 次查看
Yuri
NXP Employee
NXP Employee

This is standard U-boot flash_header.

As for the issue :
please try the enclosed (for the QSB).

5,354 次查看
daisukekitsunai
Contributor I

My custom board has started me on u-boot.bin attach your.

I attach the u-boot.bin that was created for me.

Is there something wrong?

Also, I was a self-made file transfer program.

When a custom board failed to start u-boot, it came back as status 0x33333333.

Do you something helpful?

0 项奖励
回复
5,354 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,daisukekitsunai,

    On imx53QSB, there is a position for 10-pin switch (SW1), by default, this switch is removed. If you can find one , you can add it to the board. If not, you can solder 2 lines , one is pin 11, the other is pin10, then connect them together, BOOT_MODE0 and BOOT_MODE1 pin on CPU will be pulled up to 1.8V, It means you can use usb download mode now.

after you burn images into SD card, you disconnect these 2 lines, BOOT_MODE1 and BOOT_MODE0 will be pulled down to LOW, it means board can boot by internal mode.

    So, BOOT_MODE1 and BOOT_MODE0 are both high , you can burn images by mfg tool. these 2 pin are both low, you can boot the board normally.

Regrads,

Weidong

0 项奖励
回复
5,354 次查看
Yuri
NXP Employee
NXP Employee

On the i.MX53 QSB default boot mode is SD boot, therefore - when SD is not present - this considered as a SD boot error
and internal serial bootloader in entered automatically.

0 项奖励
回复
5,354 次查看
daisukekitsunai
Contributor I

Thank you for the information.

However, my development board that is a custom board based on MX53.

Resistance to switch the boot mode, I can not peel off, so the chip resistor.

Because it was not written correctly U-boot to NAND device, it has become unbootable.

I want to start a U-boot in serial download mode in order to solve this problem.

0 项奖励
回复