From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] copy to flash ... outside available flash
Date: Mon, 13 Nov 2006 10:45:00 -0600 [thread overview]
Message-ID: <4558A10C.8090207@orkun.us> (raw)
In-Reply-To: <20061113115625.6c0d99ca@localhost>
Hi Thomas,
Thomas Ruschival wrote:
> Hi Group,
> I am trying to install a Ramdiskimage into the flash of a TQM823L Board.
> Somehow it seems uboot has problems to copy a image lager than 0x100000
> Bytes into flash. Here is my flashinfo:
>
> Bank # 1: AMD AM29LV160B (16 Mbit, bottom boot sect)
> Size: 4 MB in 35 Sectors
(snip)
> Bank # 2: AMD AM29LV160B (16 Mbit, bottom boot sect)
> Size: 4 MB in 35 Sectors
> Sector Start Addresses:
What flash driver are you using? This is not the output from standard
cfi_flash.c
> This means I have 8 MB o flash. I can copy a Block of 0xFFFFF Bytes from
> the RAM for example to 0x40100000. and I can copy the same Block to
> 0x40200000 or to 0x40300000.
> But if I copy a block that is larger than 0xFFFFF to any location it claims
> that I copy outside available Flash. This is stupid and wrong.
What is your exact cp command. Are you using cp.b or just cp? If you are
using just cp your length is in multiples of dwords (4 bytes). Did you
scale your size accordingly?
Also, I did not verify this but the cp command as it is implemented now
probably requires the start and end address to reside in a single flash
bank. Even if your two flashes have contiguous addresses assigned they
are still two banks. If you need to copy to flash that spans over two
banks you will probably need to split that into two operations.
> Ramdisk image size was 0x18CFC9
> Baseaddress: 0x40100000
> ramdisk size: + 0x0018CFC9
> ------------------------------
> end address 0x4028CFC9
>
> And this adress is surely not outside my flash. What is going on here?
You are crossing flash banks and your write is not ending in the bank
you started with.
Best regards,
Tolunay
next prev parent reply other threads:[~2006-11-13 16:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-13 11:56 [U-Boot-Users] copy to flash ... outside available flash Thomas Ruschival
2006-11-13 12:15 ` Martin Krause
2006-11-13 16:45 ` Tolunay Orkun [this message]
2006-11-13 19:38 ` Wolfgang Denk
2006-11-13 19:36 ` Wolfgang Denk
2006-11-14 10:48 ` Thomas Ruschival
2006-11-14 10:36 ` Demke Torsten-atd012
2006-11-14 21:14 ` 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=4558A10C.8090207@orkun.us \
--to=listmember@orkun.us \
--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.