[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: error message "Device out of space" while writing to flash 2



- i appended  the bootlog from 'dmesg', this seems OK,
- i also deleted the file 'network.conf' already but when i try to create it
with 'cp mac.conf network.conf' from the console, I get the 'Device out of
space'.
 there are 2 larger files on /etc, one 70kByte, one 30kByte.

is there a way to start the garbage collection without erasing the whole
file system?

the manual workaround is not reasonable, because customers will change the
network address later and they have no access to the console (and wouldn't
accept this solution).

Thanks, Andreas

Axis flash mapping: 8000000 at 50000000
Axis flash: Found an alias at 0x200000 for the chip at 0x0
Axis flash: Found an alias at 0x400000 for the chip at 0x0
Axis flash: Found an alias at 0x600000 for the chip at 0x0
Axis flash: Found an alias at 0x800000 for the chip at 0x0
Axis flash: Found an alias at 0xa00000 for the chip at 0x0
Axis flash: Found an alias at 0xc00000 for the chip at 0x0
Axis flash: Found an alias at 0xe00000 for the chip at 0x0
Axis flash: Found an alias at 0x1000000 for the chip at 0x0
Axis flash: Found an alias at 0x1200000 for the chip at 0x0
Axis flash: Found an alias at 0x1400000 for the chip at 0x0
Axis flash: Found an alias at 0x1600000 for the chip at 0x0
Axis flash: Found an alias at 0x1800000 for the chip at 0x0
Axis flash: Found an alias at 0x1a00000 for the chip at 0x0
Axis flash: Found an alias at 0x1c00000 for the chip at 0x0
Axis flash: Found an alias at 0x1e00000 for the chip at 0x0
Axis flash: Found an alias at 0x2000000 for the chip at 0x0
Axis flash: Found an alias at 0x2200000 for the chip at 0x0
Axis flash: Found an alias at 0x2400000 for the chip at 0x0
Axis flash: Found an alias at 0x2600000 for the chip at 0x0
Axis flash: Found an alias at 0x2800000 for the chip at 0x0
Axis flash: Found an alias at 0x2a00000 for the chip at 0x0
Axis flash: Found an alias at 0x2c00000 for the chip at 0x0
Axis flash: Found an alias at 0x2e00000 for the chip at 0x0
Axis flash: Found an alias at 0x3000000 for the chip at 0x0
Axis flash: Found an alias at 0x3200000 for the chip at 0x0
Axis flash: Found an alias at 0x3400000 for the chip at 0x0
Axis flash: Found an alias at 0x3600000 for the chip at 0x0
Axis flash: Found an alias at 0x3800000 for the chip at 0x0
Axis flash: Found an alias at 0x3a00000 for the chip at 0x0
Axis flash: Found an alias at 0x3c00000 for the chip at 0x0
Axis flash: Found an alias at 0x3e00000 for the chip at 0x0
 Amd/Fujitsu Extended Query Table v1.0 at 0x0040
number of CFI chips: 1
 Found valid partition table at 0x5001000A-0x50010056.
  /dev/flash1 at 0x10000, size 0x1a0000
  /dev/flash2 at 0x1b0000, size 0x50000
 Adding readonly partition for romfs image:
  /dev/flash3 at 0x7c727, size 0xfa000
Creating 4 MTD partitions on "Axis flash":
0x00000000-0x00200000 : "part0"
0x00010000-0x001b0000 : "part1"
0x001b0000-0x00200000 : "part2"
0x0007c727-0x00176727 : "romfs"



-----Ursprüngliche Nachricht-----
Von: owner-dev-etrax@xxxxxxx.com]Im">mailto:owner-dev-etrax@xxxxxxx.com]Im
Auftrag von Jonas Holmberg
Gesendet: Dienstag, 11. Juni 2002 15:12
An: Andreas Malzahn
Cc: dev-etrax@xxxxxxx.com; Pavel Batian
Betreff: Re: error message "Device out of space" while writing to flash
2


On Tue, 2002-06-11 at 14:33, Andreas Malzahn wrote:
> some update to my question:
> we now have a system where we cannot write to flash because of 'device out
> of space' error, the command 'df' says:
>
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/flash3               2808      2808         0 100% /
> /dev/flash2                192       120        72  63% /mnt/flash
> tmpfs                     3328        40      3288   1% /var
>
> so there should be enough space to write the file 'network.conf' in
> /etc/network.
>
> but we cannot write the file, even after rebooting the hardware.
>
> any help?

I'm not sure I trust df when it comes to JFFS. Try

du -s /mnt/flash

instead. (I'm not sure I trust that either:-)

It seems that JFFS for some reason cannot do garbage collect. Do you see
any strange messages on the debug port (or if you run "dmesg")? Do you
have any really big file on that partition?

You can erase the partition manually if you dare:

init 1
(wait 20secs or so)
cd /
tar -cvf /tmp/flash.tgz mnt/flash
umount /mnt/flash
eraseflash /dev/cflash2
(takes a while)
mount -t jffs /dev/flash2 /mnt/flash
tar -xvf /tmp/flash.tgz
init 3

That should free any garbage in the file system (but you're quite
vulnerable to power loss between eraseflash and init 3).

Best regards
/Jonas