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

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

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

Jump to solution
1,585 Views
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 Kudos
Reply
1 Solution
1,566 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,567 Views
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 Kudos
Reply
1,538 Views
logic887
Contributor III
You're welcome, the issue has been resolved.
0 Kudos
Reply