* [U-Boot-Users] Regarding memory commands
@ 2006-02-09 3:26 Herekar, Aniruddha
2006-02-09 5:48 ` S. Egbert
2006-02-09 9:03 ` Wolfgang Denk
0 siblings, 2 replies; 7+ messages in thread
From: Herekar, Aniruddha @ 2006-02-09 3:26 UTC (permalink / raw)
To: u-boot
Does memory commands mm, mw, mn and tftp work only with RAM memory and
not flash (nor or nand) memory?
If so are there any other commands other than 'cp' that can be used to
write into flash (nor or nand) memory?
With regards and thanks
Aniruddha Herekar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060209/7717776f/attachment.htm
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Regarding memory commands
2006-02-09 3:26 Herekar, Aniruddha
@ 2006-02-09 5:48 ` S. Egbert
2006-02-09 9:03 ` Wolfgang Denk
1 sibling, 0 replies; 7+ messages in thread
From: S. Egbert @ 2006-02-09 5:48 UTC (permalink / raw)
To: u-boot
Herekar, Aniruddha wrote:
> Does memory commands mm, mw, mn and tftp work only with RAM memory and
> not flash (nor or nand) memory?
>
> If so are there any other commands other than 'cp' that can be used to
> write into flash (nor or nand) memory?
>
Basic memory commands (mm. mw) work in any memory region that the
hardware supports.
You will have to be mindful of certain memory and interface devices
using only 16-bit or 8-bit access in a 32-bit architecture. Otherwise,
such attempts to use 32-bit read/write will result in the most
significant short-word or byte NOT to carry valid data value.
TFTP does work writing directly into unprotected FLASH region if the
CFG_DIRECT_FLASH_TFTP is defined in your include/configs/<board>.h file.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Regarding memory commands
@ 2006-02-09 6:20 Herekar, Aniruddha
2006-02-09 8:53 ` S. Egbert
0 siblings, 1 reply; 7+ messages in thread
From: Herekar, Aniruddha @ 2006-02-09 6:20 UTC (permalink / raw)
To: u-boot
Hi,
Thanks!
As you said memory commands work in any memory region, is it only the
internal flash memory or also external flash memory? By external memory
I mean to say that the NOR or NAND memory is not in the processor chip
(ARM). But NOR/NAND memories have separate chip and memory is mapped on
to the ARM memory map.
I suppose NAND memory has different command set like nand info, etc.
Then are these (mm, mw, md, etc) commands applicable for NAND memory
also?
With regards and thanks
Aniruddha Herekar
-----Original Message-----
From: S. Egbert [mailto:s.egbert at sbcglobal.net]
Sent: Thursday, February 09, 2006 11:19 AM
To: Herekar, Aniruddha
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Regarding memory commands
Herekar, Aniruddha wrote:
> Does memory commands mm, mw, mn and tftp work only with RAM memory and
> not flash (nor or nand) memory?
>
> If so are there any other commands other than 'cp' that can be used to
> write into flash (nor or nand) memory?
>
Basic memory commands (mm. mw) work in any memory region that the
hardware supports.
You will have to be mindful of certain memory and interface devices
using only 16-bit or 8-bit access in a 32-bit architecture. Otherwise,
such attempts to use 32-bit read/write will result in the most
significant short-word or byte NOT to carry valid data value.
TFTP does work writing directly into unprotected FLASH region if the
CFG_DIRECT_FLASH_TFTP is defined in your include/configs/<board>.h file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060209/f0431dce/attachment.htm
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Regarding memory commands
2006-02-09 6:20 [U-Boot-Users] Regarding memory commands Herekar, Aniruddha
@ 2006-02-09 8:53 ` S. Egbert
0 siblings, 0 replies; 7+ messages in thread
From: S. Egbert @ 2006-02-09 8:53 UTC (permalink / raw)
To: u-boot
Because it is essentially a file-store system and is not easily memory
mappable in a direct sense of a word, the current memory command sets
would not be easily extensible to cover this.
Closer examination of the U-boot cmd_nand.c shows that this is already
done (Thanks Wolfgang and gang!)
A snippet of the NAND usage is given below:
"nand - NAND sub-system\n",
"info - show available NAND devices\n"
"nand device [dev] - show or set current device\n"
"nand read[.jffs2[s]] addr off size\n"
"nand write[.jffs2] addr off size - read/write `size' bytes
starting\n"
" at offset `off' to/from memory address `addr'\n"
"nand erase [clean] [off size] - erase `size' bytes from\n"
" offset `off' (entire device if not specified)\n"
"nand bad - show bad blocks\n"
"nand read.oob addr off size - read out-of-band data\n"
"nand write.oob addr off size - read out-of-band data\n"
S. Egbert
Herekar, Aniruddha wrote:
>
> As you said memory commands work in any memory region, is it only the
> internal flash memory or also external flash memory? By external memory
> I mean to say that the NOR or NAND memory is not in the processor chip
> (ARM). But NOR/NAND memories have separate chip and memory is mapped on
> to the ARM memory map.
>
> I suppose NAND memory has different command set like nand info, etc.
> Then are these (mm, mw, md, etc) commands applicable for NAND memory
> also?
>
>
> Herekar, Aniruddha wrote:
>
>> Does memory commands mm, mw, mn and tftp work only with RAM memory and
>> not flash (nor or nand) memory?
>> If so are there any other commands other than 'cp' that can be used to
>> write into flash (nor or nand) memory?
>
> Basic memory commands (mm. mw) work in any memory region that the
> hardware supports.
>
> You will have to be mindful of certain memory and interface devices
> using only 16-bit or 8-bit access in a 32-bit architecture. Otherwise,
> such attempts to use 32-bit read/write will result in the most
> significant short-word or byte NOT to carry valid data value.
>
> TFTP does work writing directly into unprotected FLASH region if the
>
> CFG_DIRECT_FLASH_TFTP is defined in your include/configs/<board>.h file.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Regarding memory commands
2006-02-09 3:26 Herekar, Aniruddha
2006-02-09 5:48 ` S. Egbert
@ 2006-02-09 9:03 ` Wolfgang Denk
1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2006-02-09 9:03 UTC (permalink / raw)
To: u-boot
In message <2195AF8E2250C54D8D8A726C8AE84A3331C2C8@dbde01.ent.ti.com> you wrote:
>
> Does memory commands mm, mw, mn and tftp work only with RAM memory and
> not flash (nor or nand) memory?
The commands have usually no idea what sort of memeory (if any) is
attached to the addresses you pass. [Exception is cp and - epending
on the configuration - tftp which recognize NOR flash areas and use
flash write code then.]
> If so are there any other commands other than 'cp' that can be used to
> write into flash (nor or nand) memory?
cp is the only regular command to write to NOR flash. It cannot be
used for NAND, though. NAND has it's own interface, the nand command.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Landing: a controlled mid-air collision with a planet.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Regarding memory commands
@ 2006-02-09 9:35 Herekar, Aniruddha
0 siblings, 0 replies; 7+ messages in thread
From: Herekar, Aniruddha @ 2006-02-09 9:35 UTC (permalink / raw)
To: u-boot
Thanks!
With regards
Aniruddha Herekar
-----Original Message-----
From: S. Egbert [mailto:s.egbert at sbcglobal.net]
Sent: Thursday, February 09, 2006 2:23 PM
To: Herekar, Aniruddha
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Regarding memory commands
Because it is essentially a file-store system and is not easily memory
mappable in a direct sense of a word, the current memory command sets
would not be easily extensible to cover this.
Closer examination of the U-boot cmd_nand.c shows that this is already
done (Thanks Wolfgang and gang!)
A snippet of the NAND usage is given below:
"nand - NAND sub-system\n",
"info - show available NAND devices\n"
"nand device [dev] - show or set current device\n"
"nand read[.jffs2[s]] addr off size\n"
"nand write[.jffs2] addr off size - read/write `size' bytes
starting\n"
" at offset `off' to/from memory address `addr'\n"
"nand erase [clean] [off size] - erase `size' bytes from\n"
" offset `off' (entire device if not specified)\n"
"nand bad - show bad blocks\n"
"nand read.oob addr off size - read out-of-band data\n"
"nand write.oob addr off size - read out-of-band data\n"
S. Egbert
Herekar, Aniruddha wrote:
>
> As you said memory commands work in any memory region, is it only the
> internal flash memory or also external flash memory? By external
memory
> I mean to say that the NOR or NAND memory is not in the processor chip
> (ARM). But NOR/NAND memories have separate chip and memory is mapped
on
> to the ARM memory map.
>
> I suppose NAND memory has different command set like nand info, etc.
> Then are these (mm, mw, md, etc) commands applicable for NAND memory
> also?
>
>
> Herekar, Aniruddha wrote:
>
>> Does memory commands mm, mw, mn and tftp work only with RAM memory
and
>> not flash (nor or nand) memory?
>> If so are there any other commands other than 'cp' that can be used
to
>> write into flash (nor or nand) memory?
>
> Basic memory commands (mm. mw) work in any memory region that the
> hardware supports.
>
> You will have to be mindful of certain memory and interface devices
> using only 16-bit or 8-bit access in a 32-bit architecture.
Otherwise,
> such attempts to use 32-bit read/write will result in the most
> significant short-word or byte NOT to carry valid data value.
>
> TFTP does work writing directly into unprotected FLASH region if the
>
> CFG_DIRECT_FLASH_TFTP is defined in your include/configs/<board>.h
file.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Regarding memory commands
@ 2006-02-09 9:35 Herekar, Aniruddha
0 siblings, 0 replies; 7+ messages in thread
From: Herekar, Aniruddha @ 2006-02-09 9:35 UTC (permalink / raw)
To: u-boot
Thanks!
With regards
Aniruddha Herekar
-----Original Message-----
From: wd@denx.de [mailto:wd at denx.de]
Sent: Thursday, February 09, 2006 2:34 PM
To: Herekar, Aniruddha
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Regarding memory commands
In message <2195AF8E2250C54D8D8A726C8AE84A3331C2C8@dbde01.ent.ti.com>
you wrote:
>
> Does memory commands mm, mw, mn and tftp work only with RAM memory and
> not flash (nor or nand) memory?
The commands have usually no idea what sort of memeory (if any) is
attached to the addresses you pass. [Exception is cp and - epending
on the configuration - tftp which recognize NOR flash areas and use
flash write code then.]
> If so are there any other commands other than 'cp' that can be used to
> write into flash (nor or nand) memory?
cp is the only regular command to write to NOR flash. It cannot be
used for NAND, though. NAND has it's own interface, the nand command.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Landing: a controlled mid-air collision with a planet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060209/308a4922/attachment.htm
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-02-09 9:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-09 6:20 [U-Boot-Users] Regarding memory commands Herekar, Aniruddha
2006-02-09 8:53 ` S. Egbert
-- strict thread matches above, loose matches on Subject: below --
2006-02-09 9:35 Herekar, Aniruddha
2006-02-09 9:35 Herekar, Aniruddha
2006-02-09 3:26 Herekar, Aniruddha
2006-02-09 5:48 ` S. Egbert
2006-02-09 9:03 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox