From mboxrd@z Thu Jan 1 00:00:00 1970 From: George G. Davis Date: Fri, 14 Nov 2003 17:05:16 -0500 Subject: [U-Boot-Users] [PATCH] pass custom data to Linux In-Reply-To: References: <3FB278A3.9060708@comcast.net> Message-ID: <3FB5519C.9000700@comcast.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Anders Larsen wrote: > "George G. Davis" 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 > >