booting from SD1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
4,361件の閲覧回数
michaeldiamond
Contributor III

Have a custom imx6D board.  We are able to boot it using usb boot tool from boundary devices.  When we place the u-boot in the 1k spot of the sd card (dd if=u-boot.imx of=/dev/sd? bs=1k seek=1)  the board does nothing.  I have the dip switches that the sabre SD board has and have them configured as 01000100.  The console just remains blank.  Can anyone help with this?

ラベル(3)
タグ(1)
0 件の賞賛
返信
1 解決策
3,394件の閲覧回数
michaeldiamond
Contributor III

Thank you for your help.  I was able to get this resolved.  I had to do two things to get it to boot.

1.  loading the SD card was done differently.

# assuming CONFIG_ENV_IS_IN_MMC, CONFIG_ENV_OFFSET=384KB, CONFIG_ENV_SIZE=8KB

dd if=/dev/zero of=/dev/sdc bs=512 seek=768 count=16 ;# erase uboot env at 768*512 bytes and len of 16*512 bytes

# u-boot.imx must be at offset 0x400 of boot device for booting form sd and is in the current directory.

dd if=u-boot.imx of=/dev/sdc bs=512 seek=2 ;# write uboot


2. We found a hardware issue with the SD card holder.  We had two different boards that were not working but had different issues with them.  Got them fixed and now it boots.

元の投稿で解決策を見る

0 件の賞賛
返信
8 返答(返信)
3,394件の閲覧回数
LeonardoSandova
Specialist I

I think is the same on Dual but on Quad, these are the SD ports and dip switches:

SD3 = 010..010

SD2 = 10....010

0 件の賞賛
返信
3,394件の閲覧回数
michaeldiamond
Contributor III

I think you and I have the same just different order of pins.

I have

sd1 = 01000100 (EIMDA7,EIMDA6,EIMDA5,EIMDA4,EIMDA14,EIMDA13,EIMDA12,EIMDA11)

sd2 = 01000101

sd3 = 01000110

I only have an sd card hooked to sd1.

My boot mode is set to mode0 = 0

mode 1 = 1.

0 件の賞賛
返信
3,394件の閲覧回数
AnsonHuang
NXP Employee
NXP Employee

Hi, Michael

     When boot fail, were you able to attach the SOC using JTAG, if yes, can you please help dump some data for me? the physical address of 0x902190 ~ 0x9021f0. Thanks.

0 件の賞賛
返信
3,394件の閲覧回数
michaeldiamond
Contributor III

I think this might be what you asked for.

adress.png

And this is what it was after I booted it from USB puting the u-boot image into RAM.

adress2.png

0 件の賞賛
返信
3,394件の閲覧回数
AnsonHuang
NXP Employee
NXP Employee

Hi, Michael

     From this log, I can see that the boot device is indeed from SD1, the failure reason is ROM_LOG_DEVICE_INIT_FAIL, that means SD1 device init failed. I wonder whether this boot fail is everytime fail or just randomly? ANd, can you help dump the USDHC1's register? We want to know the SD init fail at what command. 0x2190000 ~ 0x2190020.

3,395件の閲覧回数
michaeldiamond
Contributor III

Thank you for your help.  I was able to get this resolved.  I had to do two things to get it to boot.

1.  loading the SD card was done differently.

# assuming CONFIG_ENV_IS_IN_MMC, CONFIG_ENV_OFFSET=384KB, CONFIG_ENV_SIZE=8KB

dd if=/dev/zero of=/dev/sdc bs=512 seek=768 count=16 ;# erase uboot env at 768*512 bytes and len of 16*512 bytes

# u-boot.imx must be at offset 0x400 of boot device for booting form sd and is in the current directory.

dd if=u-boot.imx of=/dev/sdc bs=512 seek=2 ;# write uboot


2. We found a hardware issue with the SD card holder.  We had two different boards that were not working but had different issues with them.  Got them fixed and now it boots.

0 件の賞賛
返信
3,394件の閲覧回数
michaeldiamond
Contributor III

Here is the 2190000

adress3.png

0 件の賞賛
返信
3,394件の閲覧回数
michaeldiamond
Contributor III

I have been unsuccessful and getting JTAG to function.  I have a j-link but have never used it outside of a development environment like codewarrior.  I started trying to use openocd but could not get it to connect.  If someone had a quick start guide for openocd with a imx6 board that would be great.

0 件の賞賛
返信