[PATCH 2/3] Add next generation default environment template

Juergen Beisert jbe at pengutronix.de
Mon Jun 4 04:47:44 EDT 2012


Sascha Hauer wrote:
> [...]
> diff --git a/defaultenv-2/base/init/bootargs-base
> b/defaultenv-2/base/init/bootargs-base new file mode 100644
> index 0000000..8e588ad
> --- /dev/null
> +++ b/defaultenv-2/base/init/bootargs-base
> @@ -0,0 +1,8 @@
> +#!/bin/sh
> +
> +if [ "$1" = menu ]; then
> +       init-menu-add-entry "$0" "Base bootargs"
> +       exit
> +fi
> +
> +global.linux.bootargs.base="console=ttyS0,115200"
> [...]

Seems if you want to change the console setting here, you always have to save 
the change and restart the system to take affect of the new value when 
the 'boot' command is running. Old behaviour was an immediate change without 
saving and restarting. This was a nice behaviour when one just wants to try a 
different parameter without destroying the old environment.

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |



More information about the barebox mailing list