How to pass the environment variables set in u-boot to a driver?

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

How to pass the environment variables set in u-boot to a driver?

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

On the i.MX8MP platform, with Linux 6.1, after setting environment variables using setenv in u-boot, how to pass these parameters to a driver?

0 件の賞賛
返信
1 解決策
1,562件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport


Hi @logic887,

I hope you are doing well.

Could you please elaborate more about the use case?

Are you referring to U-boot drivers or Kernel Drivers?

One can edit bootargs env to edit kernel cmdline.

=> setenv bootargs ${jh_clk} ${mcore_clk} console=${console} root=${mmcroot} <module_name>.<parameter_name>=value  '

It will automatically pass kernel parameters to the driver.

Thanks & Regards,
Dhruvit Vasavada

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,563件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport


Hi @logic887,

I hope you are doing well.

Could you please elaborate more about the use case?

Are you referring to U-boot drivers or Kernel Drivers?

One can edit bootargs env to edit kernel cmdline.

=> setenv bootargs ${jh_clk} ${mcore_clk} console=${console} root=${mmcroot} <module_name>.<parameter_name>=value  '

It will automatically pass kernel parameters to the driver.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信
1,534件の閲覧回数
logic887
Contributor III
You're welcome, the issue has been resolved.
0 件の賞賛
返信