[U-Boot-Users] [PATCH] pass custom data to Linux

George G. Davis davis_g at comcast.net
Fri Nov 14 23:05:16 CET 2003


Anders Larsen wrote:
> "George G. Davis" <davis_g at comcast.net> schreibt:
> 
>>Anders Larsen wrote:
>>
>>>Specifically, I need to pass the board revision and serial number to
>>>the Linux kernel, and I'd like to use the standard method of passing
>>>tagged parameters. For my purpose, ATAG_SERIAL and ATAG_REVISION are
>>>already defined (and supported by the kernel).
>>
>>Since you say you are using standard ARM Linux tags to do this, why not
>>just add support for CONFIG_{REVISION,SERIAL}_TAG in lib_arm/armlinux.c?
> 
> 
> Hi George,
> 
> the tags are standard, but by nature the information is board-specific,
> so I don't see how lib_arm/armlinux.c could do much more than simply
> calling a function from the board tree.
> Do you think my idea of adding the hook setup_custom_tags() is _too_
> generic?

Perhaps we can use environment variables to initialise those common
tags in armlinux.c. Those environment variable can then be uniquely
initialised/defined in whatever way makes sense for a given target
port?

--
Regards,
George

> 
> Cheers
>  Anders
> 
> 





More information about the U-Boot mailing list