How to enable i2c bus on NSA325?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

How to enable i2c bus on NSA325?

Postby picardtux » Sun May 25, 2014 6:36 am

hi all,

I get at zyxel nsa325 cpu temp and rpm not read.
I first tried to find out some basic things, such as this user.

kernel
$this->bbcode_second_pass_code('', '[picard@ALARM ~]$ uname -a
Linux ALARM 3.14.4-1-ARCH #1 PREEMPT Thu May 15 19:38:21 MDT 2014 armv5tel GNU/Linux')

kernel modules
$this->bbcode_second_pass_code('', '[picard@ALARM ~]$ lsmod
Module Size Used by
nf_conntrack_ipv4 11483 18
nf_defrag_ipv4 1083 1 nf_conntrack_ipv4
xt_tcpudp 1952 18
xt_conntrack 2743 18
nf_conntrack 63614 2 xt_conntrack,nf_conntrack_ipv4
lm85 16556 0
hwmon_vid 1942 1 lm85
hwmon 2277 1 lm85
iptable_filter 1124 1
ip_tables 10358 1 iptable_filter
x_tables 11923 4 ip_tables,xt_tcpudp,xt_conntrack,iptable_filter
mv_cesa 11034 0
rtc_pcf8563 2671 0
ipv6 300997 35
autofs4 23037 2')

$this->bbcode_second_pass_code('', '[picard@ALARM ~]$ sudo find /sys/ -name \*i2c\*
/sys/bus/i2c
/sys/bus/i2c/devices/i2c-0
/sys/bus/platform/devices/mv64xxx_i2c.0
/sys/bus/platform/drivers/mv64xxx_i2c
/sys/bus/platform/drivers/mv64xxx_i2c/mv64xxx_i2c.0
/sys/devices/platform/mv64xxx_i2c.0
/sys/devices/platform/mv64xxx_i2c.0/i2c-0
/sys/devices/platform/mv64xxx_i2c.0/i2c-0/i2c-dev
/sys/devices/platform/mv64xxx_i2c.0/i2c-0/i2c-dev/i2c-0
/sys/class/i2c-dev
/sys/class/i2c-dev/i2c-0
/sys/class/i2c-adapter
/sys/class/i2c-adapter/i2c-0
/sys/module/lm85/drivers/i2c:lm85
/sys/module/rtc_pcf8563/drivers/i2c:rtc-pcf8563')

modules nsa3xx-hwmon
$this->bbcode_second_pass_code('', '[picard@ALARM ~]$ sudo find /sys/ -name \*nsa3xx-hwmon\*
/sys/bus/platform/devices/nsa3xx-hwmon
/sys/devices/platform/nsa3xx-hwmon
[picard@ALARM ~]$ modinfo nsa3xx-hwmon
modinfo: ERROR: Module nsa3xx-hwmon not found.
')

dmesg i2c and rtc-pcf8563
$this->bbcode_second_pass_code('', '[picard@ALARM ~]$ dmesg |grep i2c
[ 15.355991] i2c /dev entries driver
[picard@ALARM ~]$ dmesg |grep rtc
[ 15.351000] rtc-mv rtc-mv: internal RTC not ticking
[ 15.436751] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 30.363383] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[ 30.419284] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 30.500666] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0')

raumzeit found the solution :?:

$this->bbcode_second_pass_code('', '[picard@ALARM ~]$ sudo sensors-detect
[...] No
[...] No
[...]
Next adapter: mv64xxx_i2c adapter (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Probing for `EDID EEPROM'... No
Client found at address 0x51
Handled by driver `rtc_pcf8563' (already loaded), chip type `pcf8563'
(note: this is probably NOT a sensor chip!)

Sorry, no sensors were detected.
Either your system has no sensors, or they are not supported, or
they are connected to an I2C or SMBus adapter that is not
supported. If you find out what chips are on your board, check
http://www.lm-sensors.org/wiki/Devices for driver status.')

i2c tools are installed, I'll try to read directly
$this->bbcode_second_pass_code('', '[picard@ALARM ~]$ sudo i2cget -y 0x0 0x0a 0x07
0x29
[picard@ALARM ~]$ sudo i2cget -y 0x0 0x0a 0x08
0x18') works :idea:



I want to monitor my nsa325 with Monitorix and need for the sensor data. Does anyone have an idea or solution?

thank you pic
picardtux
 
Posts: 9
Joined: Fri Mar 21, 2014 11:18 pm

Re: How to enable i2c bus on NSA325?

Postby WarheadsSE » Sun May 25, 2014 12:43 pm

Fair chance, it is entirely not visible in that way, and is handled entirely by the same MCU that handles the watchdog. But if you can get them working manually, then I suppose it is possible that something in the kernel is not behaving as expected.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to enable i2c bus on NSA325?

Postby picardtux » Sat May 31, 2014 6:47 am

thank WarheadsSE for your message.
So then I must think of a possibility / scripting as I choice the temperature and rpm values ​​me :idea:

has anyone ever done something like this :?:
I have to say that to me is totally third rangig, so it has very little prio, ALARM runs very well :P

greeting
pic
picardtux
 
Posts: 9
Joined: Fri Mar 21, 2014 11:18 pm

Re: How to enable i2c bus on NSA325?

Postby WarheadsSE » Mon Jun 16, 2014 12:43 am

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to enable i2c bus on NSA325?

Postby picardtux » Mon Jun 16, 2014 7:18 am

Hello

my goal was to let cpu temperature and FAN rpm display in munin.
http://www.zyxelforum.de/lightweight-sy ... tml#p46347

but it can of course also view in a bash script aor on a website ;-)
http://www.zyxelforum.de/webui-f%C3%BCr ... tml#p46361

my english skill is bad, please indulgence. :oops:
picardtux
 
Posts: 9
Joined: Fri Mar 21, 2014 11:18 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests