From: Ramasamy C <thedavinci@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] u-boot cp command for at91rm9200
Date: Sat, 27 Oct 2007 13:02:54 -0700 (PDT) [thread overview]
Message-ID: <13446834.post@talk.nabble.com> (raw)
In-Reply-To: <c785bba30710261050n21d520csdb8c058c6a7bb6bd@mail.gmail.com>
Paul Thomas-12 wrote:
>
> I can't seem to get the CP command to work at all. I want to test it by
> doing a simple SDRAM copy. I know the SDRAM works and I know where it is
> because I can use tftp to load a kernel image, and then boot the kernel
> from
> RAM. I am using the linuxstamp <http://opencircuits.com/Linuxstamp> which
> is
> based on atmel's at91rm9200. The main version I have been using is a
> patched
> version of 1.1.6. I have also tried 1.3.0-rc3. Both versions have the same
> result. If I do
>> tftpboot 20100000 uImage
> This works. If I do
>> md 20000000
> or
>> md 20001000
> It works, but if I do
>> cp 20000000 20001000 256
> I get the error
> "Copy to Flash... General Flash Programming Error"
> Why does it think this is a flash operation? I am using RAM addresses. If
> I
> do
>> protect off all
> It doesn't change anything
>
> I feel like I don't understand something important about how CP works.
> Please help.
>
> thanks,
> Paul
>
From your board definitions if i understand, the CFG_FLASH_BASE is at
0x10000000 for 2 Megs. Please check with "flinfo" command to see if the
sectors are listed out correctly. The problem seems to be that the address
20001000 in "cp" command is detected in the flash region. In case if it is
in the RAM region, it should be copied.
Moreover, direct tftp to flash region is possible. So, we cannot conclude
from tftp that the address is in RAM region.
Ramasamy C
--
View this message in context: http://www.nabble.com/u-boot-cp-command-for-at91rm9200-tf4698848.html#a13446834
Sent from the Uboot - Users mailing list archive at Nabble.com.
next prev parent reply other threads:[~2007-10-27 20:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 17:50 [U-Boot-Users] u-boot cp command for at91rm9200 Paul Thomas
2007-10-27 19:18 ` sughosh ganu
2007-10-28 6:07 ` sughosh ganu
2007-10-27 20:02 ` Ramasamy C [this message]
2007-10-28 6:22 ` Ramasamy C
2007-10-28 6:41 ` Paul Thomas
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=13446834.post@talk.nabble.com \
--to=thedavinci@gmail.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 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.