jffs problem
somshekar kadam
kadamsom at yahoo.co.in
Fri Oct 5 11:36:07 EDT 2001
hi david
thanks for giving hint
what did is i removed write32 in cfi_cmdset_0002.c
and replaced it with write8
and i am checking DQ7 and DQ5 to see erase or write
is completed ,nd i am reading base of each sector for
status
and now my flash driver is working perfectly
i am able to erase
write into it
but
now i am creating jffs image
and putting it in flash using dd
it is doing it
mounting flash file system
it is mounting it
when i power off and mount mtd1 contents of flash are
retained
i dont have any problem in creating
i am able to cp small files to jffs mount point /mnt
and delete it
but problem i faced is when delete any file
i get message as
free memory size accounting screwed up
iam using mkfs.jffs utility
and if i copy a big file some times it get hanged
or some times kernel panics
or some times it says no space left on device
down i have put
this message i get when i try to delete file
here rm1 is nothing but rm
and after a series of command it panics
verbosity i have given is 0
and if i give verbosity 3
a message continously displays as wake up thread
time.....
/*------------------------*/
bin
bash# rm1 rm
bash# ls
bash cp download ls mknod mtdflash4
rm1
cat dd erasx mkdir more mtdflash9
sh
chmod dmesg erasx1 mkfs.jffs mount ps
umount
bash# cd /usr
bash# ls
dd dmesg fstab inittab ld.so.cache loadscript
rc.d rm sh
bash# /bin/rm1 dd
Free size accounting screwed
free_chunk_size1 == 0x404, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c3d4
bash# /bin/rm1 sh
Free size accounting screwed
free_chunk_size1 == 0x3c8, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c398
bash# ls
dmesg fstab inittab ld.so.cache loadscript rc.d
rm
bash# ls -l
total 27
-rwxr-xr-x 1 0 0 4016 Dec 7
07:39 dmesg
-rw-r--r-- 1 0 0 608 Oct 8
2001 fstab
-rw-r--r-- 1 0 0 344 Oct 8
2001 inittab
-rw-r--r-- 1 0 0 11718 Oct 8
2001 ld.so.cache
-rwxrwxr-x 1 0 0 400 Oct 8
2001 loadscript
drwxrwxr-x 1 0 0 0 Oct 8
2001 rc.d
-rwxrwxrwx 1 0 0 9230 Dec 7
06:40 rm
bash# rm1 dmesg
Free size accounting screwed
free_chunk_size1 == 0x38c, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c35c
bash# ls
fstab inittab ld.so.cache loadscript rc.d rm
bash# rm1 rm
Free size accounting screwed
free_chunk_size1 == 0x350, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c320
bash# ls
fstab inittab ld.so.cache loadscript rc.d
bash# cd /bin
bash# ls
bash cp download ls mknod mtdflash4
rm1
cat dd erasx mkdir more mtdflash9
sh
chmod dmesg erasx1 mkfs.jffs mount ps
umount
bash# cp bash /usr
Free size accounting screwed
free_chunk_size1 == 0x314, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c2e4
Free size accounting screwed
free_chunk_size1 == 0x2d4, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c2a4
JFFS: Tried to allocate a too large flash memory
chunk. (size = 4160)
jffs_flash_erasable_size() given non-aligned offset
f4a4 (erasesize 20000)
jffs_erasable_size: flash_erasable_size() returned
something less than zero (-1)
.
jffs_erasable_size: offset = 0x0000f4a4
Free size accounting screwed
free_chunk_size1 == 0x2d4, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c2a4
jffs_flash_erasable_size() given non-aligned offset
f4a4 (erasesize 20000)
jffs_erasable_size: flash_erasable_size() returned
something less than zero (-1)
.
jffs_erasable_size: offset = 0x0000f4a4
Free size accounting screwed
free_chunk_size1 == 0x298, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c268
jffs_flash_erasable_size() given non-aligned offset
f4a4 (erasesize 20000)
jffs_erasable_size: flash_erasable_size() returned
something less than zero (-1)
.
jffs_erasable_size: offset = 0x0000f4a4
Free size accounting screwed
free_chunk_size1 == 0x258, free_chunk_size2 == 0x0,
fmc->free_size == 0x39c228
jffs_flash_erasable_size() given non-aligned offset
f4a4 (erasesize 20000)
jffs_erasable_size: flash_erasable_size() returned
something less than zero (-1)
.
jffs_erasable_size: offset = 0x0000f4a4
jffs_flash_erasable_size() given non-aligned offset
f4a4 (erasesize 20000)
jffs_erasable_size: flash_erasable_size() returned
something less than zero (-1)
.
jffs_erasable_size: offset = 0x0000f4a4
Free size accounting screwed
free_chunk_size1 == 0x3f0b5c, free_chunk_size2 ==
0xf4a4, fmc->free_size == 0x39
bfd0
Didn't write all bytes in flash_safe_write(). Returned
-5
JFFS: jffs_rewrite_data: Write error during rewrite.
(data)
jffs_rewrite_data() failed: -5
JFFS: Something has gone seriously wrong with a
garbage collect.
Scheduling in interrupt
kernel BUG at sched.c:688!
invalid operand: 0000
CPU: 0
EIP: 0010:[<c0113554>]
EFLAGS: 00010286
eax: 0000001b ebx: ffffffff ecx: 00000001 edx:
c16fff28
esi: 00001000 edi: c16fe000 ebp: c16fffbc esp:
c16fff60
ds: 0018 es: 0018 ss: 0018
Process cp (pid: 68, stackpage=c16ff000)
Stack: c0219286 c0219456 000002b0 c16fe000 00001000
bfffe938 00000000 384cbc7f
00000000 00000001 00000000 00001000 00000000
00000104 bffff938 00000000
fffffffb c16fe000 c16fe000 00000000 c16fe000
bfffe924 00001000 bfffe924
Call Trace: [<c0109295>]
Code: 0f 0b 8d 65 b0 5b 5e 5f 89 ec 5d c3 55 89 e5 83
ec 1c 57 56
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
/*---------------------------------*/
this is the error message i get first mount the
jffs
/*------------------------------*/
ync end
bash# mount -t jffs /dev/mtdblock0 /mnt
bash# ls /mnt
fstab inittab ld.so.cache loadscript rc.d
bash# ls
bash cp download jffs.image mkfs.jffs mount
ps
cat dd erasx ls mknod
mtdflash4 sh
chmod dmesg erasx1 mkdir more
mtdflash9 umount
bash# cp download /mnt
Free size accounting screwed
free_chunk_size1 == 0xc000, free_chunk_size2 == 0x0,
fmc->free_size == 0x345c74
Free size accounting screwed
free_chunk_size1 == 0xbfbc, free_chunk_size2 == 0x0,
fmc->free_size == 0x345c30
Free size accounting screwed
free_chunk_size1 == 0xaf78, free_chunk_size2 == 0x0,
fmc->free_size == 0x344bec
Free size accounting screwed
free_chunk_size1 == 0x9f34, free_chunk_size2 == 0x0,
fmc->free_size == 0x343ba8
Free size accounting screwed
free_chunk_size1 == 0x8ef0, free_chunk_size2 == 0x0,
fmc->free_size == 0x342b64
Free size accounting screwed
free_chunk_size1 == 0x88ec, free_chunk_size2 == 0x0,
fmc->free_size == 0x342560
bash#
/*--------------------------------*/
what change should i make
when i am using mkfs.jffs2 utility
when i am trying to mount kernel i sgetting panic
and one more thing
in mkfs.jffs2 icreate image
mkfs.jffs2 -r /etc/ -o jffs.image
dd if=jffs.image of=/dev/mtd0
mount -t jffs /dev/mtdblock0 /mnt
after this when i see mnt nothing exist
i manually copy files to /mnt
why is it
please give hint what to be done
thanks in advance
regards somshekar
hcl technologies
chennai
____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in.groups.yahoo.com
More information about the linux-mtd-cvs
mailing list