Skip to contentSkip to conversation

changing environment at build time

DISCUSSION Alessandro Rubini 3 participants 4 messages Aug 2, 2012 – Aug 3, 2012

lore
Share & tools
lore
#0 lore raw

Hello.

I'm using barebox on a machine where I wasnt to change the mac address at flashing time (i.e., not at build time: I'd better not relink barebox every time I flash a new machine).

I did it lazily with a sed script when the environment was not compressed, but now a mate updated to a newer version, and the simple trick is not working.

Since uncompressed environent areas are not supported any more, what is the preferred method to change the default environment variables?

Thanks
/alessandro, really on deadline, so apologizing for the dumb question

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw
Quoted 2 lines · I wrote:

Since uncompressed environent areas are not supported any more, what is the preferred method to change the default environment variables?

Actually, by removing compressing code the environment is uncompressed itself, but it looks like I have other problems that are not yet completely clear to me.

I'm still curious about how to change mac address at flash time, but the question is not urgent any more. Sorry for disturbing

/alessandro

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw

Hi Alessandro,

Quoted 10 lines · Alessandro Rubini
Quoted 2 lines · I wrote:

Since uncompressed environent areas are not supported any more, what is the preferred method to change the default environment variables?

Actually, by removing compressing code the environment is uncompressed itself, but it looks like I have other problems that are not yet completely clear to me.

I'm still curious about how to change mac address at flash time, but the question is not urgent any more. Sorry for disturbing

You didn't disturb, this is a valid question (to which unfortunately I do not have an answer)

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
In reply to Alessandro Rubini
Quoted 6 lines · Alessandro Rubini

Hello.

I'm using barebox on a machine where I wasnt to change the mac address at flashing time (i.e., not at build time: I'd better not relink barebox every time I flash a new machine).

Quoted 6 lines

I did it lazily with a sed script when the environment was not compressed, but now a mate updated to a newer version, and the simple trick is not working.

Since uncompressed environent areas are not supported any more, what is the preferred method to change the default environment variables?

why do you need such feature?

why not just use the dhcp vendor option and manage the ip like this and maybe you can generate the mac address by using the chip unique id

Best Regards
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox