Hi, Thanks, and questions about usage and features

Re: Hi, Thanks, and questions about usage and features

Postby fvdw » Wed Aug 09, 2023 1:27 pm

No problem to continue this, seems a driver is loaded, so see if you can communicate with it and set it up.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi, Thanks, and questions about usage and features

Postby Jocko » Wed Aug 09, 2023 3:40 pm

Maybe there are some information in dmesg output when you unplug/plug again the device
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Hi, Thanks, and questions about usage and features

Postby RiveDC1 » Wed Aug 09, 2023 8:22 pm

Got stuck.
apctest output:

Code: Select all
/$ apctest
 
 
2023-08-09 21:59:00 apctest 3.14.14 (31 May 2016) unknown
Checking configuration ...
sharenet.type = Network & ShareUPS Disabled
cable.type = USB Cable
mode.type = USB UPS Driver
Setting up the port ...
apctest FATAL ERROR in apctest.c at line 319
Unable to open UPS device.
  If apcupsd or apctest is already running,
  please stop it and run this program again.
apctest error termination completed

So it does not see the UPS.

According to manual( http://www.apcupsd.org/manual/#verifyin ... and-driver )
Also, ensure that the correct drivers are loaded. ...

On Linux-2.6.x, make sure the sysfs filesystem is mounted on /sys and do:

ls -l /sys/bus/usb/drivers/

...where you should get:

...

total 0
drwxr-xr-x 2 root root 0 Jan 6 15:27 hiddev
drwxr-xr-x 2 root root 0 Jan 6 15:28 hub
drwxr-xr-x 2 root root 0 Jan 6 15:28 usb
drwxr-xr-x 2 root root 0 Jan 6 15:27 usbfs
drwxr-xr-x 2 root root 0 Jan 6 15:28 usbhid


What I get:
Code: Select all
/$ ls -l /sys/bus/usb/drivers/
total 0
drwxr-xr-x    2 root     root             0 Aug  9 22:07 Philips webcam
drwxr-xr-x    2 root     root             0 Aug  9 22:07 asix
drwxr-xr-x    2 root     root             0 Aug  9 22:07 ax88179_178a
drwxr-xr-x    2 root     root             0 Aug  9 22:07 cdc_ether
drwxr-xr-x    2 root     root             0 Aug  9 22:07 cdc_ncm
drwxr-xr-x    2 root     root             0 Aug  9 22:07 cdc_subset
drwxr-xr-x    2 root     root             0 Aug  9 22:07 hub
drwxr-xr-x    2 root     root             0 Aug  9 22:07 ipheth
drwxr-xr-x    2 root     root             0 Aug  9 22:07 net1080
drwxr-xr-x    2 root     root             0 Aug  9 22:07 pegasus
drwxr-xr-x    2 root     root             0 Aug  9 22:07 plusb
drwxr-xr-x    2 root     root             0 Aug  9 22:07 usb
drwxr-xr-x    2 root     root             0 Aug  9 22:07 usb-storage
drwxr-xr-x    2 root     root             0 Aug  9 22:07 usbfs
drwxr-xr-x    2 root     root             0 Aug  9 22:07 usbhid
drwxr-xr-x    2 root     root             0 Aug  9 22:07 usblp
drwxr-xr-x    2 root     root             0 Aug  9 22:07 uvcvideo
drwxr-xr-x    2 root     root             0 Aug  9 22:07 zaurus


All checks out except the 'hiddev', which I do not have, as it seems.
Last edited by RiveDC1 on Thu Aug 10, 2023 6:50 am, edited 1 time in total.
RiveDC1
Donator VIP
Donator VIP
 
Posts: 18
Joined: Wed Jun 07, 2023 3:08 pm

Re: Hi, Thanks, and questions about usage and features

Postby fvdw » Wed Aug 09, 2023 8:48 pm

Oke, I wil have a look if this driver can be added.
Which version of fvdw-sl are you using?
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi, Thanks, and questions about usage and features

Postby RiveDC1 » Thu Aug 10, 2023 6:49 am

It is the latest
That's still the 18-2, right?
RiveDC1
Donator VIP
Donator VIP
 
Posts: 18
Joined: Wed Jun 07, 2023 3:08 pm

Re: Hi, Thanks, and questions about usage and features

Postby Jocko » Thu Aug 10, 2023 6:51 am

Yes that is
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Hi, Thanks, and questions about usage and features

Postby fvdw » Thu Aug 10, 2023 2:12 pm

Indeed the usb hiddev driver was not included. To get support for that driver the kernel must be recompiled.

I recompiled the kernel and the associated kernel module see attached files.
Unpack the zip archives and put the files n the fvdw shared folder of your 5big2.

Connect with ssh and on the linux command prompt give following commands

The file usbhid.ko must be stored in /lib/modules/4.14.133 replacing the existing one
Code: Select all
cp /direct-usb/fvdw/usbhid.ko /lib/modules/4.14.133/


The kernel UIMAGE-414133-KIRKWOOD-5 must be written to sda6 partition
Code: Select all
dd if=/direct-usb/fvdw/UIMAGE-414133-KIRKWOOD-5 of=/dev/sda6

NOTE Be sure you type of=/dev/sda6 in this command !!
Writing this file to wrong partition might cause loss of data or need to install firmware again

after this reboot your 5big2 to load the new kernel and driver
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi, Thanks, and questions about usage and features

Postby RiveDC1 » Thu Aug 10, 2023 2:34 pm

Very thanks

It'll be done on weekend: first a backup about the data, then a backup about SDA: and for that one I'll need to shut down the NAS for a longer time (I cannot do that mid-week).

I'll report when done.
RiveDC1
Donator VIP
Donator VIP
 
Posts: 18
Joined: Wed Jun 07, 2023 3:08 pm

Re: Hi, Thanks, and questions about usage and features

Postby RiveDC1 » Mon Aug 14, 2023 7:11 pm

Code: Select all
Kernel:   Linux 4.14.133 #5 PREEMPT Thu Aug 10 15:38:37 CEST 2023
Caution: It is not the regular kernel version [414133#1]
Date   August 14, 2023 09:05:34 PM


There is also a definitive change with apctest
Code: Select all
/$ apctest
[ERROR] AJAX: parsererror
Server reponse:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 24641536 bytes) in /usr/share
/webconsole/webconsole.1 on line 517


Something started to work :lmao

Sorry, weekend was a mess, so I have only a limited time here and there... But I'll continue :punk
RiveDC1
Donator VIP
Donator VIP
 
Posts: 18
Joined: Wed Jun 07, 2023 3:08 pm

Re: Hi, Thanks, and questions about usage and features

Postby RiveDC1 » Mon Aug 14, 2023 7:36 pm

Through SSH it's a bit different

Code: Select all
apctest


2023-08-14 21:31:42 apctest 3.14.14 (31 May 2016) unknown
Checking configuration ...
sharenet.type = Network & ShareUPS Disabled
cable.type = USB Cable
mode.type = USB UPS Driver
Setting up the port ...
Doing prep_device() ...

You are using a USB cable type, so I'm entering USB test mode
Hello, this is the apcupsd Cable Test program.
This part of apctest is for testing USB UPSes.

Getting UPS capabilities...SUCCESS

Please select the function you want to perform.

1)  Test kill UPS power
2)  Perform self-test
3)  Read last self-test result
4)  View/Change battery date
5)  View manufacturing date
6)  View/Change alarm behavior
7)  View/Change sensitivity
8)  View/Change low transfer voltage
9)  View/Change high transfer voltage
10) Perform battery calibration
11) Test alarm
12) View/Change self-test interval
 Q) Quit

Select function number: 2


This test instructs the UPS to perform a self-test
operation and reports the result when the test completes.

Clearing previous self test result...CLEARED
Initiating self test...INITIATED
Waiting for test to complete...COMPLETED
Result of last self test: PASSED


Seems to work properly, so far. More testing tomorrow.
RiveDC1
Donator VIP
Donator VIP
 
Posts: 18
Joined: Wed Jun 07, 2023 3:08 pm

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 2 guests

cron