LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-16-2006, 11:17 PM   #1
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Rep: Reputation: 15
Enable USB?


I have Linux running on an embedded system. It is running kernel 2.4.21-1. I have plugged in two different pen/thumb/jump drives and neither one is recognized when plugged in before bootup or after bootup. Is there a way to tell if USB is installed/enabled? If it's not, can someone give me a step by step on how to enable it. Any instructions must be command line because display is done via the serial port. Thanks for any help!
 
Old 06-17-2006, 01:36 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Have you tried "lsmod" to list modules?
Sorry if it's not applicable to that system...
 
Old 06-17-2006, 02:03 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Check the output of dmesg and see if there is any relevant output when you plug a USB device in. lsmod is a good idea also but I don't know the names of the 2.4 USB modules so I can't tell you what to look for.
 
Old 06-18-2006, 12:34 AM   #4
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Here is what I get when I run lsmod:
Code:
Module                  Size  Used by    Not tainted
af_packet              11368   0  (autoclean)
ide-cd                 31056   0  (autoclean)
sr_mod                 16132   0  (autoclean) (unused)
scsi_mod               91040   1  (autoclean) [sr_mod]
cdrom                  29776   0  (autoclean) [ide-cd sr_mod]
md                     49036   0  (unused)
unix                   18040   3  (autoclean)
Here is the output of dmesg:
Code:
Linux version 2.4.21-1 (support@ppc405.mpl.loc) (gcc version 3.1 20020604 (Red Hat Linux Rawhide 3.1-6)) #1 Tue Aug 26 22:23:30 CEST 2003
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,9600 root=/dev/hda5
Calibrating delay loop... 395.67 BogoMIPS
Memory: 127828k available (1084k kernel code, 516k data, 60k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
OCP 4xx power management enabled
OCP uart ver 1.6.2 init complete
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xef600300 (irq = 0) is a 16550A
ttyS01 at 0xef600400 (irq = 1) is a 16550A
ttyS02 at 0xf4100000 (irq = 26) is a 16550A
ttyS03 at 0xf4200000 (irq = 26) is a 16550A
 Prepare for Phy dump....
Phy reg 0x0 ==> 3000
Phy reg 0x1 ==> 7829
Phy reg 0x2 ==>   13
Phy reg 0x3 ==> 78e2
Phy reg 0x4 ==>  1e1
Phy reg 0x5 ==> 45e1
Phy reg 0x6 ==>    7
Phy reg 0x7 ==> 2001
Phy reg 0x10 ==>   84
Phy reg 0x11 ==> 4780
Phy reg 0x12 ==>    0
Phy reg 0x13 ==>   f4
Phy reg 0x14 ==> 2402
Phy reg 0x15 ==>    0
Phy reg 0x16 ==>    0
Phy reg 0x17 ==>    0
Phy reg 0x18 ==>    0
Phy reg 0x19 ==>    0
eth0: Phy @ 0x1, type LXT971A (0x001378e2)
Reset ethernet interfaces
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:06.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: IBM-DTTA-371010, ATA DISK drive
Unhandled interrupt 2e, disabled
blk: queue c019ae90, I/O limit 4095Mb (mask 0xffffffff)
Probing IDE interface ide1...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 46
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 19746720 sectors (10110 MB) w/465KiB Cache, CHS=19590/16/63, UDMA(33)
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 < p5 p6 >
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
VFS: Mounted root (ext2 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 60k init
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
SCSI subsystem driver Revision: 1.00
eth0: IBM EMAC: link up, 100 Mbps Full Duplex, auto-negotiation complete.
eth0: IBM EMAC: MAC 00:60:c2:0a:01:60.
eth0: IBM EMAC: open completed
Any thoughts on my next step?
 
Old 06-18-2006, 01:32 AM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Nope, but since USB is obviously not working I'm going to suggest 'insmod usbcore' and see if you have any luck.
 
Old 06-20-2006, 05:55 PM   #6
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Original Poster
Rep: Reputation: 15
I tried 'insmod usbcore' but this did not change my situation. It did add this to the end of 'dmesg'
Quote:
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Then I tried 'insmod usb-storage' and it add this to 'dmesg'
Quote:
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Then I tried 'insmod usb-uhci' and it added
Quote:
usb-uhci.c: $Revision: 1.275 $ time 23:30:41 Aug 26 2003
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xffe0, IRQ 31
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
usb.c: kmalloc IF c6e2d4c0, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB UHCI Root Hub
SerialNumber: ffe0
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 2ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface c6e2d4c0
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Now whenever I plug in a usb storage device (thumb/pen/jump drive) I get a command line response that says
Quote:
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb.c: unable to get device descriptor (error=-90)
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb.c: unable to get device descriptor (error=-90)
and does not return the command prompt. After pressing ctr+C to get command prompt back, 'dmesg' says
Quote:
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 101, change 1, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
hub.c: port 2, portstatus 103, change 0, 12 Mb/s
hub.c: new USB device 00:06.2-2, assigned address 2
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000280 is zero
usb.c: unable to get device descriptor (error=-90)
hub.c: port 2, portstatus 103, change 0, 12 Mb/s
hub.c: new USB device 00:06.2-2, assigned address 3
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000380 is zero
usb.c: unable to get device descriptor (error=-90)
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
Here is the output of lsmod:
Quote:
root@localhost:~# lsmod
Module Size Used by Not tainted
usb-uhci 26948 0 (unused)
usb-storage 64132 0 (unused)
usbcore 72904 0 [usb-uhci usb-storage]
af_packet 11368 0 (autoclean)
ide-cd 31056 0 (autoclean)
sr_mod 16132 0 (autoclean) (unused)
scsi_mod 91040 1 (autoclean) [usb-storage sr_mod]
cdrom 29776 0 (autoclean) [ide-cd sr_mod]
md 49036 0 (unused)
unix 18040 3 (autoclean)
What do I need to do to be able to use this storage device?
Any ideas?

Last edited by jmkelm08; 06-20-2006 at 05:57 PM.
 
Old 06-20-2006, 06:40 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quite frankly, what is an embedded system?

There are two different USB host controllers for USB 1.0/1.1, and one for USB 2.0.

Rather than explain it myself, let me post from my 2.6.17 kernel .config file:
Code:
OHCI HCD support (USB_OHCI_HCD)

The Open Host Controller Interface (OHCI) is a standard for accessing
USB 1.1 host controller hardware. It does more in hardware than Intel's
UHCI specification. If your USB host controller follows the OHCI spec,
say Y. On most non-x86 systems, and on x86 hardware that's not using a
USB controller from Intel or VIA, this is appropriate. If your host
controller doesn't use PCI, this is probably appropriate. For a PCI
based system where you're not sure, the "lspci -v" entry will list the
right "prog-if" for your USB controller(s): EHCI, OHCI, or UHCI.

To compile this driver as a module, choose M here: the
module will be called ohci-hcd.

UHCI HCD (most Intel and VIA) support (USB_UHCI_HCD)

The Universal Host Controller Interface is a standard by Intel for
accessing the USB hardware in the PC (which is also called the USB
host controller). If your USB host controller conforms to this
standard, you may want to say Y, but see below. All recent boards
with Intel PCI chipsets (like intel 430TX, 440FX, 440LX, 440BX,
i810, i820) conform to this standard. Also all VIA PCI chipsets
(like VIA VP2, VP3, MVP3, Apollo Pro, Apollo Pro II or Apollo Pro
133). If unsure, say Y.

To compile this driver as a module, choose M here: the
module will be called uhci-hcd.

EHCI HCD (USB 2.0) support (USB_EHCI_HCD)

The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
"high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
If your USB host controller supports USB 2.0, you will likely want to
configure this Host Controller Driver. At the time of this writing, 
the primary implementation of EHCI is a chip from NEC, widely available
in add-on PCI cards, but implementations are in the works from other 
vendors including Intel and Philips. Motherboard support is appearing.

EHCI controllers are packaged with "companion" host controllers (OHCI
or UHCI) to handle USB 1.1 devices connected to root hub ports. Ports
will connect to EHCI if the device is high speed, otherwise they
connect to a companion controller. If you configure EHCI, you should
probably configure the OHCI (for NEC and some other vendors) USB Host
Controller Driver or UHCI (for Via motherboards) Host Controller
Driver too.

You may want to read <file:Documentation/usb/ehci.txt>.
So on this computer:
Code:
root@silas:~# lspci -v
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X motherboard
        Flags: bus master, medium devsel, latency 64, IRQ 19
        I/O ports at b400 [size=32]
        Capabilities: [80] Power Management version 2

00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X motherboard
        Flags: bus master, medium devsel, latency 64, IRQ 19
        I/O ports at b800 [size=32]
        Capabilities: [80] Power Management version 2

00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X motherboard
        Flags: bus master, medium devsel, latency 64, IRQ 19
        I/O ports at c000 [size=32]
        Capabilities: [80] Power Management version 2

00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) (prog-if 00 [UHCI])
        Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X motherboard
        Flags: bus master, medium devsel, latency 64, IRQ 19
        I/O ports at c400 [size=32]
        Capabilities: [80] Power Management version 2

00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. A7V600/K8V-X motherboard
        Flags: bus master, medium devsel, latency 64, IRQ 19
        Memory at fdf00000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2
Hope this somehow helps you...
 
Old 06-20-2006, 11:54 PM   #8
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Original Poster
Rep: Reputation: 15
The system is a MIP405 PowerPC which is a computer that is contained on a 4in. x 4in. board. The board is manufactured by MPL ( www.mpl.ch ). The user manual says that there are 2 USB 1.0 ports, does knowing this change anything?
 
Old 06-21-2006, 01:41 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Interesting gadget. I read "Also a Linux distribution is available for the MIP405."
Are you running that? If so I'd expect it to be configured right. Do they offer support?

Issue as root "lspci -v" and post it all in here, please. Another thing I see is
"Southbridge PIIX4E 82371 EB" -- which is Intel. If so, you need "USB_UHCI_HCD".

Plug in the device and then issue "dmesg | tail" and you should see it. Some output such as this:
Code:
mingdao@silas:~/kernel$ dmesg | tail
sdc: Mode Sense: 03 00 00 00
sdc: assuming drive cache: write through
SCSI device sdc: 256000 512-byte hdwr sectors (131 MB)
sdc: Write Protect is off
sdc: Mode Sense: 03 00 00 00
sdc: assuming drive cache: write through
 sdc: sdc1
sd 2:0:0:0: Attached scsi removable disk sdc
sd 2:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete

Last edited by Bruce Hill; 06-21-2006 at 01:50 AM.
 
Old 06-21-2006, 05:15 PM   #10
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Original Poster
Rep: Reputation: 15
I am running the version of Linux that came with the board, so I imagine that is the distribution you are speaking of. It appears that they don't have it configure correctly.

I tried looking at the /usr/src/linux-2.4.21-1-ppc/.config file, and this line is commented out: "# CONFIG_USB_EHCI_HCD is not set"

The mpl support told me to try "modprobe usb-ohci", but the module could not be found, and I discovered it is commented out in the .config file as well. I'm stilling waiting to hear back from them on what they suggest next.

Here are the commands you wanted:

root@localhost:/# lspci -v
00:06.0 Class 0601: 8086:7110 (rev 02)
Flags: bus master, medium devsel, latency 0, IRQ 28

00:06.1 Class 0101: 8086:7111 (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 0, IRQ 28
I/O ports at 1000 [size=16]

00:06.2 Class 0c03: 8086:7112 (rev 01)
Flags: bus master, medium devsel, latency 128, IRQ 31
I/O ports at ffe0 [size=32]

00:06.3 Class 0680: 8086:7113 (rev 02)
Flags: medium devsel, IRQ 28

root@localhost:/# dmesg | tail
hub.c: port 2, portstatus 103, change 0, 12 Mb/s
hub.c: new USB device 00:06.2-2, assigned address 5
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000580 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000580 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000580 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000580 is zero
usb-uhci.c: uhci_submit_urb: pipesize for pipe 80000580 is zero
usb.c: unable to get device descriptor (error=-90)
hub.c: port 1, portstatus 100, change 0, 12 Mb/s
hub.c: port 2, portstatus 101, change 0, 12 Mb/s
 
Old 06-21-2006, 06:53 PM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
EHCI is for USB 2.0, and the docs state the board has USB 1.1, so it's not needed.

Strange that "lspci -v" gives no more data...

What is the output of "cat /usr/src/linux-2.4.21-1-ppc/.config | grep -i usb" ?

This is beyond my knowledge, but if it were me, I'd try to compile a new kernel.
And I wouldn't bother with a 2.4 kernel -- get the latest stable 2.6 kernel. You didn't include your location in your UserCP, so I gave you an US ftp mirror.

I have posted two simple kernel rebuild HOW-TOs in threads here:
Rebuild 2.6 kernel under /home
Rebuild 2.6 kernel under /usr/src/

The only document I can get to on the internet is:
http://72.14.235.104/linux?q=cache:B...n&ct=clnk&cd=2
which isn't the hit I got at Google <Linux>, but it's cached page. I read there:
Quote:
USB Support: At the moment only the UHCI host controller is supported (PIP405, MIP405, MPC5200); define CONFIG_USB_UHCI to enable it. define CONFIG_USB_KEYBOARD to enable the USB Keyboard and define CONFIG_USB_STORAGE to enable the USB storage devices.
Please keep us updated, especially with what your tech support says.
 
Old 06-21-2006, 10:08 PM   #12
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Original Poster
Rep: Reputation: 15
root@localhost:/# cat /usr/src/linux-2.4.21-1-ppc/.config | grep -i usb
# CONFIG_INPUT_IFORCE_USB is not set
# USB support
CONFIG_USB=m
CONFIG_USB_DEBUG=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_BANDWIDTH=y
# CONFIG_USB_EHCI_HCD is not set
CONFIG_USB_UHCI=m
# CONFIG_USB_UHCI_ALT is not set
# CONFIG_USB_OHCI is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
CONFIG_USB_DC2XX=m
CONFIG_USB_MDC800=m
CONFIG_USB_SCANNER=m
CONFIG_USB_MICROTEK=m
CONFIG_USB_HPUSBSCSI=m
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
CONFIG_USB_KAWETH=m
CONFIG_USB_CATC=m
CONFIG_USB_CDCETHER=m
CONFIG_USB_USBNET=m
# CONFIG_USB_USS720 is not set
# USB Serial Converter support
CONFIG_USB_SERIAL=m
# CONFIG_USB_SERIAL_DEBUG is not set
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_BELKIN=m
CONFIG_USB_SERIAL_WHITEHEAT=m
CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m
CONFIG_USB_SERIAL_EMPEG=m
CONFIG_USB_SERIAL_FTDI_SIO=m
CONFIG_USB_SERIAL_VISOR=m
CONFIG_USB_SERIAL_IPAQ=m
CONFIG_USB_SERIAL_IR=m
CONFIG_USB_SERIAL_EDGEPORT=m
CONFIG_USB_SERIAL_EDGEPORT_TI=m
CONFIG_USB_SERIAL_KEYSPAN_PDA=m
CONFIG_USB_SERIAL_KEYSPAN=m
CONFIG_USB_SERIAL_KEYSPAN_USA28=y
CONFIG_USB_SERIAL_KEYSPAN_USA28X=y
CONFIG_USB_SERIAL_KEYSPAN_USA28XA=y
CONFIG_USB_SERIAL_KEYSPAN_USA28XB=y
CONFIG_USB_SERIAL_KEYSPAN_USA19=y
CONFIG_USB_SERIAL_KEYSPAN_USA18X=y
CONFIG_USB_SERIAL_KEYSPAN_USA19W=y
# CONFIG_USB_SERIAL_KEYSPAN_USA19QW is not set
# CONFIG_USB_SERIAL_KEYSPAN_USA19QI is not set
# CONFIG_USB_SERIAL_KEYSPAN_MPR is not set
CONFIG_USB_SERIAL_KEYSPAN_USA49W=y
# CONFIG_USB_SERIAL_KEYSPAN_USA49WLC is not set
CONFIG_USB_SERIAL_MCT_U232=m
CONFIG_USB_SERIAL_KLSI=m
CONFIG_USB_SERIAL_KOBIL_SCT=m
CONFIG_USB_SERIAL_PL2303=m
CONFIG_USB_SERIAL_CYBERJACK=m
CONFIG_USB_SERIAL_XIRCOM=m
CONFIG_USB_SERIAL_OMNINET=m
CONFIG_USB_RIO500=m
CONFIG_USB_AUERSWALD=m
# CONFIG_USB_TIGL is not set
# CONFIG_USB_BRLVGER is not set
CONFIG_USB_LCD=m
CONFIG_BLUEZ_HCIUSB=m
CONFIG_BLUEZ_USB_SCO=y
CONFIG_BLUEZ_USB_ZERO_PACKET=y

I've tried to compile a new kernel with the modules I want in it, but I did not really know what I was doing. Appearantly the steps are similar but not excatly the same as a regular box. To be honest, I've only been using Linux for a few months so all of this is a little bit over my head. The only reason I am working on this is because nobody else that I am working with has any experience with Linux. This website ( http://www.mpl.ch/t2722.html ) gives information on compiling a kernel for the MIP405, but I'm still not quite sure how to do it. I think I set the .config file how I want then run "make dep" then "make clean" then "make uImage" but I'm not sure after that. When I originally installed the OS, the file system went on /dev/hda5 and a copy of the kernel image went into the the /boot directory. I then had to do something to load the kernel onto /dev/hda1 using a command like "dd if=/boot/(don't remember the file name) of=/dev/hda1". I can't find the manual for doing this online and the paper version is back in the office. If you could help me get a step by step, I would appreciate it.

I also don't know how to download a newer version of the kernel because I am not use to not having a gui to work from. I could download the kernel and burn it to a cd and hook a cd drive up to the board or do ssh to a machine that has gui and do "scp", but I'm sure there is a way to do it via the command line since I have internet on the MIP405.

I can ssh into the board from my home, so if you respond tonight, I will try any of your suggestions

Thanks for ALL of your help!

Last edited by jmkelm08; 06-21-2006 at 10:10 PM.
 
Old 06-21-2006, 11:14 PM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I briefly read the kernel instructions in your link, and don't want to comment too much. No experience with PPC, and I'd not want to cause you to hose that system.

If you have the program wget, an easy way to get the kernel is to issue "wget ftp://ftp.us.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.tar.bz2" or substitute the path to the kernel you desire. Previously I was thinking of using a 2.6 kernel, rather than a 2.4. You build them quite differently, and IMO Kwan Lowe has an excellent Kernel Rebuild Guide.

If you're willing to take some risk, perhaps following that guide and adapting from an i386 architecture to PPC would work. Meaning, where Kwan has i386 you need to think ppc.

I believe the dd command would be "dd if=/boot/<kernel-image-name> of=/dev/hda1" if that's all there was. You can "ls -lh /boot/" after you install the kernel to see it's name. Never used uImage, which probably has to do with that Universal Bootloader .

Have you checked the resources here -> http://penguinppc.org/about/community.php ? Might be able to even chat on IRC with a PPC guru now.
 
Old 06-22-2006, 09:26 PM   #14
jmkelm08
Member
 
Registered: Nov 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Tech support told me that USB support is unstable in this kernel and I should compile a new one using kernel 2.4.31 and the patch from ftp://ftp.mpl.ch/pub/temp/linux-2.4....p405.patch.bz2 . I downloaded the kernel and patch onto another linux machine because wget was unrecognized by the MIP405. I transfered the files over ssh to the board and untared the kernel to /usr/src then used "cp linux-2.4.31-pip405mip405.patch /usr/src/linux/.config". Then I issued the command "make dep uImage modules" as the instructions for compiling stated. After answering an hour worth of questions (which I didn't completely know the answers to), the kernel started to compile.

I've gotten a few errors, but I think I've figured them out. The instructions for compiling say to use a cross-compiler. Is that so you can compile on another computer that is faster? The processor on the MIP405 is only 266MHz I think. How do you get/make a cross-compiler?

Back to trying to compile!
 
Old 06-23-2006, 01:33 AM   #15
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I need to read your post more carefully. But in order to keep from having to answer so many questions, you could have first copied your present kernel's .config file to the new kernel source directory, like this:
Code:
cp /usr/src/linux-2.4.21-1-ppc/.config /usr/src/linux-2.4.31/
so that your sources start our with the old .config file.

Next you would run "make oldconfig" and answer any questions that came up. You can hit the ? at each one to see what it's about, and if you don't know, it's usually okay to enter for the default. If you're not comfortable with that, you could always say N to new questions.

Then you would run "make menuconfig" and just change the USB or whatever else support said to change. Then you could patch and continue with "make mrproper" or whatever their next step was.

If you got through that compile okay, and have both kernels to boot, then just go ahead and see how it works. But if you have any problems, it's safe enough to start over.

If you do start over, there are some instructions you'll want before you do...

Last edited by Bruce Hill; 06-23-2006 at 01:53 AM.
 
  


Reply

Tags
usbdrive



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable USB drive on Fedora? jfowles Linux - Hardware 11 12-10-2007 09:04 AM
how to enable additional USB keyboard on laptop johnkabuto Linux - Newbie 2 04-13-2006 08:42 PM
enable or disable legacy USB support johnMG Linux - Hardware 1 04-08-2005 01:16 PM
Enable usb on every boot popdog Fedora 3 02-09-2005 10:58 AM
Cannot enable USB port RedAhead Linux - Hardware 1 10-06-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration