lacie 5 big network v.1 please support for fvdw

Re: lacie 5 big network v.1 please support for fvdw

Postby fvdw » Sun Dec 29, 2013 11:47 am

yes and then lsmod and the rest
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Sun Dec 29, 2013 11:54 am

Code: Select all
~ # modprobe g762
g762_init
~ # lsmod
g762 4030 0 - Live 0xbf1e7000
uvcvideo 55656 0 - Live 0xbf1d2000
v4l2_common 4868 0 - Live 0xbf1cb000
v4l2_int_device 1986 0 - Live 0xbf1c5000
videodev 65354 2 uvcvideo,v4l2_common, Live 0xbf1ac000
iscsi_tcp 7641 0 - Live 0xbf1a4000
libiscsi_tcp 10779 1 iscsi_tcp, Live 0xbf19b000
libiscsi 31551 2 iscsi_tcp,libiscsi_tcp, Live 0xbf18b000
scsi_transport_iscsi 26788 2 iscsi_tcp,libiscsi, Live 0xbf17c000
iscsi_trgt 90727 0 - Live 0xbf15c000
nfsd 88097 0 - Live 0xbf13c000
nfs 149031 0 - Live 0xbf108000
lockd 67464 2 nfsd,nfs, Live 0xbf0ed000
sunrpc 174730 4 nfsd,nfs,lockd, Live 0xbf0af000
usblp 9896 0 - Live 0xbf0a6000
fuse 59962 0 - Live 0xbf08d000
ntfs 208585 0 - Live 0xbf051000
isofs 23061 0 - Live 0xbf045000
cifs 229639 0 - Live 0xbf000000
~ # echo "g762 0x3e" >/sys/bus/i2c/devices/i2c-0/new_device
g762 0-003e: device successfully initialized
i2c i2c-0: new_device: Instantiated device g762 at 0x3e
~ # echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_mode
~ # echo 8 > /sys/bus/i2c/devices/0-003e/pwm1


I'm unclear on the setting of the fan speed, gently make me an example?

[code]# echo 8 > /sys/bus/i2c/devices/0-003e/pwm1/code]
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby fvdw » Sun Dec 29, 2013 12:02 pm

:punk finally we seem to got it working

with the commands you have given it should be running now
with this command you can set speed
Code: Select all
echo x > /sys/bus/i2c/devices/0-003e/pwm1

In this command line "x" must be replaced by a number between 0 and 255, 0 is stop 255 is max speed.
It seems that values above 50 have little effect
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Sun Dec 29, 2013 12:15 pm

I gave these commands do not get anything but the fan is stopped -. - I try to open the entire hotel and better control
Code: Select all
~ # echo 20 > /sys/bus/i2c/devices/0-003e/pwm1
~ # echo 50 > /sys/bus/i2c/devices/0-003e/pwm1




_____________________________


ok, the fan runs but there is no control over it:

you start by giving the command:

Code: Select all
~ # echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_mode


but they do not lead to different faziazioni echo accelerations or decelerations of the fan ...
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby fvdw » Sun Dec 29, 2013 1:55 pm

this the instruction that came with the driver
Kernel driver g762
==================

The GMT G762 Fan Speed PWM Controller is connected directly to a fan
and performs closed-loop or open-loop control of the fan speed. Two
modes - PWM or DC - are supported by the device.

For additional information, a detailed datasheet is available at
http://natisbad.org/NAS/ref/GMT_EDS-762 ... 10-0.2.pdf. sysfs
bindings are described in Documentation/hwmon/sysfs-interface.

The following entries are available to the user in a subdirectory of
/sys/bus/i2c/drivers/g762/ to control the operation of the device.
This can be done manually using the following entries but is usually
done via a userland daemon like fancontrol.

Note that those entries do not provide ways to setup the specific
hardware characteristics of the system (reference clock, pulses per
fan revolution, ...); Those can be modified via devicetree bindings
documented in Documentation/devicetree/bindings/hwmon/g762.txt or
using a specific platform_data structure in board initialization
file (see include/linux/platform_data/g762.h).

fan1_target: set desired fan speed. This only makes sense in closed-loop
fan speed control (i.e. when pwm1_enable is set to 2).

fan1_input: provide current fan rotation value in RPM as reported by
the fan to the device.

fan1_div: fan clock divisor. Supported value are 1, 2, 4 and 8.

fan1_pulses: number of pulses per fan revolution. Supported values
are 2 and 4.

fan1_fault: reports fan failure, i.e. no transition on fan gear pin for
about 0.7s (if the fan is not voluntarily set off).

fan1_alarm: in closed-loop control mode, if fan RPM value is 25% out
of the programmed value for over 6 seconds 'fan1_alarm' is
set to 1.

pwm1_enable: set current fan speed control mode i.e. 1 for manual fan
speed control (open-loop) via pwm1 described below, 2 for
automatic fan speed control (closed-loop) via fan1_target
above.

pwm1_mode: set or get fan driving mode: 1 for PWM mode, 0 for DC mode.

pwm1: get or set PWM fan control value in open-loop mode. This is an
integer value between 0 and 255. 0 stops the fan, 255 makes
it run at full speed.

Both in PWM mode ('pwm1_mode' set to 1) and DC mode ('pwm1_mode' set to 0),
when current fan speed control mode is open-loop ('pwm1_enable' set to 1),
the fan speed is programmed by setting a value between 0 and 255 via 'pwm1'
entry (0 stops the fan, 255 makes it run at full speed). In closed-loop mode
('pwm1_enable' set to 2), the expected rotation speed in RPM can be passed to
the chip via 'fan1_target'. In closed-loop mode, the target speed is compared
with current speed (available via 'fan1_input') by the device and a feedback
is performed to match that target value. The fan speed value is computed
based on the parameters associated with the physical characteristics of the
system: a reference clock source frequency, a number of pulses per fan
revolution, etc.

Note that the driver will update its values at most once per second.


You need to do some trials to get the right setting I guess
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lacie 5 big network v.1 please support for fvdw

Postby fvdw » Sun Dec 29, 2013 2:06 pm

to get manual control via pwm1 you need to set pwm1_enable to 1
Code: Select all
echo 1 > pwm1_enable

If you use the value 2 it goes in closed loop control and sets the speed that you can set in fan_target
I tested it on the 5big2 and it woks fine to set then the speed with pwm1 value


(pwm1_mode seems to be needed to be set at 1 for my 5big2)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Sun Dec 29, 2013 2:27 pm

I am noticing that the fan runs without setting anything ... -. - Removing everything I see that the minimum venta turn it around and I started to double check with the previous kernel and runs without any addition
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby fvdw » Sun Dec 29, 2013 2:48 pm

I think that this chip may remember the last setting made before reboot

To get manual control
Code: Select all
echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_enable
echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_mode

after this to set speed examples
Code: Select all
echo 20 > /sys/bus/i2c/devices/0-003e/pwm1

or
Code: Select all
echo 200 > /sys/bus/i2c/devices/0-003e/pwm1

and so on

I will need to make a daemon (program running in the background) that looks at disk temperature and if it approaches a critical value starts to rotate the fan.
For the moment you can use it in manual mode to prevent overheating, just leave it running.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lacie 5 big network v.1 please support for fvdw

Postby taetae » Sun Dec 29, 2013 3:10 pm

the use of various commands not known differences rather see small slowdowns fan schematically

Code: Select all
~ # modprobe g762
g762_init
~ # lsmod
g762 4030 0 - Live 0xbf1e7000
uvcvideo 55656 0 - Live 0xbf1d2000
v4l2_common 4868 0 - Live 0xbf1cb000
v4l2_int_device 1986 0 - Live 0xbf1c5000
videodev 65354 2 uvcvideo,v4l2_common, Live 0xbf1ac000
iscsi_tcp 7641 0 - Live 0xbf1a4000
libiscsi_tcp 10779 1 iscsi_tcp, Live 0xbf19b000
libiscsi 31551 2 iscsi_tcp,libiscsi_tcp, Live 0xbf18b000
scsi_transport_iscsi 26788 2 iscsi_tcp,libiscsi, Live 0xbf17c000
iscsi_trgt 90727 0 - Live 0xbf15c000
nfsd 88097 0 - Live 0xbf13c000
nfs 149031 0 - Live 0xbf108000
lockd 67464 2 nfsd,nfs, Live 0xbf0ed000
sunrpc 174730 4 nfsd,nfs,lockd, Live 0xbf0af000
usblp 9896 0 - Live 0xbf0a6000
fuse 59962 0 - Live 0xbf08d000
ntfs 208585 0 - Live 0xbf051000
isofs 23061 0 - Live 0xbf045000
cifs 229639 0 - Live 0xbf000000
~ # echo "g762 0x3e" >/sys/bus/i2c/devices/i2c-0/new_device
g762 0-003e: device successfully initialized
i2c i2c-0: new_device: Instantiated device g762 at 0x3e
~ # echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_enable
~ # echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_mode
~ # echo 20 > /sys/bus/i2c/devices/0-003e/pwm1
~ # echo 150 > /sys/bus/i2c/devices/0-003e/pwm1
~ # echo 2 > /sys/bus/i2c/devices/0-003e/pwm1_enable
~ # echo 2> pwm1_enable

~ # echo 2 > pwm1_enable
~ # echo 1 > pwm1_enable
~ # echo 200 > /sys/bus/i2c/devices/0-003e/pwm1
~ # echo 2 > pwm1_enable
~ #
taetae
Donator VIP
Donator VIP
 
Posts: 438
Joined: Mon Aug 26, 2013 9:02 am

Re: lacie 5 big network v.1 please support for fvdw

Postby fvdw » Sun Dec 29, 2013 3:40 pm

if pmw1_enable is set to 2 then the fan goes in control loop mode and use the value in fan1_target to set the desired rotation speed

Also not that you need to write to the right folder containing the pwm1 and other "files"

Doin a command like this
Code: Select all
echo 2 > pwm1_enable
will write the value 2 to a file present in the directory from were the command is given. If the file doesn't exists it is created. It is obvious that in such occasion nothing will happen with the fan if this is done outside the folder were the process file pwm1_enable is located..
You need to use the full path to the right file
so like this
Code: Select all
echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_enable

to see if this is the right path you could check if the file is present in the /sys/bus/i2c/devices/0-003e together with the other ones
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 4 guests