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

4M flash writes failing



I am seeing an issue when verifying I can write my internal flash.

etrax100boot has no trouble writing the image to flash.
There is no external SDRAM.
The problem is that simply writing a file to /mnt/flash appears to work 
just fine until the power is lost. Once powered back up, the file is gone.
I turned the CONFIG_JFFS2_FS_DEBUG=1 on and saw nothing suspicious (see 
below).

The same software works on a...
Axis Etrax 100LX MCM 4+16
20016
0339
but fails on a...
Axis Etrax 100LX MCM 4+16
20016
0407 ???????????????

Does anyone know of differences in these two builds of modules???

I have the devices mounted in the following manner.

[root@AxisProduct /bin]224# mount
rootfs on / type rootfs (rw)
/dev/flash3 on / type cramfs (ro)
/dev/flash2 on /mnt/flash type jffs2 (rw)
proc on /proc type proc (rw)
tmpfs on /var type tmpfs (rw)
devpts on /dev/pts type devpts (rw)

This was the output after "touch 29TEST.txt"

jffs2_create()
jffs2_reserve_space(): Requested 0x44 bytes
jffs2_reserve_space(): alloc sem got
jffs2_do_reserve_space(): Giving 0x8390 bytes at 0x7c70
jffs2_create(): reserved 0x8390 bytes
jffs2_new_inode(): dir_i 1, mode 0x81a4
Allocated inocache at c1f1300c
jffs2_new_inode(): Assigned ino# 136
jffs2_add_physical_node_ref(): Node at 0x7c70, size 0x44
jffs2_write_dnode wrote node at 0x00007c70 with dsize 0x0, csize 0x0, 
node_crc 0x0d2a122f, data_crc 0x00000000, totlen 0x00000044
jffs2_create created file with mode 0x81a4
jffs2_write_dirent(ino #1, name at *0xc164731c "29TEST.txt"->ino #136, 
name_crc 0xcdd9ce66)
jffs2_add_physical_node_ref(): Node at 0x7cb4, size 0x34
jffs2_complete_reservation()
thread_should_wake(): nr_free_blocks 15, nr_erasing_blocks 0, dirty_size 0x0
jffs2_add_fd_to_list( c1f3d6c0, c1f9c793 (->c0171f40))
jffs2_create: Created ino #136 with mode 100644, nlink 1(1). nrpages 0
jffs2_setattr(): ino #136
jffs2_reserve_space(): Requested 0x44 bytes
jffs2_reserve_space(): alloc sem got
jffs2_do_reserve_space(): Giving 0x8318 bytes at 0x7ce8
jffs2_add_physical_node_ref(): Node at 0x7ce8, size 0x44
jffs2_write_dnode wrote node at 0x00007ce8 with dsize 0x0, csize 0x0, 
node_crc 0x73525a89, data_crc 0x00000000, totlen 0x00000044
jffs2_complete_reservation()
thread_should_wake(): nr_free_blocks 15, nr_erasing_blocks 0, dirty_size 0x0
obliterating obsoleted node at 0x00007c70

dave