MediaSmartServer.net http://www.mediasmartserver.net/forums/ |
|
Here is a linux driver for the H340 leds http://www.mediasmartserver.net/forums/viewtopic.php?f=23&t=7720 |
Page 6 of 9 |
Author: | mugenbb6 [ Tue Aug 21, 2012 2:00 pm ] | ||||
Post subject: | Re: Here is a linux driver for the H340 leds | ||||
Here are the 3 outputs. Thanks!
|
Author: | merelin [ Wed Aug 22, 2012 3:39 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
mugenbb6 wrote: Here are the 3 outputs. Thanks! @mugenbb6 Please give me the output of Code: ls -1 /sys/devices/pci0000:00/0000:00:1f.2 | grep host | while read d; do echo $d; cat /sys/devices/pci0000:00/0000:00:1f.2/$d/scsi_host/$d/unique_id; done Cheers! |
Author: | merelin [ Wed Aug 22, 2012 5:20 am ] | ||
Post subject: | Re: Here is a linux driver for the H340 leds | ||
mugenbb6 wrote: Here are the 3 outputs. Thanks! @mugenbb6 Could you please download mediasmartserverd.tar.gz file attached (called "A test version") to say home directory and do the following: Code: cd ~/ ; tar xfz mediasmartserverd.tar.gz ; sudo ./mediasmartserverd --activity Give me the output produced. Please note to run the binary I've attached (!). The last time you seem to have run the binary from the package installed. Cheers!
|
Author: | mugenbb6 [ Wed Aug 22, 2012 10:08 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
Here's the first output: ls -1 /sys/devices/pci0000:00/0000:00:1f.2 | grep host | while read d; do echo $d; cat /sys/devices/pci0000:00/0000:00:1f.2/$d/scsi_host/$d/unique_id; done host1 2 host2 3 host3 4 host4 5 host5 6 host6 7 Sorry about the mediasmartserverd. I ran the one from your tar, and getting the following: ./mediasmartserverd: /lib/i686/cmov/libc.so.6: version `GLIBC_2.15' not found (required by ./mediasmartserverd) Looks like debian squeeze only has 2.11 while ubuntu has 2.15. I can install from source, but not sure if it'll break any other dependencies. |
Author: | merelin [ Wed Aug 22, 2012 11:26 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
mugenbb6 wrote: Here's the first output: ls -1 /sys/devices/pci0000:00/0000:00:1f.2 | grep host | while read d; do echo $d; cat /sys/devices/pci0000:00/0000:00:1f.2/$d/scsi_host/$d/unique_id; done host1 2 host2 3 host3 4 host4 5 host5 6 host6 7 Sorry about the mediasmartserverd. I ran the one from your tar, and getting the following: ./mediasmartserverd: /lib/i686/cmov/libc.so.6: version `GLIBC_2.15' not found (required by ./mediasmartserverd) Looks like debian squeeze only has 2.11 while ubuntu has 2.15. I can install from source, but not sure if it'll break any other dependencies. @mugenbb6 Please build it yourself then: Code: sudo apt-get install git git clone https://github.com/merelin/mediasmartserverd.git cd mediasmartserverd make Run and give me the log. Please note you'll have to have libudev-dev installed. |
Author: | mugenbb6 [ Wed Aug 22, 2012 11:52 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
Thanks for the source. Here's the output: ./mediasmartserverd --activity Found: HP MediaSmart Server 48X ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sda' (block) ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sdb' (block) ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host3/target3:0:0/3:0:0:0/block/sdc' (block) ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host4/target4:0:0/4:0:0:0/block/sdd' (block) |
Author: | merelin [ Wed Aug 22, 2012 12:02 pm ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
mugenbb6 wrote: Thanks for the source. Here's the output: ./mediasmartserverd --activity Found: HP MediaSmart Server 48X ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sda' (block) ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sdb' (block) ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host3/target3:0:0/3:0:0:0/block/sdc' (block) ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host4/target4:0:0/4:0:0:0/block/sdd' (block) @mugenbb6 Does it fix the leds issue? |
Author: | mugenbb6 [ Wed Aug 22, 2012 12:30 pm ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
No, still the same. Only the top 3 are lit. |
Author: | merelin [ Wed Aug 22, 2012 12:46 pm ] | ||
Post subject: | Re: Here is a linux driver for the H340 leds | ||
mugenbb6 wrote: No, still the same. Only the top 3 are lit. @mugenbb6 Please download mediasmartserver.diff.tar.gz. Then tar xfz mediasmartserver.diff.tar.gz, apply the patch, re-compile, re-run and give me the logs.
|
Author: | mugenbb6 [ Wed Aug 22, 2012 9:05 pm ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
I've recompiled and ran it. Still 3 lights though. ./mediasmartserverd --activity Found: HP MediaSmart Server 48X index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 0 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 1 hosts_to_host0: 2, unique_id: 2, scsi_host_index: 1 scsi_host_index: 1 ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sda' (block) index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 0 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 1 hosts_to_host0: 2, unique_id: 2, scsi_host_index: 1 scsi_host_index: 1 index: 2, dev_host_sys_path: /sys/class/scsi_host/host2, hosts_to_host0: 0 index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 1 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 2 hosts_to_host0: 3, unique_id: 3, scsi_host_index: 2 scsi_host_index: 2 ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sdb' (block) index: 2, dev_host_sys_path: /sys/class/scsi_host/host2, hosts_to_host0: 0 index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 1 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 2 hosts_to_host0: 3, unique_id: 3, scsi_host_index: 2 scsi_host_index: 2 index: 3, dev_host_sys_path: /sys/class/scsi_host/host3, hosts_to_host0: 0 index: 2, dev_host_sys_path: /sys/class/scsi_host/host2, hosts_to_host0: 1 index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 2 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 3 hosts_to_host0: 4, unique_id: 4, scsi_host_index: 3 scsi_host_index: 3 ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host3/target3:0:0/3:0:0:0/block/sdc' (block) index: 3, dev_host_sys_path: /sys/class/scsi_host/host3, hosts_to_host0: 0 index: 2, dev_host_sys_path: /sys/class/scsi_host/host2, hosts_to_host0: 1 index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 2 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 3 hosts_to_host0: 4, unique_id: 4, scsi_host_index: 3 scsi_host_index: 3 index: 4, dev_host_sys_path: /sys/class/scsi_host/host4, hosts_to_host0: 0 index: 3, dev_host_sys_path: /sys/class/scsi_host/host3, hosts_to_host0: 1 index: 2, dev_host_sys_path: /sys/class/scsi_host/host2, hosts_to_host0: 2 index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 3 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 4 hosts_to_host0: 5, unique_id: 5, scsi_host_index: 4 scsi_host_index: 4 ADDED: '/sys/devices/pci0000:00/0000:00:1f.2/host4/target4:0:0/4:0:0:0/block/sdd' (block) index: 4, dev_host_sys_path: /sys/class/scsi_host/host4, hosts_to_host0: 0 index: 3, dev_host_sys_path: /sys/class/scsi_host/host3, hosts_to_host0: 1 index: 2, dev_host_sys_path: /sys/class/scsi_host/host2, hosts_to_host0: 2 index: 1, dev_host_sys_path: /sys/class/scsi_host/host1, hosts_to_host0: 3 index: 0, dev_host_sys_path: /sys/class/scsi_host/host0, hosts_to_host0: 4 hosts_to_host0: 5, unique_id: 5, scsi_host_index: 4 scsi_host_index: 4 |
Author: | merelin [ Wed Aug 22, 2012 11:48 pm ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
@mugenbb6 My mistake, sorry for that. Could you please do the following: Code: rm -rf mediasmartserverd git clone https://github.com/merelin/mediasmartserverd.git cd mediasmartserverd make sudo ./mediasmartserverd --activity After that please tell me if it works and if it does I'll make a new package version. Cheers! |
Author: | mugenbb6 [ Thu Aug 23, 2012 12:06 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
@merelin IT WORKS!! By the way, you'll need to adjust the makefile. On line 23, where it has "mediasmartserverd: device_monitor.o mediasmartserverd.o /usr/lib/$(shell uname -i)-linux-gnu/libudev.so" to "mediasmartserverd: device_monitor.o mediasmartserverd.o /usr/lib/libudev.so", for the correct location of the libudev.so. |
Author: | merelin [ Thu Aug 23, 2012 12:15 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
mugenbb6 wrote: @merelin IT WORKS!! By the way, you'll need to adjust the makefile. On line 23, where it has "mediasmartserverd: device_monitor.o mediasmartserverd.o /usr/lib/$(shell uname -i)-linux-gnu/libudev.so" to "mediasmartserverd: device_monitor.o mediasmartserverd.o /usr/lib/libudev.so", for the correct location of the libudev.so. @mugenbb6 Yes, but it breaks my leds Will go on fixing. On Ubuntu multiarch you'll not find /usr/lib/libudev.so. |
Author: | mugenbb6 [ Thu Aug 23, 2012 10:04 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
For those running purely debian, you will need to download the source, adjust the makefile as mentioned above, and finally compile it. Thanks again merelin!! |
Author: | merelin [ Fri Aug 24, 2012 2:08 am ] |
Post subject: | Re: Here is a linux driver for the H340 leds |
mugenbb6 wrote: For those running purely debian, you will need to download the source, adjust the makefile as mentioned above, and finally compile it. Thanks again merelin!! @mugenbb6 Makefile has been corrected. Could you please re-test the repo code and give me the logs? Also please check if leds work OK for you. Code: rm -rf mediasmartserverd
git clone https://github.com/merelin/mediasmartserverd.git cd mediasmartserverd make sudo ./mediasmartserverd --activity |
Page 6 of 9 | All times are UTC - 7 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |