LACIE D2 Network 2 Project

Re: LACIE D2 Network 2 Project

Postby Jocko » Tue Mar 31, 2015 3:07 pm

To check if the web-interface is ok.
Can you post a capture of the disk setup menu.

azaranto wrote:Regarding the led switch on/off command it does nothing so I think it´s not working.
At least the previous patch contained some wrong file versions...

So attached another patch to fix it (use the upload patch menu)
fvdw-sl-16.0-d2nw2-16.0-v2-31mar15.zip


In putty do
Code: Select all
/etc/leds_bootup
then
Code: Select all
/etc/leds_switch off
/etc/leds_switch on
So report if the front led is off/on

Other commands
Code: Select all
led -w off
led -w on
led -w 10
led -w 100
led -w 255
report if the brightness changes

Please to note that you have a gpio error (12) which is related with the led so maybe these commands will fail.
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LACIE D2 Network 2 Project

Postby azaranto » Tue Mar 31, 2015 5:03 pm

Jocko wrote:To check if the web-interface is ok.
Can you post a capture of the disk setup menu.


See attachment.

Jocko wrote:So attached another patch to fix it (use the upload patch menu)
fvdw-sl-16.0-d2nw2-16.0-v2-31mar15.zip


In putty do
Code: Select all
/etc/leds_bootup
then
Code: Select all
/etc/leds_switch off
/etc/leds_switch on
So report if the front led is off/on


Light is now switching On/Off!! :rock

Jocko wrote:Other commands
Code: Select all
led -w off
led -w on
led -w 10
led -w 100
led -w 255
report if the brightness changes

Please to note that you have a gpio error (12) which is related with the led so maybe these commands will fail.


Nothing happens. Light stays with the same brightness level.
You do not have the required permissions to view the files attached to this post.
azaranto
 
Posts: 42
Joined: Tue Mar 24, 2015 2:48 am

Re: LACIE D2 Network 2 Project

Postby Jocko » Tue Mar 31, 2015 5:08 pm

So except for:
- power switch
- led command

All seems ok :thumbup

Last question about LED. As version 16.0 uses another kernel version, can you post again the output of
Code: Select all
ls /sys/class/leds/*/
.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LACIE D2 Network 2 Project

Postby azaranto » Tue Mar 31, 2015 5:17 pm

That seems to be right! :rock

Below you can find the required output.
Code: Select all
root@LACIE:/ # ls /sys/class/leds/*/
/sys/class/leds/d2net_v2:blue:sata/:
brightness  device  max_brightness  power  sata  subsystem  trigger  uevent

/sys/class/leds/d2net_v2:red:fail/:
brightness  device  max_brightness  power  subsystem  trigger  uevent
azaranto
 
Posts: 42
Joined: Tue Mar 24, 2015 2:48 am

Re: LACIE D2 Network 2 Project

Postby Jocko » Wed Apr 01, 2015 7:31 am

So the sent files are right but we go to do a manual check (it might have an issue with our commands)

Please to post the output of
Code: Select all
led -n


And report the LED behaviour at each step
Code: Select all
echo 0 > '/sys/class/leds/d2net_v2:blue:sata/brightness'

Code: Select all
echo 1 > '/sys/class/leds/d2net_v2:blue:sata/brightness'

Code: Select all
echo 255 > '/sys/class/leds/d2net_v2:blue:sata/brightness'


Code: Select all
echo 0 > /sys/class/leds/d2net_v2:red:fail/brightness'
(this should control the red LED)
Code: Select all
echo 1 > '/sys/class/leds/d2net_v2:red:fail/brightness'

Code: Select all
echo 255 > '/sys/class/leds/d2net_v2:red:fail/brightness'
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LACIE D2 Network 2 Project

Postby azaranto » Wed Apr 01, 2015 7:13 pm

Code: Select all
root@LACIE:/ # led -n
/usr/bin/led: Canonical LED names list
   frontblue
   frontred

Code: Select all
echo 0 > '/sys/class/leds/d2net_v2:blue:sata/brightness'
Light OFF

Code: Select all
echo 1 > '/sys/class/leds/d2net_v2:blue:sata/brightness'
Light ON

Code: Select all
echo 255 > '/sys/class/leds/d2net_v2:blue:sata/brightness'
Light Blinks and no Change on Brightness

Code: Select all
echo 0 > '/sys/class/leds/d2net_v2:red:fail/brightness'
Nothing happens but turn it off if executed after the "echo 1 > '/sys/class/leds/d2net_v2:red:fail/brightness'" command

Code: Select all
echo 1 > '/sys/class/leds/d2net_v2:red:fail/brightness'
Blue light turns a little bit red

Code: Select all
echo 255 > '/sys/class/leds/d2net_v2:red:fail/brightness'
Blue light turns a little bit red same as previous command
azaranto
 
Posts: 42
Joined: Tue Mar 24, 2015 2:48 am

Re: LACIE D2 Network 2 Project

Postby Jocko » Wed Apr 01, 2015 7:32 pm

Thank for these additional tests.

So the usual LED commands work. :thumbup
Need to find why the firmware LED commands fail :scratch

So restore the Blue LED
Code: Select all
echo 0 > '/sys/class/leds/d2net_v2:red:fail/brightness'
echo 1 > '/sys/class/leds/d2net_v2:blue:sata/brightness'

please to post the output of
Code: Select all
sh -x /usr/bin/led -w on
and
Code: Select all
sh -x /usr/bin/led -w off
(report also the LEd status after each command)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LACIE D2 Network 2 Project

Postby azaranto » Wed Apr 01, 2015 7:36 pm

Anytime!!!

Code: Select all
root@LACIE:/ # sh -x /usr/bin/led -w on
+ [ -z  ]
+ . /etc/leds_name_table
+ head -1 /etc/platform
+ NAS=d2nw2
+ BFILE=/rw_fs/etc/led-brightness
+ [ -h /sys/class/leds/ns_lite_v2:blue:sata ]
+ [ -f /rw_fs/etc/led-brightness ]
+ brightness_level=255
+ frontred=d2net_v2:red:fail
+ frontblue=d2net_v2:blue:sata
+ [ d2nw2 == rspb2 ]
+ lflag=0
+ wflag=0
+ ledname=frontblue
+ option=brightness
+ value=
+ SYS=/sys/class/leds
+ getopts :nhl:o:w: name
+ wflag=1
+ value=on
+ getopts :nhl:o:w: name
+ eval echo $frontblue
+ echo d2net_v2:blue:sata
+ LED=d2net_v2:blue:sata
+ [ 0 -eq 1 ]
+ [ 1 -eq 1 ]
+ [ on == on ]
+ value=255
+ [ 255 == off ]
+ [ 255 -lt 0 ]
+ [ 255 -gt 255 ]
+ echo 255
+ [ d2nw2 == 5big2 ]
+ [ d2nw2 == 2big2 ]
+ shift 2


Code: Select all
root@LACIE:/ # sh -x /usr/bin/led -w off
+ [ -z  ]
+ . /etc/leds_name_table
+ head -1 /etc/platform
+ NAS=d2nw2
+ BFILE=/rw_fs/etc/led-brightness
+ [ -h /sys/class/leds/ns_lite_v2:blue:sata ]
+ [ -f /rw_fs/etc/led-brightness ]
+ brightness_level=255
+ frontred=d2net_v2:red:fail
+ frontblue=d2net_v2:blue:sata
+ [ d2nw2 == rspb2 ]
+ lflag=0
+ wflag=0
+ ledname=frontblue
+ option=brightness
+ value=
+ SYS=/sys/class/leds
+ getopts :nhl:o:w: name
+ wflag=1
+ value=off
+ getopts :nhl:o:w: name
+ eval echo $frontblue
+ echo d2net_v2:blue:sata
+ LED=d2net_v2:blue:sata
+ [ 0 -eq 1 ]
+ [ 1 -eq 1 ]
+ [ off == on ]
+ [ off == off ]
+ value=0
+ [ 0 -lt 0 ]
+ [ 0 -gt 255 ]
+ echo 0
+ [ d2nw2 == 5big2 ]
+ [ d2nw2 == 2big2 ]
+ shift 2
azaranto
 
Posts: 42
Joined: Tue Mar 24, 2015 2:48 am

Re: LACIE D2 Network 2 Project

Postby Jocko » Wed Apr 01, 2015 7:58 pm

Jocko wrote:(report also the LEd status after each command)
You forgot to report the LEd status .
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: LACIE D2 Network 2 Project

Postby azaranto » Wed Apr 01, 2015 8:40 pm

My bad !! :doh
Code: Select all
sh -x /usr/bin/led -w on

Light stays on. No change in Color or Brightness

Code: Select all
sh -x /usr/bin/led -w off

Light Turns off
azaranto
 
Posts: 42
Joined: Tue Mar 24, 2015 2:48 am

PreviousNext

Return to Lacie D2 network vs2

Who is online

Users browsing this forum: No registered users and 11 guests