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,578 次查看
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,559 次查看
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,560 次查看
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,531 次查看
logic887
Contributor III
You're welcome, the issue has been resolved.
0 项奖励
回复