Help - Search - Members - Calendar
Full Version: Usb
Linuxhelp > Support > Technical Support
grasshopper
I compiled usb support into my new kernel compilation (2.4.21)
But I'm having diffiiculty getting any further than that.
How do I get usb stuff to get recognized when I plug it in?
All the tools I've tried haven't located a device (for example: sane)
My usb devices are:
- hp officejet d135 (all in one - scanner & printer, etc)
- usb memory stick
- usb clie
how do I get any of these above to work (especially the printer/scanner)

I've got sane installed & I've installed the HPIJS driver from hewlett packard

do I need to mount the usb device ?
I seem to remember putting in hot-pluggable support, do I still need to mount?

basically, I'm needing some direction on how to move forward with linux usb ... so far web searches haven't helped much.
michaelk
For USB help:
http://www.linux-usb.org/

Check to see what modules are being loaded.

/sbin/lsmod

You need
usbcore
usb-uhci or usb--ohci for USB 1.0
usb-storage
scsi_mod
sr_mod

What distro of linux are you running?
Check the output of dmesg to see if your USB stuff is being reconized by linux.
grasshopper
I am running debian 3.0

Here is the output of dmesg on my system:
=================================

Linux version 2.4.21 (root@tjh0.tjh.org) (gcc version 3.2.3 20030415 (Debian prerelease)) #1 Sun Jun 29 16:17:02 EDT 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
found SMP MP-table at 000f5570
hm, page 000f5000 reserved twice.
hm, page 000f6000 reserved twice.
hm, page 000f1000 reserved twice.
hm, page 000f2000 reserved twice.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
ACPI: Searched entire block, no RSDP was found.
ACPI: RSDP located at physical address c00f6fc0
RSD PTR v0 [AWARD ]
__va_range(0x1fff3000, 0x68): idx=8 mapped at ffff6000
ACPI table found: RSDT v1 [AWARD AWRDACPI 16944.11825]
__va_range(0x1fff3040, 0x24): idx=8 mapped at ffff6000
__va_range(0x1fff3040, 0x74): idx=8 mapped at ffff6000
ACPI table found: FACP v1 [AWARD AWRDACPI 16944.11825]
__va_range(0x1fff6740, 0x24): idx=8 mapped at ffff6000
__va_range(0x1fff6740, 0x54): idx=8 mapped at ffff6000
ACPI table found: APIC v1 [AWARD AWRDACPI 16944.11825]
__va_range(0x1fff6740, 0x54): idx=8 mapped at ffff6000
LAPIC (acpi_id[0x0000] id[0x0] enabled[1])
CPU 0 (0x0000) enabledProcessor #0 Pentium 4™ XEON™ APIC version 16

IOAPIC (id[0x2] address[0xfec00000] global_irq_base[0x0])
INT_SRC_OVR (bus[0] irq[0x0] global_irq[0x2] polarity[0x0] trigger[0x0])
INT_SRC_OVR (bus[0] irq[0x9] global_irq[0x9] polarity[0x0] trigger[0x0])
1 CPUs total
Local APIC address fee00000
Enabling the CPU's according to the ACPI table
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
I/O APIC #2 Version 17 at 0xFEC00000.
Enabling APIC mode: Flat. Using 1 I/O APICs
Processors: 1
Kernel command line: auto BOOT_IMAGE=Linux-TJH ro root=303 noapic
Initializing CPU#0
Detected 1796.967 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3578.26 BogoMIPS
Memory: 515540k/524224k available (1687k kernel code, 8296k reserved, 604k data, 104k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000
CPU: Common caps: bfebfbff 00000000 00000000 00000000
CPU: Intel® Pentium® 4 CPU 2.40GHz stepping 07
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1797.0136 MHz.
..... host bus clock speed is 99.8340 MHz.
cpu: 0, clocks: 998340, slice: 499170
CPU0<T0:998336,T1:499152,D:14,S:499170,C:998340>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb530, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router SIS [1039/0008] at 00:02.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
IA-32 Microcode Update Driver: v1.11 <tigran@veritas.com>
Starting kswapd
Journalled Block Device driver loaded
udf: registering filesystem
parport0: PC-style at 0x378 [PCSPP(,...)]
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
lp0: using parport0 (polling).
keyboard: Timeout - AT keyboard not present?(ed)
keyboard: Timeout - AT keyboard not present?(f4)
PPP generic driver version 2.4.2
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 10 for device 00:0f.0
PCI: Sharing IRQ 10 with 00:02.7
eth0: RealTek RTL8139 Fast Ethernet at 0xe080d000, 00:30:1b:ab:2f:c5, IRQ 10
eth0: Identified 8139 chip type 'RTL-8139C'
Linux agpgart interface v0.99 © Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Unsupported SiS chipset (device id: 0651), you might want to try agp_try_unsupported=1.
agpgart: no supported devices found.
[drm:radeon_init] *ERROR* Cannot initialize agpgart module.
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 00:02.5
PCI: Found IRQ 11 for device 00:02.5
SIS5513: chipset revision 0
SIS5513: not 100% native mode: will probe irqs later
SiS651 ATA 133 controller
ide0: BM-DMA at 0x4000-0x4007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0x4008-0x400f, BIOS settings: hdc:DMA, hdd:pio
hda: ST380011A, ATA DISK drive
blk: queue c0386640, I/O limit 4095Mb (mask 0xffffffff)
hdc: PIONEER DVD-RW DVR-105, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(100)
hdc: attached ide-cdrom driver.
hdc: ATAPI 32X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 >
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Intel 810 + AC97 Audio, version 0.24, 16:18:39 Jun 29 2003
PCI: Found IRQ 10 for device 00:02.7
PCI: Sharing IRQ 10 with 00:0f.0
i810: SiS 7012 found at IO 0xb800 and 0xb400, MEM 0x0000 and 0x0000, IRQ 10
i810_audio: Audio Controller supports 6 channels.
i810_audio: Defaulting to base 2 channel mode.
i810_audio: Resetting connection 0
ac97_codec: AC97 Audio codec, id: ALG32 (ALC650)
i810_audio: AC'97 codec 0, new EID value = 0x05c7
i810_audio: AC'97 codec 0, DAC map configured, total channels = 6
Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro 5050 PCI Audio, version 0.14.10h, 16:18:42 Jun 29 2003
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/uhci.c: USB Universal Host Controller Interface driver v1.1
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
usb.c: registered new driver usbscanner
scanner.c: 0.4.12:USB Scanner Driver
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Linux video capture interface: v1.00
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 104k freed
Adding Swap: 1951888k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,5), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,6), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,7), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,8), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.
hdc: CHECK for good STATUS
eth0: Promiscuous mode enabled.
device eth0 entered promiscuous mode
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
keyboard: Timeout - AT keyboard not present?(f4)
keyboard: Timeout - AT keyboard not present?(f4)

=======================================

I looked through the web site you suggested. It just seems like I'm missing some basic concept or something. Tried running /proc/bus/usb/devices to examine output but first it told me no permission, so i used chmod & when i re-ran "devices" it just gave me a new command prompt. Not sure what that means.

/sbin/lsmod yields nothing as I compiled everything into the kernel and not as modules.

I'm not sure how to interpret my dmesg output, so i included it above. Any clues that you can see about how I can get usb support up & running?
Also, if you see any other problems reported in dmesg, please let me know what they mean & what I can do to fix them. For example, what's with the keyboard timeout lines at the very end???
michaelk
The USB drivers for scanner, USB mass storage and printer are being loaded.

If you didn't include SCSI support then you will have to load those modules listed to mount your memory stick to mount.

mount -t vfat /dev/sda1 /mnt/memstick

Be sure to create a directory to mount the memory stick. I have never tried debian so don't know if this will work or not.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.