Welcome! Log In Create A New Profile

Advanced

complete List of possible environment keys?

Posted by shivahoj 
complete List of possible environment keys?
September 23, 2017 09:30AM
Hello,
i understand that most Key=Value pairs in the environment are either
u-boot commands, that are passed directly to uboot, or
script commands, that populate env variables, run other commands etc.

I found a list of uboot commands here, and an explanation on u-boot here. This got me deep into understanding the boot process.

But there are also other things like
  • the LED section:
    led_error=orange
    led_exit=green off
    led_init=green blinking
  • the preboot_nc=... line
  • the ncip env variable
  • the device=0:1 line

AKAIK none of these things are referenced in any other scripts, nor are they understood by u-boot itself.
Which part of the system understands these commands?
Like in case of "preboot_nc", it cannot be the linux kernel, since then the name wouldnt make sense...
Are there more commands?
Is there an (possibly complete) list of all keys , their values and meanings?
where can i dig for those myself?



Edited 5 time(s). Last edit at 09/23/2017 02:08PM by shivahoj.
Re: complete List of possible environment keys?
September 23, 2017 05:21PM
shivahoj,

There are 2 types of envs: u-boot predefined envs, and user-defined.

> led_error=orange
> led_exit=green off
> led_init=green blinking
> [*]the preboot_nc=... line
> [*]the ncip env variable
> [*]the device=0:1 line

The above are user-defined envs. Jeff, davygravy, and I contributed in creating these u-boot envs in the past.

U-boot predefined envs are things such as: ethaddr, serverip, preboot,.... And you can redefine them to make it work the way you would want to.

You've already found the U-Boot website where we can find the u-boot predefined envs.

Quote

I found a list of uboot commands here, and an explanation on u-boot here. This got me deep into understanding the boot process.

Note: it is usually a bit out-of-date.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: