请教双网络mount的问题?

中文QNX 讨论: 欢迎大家灌水,讨论有关QNX 问题。
回复
vansharp
Senior Member
帖子: 49
注册时间: 周五 1月 16, 2009 10:40 am

请教双网络mount的问题?

帖子 vansharp » 周四 4月 29, 2010 11:05 am

PC104开发板上有Intel 82551ER的双网卡(qnx 6.4.0下)

#pci -v
Class = Network (Ethernet)
Vendor ID = 8086h, Intel Corporation
Device ID = 1209h, 8255xER/82551IT Fast Ethernet Controller
PCI index = 0h
Class Codes = 020000h
Revision ID = 10h
Bus number = 0
Device number = 16
Function num = 0
Status Reg = 290h
Command Reg = 7h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 8h un-cacheable
PCI Mem Address = e2040000h 32bit length 4096 enabled
PCI IO Address = e000h length 64 enabled
PCI Mem Address = e2020000h 32bit length 131072 enabled
PCI Expansion ROM = e0000000h length 65536 disabled
Max Lat = 56ns
Min Gnt = 8ns
PCI Int Pin = INT A
Interrupt line = 10
CPU Interrupt = ah
Capabilities Pointer = dch
Capability ID = 1h - Power Management
Capabilities = 7e22h - 4b004000h

Class = Network (Ethernet)
Vendor ID = 8086h, Intel Corporation
Device ID = 1209h, 8255xER/82551IT Fast Ethernet Controller
PCI index = 1h
Class Codes = 020000h
Revision ID = 10h
Bus number = 0
Device number = 17
Function num = 0
Status Reg = 290h
Command Reg = 7h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 8h un-cacheable
PCI Mem Address = e2041000h 32bit length 4096 enabled
PCI IO Address = e400h length 64 enabled
PCI Mem Address = e2000000h 32bit length 131072 enabled
PCI Expansion ROM = e1000000h length 65536 disabled
Max Lat = 56ns
Min Gnt = 8ns
PCI Int Pin = INT A
Interrupt line = 12
CPU Interrupt = ch
Capabilities Pointer = dch
Capability ID = 1h - Power Management
Capabilities = 7e22h - 4b004000h

在buildfile里是这么处理的
display_msg Starting Ethernet A&B driver ...
io-pkt-v4-hc -d speedo verbose -p tcpip &
waitfor /dev/socket 20
ifconfig en0 192.168.1.127
ifconfig en1 192.168.2.127

这种情况下把Device number=16的映射成了en0, Device number=17的映射成了en1;
如果我想把Device number=17的映射成了en0, Device number=16的映射成了en1该如何处理呢? :?:

xtang
Moderator
帖子: 1816
注册时间: 周五 9月 12, 2003 4:14 am
来自: China

帖子 xtang » 周四 4月 29, 2010 10:13 pm

这两张卡,PCI Index是不一样的。如果启动用的是:

io-pkt-v4-hc -d speedo verbose -p tcpip &

那么speedo驱动自己会扫描PCI,先找到的 Index=0的做为 en0, 后找到的 Index=1的做为en1。

如果你要倒过来,或者只启动其中一张卡,那就要在驱动后面用参数指定具体你要用的是哪张卡,比如说:

iio-pkt-v4-hc -d speedo verbose,pci=1 -d speedo verbose,pci=0 -p tcpip &

vansharp
Senior Member
帖子: 49
注册时间: 周五 1月 16, 2009 10:40 am

帖子 vansharp » 周五 4月 30, 2010 3:08 pm

谢谢xtang
我在buildfile里是这么写的:
io-pkt-v4-hc -p tcpip &
mount -T io-pkt -o pci=1,vid=0x8086 devnp-speedo.so
mount -T io-pkt -o pci=0,vid=0x8086 devnp-speedo.so
也正常起来了。
但是为什么6.4下网络设备不会被mount到/dev/io-pkt或者/dev/io-net下呢。
记得6.2和6.3会把网络设备mount到/dev/io-net下呀?

daniel_ang
Senior Member
帖子: 67
注册时间: 周三 10月 18, 2006 3:16 pm

帖子 daniel_ang » 周二 5月 18, 2010 12:54 pm

QNX6.4的网络已经换成io-pkt了,io-net已经不存在了

回复