* Intel P30, locked sectors?
@ 2006-09-06 13:50 Nils Faerber
2006-09-06 14:16 ` Justin Clacherty
2006-09-06 14:25 ` Nicolas Pitre
0 siblings, 2 replies; 8+ messages in thread
From: Nils Faerber @ 2006-09-06 13:50 UTC (permalink / raw)
To: linux-mtd
Hi!
I now did a kernel update (in fact, I started over with a new kernel)
and am now using 2.6.18-RC6 from kernel.org.
I have read access to the flash, rootfs is mounted correctly but at
first write attempt I get:
[42949375.150000] Freeing init memory: 96K
[42949376.480000] Erase at 0x00cc0000 failed immediately: -EROFS. Is the
sector locked?
[42949377.520000] Erase at 0x00c80000 failed immediately: -EROFS. Is the
sector locked?
[42949378.560000] Erase at 0x00c40000 failed immediately: -EROFS. Is the
sector locked?
[42949379.600000] Erase at 0x00c00000 failed immediately: -EROFS. Is the
sector locked?
I had hoped that the P30 chips would be supported now, but it seems they
are not fully. How can I unlock the sectors, if that is really the issue
here.
This is really starting to scare me a little ;)
Thanks in advance!
Cheers
nils faerber
--
kernel concepts GbR Tel: +49-271-771091-12
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen Mob: +49-176-21024535
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Intel P30, locked sectors?
2006-09-06 13:50 Intel P30, locked sectors? Nils Faerber
@ 2006-09-06 14:16 ` Justin Clacherty
2006-09-06 14:19 ` Nils Faerber
2006-09-06 14:25 ` Nicolas Pitre
1 sibling, 1 reply; 8+ messages in thread
From: Justin Clacherty @ 2006-09-06 14:16 UTC (permalink / raw)
To: Nils Faerber; +Cc: linux-mtd
Nils Faerber wrote:
> I had hoped that the P30 chips would be supported now, but it seems they
> are not fully. How can I unlock the sectors, if that is really the issue
> here.
>
P30 flash is supported in that it supports CFI. You can read and write
to it as long as it's unlocked. CFI does not support automatic
unlocking, it assumes if it's locked, it's locked for a reason. The
bootloader has to ensure that the sectors occupied by the rootfs are
unlocked before mounting the filesystem. We're using P30 here without
problems.
Justin.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Intel P30, locked sectors?
2006-09-06 14:16 ` Justin Clacherty
@ 2006-09-06 14:19 ` Nils Faerber
2006-09-06 15:12 ` Justin Clacherty
0 siblings, 1 reply; 8+ messages in thread
From: Nils Faerber @ 2006-09-06 14:19 UTC (permalink / raw)
To: Justin Clacherty; +Cc: linux-mtd
Justin Clacherty schrieb:
> Nils Faerber wrote:
>> I had hoped that the P30 chips would be supported now, but it seems they
>> are not fully. How can I unlock the sectors, if that is really the issue
>> here.
> P30 flash is supported in that it supports CFI. You can read and write
> to it as long as it's unlocked. CFI does not support automatic
> unlocking, it assumes if it's locked, it's locked for a reason. The
> bootloader has to ensure that the sectors occupied by the rootfs are
> unlocked before mounting the filesystem. We're using P30 here without
> problems.
Hmm... OK.
Just in theory, can one write to a locked sector?
I ask because I flashed the very same rootfs to the chip using the
bootloader. The bootloader, which is BLOB BTW, seems to be able to write
to the chips and the contents written also seems to be OK (since I can
boot and mount the rootfs).
> Justin.
Cheers
nils faerber
--
kernel concepts GbR Tel: +49-271-771091-12
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen Mob: +49-176-21024535
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Intel P30, locked sectors?
2006-09-06 13:50 Intel P30, locked sectors? Nils Faerber
2006-09-06 14:16 ` Justin Clacherty
@ 2006-09-06 14:25 ` Nicolas Pitre
2006-09-06 14:30 ` Nils Faerber
2006-09-06 15:17 ` Justin Clacherty
1 sibling, 2 replies; 8+ messages in thread
From: Nicolas Pitre @ 2006-09-06 14:25 UTC (permalink / raw)
To: Nils Faerber; +Cc: linux-mtd
On Wed, 6 Sep 2006, Nils Faerber wrote:
> Hi!
> I now did a kernel update (in fact, I started over with a new kernel)
> and am now using 2.6.18-RC6 from kernel.org.
>
> I have read access to the flash, rootfs is mounted correctly but at
> first write attempt I get:
>
> [42949375.150000] Freeing init memory: 96K
> [42949376.480000] Erase at 0x00cc0000 failed immediately: -EROFS. Is the
> sector locked?
Before the first write attempt you need to run flash-unlock on the
corresponding flash partition.
Nicolas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Intel P30, locked sectors?
2006-09-06 14:25 ` Nicolas Pitre
@ 2006-09-06 14:30 ` Nils Faerber
2006-09-06 15:17 ` Justin Clacherty
1 sibling, 0 replies; 8+ messages in thread
From: Nils Faerber @ 2006-09-06 14:30 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: linux-mtd
Nicolas Pitre schrieb:
> On Wed, 6 Sep 2006, Nils Faerber wrote:
>> I now did a kernel update (in fact, I started over with a new kernel)
>> and am now using 2.6.18-RC6 from kernel.org.
>> I have read access to the flash, rootfs is mounted correctly but at
>> first write attempt I get:
>> [42949375.150000] Freeing init memory: 96K
>> [42949376.480000] Erase at 0x00cc0000 failed immediately: -EROFS. Is the
>> sector locked?
> Before the first write attempt you need to run flash-unlock on the
> corresponding flash partition.
Ah, cool, thanks!
I guess that this tool is part of mtd-utils, right?
Will be tested ASAP! But I fear that will have to wait until tomorrow,
gotta go soon.
Thanks again!
> Nicolas
Cheers
nils faerber
--
kernel concepts GbR Tel: +49-271-771091-12
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen Mob: +49-176-21024535
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Intel P30, locked sectors?
2006-09-06 14:19 ` Nils Faerber
@ 2006-09-06 15:12 ` Justin Clacherty
0 siblings, 0 replies; 8+ messages in thread
From: Justin Clacherty @ 2006-09-06 15:12 UTC (permalink / raw)
To: Nils Faerber; +Cc: linux-mtd
Nils Faerber wrote:
> Just in theory, can one write to a locked sector?
>
No.
> I ask because I flashed the very same rootfs to the chip using the
> bootloader. The bootloader, which is BLOB BTW, seems to be able to write
> to the chips and the contents written also seems to be OK (since I can
> boot and mount the rootfs).
>
Not sure how blob works, maybe it unlocks, writes, then relocks...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Intel P30, locked sectors?
2006-09-06 14:25 ` Nicolas Pitre
2006-09-06 14:30 ` Nils Faerber
@ 2006-09-06 15:17 ` Justin Clacherty
2006-09-06 15:24 ` Nicolas Pitre
1 sibling, 1 reply; 8+ messages in thread
From: Justin Clacherty @ 2006-09-06 15:17 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: Nils Faerber, linux-mtd
Nicolas Pitre wrote:
> Before the first write attempt you need to run flash-unlock on the
> corresponding flash partition.
>
Will this work if it's your rootfs? ie. it will need to be mounted and
possibly written to before you get to the point where you can run
flash-unlock. I guess if you mount ro then there won't be any writes.
Justin.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Intel P30, locked sectors?
2006-09-06 15:17 ` Justin Clacherty
@ 2006-09-06 15:24 ` Nicolas Pitre
0 siblings, 0 replies; 8+ messages in thread
From: Nicolas Pitre @ 2006-09-06 15:24 UTC (permalink / raw)
To: Justin Clacherty; +Cc: Nils Faerber, linux-mtd
On Thu, 7 Sep 2006, Justin Clacherty wrote:
> Nicolas Pitre wrote:
> > Before the first write attempt you need to run flash-unlock on the
> > corresponding flash partition.
> >
> Will this work if it's your rootfs? ie. it will need to be mounted and
> possibly written to before you get to the point where you can run
> flash-unlock.
Up to you to manage for flash-unlock to be executed before writes.
> I guess if you mount ro then there won't be any writes.
Yes, And then you can remount rw.
Nicolas
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-09-06 15:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-06 13:50 Intel P30, locked sectors? Nils Faerber
2006-09-06 14:16 ` Justin Clacherty
2006-09-06 14:19 ` Nils Faerber
2006-09-06 15:12 ` Justin Clacherty
2006-09-06 14:25 ` Nicolas Pitre
2006-09-06 14:30 ` Nils Faerber
2006-09-06 15:17 ` Justin Clacherty
2006-09-06 15:24 ` Nicolas Pitre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox