linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: gadiyar@ti.com (Gadiyar, Anand)
To: linux-arm-kernel@lists.infradead.org
Subject: Single binary kernel for all i.MX
Date: Fri, 12 Nov 2010 22:59:33 +0530	[thread overview]
Message-ID: <AANLkTim0eNvEhiy7YL7YMCsJ9Ou_byyZ7hwSdy2ocsyF@mail.gmail.com> (raw)
In-Reply-To: <20101112155342.GJ18358@pengutronix.de>

2010/11/12 Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>:
> Hi Shawn,
>
> On Fri, Nov 12, 2010 at 11:40:41PM +0800, Shawn Guo wrote:
>> I'm studying at the implementation. ?Can you please help me understand
>> how "addruart" in plat-mxc/include/mach/debug-macro.S works for single
>> image?
>>
>> ? ? ? ? .macro ?addruart, rp, rv
>> ? ? ? ? ldr ? ? \rp, =UART_PADDR ? ? ? ?@ physical
>> ? ? ? ? ldr ? ? \rv, =UART_VADDR ? ? ? ?@ virtual
>> ? ? ? ? .endm
>>
>> We have this macro to get physical base address of UART. ?However
>> UART_PADDR is defined as MX?_UART1_BASE_ADDR depending on
>> CONFIG_ARCH_MX*. ?When all CONFIG_ARCH_MX* get defined in single image
>> case, how does UART_PADDR work for all CONFIG_ARCH_MX*?
> In a kernel that supports more than one SoC, DEBUG_LL won't work. ?This
> is generally OK, because DEBUG_LL is only needed when bringing up a
> machine. ?Therefor you can use a tailored kernel that only supports your
> shiny new machine.
>
> Uwe
>

Hi Uwe,

OMAP does have this working. For example, we can boot a single kernel image
on OMAP2, OMAP3 and OMAP4 today, and we have DEBUG_LL working for
sure on the last two - probably also on OMAP2.

I'm not exactly sure how this mechanism works, but for every new machine we
add, we usually add an entry in arch/arm/plat-omap/include/plat/uncompress.h

- Anand

  reply	other threads:[~2010-11-12 17:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05 12:18 Single binary kernel for all i.MX Sascha Hauer
2010-11-05 12:29 ` Baruch Siach
2010-11-05 12:31   ` Sascha Hauer
2010-11-05 18:59     ` Eric Miao
2010-11-07 11:34       ` Sascha Hauer
2010-11-12 15:40 ` Shawn Guo
2010-11-12 15:53   ` Uwe Kleine-König
2010-11-12 17:29     ` Gadiyar, Anand [this message]
2010-11-12 18:50       ` Uwe Kleine-König
2010-11-13 15:30         ` Nicolas Pitre
2010-11-13 15:26       ` Nicolas Pitre

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=AANLkTim0eNvEhiy7YL7YMCsJ9Ou_byyZ7hwSdy2ocsyF@mail.gmail.com \
    --to=gadiyar@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).