Skip to contentSkip to conversation

Write Protect Error re-flashing /dev/nor0.barebox

DISCUSSION Jerry Kirk 3 participants 5 messages Sep 26, 2012 – Sep 28, 2012

lore
Share & tools
lore

Jerry Kirk

author
#0 lore raw

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

author
#2 lore raw
Quoted 9 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 6 lines · Jerry Kirk

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw
In reply to Jerry Kirk

Hi Jerry,

Quoted 5 lines · Jerry Kirk

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

Quoted 7 lines

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 <[email protected]>
Date:   Mon Jun 25 14:03:27 2012 +0200

fs/devfs.c: disallow write and erase if a partition is read-only

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox