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

Anders Larsen alarsen at rea.de
Mon Dec 8 11:38:09 CET 2003


Anders Larsen <al at alarsen.net> schreibt:
>On Sun, 07 Dec 2003 01:07:42 +0100 Wolfgang Denk <wd at denx.de> wrote:
>
>> Dear Anders,
>> 
>> in message <fc.004c4e48001e648f004c4e48001e648f.1e6494 at rea.de> you
>wrote:
>> > 
>> > the attached patch defines a new config option CONFIG_CUSTOM_TAGS for
>> > ARM targets.
>> > 
>> > Defining this option causes do_bootm_linux() to call the function
>> > setup_custom_tags(), which should be supplied from the board-specific
>> > stuff.
>> 
>> There was some discussion on the list about this patch, and I somehow
>> expected to receive an updated / modified version for  it.  But  then
>> the discussion dried out, and nothing happened.
>> 
>> What's the current state of this? Is there still a patch to add?
>
>Hi Wolfgang,
>
>I'll provide a fresh patch rsn - I put it on hold, since you appeared to
>be
>overloaded at the time...

Hi Wolfgang,

the attached patch (against CVS of last night) adds two configuration
options: CONFIG_SERIAL_TAG and CONFIG_REVISION_TAG
These options enable the functions setup_serial_tag() and
setup_revision_tag(), which should be defined in the board-specific
code when needed.

This provides a hook to pass ATAG_SERIAL (board serial number) and
ATAG_REVISION (board revision) to the (ARM) kernel.
These values appear in /proc/cpuinfo of the target.

Furthermore, the patch removes some redundant #defines from
lib_arm/armlinux.c: tag_size(), tag_next() and ATAG_INITRD2 are all
defined (unconditionally) in asm-arm/setup.h

CHANGELOG:
 * add configuration options CONFIG_SERIAL_TAG and CONFIG_REVISION_TAG
   to pass ATAG_SERIAL and ATAG_REVISION, resp., to the ARM target

Cheers
 Anders

-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-1.0.0.tags.patch
Type: application/octet-stream
Size: 2853 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20031208/eb1d45a8/attachment.obj 


More information about the U-Boot mailing list