[OpenWrt-Devel] Change Uboot default values
Baptiste Clenet
bapclenet at gmail.com
Wed Jul 22 08:59:17 EDT 2015
>W dniu 22.07.2015 o 13:37, Baptiste Clenet pisze:
>
> I would like to change the default values of Uboot when I choose 2 in the menu.
> In the below example, I would like to change <1>, <2> and <3> by
> defaults values that I would have set earlier.
>
> 2: System Load Linux Kernel then write to Flash via TFTP.
> Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
> Please Input new ones /or Ctrl-C to discard
> Input device IP (10.10.10.123) ==: <1>
> Input server IP (10.10.10.3) ==: <2>
> Input Linux Kernel filename () ==:<3>
>It is usually stored on separate partition on flash. Read about UBoot environment variables >athttp://www.denx.de/wiki/view/DULG/UBootEnvVariables - in particular |**||*ipaddr, *||*|*serverip*|, >*||*bootfile and commands setenv, saveenv.*|
Thanks, works perfectly!
2015-07-22 14:18 GMT+02:00 Baptiste Clenet <bapclenet at gmail.com>:
> 2015-07-22 13:54 GMT+02:00 Yousong Zhou <yszhou4tech at gmail.com>:
>> On 22 July 2015 at 19:37, Baptiste Clenet <bapclenet at gmail.com> wrote:
>>> Hi,
>>>
>>> I would like to change the default values of Uboot when I choose 2 in the menu.
>>> In the below example, I would like to change <1>, <2> and <3> by
>>> defaults values that I would have set earlier.
>>>
>>
>> Looks like it's most likely hardcoded [1].
>>
>> [1] https://github.com/8devices/u-boot/blob/a4ac3be49389f0801cae4c37454e59679d56f036/lib_mips/board.c#L1502
>>
>
> Yeah, but how to change the value then, I don't mind to hardcode them,
> it's to flash quicker (not enter each time the values).
> I changed it on one board but I don't remember how I have done that.
>
>>
>> yousong
>>
>>> Example:
>>>
>>> Please choose the operation:
>>> 1: Load system code to SDRAM via TFTP.
>>> 2: Load system code then write to Flash via TFTP.
>>> 3: Boot system code via Flash (default).
>>> 4: Entr boot command line interface.
>>> 7: Load Boot Loader code then write to Flash via Serial.
>>> 9: Load Boot Loader code then write to Flash via TFTP.
>>>
>>> You choosed 2
>>>
>>> 2: System Load Linux Kernel then write to Flash via TFTP.
>>> Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
>>> Please Input new ones /or Ctrl-C to discard
>>> Input device IP (10.10.10.123) ==: <1>
>>> Input server IP (10.10.10.3) ==: <2>
>>> Input Linux Kernel filename () ==:<3>
>>>
>>> Cheers,
>>>
>>> --
>>> Baptiste
>>> _______________________________________________
>>> openwrt-devel mailing list
>>> openwrt-devel at lists.openwrt.org
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
>
> --
> Baptiste
--
Baptiste
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list