mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Franck Jullien <franck.jullien@gmail.com>
To: barebox <barebox@lists.infradead.org>
Subject: Re: howto cp to flash
Date: Mon, 19 Nov 2012 09:24:07 +0100	[thread overview]
Message-ID: <CAJfOKByh0QaW_UwoXVztcwR8VmZp8M3w+_95q=xTYYgorTNCxw@mail.gmail.com> (raw)
In-Reply-To: <20121119081815.GA8572@greatfirst.com>

2012/11/19 zzs <zzs213@126.com>:
> After download zbarebox.bin to /, I wrote it to flash
>
>    tftp barebox.bin
>    memcpy -b -s./zbarebox.bin -d/dev/nor0.root 0 0
>
> Then I dump both:
>
> # md -s /dev/nor0.root
> 00000000: ffffffff ffffffff ffffffff ffffffff                ................
> 00000010: ffffffff ffffffff ffffffff ffffffff                ................
> 00000020: ffffffff ffffffff ffffffff ffffffff                ................
>
> # md -s ./zbarebox.bin
> 00000000: ea00000a eafffffe eafffffe eafffffe                ................
> 00000010: eafffffe 0000016c eafffffe eafffffe                ....l...........
> 00000020: 65726162 00786f62 23b00000 0002389c                barebox....#.8..
>
> No contents in flash, Why?
>
> Another question:
>
> How can I get file size in script?
>
> --
> Best Regards,
> zzs
>
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

Hi,

Did you erase the flash ?
You can also directly do a tftp barebox.bin /dev/nor0.your_partition

Franck.

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

  reply	other threads:[~2012-11-19  8:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19  8:18 zzs
2012-11-19  8:24 ` Franck Jullien [this message]
2012-11-19  8:32 ` Eric Bénard
2012-11-19  8:36 ` zzs
2012-11-19 10:05   ` Sascha Hauer

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='CAJfOKByh0QaW_UwoXVztcwR8VmZp8M3w+_95q=xTYYgorTNCxw@mail.gmail.com' \
    --to=franck.jullien@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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