i.mx6q boot mode dynamicly change

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.mx6q boot mode dynamicly change

跳至解决方案
1,111 次查看
cgperson
Contributor II

Hi,

   In my new design with i.mx6q processor, user can not change the boot mode manually because the mainboard with ARM is installed in a box which not allowed to open. Then I have to find a way to change these boot mode pins in system.

   I need to upload the new linux image to ARM by USB otg connect to PC, then dynamicly switch all boot modes to support emmc boot mode which is the normal boot mode. I can provide several GPIOs on a USB bridge chip which controlled by USB host as boot mode control pins. 

   This is a very original idea. Are these any guidence to support my solution? Simply, I need to connect USB cable to upload linux image to ARM, as soon as I disconnect the cable and restart the ARM, it should be boot from emmc.

标签 (1)
1 解答
969 次查看
turker
Contributor IV

There is a bmode command for U-Boot to force booting from another media. It might be helpful in your case.

在原帖中查看解决方案

0 项奖励
6 回复数
970 次查看
turker
Contributor IV

There is a bmode command for U-Boot to force booting from another media. It might be helpful in your case.

0 项奖励
969 次查看
cgperson
Contributor II

These 2 registers are read only according to maunal. 

But this is a new tip : software reset!

Is these any register can be configured and override boot mode pins? 

Simply, I can do this produres : insert a SD card with new image -> trigger the software to generate a reset -> boot from SD card and upload the image to emmc which is the default boot device -> recover to emmc root and then work in normal operations.

Tablet PC support this upload. So that i.mx6 should also support this. Any solution to this? 

0 项奖励
969 次查看
igorpadykov
NXP Employee
NXP Employee

this is not Tablet PC and quite different product,

unfortunately there is no any register for overriding boot mode pins and software

(or any other kind of it) will not help.

Some processors, like i.MX6SL have "SD/MMC Manufacture Mode"

which may be helpful in implementing such kind of task.

Best regards
igor

969 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Jie

as possible workaround one can try to write manually new

boot mode to SRC_SBMR1,2 registers described in Chapter
System Reset Controller (SRC) Reference Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
969 次查看
cgperson
Contributor II

These 2 registers are read only according to maunal. 

But this is a new tip : software reset!

Is these any register can be configured and override boot mode pins? 

 

Simply, I can do this produres : insert a SD card with new image -> trigger the software to generate a reset -> boot from SD card and upload the image to emmc which is the default boot device -> recover to emmc root and then work in normal operations.

 

Tablet PC support this upload. So that i.mx6 should also support this. Any solution to this? 

0 项奖励
969 次查看
igorpadykov
NXP Employee
NXP Employee

I am afraid there is no any register for overriding boot mode pins.

0 项奖励