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

Wolfgang Denk wd at denx.de
Mon Nov 17 10:04:20 CET 2003


In message <fc.004c4e48001e7bee004c4e48001e648f.1e7c14 at rea.de> you wrote:
>
> Another solution could be to add two fields to struct bd_info, e.g.
> bi_sernum and bi_revision, possibly "protected" by
> #ifdef CONFIG_SERNUM_TAG and #ifdef CONFIG_REVISION_TAG
> (bi_sernum is already defined similarly for at least the NX823),
> and have armlinux pass those to the kernel.

How would you do this, then?  To  pass  this  information  you  would
probably create the custom tags discussed earlier, right?

> This is arguably a cleaner solution than my generic hook.

I'm not so sure. Keep in mind that the bd_info structure  comes  from
the  PowerPC architecture, wher eit is (more or less directly) passed
to the Linux kernel. For ARM it is not such a natural thing  to  use.
And  in  the  long run (when PPC finally starts using bi_recs) it may
disappear there, too.


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The human race is faced with a cruel choice: work  or  daytime  tele-
vision.




More information about the U-Boot mailing list