WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Alix board and I2C  (Read 3452 times)

paco

  • Guest
Alix board and I2C
« on: January 28, 2014, 08:42:58 AM »
Hello all,

I installed Core x86 (3.8.13-tinycore) on my Alix 2D13 (http://pcengines.ch/alix2d13.htm), but I do not get my I2C working.

I installed hwmon- and i2c-modules and loaded some of them:

Code: [Select]
tc@box:~$ sudo modprobe natsemi
tc@box:~$ sudo modprobe lm90
tc@box:~$ sudo modprobe scx200_acb
tc@box:~$ sudo modprobe i2c-dev

...but /dev/i2c-0 does not show:
Code: [Select]
tc@box:~$ ls /dev/i2*
ls: /dev/i2*: No such file or directory

As suggested somewhere else I added the node manually:
Code: [Select]
tc@box:~$ sudo mknod /dev/i2c-0 c 89 0

...but running (self-compiled) i2c-tools gives me:
Code: [Select]
tc@box:~$ ls /dev/i2*
/dev/i2c-0
tc@box:~$ sudo sh -c 'LD_LIBRARY_PATH=/usr/local/lib/ i2cdetect -y 0'
Error: Could not open file `/dev/i2c-0': No such device

Any ideas?

Cheers,
Patrick

P.S.: i2cdetect works fine using voyage-linux:

It loads these modules:
Code: [Select]
lm90
scx200_acb
geodewdt
led-class
ledtrig-heartbeat
ledtrig-timer
ledtrig-netdev

...and loading i2c-dev creates /dev/i2c-0.

Code: [Select]
root@voyage:/etc# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- 5c -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --                       

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Alix board and I2C
« Reply #1 on: January 28, 2014, 08:50:43 AM »
V3 core is not being maintained. I suggest you try V5.

paco

  • Guest
Re: Alix board and I2C
« Reply #2 on: January 28, 2014, 08:59:24 AM »
Hi, I use current V5.2.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Alix board and I2C
« Reply #3 on: January 29, 2014, 02:47:34 AM »
Are you sure the modules detected your hardware? Please post the last ~20 lines of dmesg.
The only barriers that can stop you are the ones you create yourself.

paco

  • Guest
Re: Alix board and I2C
« Reply #4 on: January 29, 2014, 09:49:22 AM »
My dmesg outputs:

Code: [Select]
tc@box:~$ sudo modprobe -v natsemi

natsemi dp8381x driver, version 2.1, Sept 11, 2006
  originally by Donald Becker <becker@scyld.com>
  2.4.x kernel port by Jeff Garzik, Tjeerd Mulder

Code: [Select]
tc@box:~$ sudo modprobe -v lm90

<no output in dmesg>

Code: [Select]
tc@box:~$ sudo modprobe -v scx200_acb

<no output in dmesg>

Code: [Select]
tc@box:~$ sudo modprobe -v i2c-dev

i2c /dev entries driver

paco

  • Guest
Re: Alix board and I2C
« Reply #5 on: January 29, 2014, 10:11:01 AM »
Maybe this here:
http://forums.gentoo.org/viewtopic-t-894334-start-0.html

"It turned out that I need "cs5535_mfd" in recent kernels."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Alix board and I2C
« Reply #6 on: January 29, 2014, 01:08:03 PM »
Yes, we don't have that built at the moment. You can either build a custom kernel, or just the module for our kernel.
The only barriers that can stop you are the ones you create yourself.