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?
解決済! 解決策の投稿を見る。
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.
I think is the same on Dual but on Quad, these are the SD ports and dip switches:
SD3 = 010..010
SD2 = 10....010
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.
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.
I think this might be what you asked for.
And this is what it was after I booted it from USB puting the u-boot image into RAM.
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.
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.
Here is the 2190000
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.