mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Write Protect Error re-flashing /dev/nor0.barebox
@ 2012-09-26 19:07 Jerry Kirk
  2012-09-26 19:10 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-09-26 21:45 ` Sascha Hauer
  0 siblings, 2 replies; 5+ messages in thread
From: Jerry Kirk @ 2012-09-26 19:07 UTC (permalink / raw)
  To: barebox

We are updating from 2012-03 to 2012-09 and after flashing our SOM
(Phytec PCM043 - imx35) we starting getting this error:

barebox:/ erase /dev/nor0.barebox
                                     
erase: Operation not permitted

It worked the first time, when overwriting the 2012-03 image and booted, etc.
We have tried a few intermediate Barebox versions and think it worked up to 2012-
07.

Any ideas what we now need to do to be able to overwrite Barebox?




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

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

* Re: Write Protect Error re-flashing /dev/nor0.barebox
  2012-09-26 19:07 Write Protect Error re-flashing /dev/nor0.barebox Jerry Kirk
@ 2012-09-26 19:10 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-09-26 19:24   ` Jerry Kirk
  2012-09-26 21:45 ` Sascha Hauer
  1 sibling, 1 reply; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-09-26 19:10 UTC (permalink / raw)
  To: Jerry Kirk; +Cc: barebox

On 19:07 Wed 26 Sep     , Jerry Kirk wrote:
> We are updating from 2012-03 to 2012-09 and after flashing our SOM
> (Phytec PCM043 - imx35) we starting getting this error:
> 
> barebox:/ erase /dev/nor0.barebox
>                                      
> erase: Operation not permitted
did you unprotect first?

Best Regards,
J.

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

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

* Re: Write Protect Error re-flashing /dev/nor0.barebox
  2012-09-26 19:10 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-09-26 19:24   ` Jerry Kirk
  0 siblings, 0 replies; 5+ messages in thread
From: Jerry Kirk @ 2012-09-26 19:24 UTC (permalink / raw)
  To: barebox

Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...> writes:

> 
> On 19:07 Wed 26 Sep     , Jerry Kirk wrote:
> > We are updating from 2012-03 to 2012-09 and after flashing our SOM
> > (Phytec PCM043 - imx35) we starting getting this error:
> > 
> > barebox:/ erase /dev/nor0.barebox
> >                                      
> > erase: Operation not permitted
> did you unprotect first?

Yes, just didn't include that in my snippet. The unprotect command did 
not return an error.
 




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

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

* Re: Write Protect Error re-flashing /dev/nor0.barebox
  2012-09-26 19:07 Write Protect Error re-flashing /dev/nor0.barebox Jerry Kirk
  2012-09-26 19:10 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-09-26 21:45 ` Sascha Hauer
  2012-09-28 11:51   ` Jerry Kirk
  1 sibling, 1 reply; 5+ messages in thread
From: Sascha Hauer @ 2012-09-26 21:45 UTC (permalink / raw)
  To: Jerry Kirk; +Cc: barebox

Hi Jerry,

On Wed, Sep 26, 2012 at 07:07:32PM +0000, Jerry Kirk wrote:
> We are updating from 2012-03 to 2012-09 and after flashing our SOM
> (Phytec PCM043 - imx35) we starting getting this error:
> 
> barebox:/ erase /dev/nor0.barebox
>                                      
> erase: Operation not permitted
> 
> It worked the first time, when overwriting the 2012-03 image and booted, etc.
> We have tried a few intermediate Barebox versions and think it worked up to 2012-
> 07.
> 
> Any ideas what we now need to do to be able to overwrite Barebox?

I think you are the victim of a bug fix ;)

You probably registered the partition readonly. (see the 'ro'
flag in the mtdparts variable). Since some releases barebox
actually honors this flag:

commit a4fde70067b6113fd9dc7a4295ebd3f55b756db6
Author: Jan Luebbe <jlu@pengutronix.de>
Date:   Mon Jun 25 14:03:27 2012 +0200

    fs/devfs.c: disallow write and erase if a partition is read-only
    
    Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

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

* Re: Write Protect Error re-flashing /dev/nor0.barebox
  2012-09-26 21:45 ` Sascha Hauer
@ 2012-09-28 11:51   ` Jerry Kirk
  0 siblings, 0 replies; 5+ messages in thread
From: Jerry Kirk @ 2012-09-28 11:51 UTC (permalink / raw)
  To: barebox

Sascha Hauer <s.hauer@...> writes:
> On Wed, Sep 26, 2012 at 07:07:32PM +0000, Jerry Kirk wrote:
> > Any ideas what we now need to do to be able to overwrite Barebox?
> 
> I think you are the victim of a bug fix ;)

Thanks Sascha, that was it. 


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

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

end of thread, other threads:[~2012-09-28 11:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-26 19:07 Write Protect Error re-flashing /dev/nor0.barebox Jerry Kirk
2012-09-26 19:10 ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-26 19:24   ` Jerry Kirk
2012-09-26 21:45 ` Sascha Hauer
2012-09-28 11:51   ` Jerry Kirk

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