mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Is there any way to dump more than 0x100 bytes from nand flash?
@ 2012-08-24 14:19 Calvin Johnson
  2012-08-24 16:02 ` Antony Pavlov
  0 siblings, 1 reply; 3+ messages in thread
From: Calvin Johnson @ 2012-08-24 14:19 UTC (permalink / raw)
  To: barebox

Hi,

In U-Boot there is "nand dump <address>" command which is very useful
to check the contents of the NAND page and OOB area.

I tried searching for an alternative in Barebox, and found that we can
use some thing like "md -b -s /dev/nand0.barebox.bb". But this will
dump only 0x100 bytes. In order to increase the size, I need to
compile again.

Is there any way to dump more bytes from the NAND flash and from
different blocks/pages?

How are the experts working with this?

Thanks for your help,
Calvin

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there any way to dump more than 0x100 bytes from nand flash?
  2012-08-24 14:19 Is there any way to dump more than 0x100 bytes from nand flash? Calvin Johnson
@ 2012-08-24 16:02 ` Antony Pavlov
  2012-08-27  4:29   ` Calvin Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Antony Pavlov @ 2012-08-24 16:02 UTC (permalink / raw)
  To: Calvin Johnson; +Cc: barebox

On 24 August 2012 18:19, Calvin Johnson <linux.cj@gmail.com> wrote:
> Hi,
>
> In U-Boot there is "nand dump <address>" command which is very useful
> to check the contents of the NAND page and OOB area.
>
> I tried searching for an alternative in Barebox, and found that we can
> use some thing like "md -b -s /dev/nand0.barebox.bb". But this will
> dump only 0x100 bytes. In order to increase the size, I need to
> compile again.
> Is there any way to dump more bytes from the NAND flash and from
> different blocks/pages?
>

please try "md -b -s /dev/nand0.barebox.bb <dump offset>+<dump size>",
e.g.
  md -b -s /dev/nand0.barebox.bb 0+0x200

> How are the experts working with this?
>

Sorry, I'm not an expert :)))

-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there any way to dump more than 0x100 bytes from nand flash?
  2012-08-24 16:02 ` Antony Pavlov
@ 2012-08-27  4:29   ` Calvin Johnson
  0 siblings, 0 replies; 3+ messages in thread
From: Calvin Johnson @ 2012-08-27  4:29 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Fri, Aug 24, 2012 at 9:32 PM, Antony Pavlov <antonynpavlov@gmail.com> wrote:
> On 24 August 2012 18:19, Calvin Johnson <linux.cj@gmail.com> wrote:
>> Hi,
>>
>> In U-Boot there is "nand dump <address>" command which is very useful
>> to check the contents of the NAND page and OOB area.
>>
>> I tried searching for an alternative in Barebox, and found that we can
>> use some thing like "md -b -s /dev/nand0.barebox.bb". But this will
>> dump only 0x100 bytes. In order to increase the size, I need to
>> compile again.
>> Is there any way to dump more bytes from the NAND flash and from
>> different blocks/pages?
>>
>
> please try "md -b -s /dev/nand0.barebox.bb <dump offset>+<dump size>",
> e.g.
>   md -b -s /dev/nand0.barebox.bb 0+0x200

Thanks a lot Antony. It worked out. :)-

>
>> How are the experts working with this?
>>
>
> Sorry, I'm not an expert :)))

:)- For me you are an expert.

> --
> Best regards,
>   Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-27  4:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-24 14:19 Is there any way to dump more than 0x100 bytes from nand flash? Calvin Johnson
2012-08-24 16:02 ` Antony Pavlov
2012-08-27  4:29   ` Calvin Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox