booting from SD1

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

booting from SD1

Jump to solution
4,357 Views
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?

Labels (3)
Tags (1)
0 Kudos
Reply
1 Solution
3,390 Views
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.

View solution in original post

0 Kudos
Reply
8 Replies
3,390 Views
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 Kudos
Reply
3,390 Views
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 Kudos
Reply
3,390 Views
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 Kudos
Reply
3,390 Views
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 Kudos
Reply
3,390 Views
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,391 Views
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 Kudos
Reply
3,390 Views
michaeldiamond
Contributor III

Here is the 2190000

adress3.png

0 Kudos
Reply
3,390 Views
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 Kudos
Reply