Hardware RO & delays [DOC2000]
dwmw2 at infradead.org
Fri Jan 7 04:15:40 EST 2000
dviro at lucidvon.com said:
> 1. Is there a way to tell the flash (DoC2000) to mark a certain part
> of it as read only? I know I can mount a certain partition as read
> only, but can I protect it at a lower level?
Not per partition, but per NFTL. Yes - if you modify nftl.c to register the
blockdevice as readonly, then refuse to process any writes to that device,
you'll be fine.
You can have more than one NFTL 'drive' on each DiskOnChip, arccording to my
reading of the specifications - although I'm not sure if the firmware will see
both of them. You might need to make sure the boot drive is the first one on
the DiskOnChip, so that the BIOS sees it.
> 2. Does the driver block the system? I'm experience delays in
> sending udp packets over ethernet for periods of 50-300 miliseconds.
> I have a function that is supposed to send every several miliseconds
> a packets, and when going over the logs, I once in a while see a
> packet that is delayed for several tens of miliseconds, which is not
> acceptable by me.
Yes, it does all its flash access, even waiting for erases to finish, with
> Any ideas?
Yes. I know exactly how I'm going to thread it, and lock the device / each
chip etc. against multiple accesses. I just haven't done it yet.
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd