RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sun Sep 15, 2019 10:55 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: sdcard crashed @25MHz
PostPosted: Wed Oct 21, 2015 3:36 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
FYI
SDZL board, 25MHz SPI, 921k baud.
Running "sl -l" in a loop. After about 15minutes:
Code:
sd0: card_read: READ_MULTIPLE timed out, reply = 255
PID 246 (sl) protection violation at 413ec0: BadVAddr = 00000012
Segmentation fault
sd0: card_write: data rejected, reply = ff
PID 247 (sl) protection violation at 413ec0: BadVAddr = 00000012
Segmentation fault
PID 248 (sl) protection violation at 413ec0: BadVAddr = 00000012
Segmentation fault
PID 249 (sl) protection violation at 413ec0: BadVAddr = 00000012
Segmentation fault

The sdcard is no more detectable while booting. Needs new fs, hopefully :)
PS: it must not be caused by the SPI speed..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 22, 2015 6:37 am 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Pito,

Good work :).

Now some low level tools needed to debug SD card(s). They could probably run on our PIC32 systems :).

Too many processors. Too well hidden.

I have some dead stuff also.

Probably fixable if we had access to OEM low level tools?

I bet someone out there knows what to do and how?

Wiz


Top
 Profile  
 
PostPosted: Tue Oct 27, 2015 6:57 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Pito wrote:
FYI
SDZL board, 25MHz SPI, 921k baud.
Running "sl -l" in a loop. After about 15minutes:
Code:
sd0: card_read: READ_MULTIPLE timed out, reply = 255
PID 246 (sl) protection violation at 413ec0: BadVAddr = 00000012
Segmentation fault

From my experience, some SD cards cause this kind of errors, others work pretty stable. It depends on manufacturer, I guess. May a read timeout needs to be increased.


Top
 Profile  
 
PostPosted: Tue Oct 27, 2015 7:05 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I ran the same test ("sl" in a loop) @25MHz, but 115k2, for 3hours, the same sdcard, no issues..
I think CMD6 high speed settings would help too. You can set the dynamic parameters with it.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Tue Oct 27, 2015 7:15 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Well, in this case the issue can be caused by unexpected delays added by tty driver, as it has higher priority than disk driver.


Top
 Profile  
 
PostPosted: Tue Oct 27, 2015 7:55 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
What happens when the write latency hits? The sdcards may have up to 250ms WL..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission