]> rtime.felk.cvut.cz Git - novaboot.git/commit
uboot: Do not analyze expanded kernel command line
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 31 Oct 2014 13:32:00 +0000 (14:32 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 31 Oct 2014 13:32:00 +0000 (14:32 +0100)
commit9cc589a5f5e6738c853a1faf0ee6fd3d813ff63b
tree1d4a9af3e79c574f2e50f43fb21fc51e696a3374
parentd03da10058f3722ede4a87b2cf1a3eb87881c8a5
uboot: Do not analyze expanded kernel command line

Previously, novaboot asked U-Boot to expand the kernel command line
before using it. If the expanded command line started with 'setenv
bootargs', it executed this command, otherwise, it prepended 'setenv
bootargs' and executed it.

This was present to allow using U-Boot environment variables that were
meant to be used with the "run" command in the kernel command line. As
those variables can contain other commands than just "setenv bootargs",
this didn't always work correctly. Therefore, we remove this
functionality. If users are need this functionality, they can use the
uboot lines in the novaboot script to explicitly invoke the run command.

For example, the following novaboot script

    load linux/arch/arm/boot/uImage ${netargs} myparam=1

should be rewritten as follows:

    uboot run netargs
    load linux/arch/arm/boot/uImage ${bootargs} myparam=1

The "run netargs" command sets the bootargs variable and this variable
is mentioned explicitly in the command line.
novaboot