From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mailbox.openface.ca ([216.46.1.7]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WAKpS-0008G9-0s for ptxdist@pengutronix.de; Mon, 03 Feb 2014 15:48:55 +0100 Received: from MSI-01-S01.MSI.Local (mail.morganschaffer.com [207.115.108.90]) by mailbox.openface.ca (8.14.2/8.14.2) with ESMTP id s13EmrS4025902 for ; Mon, 3 Feb 2014 09:48:53 -0500 (EST) From: "Balasa, Bogdan" Date: Mon, 3 Feb 2014 14:48:51 +0000 Message-ID: <4C598A31AEBE214FB619D7F2DC3BD8AB0127A149E6@MSI0E01.MSI.Local> Content-Language: fr-FR MIME-Version: 1.0 Subject: [ptxdist] bareboxenv from userspace Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0706304927==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============0706304927== Content-Language: fr-FR Content-Type: multipart/alternative; boundary="_000_4C598A31AEBE214FB619D7F2DC3BD8AB0127A149E6MSI0E01MSILoc_" --_000_4C598A31AEBE214FB619D7F2DC3BD8AB0127A149E6MSI0E01MSILoc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 lik= e a saveenv is missing). What am I missing such that the changes to be saved in the persistent stora= ge '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 --_000_4C598A31AEBE214FB619D7F2DC3BD8AB0127A149E6MSI0E01MSILoc_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I try to modify the barebox environment from linux u= serspace with:

 

1.      Load environment from SPI NOR flash:

         &nb= sp;     ./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.<= /o:p>

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

--_000_4C598A31AEBE214FB619D7F2DC3BD8AB0127A149E6MSI0E01MSILoc_-- --===============0706304927== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0706304927==--