Hippo,
When I built the driver into the kernel, and boot up the system, I get the following
Uncompressing Linux... Ok, booting the kernel.
Linux version 2.6.Uncompressing Linux... Ok, booting the kernel.
Linux version 2.6.17-uc1 (uclinux@colinux) (gcc version 3.4.6)# 36 PREEMPT Mon N
ov 6 11:12:34 EST 2006
uClinux/Nios II
Altera Nios II support (C) 2004 Microtronix Datacom Ltd.
Built 1 zonelists
Kernel command line:
PID hash table entries: 256 (order: 8, 1024 bytes)
...
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>
eth0: SMC91C11xFD (rev 1) at 82210300 IRQ 6
eth0: Ethernet addr: 00:07:ed:0f:06:92
i2c /dev entries driver
i2c-oc: i2c Opencores adapter driver
Opencores i2c algorithm module
TCP bic registered
NET: Registered protocol family 1
...
Does it mean the drivers are in ?
Also, when I try to do i2cdetect, I get this.
/nios2bin> ./i2cdetect
Error: No i2c-bus specified!
Syntax: i2cdetect I2CBUS
I2CBUS is an integer
With -f, scans all addresses (NOT RECOMMENDED)
With -q, uses only quick write commands for probing (NOT RECOMMENDED)
With -r, uses only read byte commands for probing (NOT RECOMMENDED)
If provided, FIRST and LAST limit the probing range.
i2cdetect -l lists installed busses only
Installed I2C busses:
i2c-0 unknown Opencores i2c 0 Algorithm unavailable
/nios2bin>
It looks like the algorithm is NOT available.
but, when I try modprobe i2c-algo-oc, I get the following
/nios2bin> modprobe i2c-algo-oc
modprobe: could not parse modules.dep
This is very confusing for me. Please help.