MPC8309 SOM PCI
User Manual
Freescale Semiconductor
Linux BSP
Description
The MPC8309 contains 1 PCI controller. The MPC8309som platform has one PCI slot and one mini-PCI slot.
Modules Loading
The PCI controller is enabled and compiled as build-in kernel. But the driver for specific PCI card can be enabled as built-in or as module.
Kernel Configuration
In LTIB, enable “Configure the kernel”.
When the Linux Kernel Configuration window pops up, by default the PCI is already enabled as the following:
Bus options ---> [*] PCI support [ ] PCI Express support [ ] Message Signaled Interrupts (MSI and MSI-X) |
As an example for Intel PRO/1000 GT PCI card, to enable the driver as a module, set up the following:
Device Drivers ---> [*] Network device support ---> [*] Ethernet (1000 Mbit) ---> <M> Intel® PRO/1000 Gigabit Ethernet support |
Exit, save and build.
Test Procedure
PCI card, Intel PRO/1000 GT Desktop Adapter is used.
· Insert the PCI card and power up the board.
· In u-boot, list the device on the PCI bus.
=> pci
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1957 0xc011 Processor 0x20
00.11.00 0x8086 0x107c Network controller 0x00
=>
· Boot up the kernel.
· To list the device on PCI bus.
[root@mpc8309som /root]# lspci
00:00.0 Power PC: Freescale Semiconductor Inc Unknown device c011 (rev 10)
00:11.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
[root@mpc8309som /root]#
· Install the Intel PRO/1000 driver module.
· Setup eth3.
[root@mpc8309som /root]# insmod e1000.ko
Intel(R) PRO/1000 Network Driver - version 7.3.21-k5-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e1000: 0000:00:11.0: e1000_probe: (PCI:66MHz:32-bit) 00:1b:21:16:73:a3
e1000: eth3: e1000_probe: Intel(R) PRO/1000 Network Connection
[root@mpc8309som /root]#
[root@mpc8309som /root]# ifconfig eth3 192.168.4.100
[root@mpc8309som /root]#
[root@mpc8309som /root]# ifconfig eth3
eth3 Link encap:Ethernet HWaddr 00:1B:21:16:73:A3
inet addr:192.168.4.100 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
· Connect the PCI card to an Ethernet port of a PC and perform pinging.
[root@mpc8309som /root]# e1000: eth3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[root@mpc8306som /root]#
[root@mpc8309som /root]# ping 192.168.4.1
PING 192.168.4.1 (192.168.4.1): 56 data bytes
64 bytes from 192.168.4.1: seq=0 ttl=128 time=0.725 ms
64 bytes from 192.168.4.1: seq=1 ttl=128 time=0.374 ms
64 bytes from 192.168.4.1: seq=2 ttl=128 time=0.480 ms
64 bytes from 192.168.4.1: seq=3 ttl=128 time=0.381 ms
64 bytes from 192.168.4.1: seq=4 ttl=128 time=0.445 ms
--- 192.168.4.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.374/0.481/0.725 ms
[root@mpc8309som /root]#
· Remove the Ethernet cable of the PCI card.
· Remove the driver module.
[root@mpc8309som /root]# e1000: eth3 NIC Link is Down
[root@mpc8309som /root]# rmmod e1000
[root@mpc8309som /root]#
Known Bugs, Limitations, or Technical Issues
- The PCI has been tested with Intel Pro 1000 MT/GT PCI card and Ralink (RT2561ST chipset) PCI Wireless LAN card.
There is a restart problem with the Intel Pro 1000 MT/GT PCI card.
After getting e1000 up and running, if the Ethernet is brought down (ifconfig eth3 down) or the the modules is removed
and then brought up again or the module is insmod again, it will fail to work.
There is no problem with the Ralink (RT2561ST chipset) PCI Wireless LAN card.
Supporting Documentation
· N/A