[U-Boot] Using fw_setenv to set negative numbers

Frank Wunderlich frank-w at public-files.de
Wed Jun 5 16:20:30 UTC 2019


Hi,
have you tried quoting your value?

fw_setenv bootdelay "-2"
or
fw_setenv bootdelay '-2'

regards Frank

> Gesendet: Mittwoch, 05. Juni 2019 um 16:57 Uhr
> Von: "Ken Sloat" <KSloat at aampglobal.com>
> An: "u-boot at lists.denx.de" <u-boot at lists.denx.de>
> Cc: "Ken Sloat" <KSloat at aampglobal.com>
> Betreff: [U-Boot] Using fw_setenv to set negative numbers
>
> Hello,
>
> I had a question regarding the use of fw_setenv. I am currently running U-Boot 2018.07
>
> How can I set a negative number using the standard command call to fw_setenv?
> For example, if want to set bootdelay to a value of -2 (boot without delay), I currently
> cannot just say:
> fw_setenv bootdelay -2
>
> fw_setenv thinks 2 is an option I am trying to pass. What is the correct way to do this
> (if any)? One work around is to place the name value pair in a script file and call it
> With the --script option but was just wondering if there was direct way to accomplish
> this. Otherwise, this might be a needed change in the future.
>
> Thanks,
> Ken Sloat
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>


More information about the U-Boot mailing list