Skip to content

Instantly share code, notes, and snippets.

@alepez
Last active January 26, 2017 09:48
Show Gist options
  • Save alepez/503fd92ac3d7e3f6dbb88a3672bc75e9 to your computer and use it in GitHub Desktop.
Save alepez/503fd92ac3d7e3f6dbb88a3672bc75e9 to your computer and use it in GitHub Desktop.
u-boot change kernel parameters

I want to change kernel parameters from u-boot.

printenv

Copy the value of mmcargs.

Use setenv to change the value of mmcargs, adding what you need.

In this case I changed the init to bash to have a working terminal without password prompt.

setenv mmcargs setenv bootargs console=${console},${baudrate} root=${mmcroot} init=/bin/bash

Boot:

run bootcmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment