]> rtime.felk.cvut.cz Git - novaboot.git/commit
U-Boot: Extend kernel command line handling
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 30 Jul 2014 14:27:15 +0000 (16:27 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 30 Jul 2014 14:27:27 +0000 (16:27 +0200)
commitd97a03dd977474ba24a636776c36e46df536aaad
tree3daf2173a2ea3db977ab379f941b473ac6193015
parentbdcf083aa46e1a041555a14472f76ed87b1c130e
U-Boot: Extend kernel command line handling

In order to be compatible with a standard U-Boot way of having
variables containin U-Boot commands and using 'run' to expand variable
references in them, we check kernel command line if it starts with
'setenv bootargs'. If yes, we simply run this command, otherwise, we
preprend 'setenv bootargs' ourselves.

Examples:

1) Novaboot script contains:

       load linux console=${console} quiet

   U-Boot is instructed to run:

       setenv bootargs console=${console} quiet

2) Novaboot script contains:

       load linux ${netargs} quiet

   and the U-Boot variable netargs contsins "setenv bootargs console=${console}"
   U-Boot is instructed to run:

       setenv bootargs console=${console} quiet

Note that in case 1) novaboot prepends "setenv bootargs" itselv
whereas in 2) inly executes the command line as is.
novaboot