The pfSense Store

Author Topic: I2C controller on PC engines APU2C4  (Read 268 times)

0 Members and 1 Guest are viewing this topic.

Offline magloman

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
I2C controller on PC engines APU2C4
« on: December 28, 2017, 07:00:47 am »
How to make the controller work?

It should work on FreeBSD(I think)

If a run dmesg it doest not show up.
Can I fix this somehow?

Offline johnkeates

  • Hero Member
  • *****
  • Posts: 736
  • Karma: +57/-1
    • View Profile
Re: I2C controller on PC engines APU2C4
« Reply #1 on: December 29, 2017, 04:50:35 pm »
How to make the controller work?

It should work on FreeBSD(I think)

If a run dmesg it doest not show up.
Can I fix this somehow?

Works fine here. What are you trying to do? By default it does nothing until you write software to actually do stuff with it.

Offline magloman

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: I2C controller on PC engines APU2C4
« Reply #2 on: January 06, 2018, 12:18:54 pm »
I am gonna connect a lcd to it and the lcdproq supports i2c.

What should i look for in dmesg?

Can you show me how it is suppose to look?

Maybe I installed nano version or something, gonna reinstall pfsense and see.

I get back after that

Offline magloman

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: I2C controller on PC engines APU2C4
« Reply #3 on: January 06, 2018, 02:12:50 pm »
I reinstalled pfsense 2.4.2 now just in case.

have APU2C4 and latest compiled bios I can find which is 4.0.12 (the 4.6 version is not stable on my card).

If i take a Shell and enter: "dmesg | grep iic" I get Nothing. Shouldnt my i2c bus show up there?


Offline johnkeates

  • Hero Member
  • *****
  • Posts: 736
  • Karma: +57/-1
    • View Profile
Re: I2C controller on PC engines APU2C4
« Reply #4 on: January 06, 2018, 02:21:32 pm »
I reinstalled pfsense 2.4.2 now just in case.

have APU2C4 and latest compiled bios I can find which is 4.0.12 (the 4.6 version is not stable on my card).

If i take a Shell and enter: "dmesg | grep iic" I get Nothing. Shouldnt my i2c bus show up there?

I don't think it shows up in there at all. It's just an address, you talk to it and maybe you get something back. It's not really end-user plug-and-play type stuff.

Offline magloman

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: I2C controller on PC engines APU2C4
« Reply #5 on: January 09, 2018, 09:30:30 am »
How does ur dmesg screen look like?

What i have research it should show up there.

I just installed latest freebsd 11.1(?)  just to see if it shows up but it Doesnt.
There are commands available in freebsd to test the bus and so on.

I hope somebody knowing what they are talking about see this thread and shine some light on it.

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11959
  • Karma: +469/-15
    • View Profile
Re: I2C controller on PC engines APU2C4
« Reply #6 on: January 09, 2018, 11:06:04 am »
It seems like you might need to load a driver if you want to use the existing tools, rather than talking to the device directly.

Code: [Select]
[2.3.5-RELEASE][admin@apu.stevew.lan]/dev: kldstat
Id Refs Address    Size     Name
 1   15 0xc0400000 1e6efd4  kernel
 2    1 0xca501000 3000     amdsmb.ko
 3    2 0xc9805000 2000     smbus.ko
 4    1 0xc9e92000 3000     iic.ko
 5    3 0xc9f7e000 4000     iicbus.ko
 6    1 0xca637000 3000     iicsmb.ko
 7    1 0xca63b000 4000     iicbb.ko
[2.3.5-RELEASE][admin@apu.stevew.lan]/dev: i2c -s -v
dev: /dev/iic0, addr: 0x140e7580, r/w: r, offset: 0x00, width: 8, count: 1
Error opening I2C controller (/dev/iic0) for scanning: No such file or directory

Steve