LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2070|回复: 4

IXP425+snapgearbe(uclinux) 插上PCI转USB卡 ,能识别PCI,插上U盘没有任何反映!

[复制链接]
发表于 2009-6-2 10:09:54 | 显示全部楼层 |阅读模式
IXP425+snapgearbe(uclinux)  插上PCI转USB卡 ,能识别PCI,插上U盘没有任何反映!
系统启动信息如下:
# dmesg
Linux version 2.4.27-uc1 (root@hqinserver) (gcc version 3.3.2) #350 Mon Dec 19 2
0:08:44 EST 2005
CPU: XScale-IXP4xx/IXC11xx revision 1
Machine: Intel IXDP425 Development Platform
alloc_bootmem_low
memtable_init
Security risk: creating user accessible mapping for 0xc8000000 at 0xff000000
Security risk: creating user accessible mapping for 0xc0000000 at 0xff00c000
Security risk: creating user accessible mapping for 0xc4000000 at 0xff00d000
Security risk: creating user accessible mapping for 0xcc000000 at 0xfe000000
Security risk: creating user accessible mapping for 0x50000000 at 0xe0000000
Security risk: creating user accessible mapping for 0x48000000 at 0xd8000000
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Relocating machine vectors to 0xffff0000
Calibrating delay loop... 532.48 BogoMIPS
Memory: 32MB = 32MB total
Memory: 21800KB available (1852K code, 469K data, 64K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
PCI Autoconfig: Found Bus 0, Device 3, Function 0
PCI Autoconfig: BAR 0, Mem, size=0x8001000, address=0x43fff000
PCI Autoconfig: BAR 1, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: BAR 2, Mem, size=0x80000000, address=0x0
PCI Autoconfig: BAR 3, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: BAR 4, Mem, size=0x80000000, address=0x0
PCI Autoconfig: BAR 5, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: Found Bus 0, Device 3, Function 1
PCI Autoconfig: BAR 0, Mem, size=0x8001000, address=0x77fff000
PCI Autoconfig: BAR 1, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: BAR 2, Mem, size=0x80000000, address=0x0
PCI Autoconfig: BAR 3, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: BAR 4, Mem, size=0x80000000, address=0x0
PCI Autoconfig: BAR 5, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: Found Bus 0, Device 3, Function 2
PCI Autoconfig: BAR 0, Mem, size=0x8000100, address=0x77ffff00
PCI Autoconfig: BAR 1, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: BAR 2, Mem, size=0x80000000, address=0x0
PCI Autoconfig: BAR 3, Mem, size=0x80000000, address=0x80000000
PCI Autoconfig: BAR 4, Mem, size=0x80000000, address=0x0
PCI Autoconfig: BAR 5, Mem, size=0x80000000, address=0x80000000
PCI: bus0: Fast back to back transfers disabled
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: devfs_debug: 0x0
devfs: boot_options: 0x1
JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xff000003 (irq = 15) is a XScale UART
ttyS01 at 0xff001003 (irq = 13) is a XScale UART
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
rtl8139.c:v1.16a 11/13/2001 Donald Becker, becker@scyld.com.
http://www.scyld.com/network/rtl8139.html
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
cfi_cmdset_0001: Erase suspend on write enabled
0: offset=0x0,size=0x20000,blocks=128
Using buffer write method
Creating 6 MTD partitions on "IXP425 Flash":
0x00000000-0x00040000 : "RedBoot"
0x00040000-0x002c0000 : "ramdisk"
0x002c0000-0x003c0000 : "kernel"
0x003c0000-0x00fc0000 : "unallocated"
0x00fc0000-0x00fc1000 : "RedBoot config"
0x00fe0000-0x01000000 : "FIS directory"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/usb-uhci.c: $Revision: 1.275 $ time 20:08:53 Dec 19 2005
host/usb-uhci.c: High bandwidth mode enabled
host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
ov511.c: Error: /proc/video/ does not exist
usb.c: registered new driver ov511
ov511.c: v1.63 for Linux 2.4 : ov511 USB Camera Driver
usb.c: registered new driver serial
usbserial.c: USB Serial Driver core v1.4
usbserial.c: USB Serial support registered for PL-2303
pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.10
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Linux video capture interface: v1.00
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.97 (double precision)
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 8192K
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 64K
ixp425_eth: Initializing IXP425 NPE Ethernet driver software v. 1.2
ixp425_eth: CPU clock speed (approx) = 532 MHz
ixp425_eth: ixp0 is using NPEB and the PHY at address 0
ixp425_eth: ixp1 is using NPEC and the PHY at address 1
ixp425_eth: Use default MAC address 00:02:b3:01:01:01 for port 0
ixp425_eth: Use default MAC address 00:02:b3:02:02:02 for port 1
ixp425_eth: ixEthMiiLinkStatus failed on PHY1.
        Can't determine
the auto negotiated parameters. Using default values.
ixp425_eth: ixEthMiiLinkStatus failed on PHY0.
        Can't determine
the auto negotiated parameters. Using default values.
#
 楼主| 发表于 2009-6-2 10:12:07 | 显示全部楼层
make menuconfig 配置如下:
Device Drivers  --->
  SCSI device support  --->

(尽管在选择USB Mass Storage时会自动启用SCSI支持,也必需启用disk支持)
---   SCSI support type (disk, tape, CD-ROM)
<*>   SCSI disk support

(然后返回上一层,进入USB support)
USB support  --->

(这是根集线器,对于USB支持而言是必须的。如果你想把它编译成模块,那么它就叫做usbcore)
<*> Support for Host-side USB

(启用这一选项可以让你在/porc/bus/usb中查看USB设备,推荐启用)
  •    USB device filesystem

    (至少要选择一个HCD。如果你不能确定,就都选上好了)
    --- USB Host Controller Drivers
    <*> EHCI HCD (USB 2.0) support
    < > OHCI HCD support
    <*> UHCI HCD (most Intel and VIA) support

    (向下移动一下,就可以看到CDC和mass storage的配置选项了)
    < > USB Modem (CDC ACM) support
    <*> USB Printer support
    <*> USB Mass Storage support

    --- USB Input Devices
    <*> USB Human Interface Device (full HID) support
  •    HID input layer support

    (如果你有串口-USB转接器,譬如Prolific 2303,你需要开启这一选项)
    USB Serial Converter support  --->
        <*> USB Serial Converter support
        <*> USB Prolific 2303 Single Port Serial Driver (NEW)
    在网上查了很多资料,配置应该是这些了
  • 回复 支持 反对

    使用道具 举报

     楼主| 发表于 2009-6-2 10:24:41 | 显示全部楼层
    # uname -r
    2.4.27-uc1


    # lspci
    00:00.0 Class 0b40: 8086:8500 (rev 01)
    00:03.0 Class ffff: 1033:8035 (rev ff)
    00:03.1 Class ffff: 1033:8035 (rev ff)
    00:03.2 Class ffff: 1033:80e0 (rev ff)


    # cat /proc/pci
    PCI devices found:
      Bus  0, device   0, function  0:
        Co-processor: PCI device 8086:8500 (Intel Corp.) (rev 1).
          Prefetchable 32 bit memory at 0x0 [0xffffff].
          Prefetchable 32 bit memory at 0x1000000 [0x1ffffff].
          Prefetchable 32 bit memory at 0x2000000 [0x2ffffff].
          Prefetchable 32 bit memory at 0x3000000 [0x3ffffff].
          Prefetchable 32 bit memory at 0xff000000 [0xffffffff].
          I/O at 0xffffff00 [0xffffffff].
      Bus  0, device   3, function  0:
        Class ffff: PCI device 1033:8035 (NEC Corporation) (rev 255).
          IRQ 26.
          Master Capable.  Latency=255.  Min Gnt=255.Max Lat=255.
          Non-prefetchable 32 bit memory at 0xc3fff000 [0xc3ffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
      Bus  0, device   3, function  1:
        Class ffff: PCI device 1033:8035 (NEC Corporation) (rev 255).
          IRQ 26.
          Master Capable.  Latency=255.  Min Gnt=255.Max Lat=255.
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
      Bus  0, device   3, function  2:
        Class ffff: PCI device 1033:80e0 (NEC Corporation) (rev 255).
          IRQ 26.
          Master Capable.  Latency=255.  Min Gnt=255.Max Lat=255.
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
          Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
    #


    # cat /proc/scsi/scsi
    Attached devices: none
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2009-6-3 11:07:22 | 显示全部楼层
    自己顶!!!
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2009-6-3 11:09:26 | 显示全部楼层
    host/usb-uhci.c: $Revision: 1.275 $ time 20:08:53 Dec 19 2005
    host/usb-uhci.c: High bandwidth mode enabled
    host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
    应该UHCI模块注册上了,我应该在启动后,怎么看驱动是否加载呢?
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表