i.MX6Q booting problem

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

i.MX6Q booting problem

1,563 Views
hammal
Contributor I

Hi,

I am working on a custom i.MX6Q board and having problem with booting the board from the SD3. The USB OTG is not accessible in this board and I am using JTAG/OpenOCD for debugging. How can I read the BOOT_MODE/BOOT_CFG values for verifying the selected boot device. I dumped the Boot_data (mdb 0x902190 256) which changes when I change the boot setting using onboard Dip switch. dumped boot rom data is :

0x00902190: 02 00 01 00 f0 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 05 00 06 00 00 00 07 00 f0 00 07 00

0x009021b0: 00 00 09 00 33 05 0a 00 ff 1f 06 00 00 00 0c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x009021d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x009021f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00902210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00902230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00902250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00902270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

How can figure out the boot setting from the log?

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

1,144 Views
AlanZhang
Contributor V

Hi, Hammal,

First, I do not know OpenOCD/JTAG can do the correct connection to the debug unit inside i.MX6, so what you see maybe not the correct information. Usually, Trace32 is the tool.

Second, pls use osc to capture the bootmode pin w/ reset signal to see whether the bootmode for SD boot is correct.

Third, check your power-on sequence to see whether the seq is ok.

Fourth, do DDR stress test.

Fifth, insert GPIO output 1 on some optional GPIO pins in your uboot code, that will help u to see where  has been gone w/o printf enabling.

After you do the above  steps, you can locate where is the "not-bootup" issue.

Regards,

Alan Zhang

1,144 Views
AlbertT
Contributor V

Hi,

I am not sure to understand well your issue. You can configure the way the board boots using the dip switch, if you look into the Linux User's Guide of your board you will see the configuration to boot from SD. For instance, using a Sabre SD it will be switch 2 & 7 ON and others set to OFF.

0 Kudos
Reply

1,144 Views
YixingKong
Senior Contributor IV

Albert, please click Correct Answer/Helpful Answer, if your question has been answered.

Thanks,

Yixing

0 Kudos
Reply