From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 1/7] reboard: define CONFIG_SYS_LEGACY_BOARD everywhere
Date: Wed, 07 Dec 2011 09:15:23 +0100 [thread overview]
Message-ID: <4EDF209B.4000003@aribaud.net> (raw)
In-Reply-To: <CAPnjgZ1Qair+Jy=ddxALKi1k06pN2dDuSwLz7NWsp56wwG8HhQ@mail.gmail.com>
Le 30/11/2011 00:40, Simon Glass a ?crit :
> Hi Mike,
>
> On Tue, Nov 29, 2011 at 3:19 PM, Mike Frysinger<vapier@gentoo.org> wrote:
>> On Tuesday 29 November 2011 17:09:19 Simon Glass wrote:
>>> On Tue, Nov 29, 2011 at 1:40 PM, Mike Frysinger wrote:
>>>> On Tuesday 29 November 2011 15:08:09 Simon Glass wrote:
>>>>> On Mon, Nov 28, 2011 at 7:11 PM, Mike Frysinger wrote:
>>>>>> On Monday 21 November 2011 18:57:54 Simon Glass wrote:
>>>>>>> We are introducing a new unified board setup and we want this to
>>>>>>> be the default. So we need to opt all architectures out first.
>>>>>>
>>>>>> the define says "BOARD", so shouldn't it be in board configs ? we can
>>>>>> do that easily: add it to include/config_defaults.h. then boards
>>>>>> that opt into it will #undef it in their own configs.
>>>>>
>>>>> Thanks for looking at this.
>>>>>
>>>>> I see this as an architecture feature - perhaps a rename to something
>>>>> like CONFIG_LEGACY_ARCH would help? I quite badly want to avoid moving
>>>>> boards over one at a time, or having boards for a particular
>>>>> architecture that still do things the old way - it just increases
>>>>> maintenance and means that my eventual patch to remove
>>>>> arch/xxx/lib/board.c cannot be applied.
>>>>>
>>>>> My idea for this CONFIG is purely as a temporary measure before boards
>>>>> more over to the generic approach.
>>>>
>>>> how about we have the reloc code live in lib/reloc/ and be controlled by
>>>> CONFIG_LEGACY_ARCH_RELOC ?
>>>
>>> My only concern is that if something like SPL needs to keep all the
>>> early code at the start of the image. I personally don't like the
>>> current method for doing that (would prefer a distinctive .text.early
>>> section name) and I don't believe that any SPL implementation actually
>>> relocates itself.
>>
>> not sure why this matters ?
>> -mike
>>
>
> Because if they require linking with reloc.o then we will get link
> failures some boards. There is some ugly stuff in SPL which pulls in
> particular files from around U-Boot. Any time I split something out of
> start.S I may break something.
IIRC, SPL never relocates itself -- the goal of SPL is to get some code
in memory that will just enable RAM, move the rest of U-Boot in, and
jump to it.
What SPL pulls in is drivers/ functions for console output and access to
the RAM and main U-Boot image.
Besides, sometimes making boards all fail until they are fixed is a good
way to manage a change. :)
> Regards,
> Simon
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-12-07 8:15 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 23:57 [U-Boot] [RFC PATCH 0/7] reboard: Introduce generic relocation feature Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 1/7] reboard: define CONFIG_SYS_LEGACY_BOARD everywhere Simon Glass
2011-11-29 3:11 ` Mike Frysinger
2011-11-29 20:08 ` Simon Glass
2011-11-29 21:40 ` Mike Frysinger
2011-11-29 22:09 ` Simon Glass
2011-11-29 23:19 ` Mike Frysinger
2011-11-29 23:40 ` Simon Glass
2011-12-07 8:15 ` Albert ARIBAUD [this message]
2011-12-07 16:28 ` Simon Glass
2011-12-05 6:42 ` Aneesh V
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 2/7] reboard: Add generic link symbols Simon Glass
2011-11-29 2:59 ` Mike Frysinger
2011-12-07 22:37 ` Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 3/7] reboard: Add generic relocation feature Simon Glass
2011-11-29 3:07 ` Mike Frysinger
2011-11-29 22:15 ` Simon Glass
2011-11-29 23:00 ` Graeme Russ
2011-11-29 23:20 ` Mike Frysinger
2011-11-29 23:41 ` Simon Glass
2011-11-29 23:49 ` Graeme Russ
2011-11-30 2:58 ` Mike Frysinger
2011-12-07 7:38 ` Albert ARIBAUD
2011-12-08 0:35 ` Mike Frysinger
2011-12-09 3:36 ` Simon Glass
2011-12-07 22:45 ` Simon Glass
2011-12-07 22:54 ` Graeme Russ
2011-12-07 22:55 ` Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 4/7] reboard: arm: Add relocation function Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 5/7] reboard: arm: Add processor function library Simon Glass
2011-11-29 3:12 ` Mike Frysinger
2011-12-07 7:44 ` Albert ARIBAUD
2011-12-07 16:24 ` Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 6/7] reboard: arm: Move over to generic relocation Simon Glass
2011-11-29 3:14 ` Mike Frysinger
2011-12-09 3:41 ` Simon Glass
2011-11-21 23:58 ` [U-Boot] [RFC PATCH 7/7] reboard: arm: Remove unused code in start.S Simon Glass
2011-11-29 3:15 ` Mike Frysinger
2011-12-09 3:42 ` Simon Glass
2011-11-28 23:45 ` [U-Boot] [RFC PATCH 0/7] reboard: Introduce generic relocation feature Tom Rini
2011-12-07 1:56 ` Simon Glass
2011-12-07 2:56 ` Graeme Russ
2011-12-07 3:25 ` Simon Glass
2011-12-07 3:36 ` Graeme Russ
2011-12-07 23:29 ` Simon Glass
2011-12-07 8:10 ` Albert ARIBAUD
2011-12-09 3:34 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EDF209B.4000003@aribaud.net \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.