[U-Boot] [PATCH v2 0/4] Kirkwood: Add support for OpenRD-Client & OpenRD-Ultimate

Prafulla Wadaskar prafulla at marvell.com
Sun Mar 27 07:18:02 CEST 2011



> -----Original Message-----
> From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
> On Behalf Of Clint Adams
> Sent: Saturday, March 26, 2011 3:32 AM
> To: u-boot at lists.denx.de
> Subject: Re: [U-Boot] [PATCH v2 0/4] Kirkwood: Add support for OpenRD-
> Client & OpenRD-Ultimate
> 
> Julian Pidancet wrote:
> > A nice future improvement would be to add variant detection and
> configuration
> > at run-time as suggested on the mailing-list in a recent email. So one
> could
> > use the same binary for all board variants.
> 
> Does anyone know offhand how to do this?  I have heard rumors of a GPIO
> method but I haven't found any details.

1. One possibility is to use some GPIOs and configure them on all board to detect the board version, read these GPIOs in the u-boot code and take board variant specific execution/configuration.
 
2. One can have similar approach keeping some data in separate EEPROM.

3. one can read availability of specific h/w on the board.

Of which #3 will be better but may not be suitable for all boards variant.

I personally do not like this method.
Since there is always chance to have wrong configuration.

I would always prefer to have build time configuration passing as per board variant.

Regards..
Prafulla . . .


More information about the U-Boot mailing list