Re: [Owfs-developers] Problems with kernel w1-gpio - SOLVED!

2010-10-21 Thread Paul Alfille
Thank you for finding this! The locking was needed for uClibc that apparently didn't have a thread safe snprintf implementation. Paul Alfille On Thu, Oct 21, 2010 at 3:27 PM, Mauricio Culibrk wrote: > > Aaahh. > I finally managed to solve the w1-gpio master isse with owfs... > > After s

Re: [Owfs-developers] Problems with kernel w1-gpio - SOLVED!

2010-10-21 Thread Mauricio Culibrk
Aaahh. I finally managed to solve the w1-gpio master isse with owfs... After some "deep-digging" I noticed just a plain typo... in module/owlib/src/c/ow_w1_addremove.c The uclibc mutex was "re-locked" twice instead of unlocked... Why is it necessary to lock the access to "standard lib

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Paul Alfille
A quick test shows that w1 works with DS2490 (usb) under i386 (actually 64 bit) in the current version. Can you try ./configure --enable-owtraffic and run (as root) with the --debug setting? That will help start the debugging process. Paul Alfille On Thu, Oct 14, 2010 at 9:30 PM, Paul Alfille

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Paul Alfille
Ok, before I explain the specifics, let me review what I know of w1. Much of this was worked out consulting Evgeniy Polyakov, the kernel developer responsible for the system. w1 (now called wire) was designed as part of the hardware sensors system, with a wire kernel module, and subsystems support

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Mauricio Culibrk
After some more digging through kernel code (connector, w1_netlink etc.) I think I found some discrepancies in few includes.The problem is I'm not too familiar with the details of connector/netlink programming (netlink groups, ids, sequences etc)Ok, I'll try to explain my findings in short words.I'

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Mauricio Culibrk
Hi Paul!Thanks for answering!Absolutely! If you have anything that could help me I would be very grateful.you can send what you suggest to my email - [email protected] would kindly ask you if you could "reveal" me any more "specifics" regarding the "usage/linkage" of the owfs system to the kerne

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Mauricio Culibrk
On Thu, 14 Oct 2010 16:14:31 -0400 Gregg Levine wrote:> On Thu, Oct 14, 2010 at 3:22 PM, Paul Alfille > wrote:>> I certainly know the internals. I don't know if it's endian sensitive. I used the kernel headers >>from>> the netlink for the netlink information. Can I send you an>> "instrumented"

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Gregg Levine
On Thu, Oct 14, 2010 at 3:22 PM, Paul Alfille wrote: > I certainly know the internals. > > I don't know if it's endian sensitive. I used the kernel headers from > the netlink for the netlink information. Can I send you an > "instrumented" owfs version that will print out more detail? > > Paul Alfi

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Paul Alfille
I certainly know the internals. I don't know if it's endian sensitive. I used the kernel headers from the netlink for the netlink information. Can I send you an "instrumented" owfs version that will print out more detail? Paul Alfille 2010/10/14 Mauricio Culibrk : > > Hi again! > > After some mo

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Mauricio Culibrk
Hi again! After some more frustration I recompiled the kernel and all modules with dynamic debugging enabled (dynamic_printk) and after re-flashing the board enabled all debug messages for wire.ko kernel module (w1-master kernel module). After starting owserver/owfs... I thought the wire wo

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Mauricio Culibrk
Yeah... to be honest, I intend to use the w1 + ofsw on another (but similar) platform with the same/identical software. Anyway, the target platform has just ONE UART which is used for the console. There is no USB either. But there are some free gpio pins... On the other hand, yes, it would be

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Iztok Jeras
wouldn't it be easier to use an UART and an UART to 1-wire conversion chip? Regards, Iztok On Thu, Oct 14, 2010 at 11:20 AM, Gregg Levine wrote: > On Thu, Oct 14, 2010 at 4:05 AM, Mauricio Culibrk wrote: >> Hi! >> >> I'm sorry for bothering but I'm starting pulling my hair on this problem I >>

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Mauricio Culibrk
On 10/14/2010 11:20 AM, Gregg Levine wrote: Hello! Actually you're heading the right direction completly. Why not post someplace your build steps. Such as how you created that run of "OpenWrt trunk r23070", and then the methods to compile it. Finally how you installed onto your router. Also was

Re: [Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Gregg Levine
On Thu, Oct 14, 2010 at 4:05 AM, Mauricio Culibrk wrote: > Hi! > > I'm sorry for bothering but I'm starting pulling my hair on this problem I > have... > I tried to search the mailing lists and elsewhere but I'm unable to find any > relevant information... > > The goal is to make owfs work with th

[Owfs-developers] Problems with kernel w1-gpio

2010-10-14 Thread Mauricio Culibrk
Hi! I'm sorry for bothering but I'm starting pulling my hair on this problem I have... I tried to search the mailing lists and elsewhere but I'm unable to find any relevant information... The goal is to make owfs work with the kernel w1-gpio-master driver. I'm trying to setup the owfs on an