mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] bareboxenv from userspace
@ 2014-02-03 14:48 Balasa, Bogdan
  2014-02-03 15:30 ` Juergen Beisert
  0 siblings, 1 reply; 2+ messages in thread
From: Balasa, Bogdan @ 2014-02-03 14:48 UTC (permalink / raw)
  To: ptxdist


[-- 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

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

* Re: [ptxdist] bareboxenv from userspace
  2014-02-03 14:48 [ptxdist] bareboxenv from userspace Balasa, Bogdan
@ 2014-02-03 15:30 ` Juergen Beisert
  0 siblings, 0 replies; 2+ messages in thread
From: Juergen Beisert @ 2014-02-03 15:30 UTC (permalink / raw)
  To: ptxdist; +Cc: Balasa, Bogdan

Hi Balasa,

On Monday 03 February 2014 15:48:51 Balasa, Bogdan wrote:
> I try to modify the barebox environment from linux userspace with:
> [...]

This is offtopic here. Please use the Barebox mailing list instead.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2014-02-03 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-03 14:48 [ptxdist] bareboxenv from userspace Balasa, Bogdan
2014-02-03 15:30 ` Juergen Beisert

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