mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Balasa, Bogdan" <BBalasa@Morganschaffer.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] bareboxenv from userspace
Date: Mon, 3 Feb 2014 14:48:51 +0000	[thread overview]
Message-ID: <4C598A31AEBE214FB619D7F2DC3BD8AB0127A149E6@MSI0E01.MSI.Local> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1172 bytes --]

Hi,

I try to modify the barebox environment from linux userspace with:


1.      Load environment from SPI NOR flash:
               ./bareboxenv-target -l /mnt /dev/mtd1


2.      Erase environment from SPI nor flash

flash_erase /dev/mtd1 0 0

# do some modifications in "/mnt"


3.      Save environment to NOR flash
./bareboxenv-target -s /mnt /dev/mtd1

----
After reset I can see my modifications in the files within barebox but the changes are not taken into account by barebox.
It's like they are not saved in the persistent storage "dev/env0".(it's like a saveenv is missing).

What am I missing such that the changes to be saved in the persistent storage 'dev/env0' from userspace?

---
Userspace:
cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00010000 "m25p0.barebox"
mtd1: 00010000 00010000 "m25p0.bareboxenv"
mtd2: 00200000 00020000 "nand0.barebox"
mtd3: 00020000 00020000 "nand0.bareboxenv"
mtd4: 00800000 00020000 "nand0.kernel"
mtd5: 03200000 00020000 "nand0.root"
mtd6: 00800000 00020000 "nand0.kernel2"
mtd7: 03200000 00020000 "nand0.root2"
mtd8: 389e0000 00020000 "nand0.data"

Thank you,
Bogdan Balasa

[-- Attachment #1.2: Type: text/html, Size: 6865 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2014-02-03 14:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-03 14:48 Balasa, Bogdan [this message]
2014-02-03 15:30 ` Juergen Beisert

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=4C598A31AEBE214FB619D7F2DC3BD8AB0127A149E6@MSI0E01.MSI.Local \
    --to=bbalasa@morganschaffer.com \
    --cc=ptxdist@pengutronix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox