Hi 

I am using Linux Kernel 2.6.10 on an embedded PC104-Board with a Pentium
MMX. I need to connect a usb-device over a usb-hub to the PC104-Board.
Should look like this:
    PC104<---->USB-Hub<---->USB-Device

I loaded all the drivers/modules I need, the pl2303 for the Prolific
Usb-Hub, and the evolution_rcm for the usb-device. And of course before the
usbcore, usbserial, ohci_hcd.
In the "dmesg" (see below) it looks like it load and connect to usb-devices,
but when I do "lsmod" the modules are not connected to something(See below).
Now when I try to start my programm written in C, completely working under a
2.4.29 kernel, it says that it is not able to open "/dev/usb/ttyUSB0". 

The code of the C-programm:
      filed = open("/dev/usb/ttyUSB0", O_RDWR | O_NOCTTY | O_NDELAY);

The device exist and look like this:
   crw-rw----    1   root   root   188,   0    DATE ttyUSB0

When I connect a usbstorage-stick in the usb-hub, i can connect and look on
the usbstorage-stick. But I can“t work with the evolution_rcm...

Here is the "lsmod" output:
---------------------------
Module                  Size  Used by    Not tainted
evolution_rcm          16812  0 
pl2303                 16132  0 
ftdi_sio               28164  0 
usbserial              23912  3 evolution_rcm,pl2303,ftdi_sio
sd_mod                 11792  0 
usb_storage            26624  0 
scsi_mod               96896  2 sd_mod,usb_storage
ohci_hcd               26760  0 
usbcore               104056  7
evolution_rcm,pl2303,ftdi_sio,usbserial,usb_storage,ohci_hcd
eepro100               24460  0 
mii                     4096  1 eepro100


Here is the "dmesg" output:
---------------------------
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
PCI: Found IRQ 9 for device 0000:00:0f.0
ohci_hcd 0000:00:0f.0: ALi Corporation USB 1.1 Controller
ohci_hcd 0000:00:0f.0: USB HC TakeOver from BIOS/SMM
ohci_hcd 0000:00:0f.0: irq 9, pci mem 0xd0000
ohci_hcd 0000:00:0f.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:0f.0: resetting from state 'reset', control = 0x0
ohci_hcd 0000:00:0f.0: OHCI controller state
ohci_hcd 0000:00:0f.0: OHCI 1.0, with legacy support registers
ohci_hcd 0000:00:0f.0: control 0x083 HCFS=operational CBSR=3
ohci_hcd 0000:00:0f.0: cmdstatus 0x00000 SOC=0
ohci_hcd 0000:00:0f.0: intrstatus 0x00000044 RHSC SF
ohci_hcd 0000:00:0f.0: intrenable 0x8000000a MIE RD WDH
ohci_hcd 0000:00:0f.0: hcca frame #0003
ohci_hcd 0000:00:0f.0: roothub.a 01000202 POTPGT=1 NPS NDP=2
ohci_hcd 0000:00:0f.0: roothub.b 00000000 PPCM=0000 DR=0000
ohci_hcd 0000:00:0f.0: roothub.status 00008000 DRWE
ohci_hcd 0000:00:0f.0: roothub.portstatus [0] 0x00010101 CSC PPS CCS
ohci_hcd 0000:00:0f.0: roothub.portstatus [1] 0x00000100 PPS
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: default language 0x0409
usb usb1: Product: ALi Corporation USB 1.1 Controller
usb usb1: Manufacturer: Linux 2.6.10-org ohci_hcd
usb usb1: SerialNumber: 0000:00:0f.0
usb usb1: hotplug
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: hotplug
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: power on to power good time: 2ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: no over-current condition exists
ohci_hcd 0000:00:0f.0: created debug files
hub 1-0:1.0: state 5 ports 2 chg ffff evt ffff
ohci_hcd 0000:00:0f.0: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS
CCS
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
ohci_hcd 0000:00:0f.0: GetStatus roothub.portstatus [0] = 0x00100103 PRSC
PPS PES CCS
usb 1-1: new full speed USB device using ohci_hcd and address 2
SCSI subsystem initialized
Initializing USB Mass Storage driver...
ohci_hcd 0000:00:0f.0: GetStatus roothub.portstatus [0] = 0x00100103 PRSC
PPS PES CCS
usb 1-1: ep0 maxpacket = 8
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: default language 0x0409
usb 1-1: Product: Generic USB Hub
usb 1-1: Manufacturer: ALCOR
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
hub 1-1:1.0: usb_probe_interface
hub 1-1:1.0: usb_probe_interface - got id
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
hub 1-1:1.0: standalone hub
hub 1-1:1.0: ganged power switching
hub 1-1:1.0: global over-current protection
hub 1-1:1.0: power on to power good time: 44ms
hub 1-1:1.0: local power source is good
hub 1-1:1.0: no over-current condition exists
hub 1-1:1.0: enabling power on all ports
hub 1-0:1.0: port 2, status 0100, change 0000, 12 Mb/s
hub 1-0:1.0: state 5 ports 2 chg fffc evt 0002
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
hub 1-1:1.0: state 5 ports 4 chg ffff evt ffff
hub 1-1:1.0: port 1, status 0100, change 0000, 12 Mb/s
hub 1-1:1.0: port 2, status 0100, change 0000, 12 Mb/s
hub 1-1:1.0: port 3, status 0101, change 0001, 12 Mb/s
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
hub 1-1:1.0: debounce: port 3: total 100ms stable 100ms status 0x101
usb 1-1.3: new full speed USB device using ohci_hcd and address 3
usb 1-1.3: ep0 maxpacket = 8
usb 1-1.3: skipped 1 descriptor after interface
usb 1-1.3: new device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1.3: hotplug
usb 1-1.3: adding 1-1.3:1.0 (config #1, interface 0)
usb 1-1.3:1.0: hotplug
hub 1-1:1.0: port 4, status 0101, change 0001, 12 Mb/s
hub 1-1:1.0: debounce: port 4: total 100ms stable 100ms status 0x101
usb 1-1.4: new full speed USB device using ohci_hcd and address 4
usb 1-1.4: ep0 maxpacket = 8
usb 1-1.4: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.4: default language 0x0409
usb 1-1.4: Product: ER1 Control Module v1.0
usb 1-1.4: Manufacturer: Evolution Robot
usb 1-1.4: SerialNumber: ER1UNLVF
usb 1-1.4: hotplug
usb 1-1.4: adding 1-1.4:1.0 (config #1, interface 0)
usb 1-1.4:1.0: hotplug
hub 1-1:1.0: state 5 ports 4 chg fff0 evt 0000
usbserial_generic 1-1.3:1.0: usb_probe_interface
usbserial_generic 1-1.3:1.0: usb_probe_interface - got id
usbserial_generic 1-1.4:1.0: usb_probe_interface
usbserial_generic 1-1.4:1.0: usb_probe_interface - got id
usbcore: registered new driver usbserial_generic
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI SIO
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI
8U232AM Compatible
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI
FT232BM Compatible
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI
FT2232C Compatible
drivers/usb/serial/usb-serial.c: USB Serial support registered for USB-UIRT
Infrared Tranceiver
drivers/usb/serial/usb-serial.c: USB Serial support registered for
Home-Electronics TIRA-1 IR Transceiver
usbcore: registered new driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.1:USB FTDI Serial Converters Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for PL-2303
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
v0.12
drivers/usb/serial/usb-serial.c: USB Serial support registered for Evolution
8U232AM Compatible
drivers/usb/serial/usb-serial.c: USB Serial support registered for Evolution
FT232BM Compatible
usbcore: registered new driver evo_sio
/home/data/Treiber/evolution_rcm-0.0.7/evolution_rcm.c: v1.4.0:USB FTDI
Serial Converters Driver


Can somebody help me with this?
Because I am not the best in Linux, and I need to learn many things, so give
me please some tips or hidden hints...

Thanks
Thomas


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to