Kernel Version

Re: Kernel Version

Postby fvdw » Wed Mar 27, 2013 10:13 pm

no problem to try to compile that package, I will have a look

but what do you exactly mean with "it is not stable" ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Kernel Version

Postby j.coudrais » Thu Mar 28, 2013 9:11 pm

you know, one wire system is a bus, like a network, with only 2 wires (not only 1 ;-) ) used to manage power and read data on modules, the modules are serialized.
so a usb key can also read on the bus, but can be difficult ro read...
before (on my vs1) i scheduled the process to read until it's ok

with the ow builtin driver YOU compiled for me, I browse like a filesystem, for example /sys/bus/w1/devices/28-0000038b6043

i can't get it read, for 3 modules to read, it's too randomly...

I hope owfs is much better to manage that
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: Kernel Version

Postby fvdw » Thu Mar 28, 2013 9:22 pm

I started up the compiler but it requires some extra's, like libfuse but so to see nothing that can not be solved.
I will post it as soon as possible.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Kernel Version

Postby fvdw » Thu Mar 28, 2013 10:19 pm

It will need to be installed as "addon" are you familiar with how to install addons in fvdw-sl firmware ? Otherwise read the guide in download section

attached two zip archives
the fvdw-sl-addon-owfs zip archive must be installed as addon in fvdw share
prepare the nwsp2 for addons (see dowload forum)
After having prepared you nwsp2 for addons put the zip archive in the "add-ons" folder in the "fvdw" share of the NAS and unpack it.
You should have now a file in the addons folder with name owfs.tar.
Log in vi ssh and go to the addons folder (/share/1000/fvdw/addons) and extract the tar archive

fvdw-sl-addon-owfs-2.9p0.zip


The libfuse zip archive must be unpacked, you will get a tar archive. Put this tar archive in the main (root) directory of the firmware (/) (you get that when logging in via ssh ) and extract the tar archive.
libfuse-2.9.2.zip


I think owfs needs a configuration file in /etc as well but no default one is supplied, guess you have to make it yourself

this is the configuration I compiled

Code: Select all
Current configuration:

    Deployment location: /usr/local

Compile-time options:
                      USB is enabled
                      I2C is enabled
                       W1 is enabled
    Parallel port DS1410E is enabled
         Zeroconf/Bonjour is enabled
             Debug-output is enabled
                Profiling is DISABLED
Tracing memory allocation is DISABLED
1wire bus traffic reports is DISABLED

Module configuration:
                    owlib is enabled
                  owshell is enabled
                     owfs is enabled
                  owhttpd is enabled
                   owftpd is enabled
                 owserver is enabled
               owexternal is enabled
                    ownet is enabled
                 ownetlib is enabled
                    owtap is enabled
                    owmon is enabled
                   owcapi is enabled
                     swig is DISABLED
                   owperl is DISABLED
                    owphp is DISABLED
                 owpython is DISABLED
                    owtcl is DISABLED

You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Kernel Version

Postby j.coudrais » Fri Mar 29, 2013 7:29 am

Hi,

thank you !! i'll try that tonight :-)
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: Kernel Version

Postby j.coudrais » Fri Mar 29, 2013 6:06 pm

Well, i did all that, can't get owfs run... segmentation fault...
on sourceforge, it seems that we need libusb, I don't know if it's in the kernel .
Sure you know about that...
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: Kernel Version

Postby j.coudrais » Fri Mar 29, 2013 6:13 pm

I found that :
Code: Select all
I found how to configure the package owfs to support the USB.
I modified the Makefile in "feeds/packages/utils/owfs/Makefile" by adding the option "--enable-usb"
 PKG_CONFIGURE_OPTS:= \
                --enable-zero \
                --enable-usb \                        => rajout support USB.
                --disable-parport \
        ...
Compiling in verbose mode shows the inclusion of USB with no error:
$ make package/owfs/compile package/index V=99
...
Configuring owfs-2.7p21
...
checking if usb support is enabled... yes
checking for usb_open in -lusb... yes
checking if usb_interrupt_read is found... yes
...
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: Kernel Version

Postby fvdw » Fri Mar 29, 2013 7:36 pm

yes it is in the firmware.

I checked config.log but all seems to be ok

Code: Select all
configure:15145: checking for libusb-config
configure:15161: found /usr/bin/libusb-config
configure:15172: result: libusb-config
configure:15215: checking if usb support is enabled
configure:15230: result: auto (default)
configure:15249: checking if libusb compiles with includes+lib
configure:15265: gcc -c -g -O2 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L   conftest.c >&5
configure:15265: $? = 0
configure:15266: result: ok
configure:15290: checking if usb_interrupt_read is found
configure:15308: gcc -o conftest -g -O2 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L     -L/usr/lib -lusb conftest.c  -L/usr/lib -lusb >&5
configure:15308: $? = 0
configure:15317: result: yes


also at end of configure it mentions that usb support is enabled..

Why do you think libusb is the problem?

I noticed that libusb-config doesn't seem to match with the libusb.so installed, we upgraded libusb a while ago, maybe that mismatch is the problem. Need to have a look tomorrow this evening I have no time, sorry to keep you waiting
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Kernel Version

Postby j.coudrais » Fri Mar 29, 2013 7:53 pm

No problem, thank you for your help.

I notice libusb problem on forums with stick like mine ds9490r

Good night
j.coudrais
Donator VIP
Donator VIP
 
Posts: 35
Joined: Sat Aug 06, 2011 10:39 am
Location: LYON

Re: Kernel Version

Postby fvdw » Sat Mar 30, 2013 10:36 am

cannot find an error yet, but I will recompile libusb to latest version, seems owfs needs the legacy version of libusb (0.1) while newer software uses libusb-1.0. The legacy version in the firmware is a version I did not compile myself. Lets see if recompiling that sorts the problem
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 10 guests