IMX 6 boot from micro SD

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX 6 boot from micro SD

5,279件の閲覧回数
dmitriykornoush
Contributor III

Can imx6 boot from microSD? I mean from demo images from freescale site.

I tried this

sudo dd if=u-boot-mx6q-sabreauto.bin of=/dev/sdb1 bs=512 seek=2 skip=2 conv=fsync

to micro SD.

But no any on console after swith on board

ラベル(1)
0 件の賞賛
返信
13 返答(返信)

4,028件の閲覧回数
luea
Contributor II

Hi!why I can't get the  u-Boot-mx6q-sabreauto.bin ,how did you get it?Hope to your repsponse.

0 件の賞賛
返信

4,028件の閲覧回数
dmitriykornoush
Contributor III

I found, my custom board have 4bit micro SD, not 8bit as MX6Q_sabreauto.

I made board port from MX6Q_sabreauto, change to 4bit sd, change debug uart pins. But board still not boot. I can not view anything over debug UART.

So, can MX6Q u-boot work on MX6D CPU? I have MX6D CPU on my board

Maybe, I need make port from sabrelite config, it has 4bit SD and same debug uart ports. But I tried u-boot-MX6Q-, u-boot-MX6DL-, u-boot-MX6Solo- images from freescale site. Nothing not booted on my custom board

0 件の賞賛
返信

4,028件の閲覧回数
RodBorras
NXP Employee
NXP Employee

You mentioned here above that you managed to boot Android from the uSD.

Could you please tell us which image you used?

Did it have a separate U-Boot + Kernel, or a combined boot.img?

Somehow, the U-Boot from that Android image worked for you.

0 件の賞賛
返信

4,028件の閲覧回数
dmitriykornoush
Contributor III

now switches same as for android, I`m only write Linux images to the micro SD

0 件の賞賛
返信

4,028件の閲覧回数
RodBorras
NXP Employee
NXP Employee

Thank you for posting the hexdump.

The file is clearly a padded U-Boot, so your first command (seek=2 skip=2) is correct, as long as it is done on the SD card (/dev/sdb) and not on the partition (/dev/sdb1).

Please note that there are parts of U-Boot that are Hardware-specific. If you have a custom board, you will need to customize those sections, and recompile U-Boot.

The Freescale image will not work on your board, unless your HW is pretty much identical.

It sounds like you got lucky on the previous version(s) of U-Boot that you tried, and unlucky on u-boot-mx6q-sabreauto.bin.

0 件の賞賛
返信

4,028件の閲覧回数
dmitriykornoush
Contributor III

22.jpeg.jpg

0 件の賞賛
返信

4,028件の閲覧回数
fabio_estevam
NXP Employee
NXP Employee

Are you trying to boot mx6qsabreauto or a custom board?

Regards,

Fabio Estevam

0 件の賞賛
返信

4,028件の閲覧回数
SergioSolis
NXP Employee
NXP Employee

Rod is right.

MicroSD and the SD are the exact same thing (with exception of the card size) so you can boot from micro SD without problems. Please try Rod's solution and let us know how it went.

0 件の賞賛
返信

4,028件の閲覧回数
dmitriykornoush
Contributor III

I tried it, but result is same. Not boot

0 件の賞賛
返信

4,028件の閲覧回数
RodBorras
NXP Employee
NXP Employee

OK. Maybe you are trying to remove the padding of a U-Boot file that has no padding.

Could you please share the results of:

hexdump u-boot-mx6q-sabreauto.bin

We need the first 64 bytes starting at address 0x0000_0000:

- should be mostly zeros except for 32 bits

And also the first 64 bytes starting at address 0x0000_0400:

- should start with 00D1 4020

If the 00D1 4020 actually shows up in the first section (0x0000_0000) then you have a no-padded U-boot, and you have to omit the skip=2

Please advise.

0 件の賞賛
返信

4,028件の閲覧回数
dmitriykornoush
Contributor III

Yes, custom board. Before I tried boot Android images from this micro sd. All were ok

I tried non-padding without "skip=2". Same result

0 件の賞賛
返信

4,028件の閲覧回数
LeonardoSandova
Specialist I

the next naive question is: are you setting the correct switches?

0 件の賞賛
返信

4,028件の閲覧回数
RodBorras
NXP Employee
NXP Employee

Dmitriy,

U-Boot needs to be copied to the beginning of the SD card (i.e. /dev/sdb) and not to the beginning of a partition (i.e. /dev/sdb1).

Please try it again, by omitting the "1".

Regards,

Rod.

0 件の賞賛
返信