It is currently Thu Mar 28, 2024 3:27 pm

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu May 14, 2009 9:09 pm 
Offline
.5TB storage
.5TB storage

Joined: Tue Feb 03, 2009 10:02 am
Posts: 22
Thanks: 2
Thanked: 0 time in 0 post
WNAS.sys does not load in Win 2008.

But if I understand you right - I could download the code you post it, compile it (How? Visual Studio?? GCC??) I could maybe run it in this alternate OS.


Top
 Profile  
Thanks  

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
PostPosted: Sat May 16, 2009 12:29 pm 
Offline
.5TB storage
.5TB storage

Joined: Tue Feb 03, 2009 10:02 am
Posts: 22
Thanks: 2
Thanked: 0 time in 0 post
I live in New York quite far from Germany though Google seems to think I should swim to Europe.

I've never programmed in anything but managed environments (C# Java).

I'd like to port your code to Windows though I'm not so sure I could.


Top
 Profile  
Thanks  
PostPosted: Tue Aug 18, 2009 7:47 pm 
Offline
Newbie
Newbie

Joined: Tue Aug 11, 2009 9:07 pm
Posts: 2
Thanks: 3
Thanked: 7 times in 1 post
I took the time to implement a Linux Kernel Module to control the leds under the linux leds api.
Among other things this driver implements PWM for variable brightness (8 levels at present).

Video Demo:
http://www.youtube.com/watch?v=APuyGQBU8tk

This is the source of the kernel module, it should work in 2.6.30 with no modification.
Attachment:
File comment: place this code in linux-2.6.30/drivers/leds/leds-hpex47x.c
leds-hpex47x.c.txt [5.3 KiB]
Downloaded 1708 times


This code demonstrates using the linux leds api in a C program.
Attachment:
File comment: and here's an example lightshow
lightshow.c.txt [6.3 KiB]
Downloaded 1338 times


This code demonstrates using the linux leds api to show disk status from bash.
Attachment:
File comment: And lastly a modification of setleds.sh
setleds.sh.txt [2.06 KiB]
Downloaded 1413 times


Top
 Profile  
Thanks  
The following user would like to thank GrizzlyAdams for this post
cakalapati, dlmario, GJ51, mcdinner, opensvr, SteffJay, yakuza
PostPosted: Thu Jan 14, 2010 2:24 am 
Offline
1TB storage
1TB storage

Joined: Sun Nov 08, 2009 6:56 pm
Posts: 46
Thanks: 2
Thanked: 2 times in 2 posts
I've upgraded my CPU to 3800+ (as described here viewtopic.php?p=10271&highlight=#p10271) and just noticed that the LEDs don't work. They used to in the past, but I didn't check right before & right after the switch.

Could tweaking the BIOS screw it up?

Update:
* I've tried rolling back to the original CPU and BIOS, doesn't help
* apparently the power is coming into the LED board, but the polarity is reversed!
What could cause something like this??

Update:
found the issue, it was a hardware problem. See thread viewtopic.php?f=2&t=7009 if you're interested

_________________
EX470 + RSV-S4-X ($280, Newegg); ADD3800IAA5CU ($60, eBay); VGA cable; Fedora 13 x64
GigE (fixed sis190 driver - ask me) TODO: hardware offloading
4x300GB RAID5 121.27 MB/sec reads ?TODO? NCQ, AHCI


Last edited by Fry-kun on Mon Feb 01, 2010 2:42 am, edited 1 time in total.

Top
 Profile  
Thanks  
PostPosted: Thu Jan 21, 2010 2:22 pm 
Offline
1TB storage
1TB storage

Joined: Sat Jan 02, 2010 5:48 am
Posts: 25
Location: UK
Thanks: 5
Thanked: 4 times in 1 post
Anyone managed to generate a Windows 2008 driver yet?

_________________
HP MediaSmart EX490
Anyone know where I can get a 4GB stick in the UK?


Top
 Profile  
Thanks  
PostPosted: Sun Feb 21, 2010 6:01 am 
Offline
Newbie
Newbie

Joined: Thu Feb 18, 2010 1:44 pm
Posts: 2
Thanks: 0
Thanked: 0 time in 0 post
Hi!

cakalapati: Thank you very much for your very detailed how-to! Based on this how-to, I'll try the next time to find out, how the leds are controlled at my Acer H340 NAS.
In this context my question: Is maybe someone from germany here where have the gen2 cable with serial access? It's to expensive for me, buying it when I need it only one time, getting the hardware address with some infos. Maybe someone can borrow it to me for a short time?

prodigy7


Top
 Profile  
Thanks  
PostPosted: Sat Apr 03, 2010 4:05 pm 
Offline
.5TB storage
.5TB storage

Joined: Thu Apr 01, 2010 5:52 am
Posts: 11
Thanks: 3
Thanked: 6 times in 2 posts
prodigy7 wrote:
Hi!

cakalapati: Thank you very much for your very detailed how-to! Based on this how-to, I'll try the next time to find out, how the leds are controlled at my Acer H340 NAS.
In this context my question: Is maybe someone from germany here where have the gen2 cable with serial access? It's to expensive for me, buying it when I need it only one time, getting the hardware address with some infos. Maybe someone can borrow it to me for a short time?

prodigy7


Hi Prodigy7, concerning the H340, you could have a look here:
viewtopic.php?f=23&t=7720&start=0

I was contacted from JuergenB @ Homeserver Forum (I'm also there, same nick); maybe we can put our efforts together?

And yes, I am from Germany, too :)


Top
 Profile  
Thanks  
PostPosted: Wed Sep 01, 2010 11:56 am 
Offline
Newbie
Newbie

Joined: Wed Sep 01, 2010 11:53 am
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
With a recent kernel update I ran into a compile issue of leds-hpex74x with Kernel 2.6.34.6-47 under Fedora, the issue is fixed with a simple addition of an include for linux/slab.h


Top
 Profile  
Thanks  
PostPosted: Mon Sep 06, 2010 11:59 pm 
Offline
Newbie
Newbie
User avatar

Joined: Mon Sep 06, 2010 11:40 am
Posts: 5
Location: .de
Thanks: 1
Thanked: 0 time in 0 post
Here's WNAS.sys from a HP DataVault X300, maybe it helps:

viewtopic.php?p=72080#p72080

Stefan


Top
 Profile  
Thanks  
PostPosted: Fri Apr 08, 2011 5:20 am 
Offline
Newbie
Newbie

Joined: Fri Apr 08, 2011 5:18 am
Posts: 1
Thanks: 0
Thanked: 0 time in 0 post
Sorry for the bump.

I'm having troubles getting the linux kernel module to work on my HP MediaSmart 490. I compiled the module against 2.6.32-30-generic-pae.

However, when I use insmod the load fails because of:

[ 3792.529720] leds_hpex47x: Unknown symbol led_classdev_register
[ 3979.953427] leds_hpex47x: Unknown symbol led_classdev_unregister
[ 3979.953725] leds_hpex47x: Unknown symbol led_classdev_register

Help would be appreciated. :-)


Top
 Profile  
Thanks  
PostPosted: Tue Feb 12, 2013 8:22 am 
Offline
Newbie
Newbie
User avatar

Joined: Wed Feb 06, 2008 3:07 pm
Posts: 4
Thanks: 0
Thanked: 0 time in 0 post
Seems that someone has already done all of the hard work here, but I could do with some help in getting this to work on my newly revived EX-475. I'm a bit of a novice when it comes to c++ and linux, so would someone be able to post an idiots guide to getting the LEDs flashing on my MSS please.

I've already exceeded my capabilities by installing ubuntu 12.04 and setting up 3 of the 4 drives as Raid 5. Controlling the drive LEDs would be the icing on the cake for me!

Thanks,

Andy

_________________
MSS EX-475 : Ubuntu 12.04 server


Top
 Profile  
Thanks  
PostPosted: Sun Apr 07, 2013 2:16 am 
Offline
Newbie
Newbie

Joined: Sun Apr 07, 2013 2:03 am
Posts: 4
Thanks: 0
Thanked: 0 time in 0 post
andy_ydna wrote:
Seems that someone has already done all of the hard work here, but I could do with some help in getting this to work on my newly revived EX-475. I'm a bit of a novice when it comes to c++ and linux, so would someone be able to post an idiots guide to getting the LEDs flashing on my MSS please.

I've already exceeded my capabilities by installing ubuntu 12.04 and setting up 3 of the 4 drives as Raid 5. Controlling the drive LEDs would be the icing on the cake for me!

Thanks,

Andy


No idea if you are still around but I am going to get a used EX475 and will try to get CentOS 6 running it on it.

I don't own the machine yet but it appears module I built is loadable.

Here is what I have

Code:
[root@dnsserver leds-hpex47x]# ls
leds-hpex47x.c  leds-hpex47x.ko  leds-hpex47x.ko.unsigned  leds-hpex47x.mod.c  leds-hpex47x.mod.o  leds-hpex47x.o  Makefile  modules.order  Module.symvers

[root@dnsserver leds-hpex47x]# modinfo leds-hpex47x.ko
filename:       leds-hpex47x.ko
alias:          platform:hpex47x-led
license:        GPL
description:    HP MediaSmart Server EX47x HDD Bay LED Driver
author:         David Kuder <dkuder@thewaffleiron.net>
srcversion:     56767E3D3D0D2CC3829EC0F
depends:
vermagic:       2.6.32-358.2.1.el6.i686 SMP mod_unload modversions 686

[root@dnsserver leds-hpex47x]# insmod leds-hpex47x.ko

[root@dnsserver leds-hpex47x]# lsmod | grep leds
leds_hpex47x            1944  0


Top
 Profile  
Thanks  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 18 guests


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:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group