Dragonboard - kernel cmdline

i need to add a parameter “log_buf_len=4M” in cmdline for kernel.

Where do i need to add parameter and build the .img ? it should be in https://github.com/snapcore/dragonboard-gadget.git or git://kernel.ubuntu.com/ubuntu/ubuntu-xenial.git

You can add it to the end of snappy_cmdline in uboot.env.in and rebuild the gadget…
our kernel cmdlines are all set from the gadget.

Note that you can also use “fw_printenv” and “sudo fw_setenv <var> <value>” on a running Ubuntu Core install to change any of the uboot.env variables … for development and testing …

i tried this and it worked in target

sudo fw_setenv snappy_cmdline net.ifnames=0 init=/lib/systemd/systemd ro rng_core.default_quality=700 panic=-1 fixrtc log_buf_len=4M

sudo reboot

it updated the snappy_cmdline.


1 Like