mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Allen Kennedy Jr." <allen@kennedystuff.com>
To: barebox@lists.infradead.org
Subject: how to copy barebox to flash?
Date: Wed, 25 Sep 2013 11:13:47 -0500	[thread overview]
Message-ID: <CAO-21LPRAQ_xwi4Pup4uaPKv-ZSxDxt_7OsCjAmPfkeX6p8+_g@mail.gmail.com> (raw)

All,
  How do I copy barebox to flash?
I have a flash device setup:
     `---- imx_nand
          `---- nand0
               `---- 0x00000000-0x0fffffff: /dev/nand0
               `---- 0x00000000-0x0001ffff: /dev/bootstrapper
               `---- 0x00020000-0x0005ffff: /dev/barebox
               `---- 0x00060000-0x0009ffff: /dev/env_raw
               `---- 0x00100000-0x005fffff: /dev/kernel

I used JTAG to load barebox into memory at 0xa0000000

I just can't figure out how to copy it to flash... There is no DD command...
I tried this:
cp 0xa0000000 /dev/barebox 0x4000
got :
cp: target `0x4000' is not a directory

Seems barebox changed what 'cp' is from the old u-boot way.
and the nand command only does bad block handling...

barebox-update seems to be a candidate, but the docs don't make sense
on how to use.
Also I was thinking something like md > /dev/nand, but the output of
MD is user readable.

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

             reply	other threads:[~2013-09-25 16:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-25 16:13 Allen Kennedy Jr. [this message]
2013-09-25 19:55 ` 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=CAO-21LPRAQ_xwi4Pup4uaPKv-ZSxDxt_7OsCjAmPfkeX6p8+_g@mail.gmail.com \
    --to=allen@kennedystuff.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