Hello,
I have just written a new flash driver.
I can create without any problem flash filesystem on the:
- first three blocks
flashctl -p/dev/fs0p0 -e -f -l384k -n /flash -m -vvvvvvvv
Erasing device /dev/fs0p0
offset = 0,limit = 60000
…
Formatting device /dev/fs0p0
Mounting device /dev/fs0p0 at /flash
\
edf /flash
Name Total Used Free Percent Type
/flash 256K 1K 255K 0% flash
2) whole flash device
flashctl -p/dev/fs0p0 -e -f -n /flash -m -vvvvvvvv
Erasing device /dev/fs0p0
…
Formatting device /dev/fs0p0
Mounting device /dev/fs0p0 at /flash
edf /flash
Name Total Used Free Percent Type
/flash 32640K 27K 32613K 0% flash
But, when I try do it for example with three last blocks or three
penultimate blocks, then
mount command fails and prints the following error message:
flashctl -p /dev/fs0p0 -e -f -o32384k -l384k -n /flash -m -vvvvvvv
Erasing device /dev/fs0p0
offset = 1fa0000,limit = 2000000
…
Formatting device /dev/fs0p0
Mounting device /dev/fs0p0 at /flash
DCMD_F3S_MOUNT failed (errno 302)
flashctl: mounting partition failed
flashctl -p/dev/fs0p0 -e -f -o32256k -l384k -n /flash -m -vvvvvvvv
Erasing device /dev/fs0p0
offset = 1f80000,limit = 1fe0000
…
Formatting device /dev/fs0p0
Mounting device /dev/fs0p0 at /flash
DCMD_F3S_MOUNT failed (errno 302)
flashctl: mounting partition failed
Very interesting is that after driver restart partition is visible
and can be used without any problem.
…
mount
/dev/fs0p1 on /flash type flash
edf /flash
Name Total Used Free Percent Type
/flash 256K 1K 255K 0% flash
flashctl -i -p /dev/fs0p1
Array Info
Total : 0x02000000 100%
Chip Size : 0x02000000 100%
Unit Size : 0x00020000 0%
Part Info
Total : 0x00060000 100%
Spare : 0x00000000 0%
Headers : 0x00000000 0%
Padding : 0x00000000 0%
Overhead : 0x00000000 0%
Free : 0x00000000 0%
Stale : 0x00000000 0%
Avail. : 0x00000000 0%
Reserved : 0x00000000 0%
cd /bin
ecp pipe /flash
els /flash
pipe
Why does the mount command fail ?
What is a reason ?
Where this error message come from and how can I get rid of it?
Regards,
Jacek