mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 09:06:49 -04:00
The U-Boot README says fdt_addr_r is the right env var for fdt data
loaded into ram, but vendors also use fdtaddr and fdt_addr. Check the recommended variable first and fall back to the others.
This commit is contained in:
parent
7e9489e0f6
commit
db8aa5fd6d
1 changed files with 6 additions and 3 deletions
|
|
@ -310,10 +310,13 @@ fdt_setup_fdtp()
|
|||
|
||||
/*
|
||||
* If the U-boot environment contains a variable giving the address of a
|
||||
* valid blob in memory, use it. Board vendors use both fdtaddr and
|
||||
* fdt_addr names.
|
||||
* valid blob in memory, use it. The U-boot README says the right
|
||||
* variable for fdt data loaded into ram is fdt_addr_r, so try that
|
||||
* first. Board vendors also use both fdtaddr and fdt_addr names.
|
||||
*/
|
||||
s = ub_env_get("fdtaddr");
|
||||
s = ub_env_get("fdt_addr_r");
|
||||
if (s == NULL)
|
||||
s = ub_env_get("fdtaddr");
|
||||
if (s == NULL)
|
||||
s = ub_env_get("fdt_addr");
|
||||
if (s != NULL && *s != '\0') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue