LX2160ARDB dual boot with secure boot enable

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

LX2160ARDB dual boot with secure boot enable

ソリューションへジャンプ
1,748件の閲覧回数
jackho
Contributor III

Hi,

We want to implement dual boot on LX2160ARDB by using uboot env variables(devpart_boot and devpart_root) to switch different kernel and roofs, but we also need secure boot feature, does secure boot allow us to modify uboot environment to implement dual boot function?

Thank you.

Jack

0 件の賞賛
1 解決策
1,687件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Yes, you can modify u-boot environment with fw_setenv in Linux under secure boot mode.

元の投稿で解決策を見る

0 件の賞賛
6 返答(返信)
1,741件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Under secure boot mode, the user isn't allowed to enter u-boot prompt to modify u-boot environment variables.

0 件の賞賛
1,736件の閲覧回数
jackho
Contributor III

Hi,

Thank you for your reply,

If so, do you have any suggestion in this case, if we want to support both dual boot and secure boot function.

Thank you.

Jack

 

0 件の賞賛
1,714件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

You could add u-boot environment variable in variable "CONFIG_EXTRA_ENV_SETTINGS" in include/configs/lx2160ardb.h in u-boot source code, then rebuild u-boot image.

0 件の賞賛
1,703件の閲覧回数
jackho
Contributor III

Hi @yipingwang,

Thanks for the reply, 

Is that means I can use fw_setenv to dynamic change devpart_boot or depart_root value?

Thank you.

Jack 

 

0 件の賞賛
1,688件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Yes, you can modify u-boot environment with fw_setenv in Linux under secure boot mode.

0 件の賞賛
1,387件の閲覧回数
jackho
Contributor III

Hi yipingwang,

We try to use fw_setenv to write uboot environment variable with secure boot mode, variable can be written and use fw_printenv read out correctly , but it seems uboot didn't eat the variable, like depart_boot and devpart_root, we need use fw_setenv modify this two parameters to runtime switch boot partition, but it seems not working on secure boot, do you have any suggestion?  

Thank you

Jack

0 件の賞賛