Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As only option to use proper MAC Address (read from hardware MAC Address EEPROM in FSBL or other first stage bootloader) shared memory can be used. This method is supported by TE supplied FSBL hooks code. This MAC Address info is loaded into u-boot using a script - there is no need to patch u-boot source code.

/* PREBOOT */ 
#undef

...

CONFIG_PREBOOT
#define

...

CONFIG_PREBOOT<>"echo

...

U-BOOT

...

for

...

${hostname}

...

preboot

...

is

...

loading

...

environment

...

from

...

uEnv.txt;

...

set

...

autoexec

...

echo;

...

if

...

mmc

...

rescan;

...

then

...

if

...

fatload

...

mmc 0 0x01000000 uEnv.txt; then env import -t 0x01000000; fi; fi; "\

                       

...

"echo

...

importing

...

env

...

from

...

FSBL

...

shared

...

area

...

at

...

0xFFFFFC00;

...

if

...

itest

...

*0xFFFFFC00

...

==

...

0xCAFEBABE;

...

then

...

env

...

import

...

-t

...

0xFFFFFC04;

...

fi; echo running autoexec script; run autoexec"

 

Example use of the MAC Address import in u-boot

...