From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Atmel AT91RM9200: U-Boot refuses to copy to a particular sector of flash memory
Date: Mon, 20 Oct 2008 13:15:13 +0200 [thread overview]
Message-ID: <20081020111513.GA20502@game.jcrosoft.org> (raw)
In-Reply-To: <7df14ee10810200216r2c084902qeef00b3d43da851d@mail.gmail.com>
On 17:16 Mon 20 Oct , Ki Chi Leung wrote:
> Hello list,
hi
Could you specify the U-Boot version.
the command sequence that you use please
Best Regards,
J.
>
> I am trying to load a Linux 2.6.22 kernel uimage on the flash memory
> of a custom Atmel AT91RM9200 board. From U-Boot the flash memory map
> is as follows:
>
> U-Boot> flinfo
> DataFlash:AT45DB161
> Nb pages: 4096
> Page Size: 528
> Size= 2162688 bytes
> Logical address: 0xC0000000
> Area 0: C0000000 to C0007FFF (RO)
> Area 1: C0008000 to C001FFFF (RO)
> Area 2: C0020000 to C0027FFF
> Area 3: C0028000 to C020FFFF
>
> Bank # 1: Atmel: AT49BV163D (16Mbit)
> Size: 2 MB in 39 Sectors
> Sector Start Addresses:
> 10000000 (RO) 10002000 (RO) 10004000 (RO) 10006000 10008000
> 1000A000 1000C000 1000E000 (RO) 10010000 (RO) 10020000
> 10030000 10040000 10050000 10060000 10070000
> 10080000 10090000 100A0000 100B0000 100C0000
> 100D0000 100E0000 100F0000 10100000 10110000
> 10120000 10130000 10140000 10150000 10160000
> 10170000 10180000 10190000 101A0000 101B0000
> 101C0000 101D0000 101E0000 101F0000
>
btw I supposed that 1000E000 (RO) 10010000 (RO) is your env sector, maybe you
can put the env just after U-Boot itself to not loose space.
> I also have 2x 48LC8M16A2 modules (32MB, SDRAM, address 0x20000000 -
> 0x21ffffff) which I download the kernel to before copying to flash.
do check that the uImage in ram is correct? (just to be sure)
>
> I have to copy the kernel into the flash starting at address
> 0x10020000 (lower addresses reserved by U-Boot apparently). However,
> when I try to copy the 1018KB uimage, the copy always fails with
> "flash not erased", even after the sectors have been unprotected and
> erased.
Best Regards,
J.
next prev parent reply other threads:[~2008-10-20 11:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-20 9:16 [U-Boot] Atmel AT91RM9200: U-Boot refuses to copy to a particular sector of flash memory Ki Chi Leung
2008-10-20 11:15 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2008-10-20 14:59 ` 7words.sg at gmail.com
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=20081020111513.GA20502@game.jcrosoft.org \
--to=plagnioj@jcrosoft.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