This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

mach-davinci/board-bluebox-iii.c add w1-gpio master support.



Hello, all!

I can't  find any information on how I can add 1-wire over gpio master support.

I'm using Bluebox-III-like board. I have gpio pin and a 1-wire slave connected to it.

I get insmod: can't insert './w1-gpio.ko': No such device error in console and w1-gpio: probe of w1-gpio failed with error -16 in kernel log.

Unfortunately my search of this messages over the web did not give any results at all.

I have tested this pin (by test kernel module and oscilloscope) - it works, it is exactly the pin to which slave w1 connected.

Please suggest how I should complete board-bluebox-iii.c to add w1-gpio support (or maybe I've not done some in w1-gpio.c).

Or direct me somewhere I can read about it.

  • HI,

     

    i have searched the file w1-gpio.ko in my linux machine and i got it at following location:

     

    /lib/modules/2.6.32-21-generic/kernel/drivers/w1/masters/w1-gpio.ko

     

    Get it from the directory in the kernel and insert it into the filesystem on the board you are using.

     

    Regards,

    Mayank

     

     

  • Sorry, I don't understand. What do you mean?

  • I think the problem was that the pin was already used as WIFIMSEL. Of course it was busy and kernel returned -EBUSY.  Now it is pin for W1-GPIO support.

    I've commented initialization of the pin in BlueBox-III.c rebuild everything and now module w1-gpio loads and /sys/bus/w1/devices/w1 bus master/ directory appears.

    But no "slaves" found. Can someone help me to test 1-Wire master?

    I have DS18S20P connected to my W1 pin (for testing purposes only). There is no driver for it in the kernel.

    Sorry for dummy question, I'm new to 1-Wire bus.