Click to See Complete Forum and Search --> : USB module question


satimis
09-12-2005, 08:52 AM
Hi folks,

BLFS 6.1

On running following commands;
bash-3.00$ su -
Password:
root@localhost:~# modprobe usbFATAL: Module usb not found.


bash-3.00$ cat /etc/sysconfig/modules
################################################## ######################
# Begin /etc/sysconfig/modules
#
# Description : Module auto-loading configuration
#
# Authors :
#
# Version : 00.00
#
# Notes : The syntax of this file is as follows:
# <module> [<arg1> <arg2> ...]
#
# Each module should be on it's own line, and any options that you want
# passed to the module should follow it. The line deliminator is either
# a space or a tab.
################################################## ######################

# End /etc/sysconfig/modules

"usbcore" module is not listed.

bash-3.00$ cat /etc/fstab
# Begin /etc/fstab

# file system mount-point type options dump fsck
# order

/dev/hda6 / ext3 defaults 1 1
/dev/hda3 swap swap pri=1 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
shm /dev/shm tmpfs defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0
# End /etc/fstabThe line "usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0" is there.

Is there other command to check whether USB device filesystem has been compiled on the kernel?

Whether I need to recompile the kernel? TIA

BR
satimis

Hayl
09-12-2005, 09:00 AM
make menuconfig will give you a menu with all your choices.

i doubt you forgot to add usb support. you may have forgotten to do make modules_install.

go into the modules's directories and look for them. they are stored in /lib/modules/<kernel version>/<various directories>. if the modules are listed in make menuconfig but aren't in the proper place in the filesystem then make modules_install wasn't run.

satimis
09-12-2005, 11:17 AM
Hi Hayl,

Tks for your advice.

go into the modules's directories and look for them. they are stored in /lib/modules/<kernel version>/<various directories>root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/
build/ modules.ccwmap modules.inputmap modules.symbols
kernel/ modules.dep modules.isapnpmap modules.usbmap
modules.alias modules.ieee1394map modules.pcimap source/"2.6.11.12-try2" is running kernel. "modules.usbmap" is there.

root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/kernel/drivers/acpi/ base/ char/ net/ scsi/ usb/
root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/kernel/drivers/usb/
input/ misc/

root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/kernel/drivers/usb/input/touchkitusb.ko

root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/kernel/drivers/usb/misc/
cytherm.ko phidgetservo.koChecked the Notes on recompiling kernel to make ADSL to work;

@localhost.localdomain : /root@localhost:/usr/src/linux-2.6.11.12# make modules_install INSTALL drivers/acpi/ibm_acpi.ko"make modules_install" has been run.

Is there anyway other than running "menuconfig"

TIA

BR
satimis

Hayl
09-12-2005, 11:28 AM
you can open the .config file in the kernel source-code directory and read through it.
if the modules were installed, then they will be in /lib/modules/<kernel version>/kernel/drivers/usb

bwkaz
09-12-2005, 07:18 PM
If you followed the LFS book's instructions, you built everything as a non-module. This means that no, there's no good way to check whether the "usb" driver is running, because you can't modprobe something that was built into the kernel.

But why do you suspect that it isn't running?

usbcore MUST be turned on, if /proc/bus/usb mounted without errors from your boot scripts. The usbfs filesystem doesn't exist unless usbcore is loaded (or built in). But I don't know of anything equivalent for the usb driver.

satimis
09-12-2005, 07:38 PM
Hi Hayl,

Tks for your advice.

you can open the .config file in the kernel source-code directory and read through it.# nano /usr/src/linux-2.6.11.12/.config# USB devices
#

# Open Sound System
# CONFIG_SOUND_PRIME is not set

# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

CONFIG_USB_DEVICEFS=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y

# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_UHCI_HCD=y

# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=y

CONFIG_USB_STORAGE=y

CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y

CONFIG_USB_EGALAX=m

CONFIG_USB_CYTHERM=m
# CONFIG_USB_PHIDGETKIT is not set
CONFIG_USB_PHIDGETSERVO=m

if the modules were installed, then they will be in /lib/modules/<kernel version>/kernel/drivers/usb# ls /lib/modules/2.6.11.12-try2/kernel/drivers/acpi base char net scsi usb
root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/kernel/drivers/usb/input misc
It seems there

root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/kernel/drivers/usb/input/touchkitusb.ko
root@localhost:/home/satimis# ls /lib/modules/2.6.11.12-try2/kernel/drivers/usb/misc/cytherm.ko phidgetservo.ko




satimis

satimis
09-12-2005, 07:50 PM
Hi bwkaz,

<snip>

But why do you suspect that it isn't running?I have problem on printing. It is a USB printer.

I found "CONFIG_USB_PRINTER=y" on .config

dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb 1-1: new low speed USB device using uhci_hcd and address 2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usbcore: registered new driver usb-storage
input: USB HID v1.00 Mouse [Cypress Sem PS2/USB Browser Combo Mouse] on usb-0000:00:11.2-1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver

satimis

Parcival
09-13-2005, 03:42 AM
Well, from your last output it looks to me like your USB is just fine. Are you sure it's not a printer driver problem? I remember you had some problems with dependencies over at the installing a HP printer howto.

satimis
09-13-2005, 07:15 AM
Hi Parcival

Well, from your last output it looks to me like your USB is just fine. Are you sure it's not a printer driver problem?I don't know.

I'm now encountering another problem of installing some packages on BLFS 6.1. To install packages on chroot went through without problem. bwkaz is not assisting me to find out the cause incurred thereby. Once this problem solved I'll install the HP printer driver including required dependencis. Tks.

B.R.
satimis

Parcival
09-13-2005, 07:59 AM
I'm now encountering another problem of installing some packages on BLFS 6.1.

Well, your output suggests that your USB works nicely since it detects your hubs, assigns an address to your mouse, etc. That's why I think your problem lies somewhere else.

I suggest you try to solve one problem at a time, especially when doing such a difficult task like installing LFS.

satimis
09-16-2005, 11:00 AM
Hi folks,

Having solved other problems I resume installing HP driver. The following packages are required. Please advise where can I download them including installation instruction. The URLs listed below came from my search

http://hpinkjet.sourceforge.net/sysrequirements.php
System Requirements
Linux kernel 2.4.19 and above. GNU software tools are required to build from source code. This includes the ANSI C compiler, ANSI C++ compiler and POSIX compliant environment.
(Where can I download the relevent ANSI C compiler, ANSI C++ compiler and POSIX compliant environment???)

GNU Ghostscript 7.05 or higher.
(ghostscript-8.51.tar.bz2 from BLFS 6.1)

Foomatic 3.0.2 or higher
http://www.linuxprinting.org/foomatic.html
foomatic-filters
http://www.linuxprinting.org/download/foomatic/foomatic-filters-3.0.2.tar.gz

Qt 3.x or higher for UI toolkit.
Where I can find it

PyQt 3.11 or higher for Qt wrapper for Python.
PyQt - Download
http://www.riverbankcomputing.co.uk/pyqt/download.php

Python 2.2 or higher and python-devel.
http://www.python.org/2.4.1/
where can I download python-devel

CUPS 1.15 or higher and cups-devel.
cups-1.1.23-source.tar.bz2 from BLFS 6.1. But it needs CUPS 1.15??? Where can I find it including cups-devel?

Is there search engines for tarballs? Please advise. TIA

BR
satimis

bwkaz
09-16-2005, 06:49 PM
(Where can I download the relevent ANSI C compiler, ANSI C++ compiler and POSIX compliant environment???) That would be gcc, g++, and the rest of your Linux OS -- in other words, you already have it.

Qt 3.x or higher for UI toolkit.
Where I can find it http://www.linuxfromscratch.org/blfs/view/6.1/x/lib.html#qt

Python 2.2 or higher and python-devel.
http://www.python.org/2.4.1/
where can I download python-devel You don't need it; that's only for distros that have binary installations. If you follow the BLFS python section, you'll have everything you need. (Note, though, that you'll have to install Python before PyQt.)

CUPS 1.15 or higher and cups-devel.
cups-1.1.23-source.tar.bz2 from BLFS 6.1. But it needs CUPS 1.15??? Where can I find it including cups-devel? Again, cups-devel will not be necessary if you compile cups from source.

As for the version, BLFS usually uses the most recent tested version of everything that was available when that book came out. I think the CUPS 1.15 is probably a misnomer -- I'm guessing it should probably be CUPS 1.1.15 instead.

satimis
09-17-2005, 03:01 AM
Hi bwkaz,

Your advice noted with thanks.

I'll start another thread about failure on "make test" during installing Python.

BR
satimis