* Board Bootup and message log
[not found] <8584FDC94AFF7640B17B8A89B23B19B34F6564@sbsserver.AlphionCorp.local>
@ 2006-09-16 8:19 ` Sachin Rane
[not found] ` <8584FDC94AFF7640B17B8A89B23B19B34F6569@sbsserver.AlphionCorp.local>
2006-09-18 7:18 ` Board Bootup and message log Matthias Fuchs
0 siblings, 2 replies; 4+ messages in thread
From: Sachin Rane @ 2006-09-16 8:19 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1.1: Type: text/plain, Size: 1214 bytes --]
Hi,
I want to access 'EEPROM' I2C device present on AMCC PPC440GX Evaluation bard.
I have loaded following drivers:
1. i2c-core.ko
2. i2c-dev.ko
3. eeprom.ko
4. i2c-ibm_iic.ko
The entry in the 'sysfs' got created for drivers and devices.
----------------------------------------------------------------------------------------
-bash-2.05b# cd /sys/bus/i2c/devices
-bash-2.05b# ls -la *
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0050 -> ../../../devices/platform/i2c-0/0-0050
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0053 -> ../../../devices/platform/i2c-0/0-0053
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0054 -> ../../../devices/platform/i2c-0/0-0054
-bash-2.05b# cat ../../../devices/platform/i2c-0/0-0050/name
eeprom
----------------------------------------------------------------------------------------
As per the documentation (/usr/src/linux/Documentation/i2c/dev-interface),
I2C adapter files gets created under "/dev/i2c-X"are with with major device number 89.
But in my case, the device file is not getting created under '/dev/'.
Am I missing anything while loading the driver?
I have attached the board boot up and 'demsg' log file.
Thanks and Regards,
Sachin Rane
[-- Attachment #1.2: Type: text/html, Size: 2426 bytes --]
[-- Attachment #2: bootup_log_i2cDrivers.txt --]
[-- Type: text/plain, Size: 8536 bytes --]
U-Boot 1.1.4 (Aug 7 2006 - 20:36:40)
CPU: AMCC PowerPC 440GX Rev. F at 533.333 MHz (PLB=133, OPB=66, EBC=66 MHz)
I2C boot EEPROM enabled
Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache
Board: Ocotea - AMCC PPC440GX Evaluation Board
I2C: ready
DRAM: 256 MB
FLASH: 5 MB
PCI: Bus Dev VenId DevId Class Int
In: serial
Out: serial
Err: serial
Net: ppc_4xx_eth0, ppc_4xx_eth1, ppc_4xx_eth2, ppc_4xx_eth3
Sachin " ****************Read ReadMeInstructions: Uboot Environment Variable Configuration *************"
Hit any key to stop autoboot: 0
## Booting image at ffc00000 ...
Image Name: Linux-2.6.16.1
Created: 2006-08-02 19:51:26 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 931818 Bytes = 910 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Linux version 2.6.16.1 (root@linux) (gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)) #3 Thu Aug 3 01:21:21 IST 2006
IBM Ocotea port (MontaVista Software, Inc. <source@mvista.com>)
Built 1 zonelists
Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.2:/opt/timesys/linux/6.1/ppc440-std/rfs ip=192.168.0.54:192.168.0.2:192.168.0.1:255.255.255.0:ocotea:eth
0::off console=ttyS0,115200
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 257664k available (1420k kernel code, 460k data, 112k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 4 TX channels, 4 RX channels
zmii0: bridge in SMII mode
eth0: emac0, MAC 00:01:73:01:de:c8
eth0: found Generic MII PHY (0x01)
eth1: emac1, MAC 00:01:73:01:de:c9
eth1: found Generic MII PHY (0x02)
rgmii0: input 0 in RGMII mode
eth2: emac2, MAC 00:01:73:01:de:ca
eth2: found CIS8201 Gigabit Ethernet PHY (0x10)
rgmii0: input 1 in RGMII mode
eth3: emac3, MAC 00:01:73:01:de:cb
eth3: found CIS8201 Gigabit Ethernet PHY (0x18)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link is down
IP-Config: Complete:
device=eth0, addr=192.168.0.54, mask=255.255.255.0, gw=192.168.0.1,
host=ocotea, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.2
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 192.168.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 112k init
INIT: version 2.84 booting
Welcome to Distribution built using LinuxLink by TimeSys (6.1)
mounting... ramfs at /dev
Creating initial udev device nodes:
making extra nodes
udev startup is finished!
Initializing hardware... storage network audio done[ OK ]
raidautorun: failed to open /dev/md0: 6
Configuring kernel parameters: [ OK ]
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Mon Apr 6 08:19:06 UTC 2015 [ OK ]
Setting hostname timesys-bsp: [ OK ]
Your system appears to have shut down uncleanly
Press Y within 1 seconds to force file system integrity check...
Remounting root filesystem in read-write mode: [ OK ]
Checking filesystems
Checking all file systems.
[ OK ]
chown: changing ownership of `/tmp/.ICE-unix': Operation not permitted
Enabling swap space: [ OK ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
Starting portmap: [ OK ]
Starting NFS statd: [ OK ]
Starting xinetd: [ OK ]
Starting crond: [ OK ]
Starting atd: [ OK ]
Starting system message bus: [ OK ]
Starting the Alphion Demo App
Starting alphiondemo
************* Alphion Demo APP Started *********************
************* This is a sample Demo to start and stop apps ********
Done
Distribution built using LinuxLink by TimeSys (6.1)
Kernel 2.6.16.1 for ppc
timesys-bsp login: root
Last login: Mon Apr 6 06:33:48 on ttyS0
-bash-2.05b# lsmod
Module Size Used by
-bash-2.05b# **************************************After L Alphion Wake after a minute .....
-bash: ********************: command not found
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# ps -ax | grep alphion
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
352 ? S 0:00 /home/AlphionApps//alphiondemo
383 ttyS0 R+ 0:00 grep alphion
-bash-2.05b# kill -9 352
-bash-2.05b# ************************************* output of lsmod *************
-bash: *************************************: command not found
-bash-2.05b# ************************************* output of lsmod *************
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# lsmod
Module Size Used by
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# *************Inserting the Modules *************
-bash: *************Inserting: command not found
-bash-2.05b#
-bash-2.05b# insmod i2c-dev.ko
insmod: can't read 'i2c-dev.ko': No such file or directory
-bash-2.05b# cd /lib/modules/2.6.16.1/kernel/drivers/i2c/
-bash-2.05b# insmod i2c-dev.ko
i2c_dev: Unknown symbol i2c_check_addr
i2c_dev: Unknown symbol i2c_get_adapter
i2c_dev: Unknown symbol i2c_control
i2c_dev: Unknown symbol i2c_master_recv
i2c_dev: Unknown symbol i2c_smbus_xfer
i2c_dev: Unknown symbol i2c_register_driver
i2c_dev: Unknown symbol i2c_put_adapter
i2c_dev: Unknown symbol i2c_transfer
i2c_dev: Unknown symbol i2c_del_driver
i2c_dev: Unknown symbol i2c_master_send
insmod: error inserting 'i2c-dev.ko': -1 Unknown symbol in module
-bash-2.05b# insmod i2c-core.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_core 22384 0
-bash-2.05b# insmod i2c-dev.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_dev 10116 0
i2c_core 22384 1 i2c_dev
-bash-2.05b# ls
algos busses chips i2c-core.ko i2c-dev.ko
-bash-2.05b# cd chips/
-bash-2.05b# insmod
insmod insmod.static insmod_ksymoops_clean
-bash-2.05b# insmod eeprom.ko
-bash-2.05b# lsmod
Module Size Used by
eeprom 6736 0
i2c_dev 10116 0
i2c_core 22384 2 eeprom,i2c_dev
-bash-2.05b# ls
ds1337.ko eeprom.ko max6875.ko pcf8574.ko rtc8564.ko
ds1374.ko m41t00.ko pca9539.ko pcf8591.ko x1205.ko
-bash-2.05b# cd ..
-bash-2.05b# ls
algos busses chips i2c-core.ko i2c-dev.ko
-bash-2.05b# cd busses/
-bash-2.05b# ls
i2c-ali1535.ko i2c-i801.ko i2c-pca-isa.ko i2c-sis96x.ko
i2c-ali1563.ko i2c-i810.ko i2c-piix4.ko i2c-stub.ko
i2c-ali15x3.ko i2c-ibm_iic.ko i2c-prosavage.ko i2c-via.ko
i2c-amd756-s4882.ko i2c-mpc.ko i2c-savage4.ko i2c-viapro.ko
i2c-amd756.ko i2c-nforce2.ko i2c-sis5595.ko i2c-voodoo3.ko
i2c-amd8111.ko i2c-parport-light.ko i2c-sis630.ko scx200_acb.ko
-bash-2.05b# insmod 2c-ibm_iic.ko
insmod: can't read '2c-ibm_iic.ko': No such file or directory
-bash-2.05b# insmod i2c-ibm_iic.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_ibm_iic 7432 0
eeprom 6736 0
i2c_dev 10116 0
i2c_core 22384 3 i2c_ibm_iic,eeprom,i2c_dev
[-- Attachment #3: dmesg_log_i2cDrivers.txt --]
[-- Type: text/plain, Size: 5791 bytes --]
-bash-2.05b# dmesg
Linux version 2.6.16.1 (root@linux) (gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)) #3 Thu Aug 3 01:21:21 IST 2006
IBM Ocotea port (MontaVista Software, Inc. <source@mvista.com>)
On node 0 totalpages: 65536
DMA zone: 65536 pages, LIFO batch:15
DMA32 zone: 0 pages, LIFO batch:0
Normal zone: 0 pages, LIFO batch:0
HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.2:/opt/timesys/linux/6.1/ppc440-std/rfs ip=192.168.0.54:192.168.0.2:192.168.0.1:255.255.255.0:ocotea:eth
0::off console=ttyS0,115200
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 257664k available (1420k kernel code, 460k data, 112k init, 0k highmem)
Calibrating delay loop... 798.72 BogoMIPS (lpj=1597440)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 4 TX channels, 4 RX channels
zmii0: bridge in SMII mode
eth0: emac0, MAC 00:01:73:01:de:c8
eth0: found Generic MII PHY (0x01)
eth1: emac1, MAC 00:01:73:01:de:c9
eth1: found Generic MII PHY (0x02)
rgmii0: input 0 in RGMII mode
eth2: emac2, MAC 00:01:73:01:de:ca
eth2: found CIS8201 Gigabit Ethernet PHY (0x10)
rgmii0: input 1 in RGMII mode
eth3: emac3, MAC 00:01:73:01:de:cb
eth3: found CIS8201 Gigabit Ethernet PHY (0x18)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link is down
IP-Config: Complete:
device=eth0, addr=192.168.0.54, mask=255.255.255.0, gw=192.168.0.1,
host=ocotea, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.2
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 192.168.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 112k init
i2c_dev: Unknown symbol i2c_check_addr
i2c_dev: Unknown symbol i2c_get_adapter
i2c_dev: Unknown symbol i2c_control
i2c_dev: Unknown symbol i2c_master_recv
i2c_dev: Unknown symbol i2c_smbus_xfer
i2c_dev: Unknown symbol i2c_register_driver
i2c_dev: Unknown symbol i2c_put_adapter
i2c_dev: Unknown symbol i2c_transfer
i2c_dev: Unknown symbol i2c_del_driver
i2c_dev: Unknown symbol i2c_master_send
i2c /dev entries driver
i2c-core: driver [dev_driver] registered
i2c-core: driver [eeprom] registered
IBM IIC driver v2.1
i2c_adapter i2c-0: adapter [IBM IIC] registered
i2c-dev: adapter [IBM IIC] registered as minor 0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x50
i2c_adapter i2c-0: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0050
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x51
i2c_adapter i2c-0: master_xfer[0] W, addr=0x51, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x52
i2c_adapter i2c-0: master_xfer[0] W, addr=0x52, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x53
i2c_adapter i2c-0: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0053
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x54
i2c_adapter i2c-0: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0054
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x55
i2c_adapter i2c-0: master_xfer[0] W, addr=0x55, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x56
i2c_adapter i2c-0: master_xfer[0] W, addr=0x56, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x57
i2c_adapter i2c-0: master_xfer[0] W, addr=0x57, len=0
ibm-iic0: using standard (100 kHz) mode
i2c_adapter i2c-1: adapter [IBM IIC] registered
i2c-dev: adapter [IBM IIC] registered as minor 1
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x50
i2c_adapter i2c-1: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x51
i2c_adapter i2c-1: master_xfer[0] W, addr=0x51, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x52
i2c_adapter i2c-1: master_xfer[0] W, addr=0x52, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x53
i2c_adapter i2c-1: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x54
i2c_adapter i2c-1: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x55
i2c_adapter i2c-1: master_xfer[0] W, addr=0x55, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x56
i2c_adapter i2c-1: master_xfer[0] W, addr=0x56, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x57
i2c_adapter i2c-1: master_xfer[0] W, addr=0x57, len=0
ibm-iic1: using standard (100 kHz) mode
^ permalink raw reply [flat|nested] 4+ messages in thread
* I2C adapter device file problem
[not found] ` <8584FDC94AFF7640B17B8A89B23B19B34F6569@sbsserver.AlphionCorp.local>
@ 2006-09-16 8:29 ` Sachin Rane
2006-09-18 5:19 ` Sachin Rane
0 siblings, 1 reply; 4+ messages in thread
From: Sachin Rane @ 2006-09-16 8:29 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]
Hi,
I want to access 'EEPROM' I2C device present on AMCC PPC440GX Evaluation bard.
I have loaded following drivers:
1. i2c-core.ko
2. i2c-dev.ko
3. eeprom.ko
4. i2c-ibm_iic.ko
The entry in the 'sysfs' got created for drivers and devices.
----------------------------------------------------------------------------------------
-bash-2.05b# cd /sys/bus/i2c/devices
-bash-2.05b# ls -la *
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0050 -> ../../../devices/platform/i2c-0/0-0050
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0053 -> ../../../devices/platform/i2c-0/0-0053
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0054 -> ../../../devices/platform/i2c-0/0-0054
-bash-2.05b# cat ../../../devices/platform/i2c-0/0-0050/name
eeprom
----------------------------------------------------------------------------------------
As per the documentation (/usr/src/linux/Documentation/i2c/dev-interface),
I2C adapter files gets created under "/dev/i2c-X"are with with major device number 89.
But in my case, the device file is not getting created under '/dev/'.
Am I missing anything while loading the driver?
I have attached the board boot up and 'demsg' log file.
Thanks and Regards,
Sachin Rane
[-- Attachment #1.2: Type: text/html, Size: 2671 bytes --]
[-- Attachment #2: bootup_log_i2cDrivers.txt --]
[-- Type: text/plain, Size: 8536 bytes --]
U-Boot 1.1.4 (Aug 7 2006 - 20:36:40)
CPU: AMCC PowerPC 440GX Rev. F at 533.333 MHz (PLB=133, OPB=66, EBC=66 MHz)
I2C boot EEPROM enabled
Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache
Board: Ocotea - AMCC PPC440GX Evaluation Board
I2C: ready
DRAM: 256 MB
FLASH: 5 MB
PCI: Bus Dev VenId DevId Class Int
In: serial
Out: serial
Err: serial
Net: ppc_4xx_eth0, ppc_4xx_eth1, ppc_4xx_eth2, ppc_4xx_eth3
Sachin " ****************Read ReadMeInstructions: Uboot Environment Variable Configuration *************"
Hit any key to stop autoboot: 0
## Booting image at ffc00000 ...
Image Name: Linux-2.6.16.1
Created: 2006-08-02 19:51:26 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 931818 Bytes = 910 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Linux version 2.6.16.1 (root@linux) (gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)) #3 Thu Aug 3 01:21:21 IST 2006
IBM Ocotea port (MontaVista Software, Inc. <source@mvista.com>)
Built 1 zonelists
Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.2:/opt/timesys/linux/6.1/ppc440-std/rfs ip=192.168.0.54:192.168.0.2:192.168.0.1:255.255.255.0:ocotea:eth
0::off console=ttyS0,115200
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 257664k available (1420k kernel code, 460k data, 112k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 4 TX channels, 4 RX channels
zmii0: bridge in SMII mode
eth0: emac0, MAC 00:01:73:01:de:c8
eth0: found Generic MII PHY (0x01)
eth1: emac1, MAC 00:01:73:01:de:c9
eth1: found Generic MII PHY (0x02)
rgmii0: input 0 in RGMII mode
eth2: emac2, MAC 00:01:73:01:de:ca
eth2: found CIS8201 Gigabit Ethernet PHY (0x10)
rgmii0: input 1 in RGMII mode
eth3: emac3, MAC 00:01:73:01:de:cb
eth3: found CIS8201 Gigabit Ethernet PHY (0x18)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link is down
IP-Config: Complete:
device=eth0, addr=192.168.0.54, mask=255.255.255.0, gw=192.168.0.1,
host=ocotea, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.2
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 192.168.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 112k init
INIT: version 2.84 booting
Welcome to Distribution built using LinuxLink by TimeSys (6.1)
mounting... ramfs at /dev
Creating initial udev device nodes:
making extra nodes
udev startup is finished!
Initializing hardware... storage network audio done[ OK ]
raidautorun: failed to open /dev/md0: 6
Configuring kernel parameters: [ OK ]
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Mon Apr 6 08:19:06 UTC 2015 [ OK ]
Setting hostname timesys-bsp: [ OK ]
Your system appears to have shut down uncleanly
Press Y within 1 seconds to force file system integrity check...
Remounting root filesystem in read-write mode: [ OK ]
Checking filesystems
Checking all file systems.
[ OK ]
chown: changing ownership of `/tmp/.ICE-unix': Operation not permitted
Enabling swap space: [ OK ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
Starting portmap: [ OK ]
Starting NFS statd: [ OK ]
Starting xinetd: [ OK ]
Starting crond: [ OK ]
Starting atd: [ OK ]
Starting system message bus: [ OK ]
Starting the Alphion Demo App
Starting alphiondemo
************* Alphion Demo APP Started *********************
************* This is a sample Demo to start and stop apps ********
Done
Distribution built using LinuxLink by TimeSys (6.1)
Kernel 2.6.16.1 for ppc
timesys-bsp login: root
Last login: Mon Apr 6 06:33:48 on ttyS0
-bash-2.05b# lsmod
Module Size Used by
-bash-2.05b# **************************************After L Alphion Wake after a minute .....
-bash: ********************: command not found
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# ps -ax | grep alphion
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
352 ? S 0:00 /home/AlphionApps//alphiondemo
383 ttyS0 R+ 0:00 grep alphion
-bash-2.05b# kill -9 352
-bash-2.05b# ************************************* output of lsmod *************
-bash: *************************************: command not found
-bash-2.05b# ************************************* output of lsmod *************
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# lsmod
Module Size Used by
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# *************Inserting the Modules *************
-bash: *************Inserting: command not found
-bash-2.05b#
-bash-2.05b# insmod i2c-dev.ko
insmod: can't read 'i2c-dev.ko': No such file or directory
-bash-2.05b# cd /lib/modules/2.6.16.1/kernel/drivers/i2c/
-bash-2.05b# insmod i2c-dev.ko
i2c_dev: Unknown symbol i2c_check_addr
i2c_dev: Unknown symbol i2c_get_adapter
i2c_dev: Unknown symbol i2c_control
i2c_dev: Unknown symbol i2c_master_recv
i2c_dev: Unknown symbol i2c_smbus_xfer
i2c_dev: Unknown symbol i2c_register_driver
i2c_dev: Unknown symbol i2c_put_adapter
i2c_dev: Unknown symbol i2c_transfer
i2c_dev: Unknown symbol i2c_del_driver
i2c_dev: Unknown symbol i2c_master_send
insmod: error inserting 'i2c-dev.ko': -1 Unknown symbol in module
-bash-2.05b# insmod i2c-core.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_core 22384 0
-bash-2.05b# insmod i2c-dev.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_dev 10116 0
i2c_core 22384 1 i2c_dev
-bash-2.05b# ls
algos busses chips i2c-core.ko i2c-dev.ko
-bash-2.05b# cd chips/
-bash-2.05b# insmod
insmod insmod.static insmod_ksymoops_clean
-bash-2.05b# insmod eeprom.ko
-bash-2.05b# lsmod
Module Size Used by
eeprom 6736 0
i2c_dev 10116 0
i2c_core 22384 2 eeprom,i2c_dev
-bash-2.05b# ls
ds1337.ko eeprom.ko max6875.ko pcf8574.ko rtc8564.ko
ds1374.ko m41t00.ko pca9539.ko pcf8591.ko x1205.ko
-bash-2.05b# cd ..
-bash-2.05b# ls
algos busses chips i2c-core.ko i2c-dev.ko
-bash-2.05b# cd busses/
-bash-2.05b# ls
i2c-ali1535.ko i2c-i801.ko i2c-pca-isa.ko i2c-sis96x.ko
i2c-ali1563.ko i2c-i810.ko i2c-piix4.ko i2c-stub.ko
i2c-ali15x3.ko i2c-ibm_iic.ko i2c-prosavage.ko i2c-via.ko
i2c-amd756-s4882.ko i2c-mpc.ko i2c-savage4.ko i2c-viapro.ko
i2c-amd756.ko i2c-nforce2.ko i2c-sis5595.ko i2c-voodoo3.ko
i2c-amd8111.ko i2c-parport-light.ko i2c-sis630.ko scx200_acb.ko
-bash-2.05b# insmod 2c-ibm_iic.ko
insmod: can't read '2c-ibm_iic.ko': No such file or directory
-bash-2.05b# insmod i2c-ibm_iic.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_ibm_iic 7432 0
eeprom 6736 0
i2c_dev 10116 0
i2c_core 22384 3 i2c_ibm_iic,eeprom,i2c_dev
[-- Attachment #3: dmesg_log_i2cDrivers.txt --]
[-- Type: text/plain, Size: 5791 bytes --]
-bash-2.05b# dmesg
Linux version 2.6.16.1 (root@linux) (gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)) #3 Thu Aug 3 01:21:21 IST 2006
IBM Ocotea port (MontaVista Software, Inc. <source@mvista.com>)
On node 0 totalpages: 65536
DMA zone: 65536 pages, LIFO batch:15
DMA32 zone: 0 pages, LIFO batch:0
Normal zone: 0 pages, LIFO batch:0
HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.2:/opt/timesys/linux/6.1/ppc440-std/rfs ip=192.168.0.54:192.168.0.2:192.168.0.1:255.255.255.0:ocotea:eth
0::off console=ttyS0,115200
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 257664k available (1420k kernel code, 460k data, 112k init, 0k highmem)
Calibrating delay loop... 798.72 BogoMIPS (lpj=1597440)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 4 TX channels, 4 RX channels
zmii0: bridge in SMII mode
eth0: emac0, MAC 00:01:73:01:de:c8
eth0: found Generic MII PHY (0x01)
eth1: emac1, MAC 00:01:73:01:de:c9
eth1: found Generic MII PHY (0x02)
rgmii0: input 0 in RGMII mode
eth2: emac2, MAC 00:01:73:01:de:ca
eth2: found CIS8201 Gigabit Ethernet PHY (0x10)
rgmii0: input 1 in RGMII mode
eth3: emac3, MAC 00:01:73:01:de:cb
eth3: found CIS8201 Gigabit Ethernet PHY (0x18)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link is down
IP-Config: Complete:
device=eth0, addr=192.168.0.54, mask=255.255.255.0, gw=192.168.0.1,
host=ocotea, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.2
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 192.168.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 112k init
i2c_dev: Unknown symbol i2c_check_addr
i2c_dev: Unknown symbol i2c_get_adapter
i2c_dev: Unknown symbol i2c_control
i2c_dev: Unknown symbol i2c_master_recv
i2c_dev: Unknown symbol i2c_smbus_xfer
i2c_dev: Unknown symbol i2c_register_driver
i2c_dev: Unknown symbol i2c_put_adapter
i2c_dev: Unknown symbol i2c_transfer
i2c_dev: Unknown symbol i2c_del_driver
i2c_dev: Unknown symbol i2c_master_send
i2c /dev entries driver
i2c-core: driver [dev_driver] registered
i2c-core: driver [eeprom] registered
IBM IIC driver v2.1
i2c_adapter i2c-0: adapter [IBM IIC] registered
i2c-dev: adapter [IBM IIC] registered as minor 0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x50
i2c_adapter i2c-0: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0050
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x51
i2c_adapter i2c-0: master_xfer[0] W, addr=0x51, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x52
i2c_adapter i2c-0: master_xfer[0] W, addr=0x52, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x53
i2c_adapter i2c-0: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0053
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x54
i2c_adapter i2c-0: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0054
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x55
i2c_adapter i2c-0: master_xfer[0] W, addr=0x55, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x56
i2c_adapter i2c-0: master_xfer[0] W, addr=0x56, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x57
i2c_adapter i2c-0: master_xfer[0] W, addr=0x57, len=0
ibm-iic0: using standard (100 kHz) mode
i2c_adapter i2c-1: adapter [IBM IIC] registered
i2c-dev: adapter [IBM IIC] registered as minor 1
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x50
i2c_adapter i2c-1: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x51
i2c_adapter i2c-1: master_xfer[0] W, addr=0x51, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x52
i2c_adapter i2c-1: master_xfer[0] W, addr=0x52, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x53
i2c_adapter i2c-1: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x54
i2c_adapter i2c-1: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x55
i2c_adapter i2c-1: master_xfer[0] W, addr=0x55, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x56
i2c_adapter i2c-1: master_xfer[0] W, addr=0x56, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x57
i2c_adapter i2c-1: master_xfer[0] W, addr=0x57, len=0
ibm-iic1: using standard (100 kHz) mode
^ permalink raw reply [flat|nested] 4+ messages in thread
* I2C adapter device file problem
2006-09-16 8:29 ` I2C adapter device file problem Sachin Rane
@ 2006-09-18 5:19 ` Sachin Rane
0 siblings, 0 replies; 4+ messages in thread
From: Sachin Rane @ 2006-09-18 5:19 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]
Hi,
I want to access 'EEPROM' I2C device present on AMCC PPC440GX Evaluation bard.
I have loaded following drivers:
1. i2c-core.ko
2. i2c-dev.ko
3. eeprom.ko
4. i2c-ibm_iic.ko
The entry in the 'sysfs' got created for drivers and devices.
----------------------------------------------------------------------------------------
-bash-2.05b# cd /sys/bus/i2c/devices
-bash-2.05b# ls -la *
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0050 -> ../../../devices/platform/i2c-0/0-0050
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0053 -> ../../../devices/platform/i2c-0/0-0053
lrwxrwxrwx 1 root root 0 Apr 6 06:42 0-0054 -> ../../../devices/platform/i2c-0/0-0054
-bash-2.05b# cat ../../../devices/platform/i2c-0/0-0050/name
eeprom
----------------------------------------------------------------------------------------
As per the documentation (/usr/src/linux/Documentation/i2c/dev-interface),
I2C adapter files gets created under "/dev/i2c-X"are with with major device number 89.
But in my case, the device file is not getting created under '/dev/'.
Am I missing anything while loading the driver?
I have attached the board boot up and 'demsg' log file.
Thanks and Regards,
Sachin Rane
[-- Attachment #1.2: Type: text/html, Size: 2692 bytes --]
[-- Attachment #2: bootup_log_i2cDrivers.txt --]
[-- Type: text/plain, Size: 8536 bytes --]
U-Boot 1.1.4 (Aug 7 2006 - 20:36:40)
CPU: AMCC PowerPC 440GX Rev. F at 533.333 MHz (PLB=133, OPB=66, EBC=66 MHz)
I2C boot EEPROM enabled
Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache
Board: Ocotea - AMCC PPC440GX Evaluation Board
I2C: ready
DRAM: 256 MB
FLASH: 5 MB
PCI: Bus Dev VenId DevId Class Int
In: serial
Out: serial
Err: serial
Net: ppc_4xx_eth0, ppc_4xx_eth1, ppc_4xx_eth2, ppc_4xx_eth3
Sachin " ****************Read ReadMeInstructions: Uboot Environment Variable Configuration *************"
Hit any key to stop autoboot: 0
## Booting image at ffc00000 ...
Image Name: Linux-2.6.16.1
Created: 2006-08-02 19:51:26 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 931818 Bytes = 910 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Linux version 2.6.16.1 (root@linux) (gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)) #3 Thu Aug 3 01:21:21 IST 2006
IBM Ocotea port (MontaVista Software, Inc. <source@mvista.com>)
Built 1 zonelists
Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.2:/opt/timesys/linux/6.1/ppc440-std/rfs ip=192.168.0.54:192.168.0.2:192.168.0.1:255.255.255.0:ocotea:eth
0::off console=ttyS0,115200
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 257664k available (1420k kernel code, 460k data, 112k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 4 TX channels, 4 RX channels
zmii0: bridge in SMII mode
eth0: emac0, MAC 00:01:73:01:de:c8
eth0: found Generic MII PHY (0x01)
eth1: emac1, MAC 00:01:73:01:de:c9
eth1: found Generic MII PHY (0x02)
rgmii0: input 0 in RGMII mode
eth2: emac2, MAC 00:01:73:01:de:ca
eth2: found CIS8201 Gigabit Ethernet PHY (0x10)
rgmii0: input 1 in RGMII mode
eth3: emac3, MAC 00:01:73:01:de:cb
eth3: found CIS8201 Gigabit Ethernet PHY (0x18)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link is down
IP-Config: Complete:
device=eth0, addr=192.168.0.54, mask=255.255.255.0, gw=192.168.0.1,
host=ocotea, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.2
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 192.168.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 112k init
INIT: version 2.84 booting
Welcome to Distribution built using LinuxLink by TimeSys (6.1)
mounting... ramfs at /dev
Creating initial udev device nodes:
making extra nodes
udev startup is finished!
Initializing hardware... storage network audio done[ OK ]
raidautorun: failed to open /dev/md0: 6
Configuring kernel parameters: [ OK ]
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Setting clock : Mon Apr 6 08:19:06 UTC 2015 [ OK ]
Setting hostname timesys-bsp: [ OK ]
Your system appears to have shut down uncleanly
Press Y within 1 seconds to force file system integrity check...
Remounting root filesystem in read-write mode: [ OK ]
Checking filesystems
Checking all file systems.
[ OK ]
chown: changing ownership of `/tmp/.ICE-unix': Operation not permitted
Enabling swap space: [ OK ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
Starting portmap: [ OK ]
Starting NFS statd: [ OK ]
Starting xinetd: [ OK ]
Starting crond: [ OK ]
Starting atd: [ OK ]
Starting system message bus: [ OK ]
Starting the Alphion Demo App
Starting alphiondemo
************* Alphion Demo APP Started *********************
************* This is a sample Demo to start and stop apps ********
Done
Distribution built using LinuxLink by TimeSys (6.1)
Kernel 2.6.16.1 for ppc
timesys-bsp login: root
Last login: Mon Apr 6 06:33:48 on ttyS0
-bash-2.05b# lsmod
Module Size Used by
-bash-2.05b# **************************************After L Alphion Wake after a minute .....
-bash: ********************: command not found
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# ps -ax | grep alphion
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
352 ? S 0:00 /home/AlphionApps//alphiondemo
383 ttyS0 R+ 0:00 grep alphion
-bash-2.05b# kill -9 352
-bash-2.05b# ************************************* output of lsmod *************
-bash: *************************************: command not found
-bash-2.05b# ************************************* output of lsmod *************
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# lsmod
Module Size Used by
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b#
-bash-2.05b# *************Inserting the Modules *************
-bash: *************Inserting: command not found
-bash-2.05b#
-bash-2.05b# insmod i2c-dev.ko
insmod: can't read 'i2c-dev.ko': No such file or directory
-bash-2.05b# cd /lib/modules/2.6.16.1/kernel/drivers/i2c/
-bash-2.05b# insmod i2c-dev.ko
i2c_dev: Unknown symbol i2c_check_addr
i2c_dev: Unknown symbol i2c_get_adapter
i2c_dev: Unknown symbol i2c_control
i2c_dev: Unknown symbol i2c_master_recv
i2c_dev: Unknown symbol i2c_smbus_xfer
i2c_dev: Unknown symbol i2c_register_driver
i2c_dev: Unknown symbol i2c_put_adapter
i2c_dev: Unknown symbol i2c_transfer
i2c_dev: Unknown symbol i2c_del_driver
i2c_dev: Unknown symbol i2c_master_send
insmod: error inserting 'i2c-dev.ko': -1 Unknown symbol in module
-bash-2.05b# insmod i2c-core.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_core 22384 0
-bash-2.05b# insmod i2c-dev.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_dev 10116 0
i2c_core 22384 1 i2c_dev
-bash-2.05b# ls
algos busses chips i2c-core.ko i2c-dev.ko
-bash-2.05b# cd chips/
-bash-2.05b# insmod
insmod insmod.static insmod_ksymoops_clean
-bash-2.05b# insmod eeprom.ko
-bash-2.05b# lsmod
Module Size Used by
eeprom 6736 0
i2c_dev 10116 0
i2c_core 22384 2 eeprom,i2c_dev
-bash-2.05b# ls
ds1337.ko eeprom.ko max6875.ko pcf8574.ko rtc8564.ko
ds1374.ko m41t00.ko pca9539.ko pcf8591.ko x1205.ko
-bash-2.05b# cd ..
-bash-2.05b# ls
algos busses chips i2c-core.ko i2c-dev.ko
-bash-2.05b# cd busses/
-bash-2.05b# ls
i2c-ali1535.ko i2c-i801.ko i2c-pca-isa.ko i2c-sis96x.ko
i2c-ali1563.ko i2c-i810.ko i2c-piix4.ko i2c-stub.ko
i2c-ali15x3.ko i2c-ibm_iic.ko i2c-prosavage.ko i2c-via.ko
i2c-amd756-s4882.ko i2c-mpc.ko i2c-savage4.ko i2c-viapro.ko
i2c-amd756.ko i2c-nforce2.ko i2c-sis5595.ko i2c-voodoo3.ko
i2c-amd8111.ko i2c-parport-light.ko i2c-sis630.ko scx200_acb.ko
-bash-2.05b# insmod 2c-ibm_iic.ko
insmod: can't read '2c-ibm_iic.ko': No such file or directory
-bash-2.05b# insmod i2c-ibm_iic.ko
-bash-2.05b# lsmod
Module Size Used by
i2c_ibm_iic 7432 0
eeprom 6736 0
i2c_dev 10116 0
i2c_core 22384 3 i2c_ibm_iic,eeprom,i2c_dev
[-- Attachment #3: dmesg_log_i2cDrivers.txt --]
[-- Type: text/plain, Size: 5791 bytes --]
-bash-2.05b# dmesg
Linux version 2.6.16.1 (root@linux) (gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)) #3 Thu Aug 3 01:21:21 IST 2006
IBM Ocotea port (MontaVista Software, Inc. <source@mvista.com>)
On node 0 totalpages: 65536
DMA zone: 65536 pages, LIFO batch:15
DMA32 zone: 0 pages, LIFO batch:0
Normal zone: 0 pages, LIFO batch:0
HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.2:/opt/timesys/linux/6.1/ppc440-std/rfs ip=192.168.0.54:192.168.0.2:192.168.0.1:255.255.255.0:ocotea:eth
0::off console=ttyS0,115200
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 257664k available (1420k kernel code, 460k data, 112k init, 0k highmem)
Calibrating delay loop... 798.72 BogoMIPS (lpj=1597440)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 4 TX channels, 4 RX channels
zmii0: bridge in SMII mode
eth0: emac0, MAC 00:01:73:01:de:c8
eth0: found Generic MII PHY (0x01)
eth1: emac1, MAC 00:01:73:01:de:c9
eth1: found Generic MII PHY (0x02)
rgmii0: input 0 in RGMII mode
eth2: emac2, MAC 00:01:73:01:de:ca
eth2: found CIS8201 Gigabit Ethernet PHY (0x10)
rgmii0: input 1 in RGMII mode
eth3: emac3, MAC 00:01:73:01:de:cb
eth3: found CIS8201 Gigabit Ethernet PHY (0x18)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link is down
IP-Config: Complete:
device=eth0, addr=192.168.0.54, mask=255.255.255.0, gw=192.168.0.1,
host=ocotea, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.2
eth0: link is up, 100 FDX, pause enabled
Looking up port of RPC 100005/1 on 192.168.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 112k init
i2c_dev: Unknown symbol i2c_check_addr
i2c_dev: Unknown symbol i2c_get_adapter
i2c_dev: Unknown symbol i2c_control
i2c_dev: Unknown symbol i2c_master_recv
i2c_dev: Unknown symbol i2c_smbus_xfer
i2c_dev: Unknown symbol i2c_register_driver
i2c_dev: Unknown symbol i2c_put_adapter
i2c_dev: Unknown symbol i2c_transfer
i2c_dev: Unknown symbol i2c_del_driver
i2c_dev: Unknown symbol i2c_master_send
i2c /dev entries driver
i2c-core: driver [dev_driver] registered
i2c-core: driver [eeprom] registered
IBM IIC driver v2.1
i2c_adapter i2c-0: adapter [IBM IIC] registered
i2c-dev: adapter [IBM IIC] registered as minor 0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x50
i2c_adapter i2c-0: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0050
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x51
i2c_adapter i2c-0: master_xfer[0] W, addr=0x51, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x52
i2c_adapter i2c-0: master_xfer[0] W, addr=0x52, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x53
i2c_adapter i2c-0: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0053
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x54
i2c_adapter i2c-0: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-0: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-0: client [eeprom] registered with bus id 0-0054
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x55
i2c_adapter i2c-0: master_xfer[0] W, addr=0x55, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x56
i2c_adapter i2c-0: master_xfer[0] W, addr=0x56, len=0
i2c_adapter i2c-0: found normal entry for adapter 0, addr 0x57
i2c_adapter i2c-0: master_xfer[0] W, addr=0x57, len=0
ibm-iic0: using standard (100 kHz) mode
i2c_adapter i2c-1: adapter [IBM IIC] registered
i2c-dev: adapter [IBM IIC] registered as minor 1
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x50
i2c_adapter i2c-1: master_xfer[0] W, addr=0x50, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x51
i2c_adapter i2c-1: master_xfer[0] W, addr=0x51, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x52
i2c_adapter i2c-1: master_xfer[0] W, addr=0x52, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x53
i2c_adapter i2c-1: master_xfer[0] W, addr=0x53, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x54
i2c_adapter i2c-1: master_xfer[0] W, addr=0x54, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x55
i2c_adapter i2c-1: master_xfer[0] W, addr=0x55, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x56
i2c_adapter i2c-1: master_xfer[0] W, addr=0x56, len=0
i2c_adapter i2c-1: found normal entry for adapter 1, addr 0x57
i2c_adapter i2c-1: master_xfer[0] W, addr=0x57, len=0
ibm-iic1: using standard (100 kHz) mode
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Board Bootup and message log
2006-09-16 8:19 ` Board Bootup and message log Sachin Rane
[not found] ` <8584FDC94AFF7640B17B8A89B23B19B34F6569@sbsserver.AlphionCorp.local>
@ 2006-09-18 7:18 ` Matthias Fuchs
1 sibling, 0 replies; 4+ messages in thread
From: Matthias Fuchs @ 2006-09-18 7:18 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: Sachin Rane
On Saturday 16 September 2006 10:19, Sachin Rane wrote:
> Hi,
>
> I want to access 'EEPROM' I2C device present on AMCC PPC440GX Evaluation
bard.
> I have loaded following drivers:
> 1. i2c-core.ko
> 2. i2c-dev.ko
> 3. eeprom.ko
> 4. i2c-ibm_iic.ko
> The entry in the 'sysfs' got created for drivers and devices.
> As per the documentation (/usr/src/linux/Documentation/i2c/dev-interface),
> I2C adapter files gets created under "/dev/i2c-X"are with with major device
number 89.
>
> But in my case, the device file is not getting created under '/dev/'.
If you do not have some magic daemons running on your board that will do the
work you have to create the /dev entries by hand.
Please do not post the same message multiple times. Also attachments are often
not very welcome on mailing lists.
Matthias
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-18 7:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <8584FDC94AFF7640B17B8A89B23B19B34F6564@sbsserver.AlphionCorp.local>
2006-09-16 8:19 ` Board Bootup and message log Sachin Rane
[not found] ` <8584FDC94AFF7640B17B8A89B23B19B34F6569@sbsserver.AlphionCorp.local>
2006-09-16 8:29 ` I2C adapter device file problem Sachin Rane
2006-09-18 5:19 ` Sachin Rane
2006-09-18 7:18 ` Board Bootup and message log Matthias Fuchs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).