Skip to contentSkip to conversation

about ubifs question

DISCUSSION tommy 2 participants 6 messages Aug 19, 2009 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

tommy

author
#0 lore raw

hi,sir!

about ubifs work under Kernel suspend and resume

When Kernel resume from suspend by apm -s ,

i touch file in nand flash and sync,but when Kernel restart ,my touched file didn't occur!

After Kernel resume ,i guess my touched file isn't in nand flash but memory !

My ubifs version is 2.6.24 ,does it is relation with Nand flash or ubifs ?

#1 lore raw
Quoted 6 lines · tommy

about ubifs work under Kernel suspend and resume

When Kernel resume from suspend by apm -s ,

i touch file in nand flash and sync,but when Kernel restart ,my touched file didn't occur!

How do you restart your kernel? Do you unmount cleanly?

Quoted 2 lines

After Kernel resume ,i guess my touched file isn't in nand flash but memory !

Try typing sync before restarting.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
author
#4 lore raw
In reply to Artem Bityutskiy

hi,sir !

Can you explain why my ubifs switch to read-only filesystem when it resume from suspend !

Unmounting local filesystems...
mount: can't find /mnt/ram in /proc/mounts
UBIFS error (pid 1201): make_reservation: cannot reserve 160 bytes in jhead 1, error -30 UBIFS error (pid 1201): ubifs_write_inode: can't write inode 135, error -30 UBIFS error (pid 1201): make_reservation: cannot reserve 160 bytes in jhead 1, error -30 UBIFS error (pid 1201): ubifs_write_inode: can't write inode 442, error -30 UBIFS error (pid 1201): make_reservation: cannot reserve 160 bytes in jhead 1, error -30 UBIFS error (pid 1201): ubifs_write_inode: can't write inode 136, error -30
UBIFS: cannot re-mount due to prior errors
mount: mounting ubi0:rootfs on / failed: Read-only file system

Quoted 15 lines · Artem Bityutskiy
Quoted 6 lines · tommy

about ubifs work under Kernel suspend and resume

When Kernel resume from suspend by apm -s ,

i touch file in nand flash and sync,but when Kernel restart ,my touched file didn't occur!

How do you restart your kernel? Do you unmount cleanly?

Quoted 2 lines

After Kernel resume ,i guess my touched file isn't in nand flash but memory !

Try typing sync before restarting.

author
#5 lore raw
In reply to Artem Bityutskiy

hi,sir!

when i resume form suspend,i try to do following:

root@localhost:/# cp 1.ko 2.ko
root@localhost:/# sync
root@localhost:/# ls
UBIFS error (pid 1107): ubifs_read_node: bad node type (255 but expected
2)
UBIFS error (pid 1107): ubifs_read_node: bad node at LEB 502:7224
UBIFS error (pid 1107): ubifs_readdir: cannot find next direntry, error
-22
root@localhost:/# ls 
UBIFS error (pid 1108): ubifs_read_node: bad node type (255 but expected
2)
UBIFS error (pid 1108): ubifs_read_node: bad node at LEB 502:7224
UBIFS error (pid 1108): ubifs_readdir: cannot find next direntry, error
-22

can't access !

why ?

Quoted 15 lines · Artem Bityutskiy
Quoted 6 lines · tommy

about ubifs work under Kernel suspend and resume

When Kernel resume from suspend by apm -s ,

i touch file in nand flash and sync,but when Kernel restart ,my touched file didn't occur!

How do you restart your kernel? Do you unmount cleanly?

Quoted 2 lines

After Kernel resume ,i guess my touched file isn't in nand flash but memory !

Try typing sync before restarting.