U-boot cmdline: Difference between revisions

From embeddedTS Manuals
(Created page with "The Linux kernel cmdline can be customized by modifying the cmdline_append variable. Keeping the default options here is recommended, but additional arguments can be appended...")
 
No edit summary
Line 1: Line 1:
The Linux kernel cmdline can be customized by modifying the cmdline_append variable.  Keeping the default options here is recommended, but additional arguments can be appended to this variable.
The Linux kernel cmdline can be customized by modifying the cmdline_append variable.  Keeping the default options here is recommended, but additional arguments can be appended to this variable.
<source lang=bash>
<source lang=bash>
env set cmdline_append console=ttymxc0,115200 init=/sbin/init
env set cmdline_append console=ttymxc0,115200 init=/sbin/init quiet
env save
env save
</source>
</source>
You can also change the kernel command line from the onboard Linux.  From the board's shell prompt run:
<source lang=bash>
apt-get update && apt-get install u-boot-tools -y
echo "env set cmdline_append console=ttymxc0,115200 init=/sbin/init quiet" > /boot/boot.scr
mkimage -A arm -T script -C none -n 'tsimx6 boot script' -d /boot/boot.scr /boot/boot.ub
</source>
The boot.scr includes the plaintext commands to be run in u-boot on startup, and mkimage adds a checksum and header to this file which can be loaded by u-boot.  The ub file should not be manually modified.

Revision as of 11:47, 15 December 2016

The Linux kernel cmdline can be customized by modifying the cmdline_append variable. Keeping the default options here is recommended, but additional arguments can be appended to this variable.

env set cmdline_append console=ttymxc0,115200 init=/sbin/init quiet
env save

You can also change the kernel command line from the onboard Linux. From the board's shell prompt run:

apt-get update && apt-get install u-boot-tools -y
echo "env set cmdline_append console=ttymxc0,115200 init=/sbin/init quiet" > /boot/boot.scr
mkimage -A arm -T script -C none -n 'tsimx6 boot script' -d /boot/boot.scr /boot/boot.ub

The boot.scr includes the plaintext commands to be run in u-boot on startup, and mkimage adds a checksum and header to this file which can be loaded by u-boot. The ub file should not be manually modified.