public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulfs@dof.se>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Submitting Patch at sourceforge fails
Date: Tue, 22 Aug 2006 21:02:15 +0200	[thread overview]
Message-ID: <002d01c6c61d$7fa21e00$f64765d5@atmel.com> (raw)
In-Reply-To: 20060822153817.DAEE1353A4F@atlas.denx.de

>> IIRC, For the the 2.4 kernel only supports the AT91RM9200DK 
>> and the 2.6 kernel separates the AT91RM9200DK and EK.
>> so if you run on the EK (which most do, since the DK is obsolete)
>> you have a problem doing both.
> 
> But the mach ID's for the AT91RM9200DK are the same in 2.4  and  2.6,
> right? So what is the problem? That there is no EK support in the 2.4
> kernel? Well, many other recent processors / boards are not supported
> in  2.4  either. So use the kernel where the EK is supported - 2.6. I
> think it would be wrong to use fake mach ID's.
> 
>> The 2.4 kernel is ?n a maintenance phase, and I doubt that
>> anyone will merge the AT91RM9200 patches into the 2.4 kernel ever.
>> Whatif the patch depend on the AT91RM9200?
> 
> Sorry, I still don't understand what exactly is the problem.
> 
Here is the relevant contents of mach-type.h

#define    MACH_TYPE_AT91RM9200             251               -Used by Linux 2.4
#define    MACH_TYPE_AT91RM9200DK       262
#define    MACH_TYPE_AT91RM9200EK       705                - Used by Linux 2.6

So the first definition defines a SoC, not a board, so in theory for an AT91RM9200EK
both 251 and 705 are correct.

This was probably not a good setup from the start, but the Linux-2.4 community is using 251.
Linux-2.4 does not recognize 262 and 705.
Linux-2.6 (correctly) does not recognize 251.
If I want to work with a customer and exchange kernels, then I will have to request them
to modify their source to a non-standard and only then can I solve their problem.
Not a good idea to me.

There is another, more compelling reason for having this patch though.
It is becoming more common for people to design System on Modules
where you have a small board with CPU, Memory and maybe an Ethernet MAC.
Customers would want these boards to be as ready as possible, and thus
have both U-boot and Linux running.
Then they add their own baseboard, and if they desire to register the combination
as a new machine type.
If they recompile the kernel using the new machine Id,then they have to recompile u-boot, 
for the single purpose of changing the machine type.
Seems better to support changing the machine type using a setenv command.

Best Regards
Ulf Samuelsson                ulf at atmel.com
Atmel Nordic AB
Mail:  Box 2033, 174 02 Sundbyberg, Sweden
Visit:  Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22     Fax +46 (8) 441 54 29
GSM    +46 (706) 22 44 57

Technical support when I am not available:
AT89 C51 Applications Group: mailto:micro.hotline at nto.atmel.com
AT90 AVR Applications Group: mailto:avr at atmel.com
AT91 ARM Applications Group: mailto:at91support at atmel.com
FPSLIC Application Group: mailto:fpslic at atmel.com
Best AVR  link: www.avrfreaks.net

  reply	other threads:[~2006-08-22 19:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22  9:45 [U-Boot-Users] Submitting Patch at sourceforge fails Ulf Samuelsson
2006-08-22 10:25 ` Wolfgang Denk
2006-08-22 13:52   ` Ulf Samuelsson
2006-08-22 15:38     ` Wolfgang Denk
2006-08-22 19:02       ` Ulf Samuelsson [this message]
2006-08-22 19:02       ` Ulf Samuelsson
2006-08-22 20:26         ` Wolfgang Denk
2006-08-23 15:03           ` Andreas Schweigstill
2006-08-23 15:23             ` Jeff Mock
2006-08-23 16:44               ` [U-Boot-Users] Off-topic: Serial port redirection Andreas Schweigstill
2006-08-23 19:35                 ` Wolfgang Denk
2006-08-23 19:48                   ` Jerry Van Baren
2006-08-23 20:45             ` [U-Boot-Users] Submitting Patch at sourceforge fails Ulf Samuelsson
2006-08-23 22:25               ` Wolfgang Denk
2006-08-23 20:21           ` [U-Boot-Users] Makefile suggestion Ulf Samuelsson
2006-08-23 22:07             ` Wolfgang Denk
2006-08-24  7:53               ` Ulf Samuelsson
2006-08-24  9:29                 ` Wolfgang Denk
2006-08-23  8:06         ` [U-Boot-Users] Submitting Patch at sourceforge fails Stefan Roese
2006-08-23  8:13           ` Ulf Samuelsson
2006-08-23  9:46             ` Stefan Roese

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='002d01c6c61d$7fa21e00$f64765d5@atmel.com' \
    --to=ulfs@dof.se \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox