All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Larsson <jonas.larsson@netinsight.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Patches
Date: 15 Aug 2003 18:04:40 +0200	[thread overview]
Message-ID: <1060963480.26299.67.camel@doris> (raw)
In-Reply-To: <20030815155043.GA14764@buici.com>

On Fri, 2003-08-15 at 17:50, Marc Singer wrote:
> > > That's an interesting idea, though I'm not sure I can see how it would
> > > be valuable in practice.  Do you have systems where the hardware setup
> > > is identitical but the ARM CPU is different?
> > 
> > Nope. The arch number specifies what kind of arm-board the kernel is
> > booting on. One kernel binary is in my case able to handle 3 different 
> > versions of boards (and its hard or dangerous to find out by probing
> > the board). The number is used to tell the kernel about how irq-lines
> > etc are wired on the board. Perhaps the name 'arch' is a bad choice, 
> > perhaps "arm-mach" is better.
> > 
> 
> Yes, I understand that.  It is also important that the board setup be
> compatible which is the responsibility of uboot.  Which seems to be
> true in your case.  None of the Arm chips I've used have this feature.
> While they can be dynamically detected without danger, it is just as
> easy to make separate u-boot builds for each.
> 
> Which chips are you using?

I'm working on an U-boot port to StrongARM (SA110) [ensa285]. Our 
board are based the ebsa285 eval board but are in some parts different
(such as irq-mapping to networking chips). It is quite easy to have the
same kernel for all the boards and handle the differences with the 
machine number. I cannot detect the board type in u-boot, hence
I added the arch env variable.

For sure I could hard-code each mach nbr in my board dependent code at
compile time. But this would mean more release management on my behalf.
With the arch env its just a factory setting to be made.

I will submit a patch for the ebsa285 eval board later on. 

Whats your preference: patch system at sourceforge or mailing list?  

/ Jonas

  reply	other threads:[~2003-08-15 16:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-15 12:21 [U-Boot-Users] Patches Jonas Larsson
2003-08-15 15:19 ` Marc Singer
2003-08-15 15:25   ` Jonas Larsson
2003-08-15 15:50     ` Marc Singer
2003-08-15 16:04       ` Jonas Larsson [this message]
2003-08-15 16:36         ` Marc Singer
2003-08-15 17:00         ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-05-28 20:42 [U-Boot-Users] patches Matthew S. McClintock
2003-05-28 21:43 ` Wolfgang Denk
2003-05-28 22:27   ` Matthew S. McClintock

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=1060963480.26299.67.camel@doris \
    --to=jonas.larsson@netinsight.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.