Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  S.M.A.R.T. plugin
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: S.M.A.R.T. plugin  (Read 7558 times)

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
S.M.A.R.T. plugin
« on: May 16, 2007, 01:14:24 PM »
I've made a little S.M.A.R.T. status-reading plugin, but I don't have an Rockbox-unit to test it (ZVM isn't supported yet... :()
The only thing it does, is writing some bits to the HDD and receiving some. I've attached a compiled version for the iPod Video, if someone just wants to try it I could know if it works or not

Source:
http://paste-it.net/2230

Download link:
http://www.verzend.be/v/4594934/smart.rock.html
« Last Edit: May 16, 2007, 02:51:12 PM by mcuelenaere »
Logged

Offline zombieplasticclock

  • Member
  • *
  • Posts: 108
Re: S.M.A.R.T. plugin
« Reply #1 on: May 16, 2007, 02:15:22 PM »
S-M-R-T Plugin :D

on a Serious note, Why not ask evilg or another coder to incorperate it into a build. If that's done, I can test it on my ipod video.

Before I do any testing, can you clarify what the "s.m.a.r.t" thing does?

--EDIT- If there's a build ready, email it to zombieplasticclock@yahoo.com. Thanks--
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: S.M.A.R.T. plugin
« Reply #2 on: May 16, 2007, 02:40:26 PM »
Quote from: zombieplasticclock on May 16, 2007, 02:15:22 PM
S-M-R-T Plugin :D

on a Serious note, Why not ask evilg or another coder to incorperate it into a build. If that's done, I can test it on my ipod video.

Before I do any testing, can you clarify what the "s.m.a.r.t" thing does?

--EDIT- If there's a build ready, email it to zombieplasticclock@yahoo.com. Thanks--

It isn't complete *at all*, that's why it can't be integrated in trunk. I've compiled it as a standard plugin, so you could place smart.rock into /.rockbox/plugins/ and it should work.
See http://en.wikipedia.org/wiki/S.M.A.R.T. for an explanation of S.M.A.R.T.
« Last Edit: August 18, 2007, 10:33:07 AM by mcuelenaere »
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: S.M.A.R.T. plugin
« Reply #3 on: May 16, 2007, 02:40:50 PM »
SMART = Self-Monitoring, Analysis, and Reporting Technology.

The Wikipedia article tells me that it can herald predictable hard drive failure due to mechanical wear.  However, it also says that it's normally turned off by default on many BIOSes because it slows performance.  
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: S.M.A.R.T. plugin
« Reply #4 on: May 16, 2007, 02:47:44 PM »
Quote from: Chronon on May 16, 2007, 02:40:50 PM
SMART = Self-Monitoring, Analysis, and Reporting Technology.

The Wikipedia article tells me that it can herald predictable hard drive failure due to mechanical wear.  However, it also says that it's normally turned off by default on many BIOSes because it slows performance.  
Could be.
But as portable players nowadays have "standard" HDD's included, they also should support S.M.A.R.T.

I thought it could be useful for Rockbox to have a plugin/function that can read it's status and display it to the users. This way, the failing of a hard disk could be predicted.
Logged

Offline asyran

  • Member
  • *
  • Posts: 28
Re: S.M.A.R.T. plugin
« Reply #5 on: May 16, 2007, 02:50:47 PM »
well there's no way this plugin could damage your ipod in any way right?because i have a 30 gb 5g ipod and wouldn't mind testing it.
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: S.M.A.R.T. plugin
« Reply #6 on: May 16, 2007, 02:55:20 PM »
Quote from: asyran on May 16, 2007, 02:50:47 PM
well there's no way this plugin could damage your ipod in any way right?because i have a 30 gb 5g ipod and wouldn't mind testing it.
Well, I don't really know :) Normally, it shouldn't harm your iPod.
The only thing it does is: it sends the ATA_SMART_COMMAND, sets the ATA_SMART_FEATURE bit and displays the ATA_LCYL & ATA_HCYL (Low Cylinder & High Cylinder).

This is all according to the ATA7 reference.(see http://216.239.59.104/search?q=cache:pkhjg5XCfooJ:t13.org/Documents/UploadedDocuments/technical/d96131r0.pdf+S.M.A.R.T.+commands&hl=nl&ct=clnk&cd=2&gl=be at 8.35.6 SMART RETURN STATUS)

Oh and BTW: I can compile this plugin to other targets too, I just chose iPod Video cause I thought it would be the most used one.
Logged

Offline asyran

  • Member
  • *
  • Posts: 28
Re: S.M.A.R.T. plugin
« Reply #7 on: May 16, 2007, 02:58:29 PM »
well i have no idea what all that meant....very impressive.how exactly will i know if it's working?
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: S.M.A.R.T. plugin
« Reply #8 on: May 16, 2007, 03:02:39 PM »
Quote from: asyran on May 16, 2007, 02:58:29 PM
well i have no idea what all that meant....very impressive.how exactly will i know if it's working?
Well, I am kinda new to Rockbox so I don't know if there are any standard error codes or so (apart from Data Abort).
So if it wouldn't give that, normally it should show:

"Please wait..." during 1 second
"[HEX code]" during 2 seconds
"[HEX code]" during 2 seconds

That's it.
If the first hex code would be equal to 4F and the second to C3, your HDD is perfectly OK.

As you can see, this program is just a test and should be extended with a lot more S.M.A.R.T. checks and a nice GUI ;)

Off-topic:
Why can't you use more than 1 emoticon in 1 post ?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: S.M.A.R.T. plugin
« Reply #9 on: May 16, 2007, 03:04:30 PM »
Because I got tired of seeing 13 of the same emoticon in a row when someone used 40 question marks after a question, and decided that overall people really shouldn't need emoticons other than one here or there to indication that something was meant in jest, such as a wink, so I dropped the limit to 1. It was 3, but even that was abused more than I liked.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: S.M.A.R.T. plugin
« Reply #10 on: May 16, 2007, 03:06:42 PM »
Quote from: mcuelenaere on May 16, 2007, 02:47:44 PM
Quote from: Chronon on May 16, 2007, 02:40:50 PM
SMART = Self-Monitoring, Analysis, and Reporting Technology.

The Wikipedia article tells me that it can herald predictable hard drive failure due to mechanical wear.  However, it also says that it's normally turned off by default on many BIOSes because it slows performance.  
Could be.
But as portable players nowadays have "standard" HDD's included, they also should support S.M.A.R.T.

I thought it could be useful for Rockbox to have a plugin/function that can read it's status and display it to the users. This way, the failing of a hard disk could be predicted.

I can see how some users might want this.  I would probably opt to keep it off most of the time for the sake of better performance.  But I guess periodic enabling of SMART would probably still help. . .  Can SMART be turned on/off at any time?

Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: S.M.A.R.T. plugin
« Reply #11 on: May 16, 2007, 03:07:59 PM »
Quote from: Chronon on May 16, 2007, 03:06:42 PM
I can see how some users might want this.  I would probably opt to keep it off most of the time for the sake of better performance.  But I guess periodic enabling of SMART would probably still help. . .  Can SMART be turned on/off at any time?
I guess so, as there are SMART ENABLE and SMART DISABLE commands...
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: S.M.A.R.T. plugin
« Reply #12 on: May 16, 2007, 03:11:39 PM »
Quote from: Llorean on May 16, 2007, 03:04:30 PM
Because I got tired of seeing 13 of the same emoticon in a row when someone used 40 question marks after a question, and decided that overall people really shouldn't need emoticons other than one here or there to indication that something was meant in jest, such as a wink, so I dropped the limit to 1. It was 3, but even that was abused more than I liked.
Wow, fast reply! :)
But I understand your point, it's kinda stupid people don't use e-tiquette or something like that.
Logged

Offline asyran

  • Member
  • *
  • Posts: 28
Re: S.M.A.R.T. plugin
« Reply #13 on: May 16, 2007, 03:13:11 PM »
hey....did my post get deleted?it was about the topic vies increase if you view two different topics alternately,and if it should happen.

i just tried it,my rockbox version is r13377--070513....nothing happened
will update and retry
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: S.M.A.R.T. plugin
« Reply #14 on: May 16, 2007, 03:15:22 PM »
Quote from: asyran on May 16, 2007, 03:13:11 PM
hey....did my post get deleted?it was about the topic vies increase if you view two different topics alternately,and if it should happen.

i just tried it,my rockbox version is r13377--070513....nothing happened
will update and retry
How do you mean, nothing happened? At least the "Please wait..." message should show up...
Are you sure you executed the smart.rock plugin?
« Last Edit: May 16, 2007, 03:25:15 PM by mcuelenaere »
Logged

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  S.M.A.R.T. plugin
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.096 seconds with 14 queries.