OpenWrt Forum Archive

Topic: Build an image with specific kernel bootargs

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

How can I build an image with a specific kernel boot command, and specific kernel arguments?

I'm working with mt7621 devices, there are problems with rcu_sched detecting stalls on trunk with qos. I would like to give specific parameters to the kernel to make some test ( e.g rcu_nocbs )

Thanks in advance!

Pierre.

Add/overwrite chosen section of your dts-file with something like:

chosen {
                   bootargs = "console=ttyS0,57600 your_parm=your_parm_value";
           };

Thanks a lot, I will try!

Unfortunatly it does not seem to work. I changed the bootargs in ZBT-WG3526.dtsi but I still get the old cmdline in /proc/cmdline. Maybe u-boot is over-writting it? Or maybe it's built-in the kernel?

(Last edited by pparent on 19 Jul 2017, 10:17)

The discussion might have continued from here.