EXT header and I2C not working.

164 views
Skip to first unread message

Tommi Lundell

unread,
Mar 17, 2014, 4:51:50 PM3/17/14
to ra...@googlegroups.com
I trying to get "1-Wire Pi" (http://www.abelectronics.co.uk/products/3/Raspberry-Pi/27/1-Wire-Pi) workig with RR with out success.
I have checked hw wiring about 10 times also with fluke so it's probably ok.

I notice that i2c modules are build in kernel (server image) so i installed owfs and i2c-tools. owfs working ok with DUMMY devices but not find anything from real bus.

owfs is started with command "owfs --i2c=ALL:ALL --allow_other /mnt/1wire/" and it exiting after coule second bus scanning because it not find anything.

"i2cdetect -y 0" returning:
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: -- -- -- -- -- -- -- -- 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77

DS2482-100 i2c address is 0x18

command "i2cdump -y 0 0x18 b" returning.
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
c0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX

And i got same from all buses from 0 to 4.

Any idea how i can get it working?

Tommi Lundell

unread,
Mar 18, 2014, 1:54:46 PM3/18/14
to ra...@googlegroups.com
Hmmm. I just remember that i change kernel to ubuntu server image. Now it's about original git version from "git clone -b wip/rockchip-3.0-radxa-rock https://github.com/linux-rockchip/rockchip-3.0"

Does it need some patching to get i2c working?


--
You received this message because you are subscribed to the Google Groups "radxa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to radxa+un...@googlegroups.com.
To post to this group, send email to ra...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tommi Lundell

unread,
Mar 20, 2014, 3:23:08 PM3/20/14
to ra...@googlegroups.com
btw. "i2cdetect -y 0" returns same with or without adapter. Fluke also see some changes in i2c and one wire busses when i give that command.

Any idea where to look would be appreciated.

Tommi Lundell

unread,
Mar 20, 2014, 3:59:22 PM3/20/14
to ra...@googlegroups.com
Got it working. Only problem was typo in config files :-/

Tom Cubie

unread,
Mar 21, 2014, 4:57:52 AM3/21/14
to Tommi Lundell, ra...@googlegroups.com
On Fri, Mar 21, 2014 at 3:59 AM, Tommi Lundell <tommi....@gmail.com> wrote:
> Got it working. Only problem was typo in config files :-/
>

Hi, Tommi

what do you mean by typo in config file?

> --
> You received this message because you are subscribed to the Google Groups
> "radxa" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to radxa+un...@googlegroups.com.
> To post to this group, send email to ra...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
radxa rock - quad core arm computer that rocks

radxa.com

Tommi Lundell

unread,
Mar 21, 2014, 2:38:35 PM3/21/14
to Tom Cubie, ra...@googlegroups.com
On 21.3.2014 10:57, Tom Cubie wrote:
> what do you mean by typo in config file?

Conf files was ok before i modified those.

typo = typing error. So i accidentally wrote .../i2c-o and not .../i2c-0

Hydra

unread,
May 5, 2014, 3:52:15 AM5/5/14
to ra...@googlegroups.com, Tom Cubie
Hi, I have the same problem of i2cdetect returning bullshit:

sudo i2cdetect -y 0                                                                                                                 

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 

10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 

20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 

30: -- -- -- -- -- -- -- -- 38 39 3a 3b 3c 3d 3e 3f 

40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 

70: 70 71 72 73 74 75 76 77

My kernel is:

3.0.36+

Do i need a newer one?

Also I tried to load the i2c-dev kernel module:

sudo modprobe i2c-dev

but it doesnt show with lsmod

~» lsmod

Module                  Size  Used by

8723au                849716  0 

rk30xxnand_ko         161856  0 

Can someone help please?

Reply all
Reply to author
Forward
0 new messages