Initial environment variables
Quoted 4 lines · Mike Frysinger
the board maintainer decides the default env values, not board users. Ben's
comment was probably on the assumption that you are in the latter category.
Ah, that could be why. Thankfully I am the maintainer for the board. So I am going to assume then that it would be OK for me to add these variable settings to my board's include/configs file and submit a patch for it, unless I here other objections.
Ron
Quoted 9 lines · Ron Madrid
Quoted 5 lines · Mike Frysinger
the board maintainer decides the default env values, not board users. Ben's
comment was probably on the assumption that you are in the latter category.
Quoted 7 lines
Ah, that could be why. Thankfully I am the maintainer for the board. So I am going to assume then that it would be OK for me to add these variable settings to my board's
include/configsfile and submit a patch for it, unless I here other objections.Ron
No, there should be no default net parameters, because you're making likely-bogus assumptions about the network that your board's going to go into. Just because your LAN uses '192.168.0.x' doesn't mean anybody else's does. It's even worse for MAC addresses - what if I buy two of your boards and plug them into the same switch? If the addresses are identical all sorts of bad things can happen. Not to mention that public MAC addresses are assigned (and paid for) and should be guaranteed to be unique. And private (bit 41 set) addresses are used in many different ways. One systems company that I worked at would program these dynamically based on which shelf/slot the board was plugged into. It's best to fail loudly (a printf stating that MAC addresses haven't been programmed) than to silently cause network issues. I could go on and on, but hopefully you get the point.
regards,
Ben
Quoted 12 lines · On Thursday 16 July 2009 17:08:55 Ben Warren wrote:
Quoted 10 lines · Ron Madrid
Quoted 4 lines · Mike Frysinger
the board maintainer decides the default env values, not board users. Ben's
comment was probably on the assumption that you are in the latter category.Ah, that could be why. Thankfully I am the maintainer for the board. So I am going to assume then that it would be OK for me to add these variable settings to my board's
include/configsfile and submit a patch for it, unless I here other objections.
Quoted 4 lines
No, there should be no default net parameters, because you're making likely-bogus assumptions about the network that your board's going to go into. Just because your LAN uses '192.168.0.x' doesn't mean anybody else's does.
i dont see why this is a problem. providing a consistent default network setup doesnt cause any problems whatsoever. if you have a different network layout, then it's trivial to (1) change it or (2) type "dhcp".
this is the first ive heard against letting board maintainers dictate default network settings. i do it for all ADI Blackfin boards and never once have i heard a complaint from people who use them.
Quoted 9 lines
It's even worse for MAC addresses - what if I buy two of your boards and plug them into the same switch? If the addresses are identical all sorts of bad things can happen. Not to mention that public MAC addresses are assigned (and paid for) and should be guaranteed to be unique. And private (bit 41 set) addresses are used in many different ways. One systems company that I worked at would program these dynamically based on which shelf/slot the board was plugged into. It's best to fail loudly (a printf stating that MAC addresses haven't been programmed) than to silently cause network issues.
MAC addresses are a completely different issue than IP settings. i agree that there should never be a default environment value in any board in the tree. a quick grep of the tree indicates that people have been very bad in this area (and i see that i merged two such Blackfin boards). i'll send patches for the two boards i watch over.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090716/8b18a096/attachment.pgp
Dear Ron Madrid,
Quoted 10 lines · In message <[email protected]> you wrote:
Quoted 5 lines
the board maintainer decides the default env values, not board users. Ben's
comment was probably on the assumption that you are in the latter category.Ah, that could be why. Thankfully I am the maintainer for the board. So I am going to assume then that it would be OK for me to add these variable settings to my board's
include/configsfile and submit a patch for it, unless I here other objections.
We do not accept any "default network configurations" in the board configuration. It makes no sense when all boards come up with the very same network setting - it only causes problems and frustration.
[Don't tell me about "useful" use cases - all thse can be done in different ways, easier.]
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It's all Klatchian to me.
- Terry Pratchett & Stephen Briggs, _The Discworld Companion_