Ticket #1143 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Errors with micro sdhc card

Reported by: elhennig Owned by: mrmoku
Priority: blocker Milestone:
Component: upstream Version: SHR-unstable
Keywords: Cc:

Description

After the latest kernel upgrade in SHR-U I have the problem that /media/card is often remount ro

In dmesg I get the following error:
[ 260.225000] REISERFS warning: reiserfs-5090 is_tree_node: node level 25600 does not match to the expected one 1
[ 260.225000] REISERFS error (device mmcblk0p1): vs-5150 search_by_key: invalid format found in block 1280377. Fsck?
[ 260.225000] REISERFS error (device mmcblk0p1): vs-13070 reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of [135817 375 0x0 SD]
[ 260.225000] REISERFS warning: reiserfs-5090 is_tree_node: node level 25600 does not match to the expected one 1
[ 260.225000] REISERFS error (device mmcblk0p1): vs-5150 search_by_key: invalid format found in block 1280377. Fsck?
[ 260.225000] REISERFS error (device mmcblk0p1): vs-13070 reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of [135817 376 0x0 SD]

reiserfsck (with --fix-fixable and --rebuild-tree) fix the fs errors, however it does not help to fix the original problem: the errors occur again later

Change History

comment:1 Changed 4 years ago by elhennig

I trieb to use ext3 as filesystem for the sd card, but this also resulted in FS corruption.

comment:2 Changed 4 years ago by elhennig

  • Priority changed from critical to blocker

comment:3 Changed 4 years ago by robin

I can also confirm this, there are no sd card entries in /dev

comment:4 Changed 4 years ago by elhennig

The dev entries are there, but from time to time the sd card gets remounted "ro"

comment:5 Changed 4 years ago by elhennig

I tried to replace my class6 sdhc card (16GB) with a class2 card of the same size. So far (after some suspoend resume cycles) it seems, that the error with the filesystem errors does not occur anymore. I'll keep this ticket updated....

BTW I was even able to activate swap on sd card again...

comment:6 Changed 4 years ago by elhennig

Errors still occur from time to time (even with the class2 card), but far less frequent...

comment:7 Changed 4 years ago by Davide

I've noticed that without SIM card inserted, I get no errors

I was using FR without SIM for three or four days without trouble.

comment:8 Changed 4 years ago by Davide

After all, when I force intensive I/O, it still hangs, althuogh I could not catch any error on dmesg.

Downloading tiles with foxtrotgps, after a while foxtrotgps hangs, and this is what I can see:

Processes in "D" state:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 7 0.0 0.0 0 0 ? D 10:24 0:01 [sync_supers]
root 27 0.0 0.0 0 0 ? D 10:24 0:03 [mmcqd]
root 82 0.0 0.0 0 0 ? D 10:24 0:00 [reiserfs/0]
root 318 0.0 0.0 0 0 ? D 15:45 0:00 [flush-179:0]

After trying to kill -9 foxtrotgps:

ps auxw |grep foxtrot
root 314 9.0 0.0 0 0 ? ZNsl 15:45 2:31 [foxtrotgps] <defunct>

I had to reboot with "reboot -fn"
uSD I/O was stuck.

comment:9 Changed 4 years ago by Heinervdm

  • Owner changed from ainulindale to mrmoku
  • Component changed from SHR Image to upstream
  • Milestone set to MS1

comment:10 Changed 4 years ago by janv

I reported this issue also at:
 https://docs.openmoko.org/trac/ticket/2364

comment:11 Changed 4 years ago by Davide

It seems that with non-KMS kernel, errors doesn't happen.

comment:12 Changed 4 years ago by mrmoku

  • Status changed from new to closed
  • Resolution set to fixed

closing as we switched to the non-KMS kernel which seems to fix it

comment:13 Changed 3 years ago by morphis

  • Milestone MS1 deleted

Milestone MS1 deleted

Note: See TracTickets for help on using tickets.