public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Building u-boot for the AT91RM9200-EK circa 2008
Date: Sat, 1 Nov 2008 15:34:11 +0100	[thread overview]
Message-ID: <002901c93c2e$f1537330$3a3118ac@Glamdring> (raw)
In-Reply-To: 20081101094437.GA7906@game.jcrosoft.org



> On 17:34 Fri 31 Oct     , Pink Boy wrote:
>>
>> Hi, first post here.
>>
>> vis: Building u-boot for the AT91RM9200-EK circa 2008
>>
>> Is this still possible all things considered? It appears that
>> this board is left behind in a backwater sometime around 2006.
>>
>> Problem is I need to compile a new version of u-boot for my
>> new board based on the AT91RM9200 and I'm having a lot of trouble.
>> My board is very closely based on the AT91RM9200-EK, pretty much
>> the same except the flash has changed. So I need to modify u-boot
>> to handle the new flash (AT49BV642D). I'm running into real
>> problems, at least for a noob.
>>
>> On my board I can get two versions of u-boot to run, the 1.1.5
>> version that comes with the AT91RM9200 development kit. And an
>> ancient u-boot 1.1.1 that I got off Atmel's website which
>> surprisingly enough will write to the new flash chip I have
>> installed, even though it thinks there is only 2M installed
>> instead of 8M And I can use it to do setenv, etc and load
>> uboot 1.1.5 into flash and boot linux over the network connection.
>>
>> So far so good. So my hardware works, I just need a version of
>> u-boot that supports the AT49BV642D. Patching the source seems
>> easy enough. However. Problem is that the official distribution
>> of u-boot has no support for the AT91RM9200-EK. Which is sad.
>> Very very sad.
>>
>> I tried compiling u-boot from scratch using the instructions
>> on this page.
>>
>> http://www.linux4sam.org/twiki/bin/view ... _x_sources
>>
>> Namely,
>> wget ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.5.tar.bz2
>> tar xvjf u-boot-1.1.5.tar.bz2
>> cd u-boot-1.1.5
>>
>> wget ftp://www.linux4sam.org/pub/uboot/u-boo ... 5.diff.bz2
>> bzcat u-boot-1.1.5_atmel_1.5.diff.bz2 | patch -p1
>>
>> Then
>>
>> I fixed up two lines in the examples make file adding an .o
>> at the end in order to make the 3.81 linker happy.
>>
>> Line 147 :
>>   $(obj)%.srec: $(obj)%.o
>> Line 150
>>   $(obj)%.bin: $(obj)%.o
>>
>> Then
>>
>> make distclean
>> make at91sam9263ek_config
>> make CROSS_COMPILE=<path_to_cross-compiler/cross-compiler-prefix->
> why do you try to use the at91sam9263ek board on the AT91RM9200EK?
>
> and the AT91RM9200EK is not so far from the AT91SAM9200DK which is 
> mainline
>
> and they are not so much different execept some PIO settings
>
> IIRC Ulf send some patch 2 years ago
>
> Maybe he can resend a rebased version?
>

Anyone building a linux kernel using buildroot 
(http://buildroot.uclibc.org/).
will get my patches vs U-Boot 1.2.0.

Since the U-Boot community insists that the tested working flash driver
cannot be merged in the std U-boot, and has to be replaced by
the CFI driver which does not work on the EK (I am told)
I have no plans to resubmit at this time.


> Best Regards,
> J.



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 

  reply	other threads:[~2008-11-01 14:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-31 21:40 [U-Boot] Pull request: nand flash Scott Wood
2008-11-01  0:34 ` [U-Boot] Building u-boot for the AT91RM9200-EK circa 2008 Pink Boy
2008-11-01  9:44   ` Jean-Christophe PLAGNIOL-VILLARD
2008-11-01 14:34     ` Ulf Samuelsson [this message]
2008-11-02  0:34     ` Pink Boy
2008-11-03  7:26   ` Martin Hejnfelt
2008-11-03 11:11     ` Wolfgang Denk
2008-11-03 12:07       ` Martin Hejnfelt
2008-11-03 20:11         ` Wolfgang Denk
2008-11-03 21:40           ` Pink Boy
2008-11-03 22:51             ` James Black
2008-11-03 23:02             ` Wolfgang Denk
2008-11-06  1:48           ` Pink Boy
2008-11-06  8:15             ` Wolfgang Denk
2008-11-01 15:21 ` [U-Boot] Pull request: nand flash Wolfgang Denk

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='002901c93c2e$f1537330$3a3118ac@Glamdring' \
    --to=ulf.samuelsson@atmel.com \
    --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