Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO USB Mass Storage Device and Gentoo :D
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
saimonm
n00b
n00b


Joined: 14 Apr 2003
Posts: 67
Location: Barcelona (Cyprus)

PostPosted: Sun Apr 04, 2004 3:00 pm    Post subject: usb flash device not detected Reply with quote

Hi,

I've tried following the howto in order to try and get a usb flash disk to mount but to no avail.

I have all the modules loaded, scsi compiled into the kernel but when I connect the stick (to any of the usb ports), it doesn't get recognized at all. No usb detection whatsoever.


This is what dmesg lists after connecting the device (I have rebooted various times)...

Code:
nefeli scsi # dmesg
Linux version 2.4.22-ck2 (root@nefeli) (gcc version 3.2.3 20030422 (Gentoo Linux  1.4 3.2.3-r2, propolice)) #6 Thu Nov 6 19:20:42 CET 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffc000 (usable)
 BIOS-e820: 000000003fffc000 - 000000003ffff000 (ACPI data)
 BIOS-e820: 000000003ffff000 - 0000000040000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
127MB HIGHMEM available.
896MB LOWMEM available.
On node 0 totalpages: 262140
zone(0): 4096 pages.
zone(1): 225280 pages.
zone(2): 32764 pages.

Kernel command line: root=/dev/hda7
Found and enabled local APIC!
Initializing CPU#0
Detected 1916.550 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3776.51 BogoMIPS
Memory: 1032884k/1048560k available (1845k kernel code, 15288k reserved, 315k da ta, 164k init, 131056k highmem)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 65536 (order: 6, 262144 bytes)
Page-cache hash table entries: 262144 (order: 8, 1048576 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:             Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: AMD Athlon(TM) XP 2600+ stepping 00
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 1916.0157 MHz.
..... host bus clock speed is 333.0244 MHz.
cpu: 0, clocks: 333244, slice: 166622
CPU0<T0:333232,T1:166608,D:2,S:166622,C:333244>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf15e0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
allocated 32 pages and 32 bhs reserved for the highmem bounces
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI IS APNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later

ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
    ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:pio
hda: ST380011A, ATA DISK drive
blk: queue c017bfa0, I/O limit 4095Mb (mask 0xffffffff)
hdc: HL-DT-STDVD-ROM GDR8162B, 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 48X DVD-ROM drive, 256kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 > p3
ide: late registration of driver.
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
ip_conntrack version 2.1 (8191 buckets, 65528 max) - 292 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/proje cts/ipt_recent/
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,7)) ...
for (ide0(3,7))
ide0(3,7):Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 164k freed
Adding Swap: 996020k swap-space (priority -1)
via-rhine.c:v1.10-LK1.1.19  July-12-2003  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
PCI: Assigned IRQ 5 for device 00:12.0
eth0: VIA VT6102 Rhine-II at 0xb400, 00:0c:6e:55:7f:34, IRQ 5.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 41e1.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module  1.0-4496  Wed Jul 16  19:03:09 PDT 2003
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,5)) ...
for (ide0(3,5))
ide0(3,5):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,6)) ...
for (ide0(3,6))
ide0(3,6):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,8)) ...
for (ide0(3,8))
ide0(3,8):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,9)) ...
for (ide0(3,9))
ide0(3,9):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,11)) ...
for (ide0(3,11))
ide0(3,11):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,10)) ...
for (ide0(3,10))
ide0(3,10):Using r5 hash to sort names
Real Time Clock Driver v1.10e
eth0: Setting full-duplex based on MII #1 link partner capability of 41e1.
spurious 8259A interrupt: IRQ7.
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 941M
agpgart: Detected Via Apollo Pro KT400 chipset
agpgart: unable to determine aperture size.
0: NVRM: AGPGART: unable to retrieve symbol table


and lsmod lists:

Code:

nefeli scsi # lsmod
Module                  Size  Used by    Tainted: P
rtc                     7644   0  (autoclean)
vfat                   10700   0  (unused)
fat                    33336   0  [vfat]
usb-storage            25968   0  (unused)
usbcore                65536   1  [usb-storage]
nvidia               1629568  11
pppoe                   9164   0  (unused)
pppox                   1304   1  [pppoe]
ppp_generic            22332   0  [pppoe pppox]
slhc                    5456   0  [ppp_generic]
via-rhine              14480   1
mii                     2592   0  [via-rhine]
crc32                   2880   0  [via-rhine]


I have the following configured in the kernel:

Code:

nefeli linux # cat ck_desktop | grep SCSI
# CONFIG_CISS_SCSI_TAPE is not set
CONFIG_BLK_DEV_IDESCSI=m
# SCSI support
CONFIG_SCSI=y
CONFIG_SCSI_DEBUG_QUEUES=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
# SCSI low-level drivers
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_MEGARAID is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_CPQFCTS is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_EATA_DMA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_NCR53C7xx is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_NCR53C8XX is not set
CONFIG_SCSI_SYM53C8XX=y
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=4
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=20
# CONFIG_SCSI_NCR53C8XX_PROFILE is not set
# CONFIG_SCSI_NCR53C8XX_IOMAPPED is not set
# CONFIG_SCSI_NCR53C8XX_PQS_PDS is not set
# CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PCI2000 is not set
# CONFIG_SCSI_PCI2220I is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_SEAGATE is not set
# CONFIG_SCSI_SIM710 is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_I2O_SCSI is not set
# Old CD-ROM drivers (not SCSI, not IDE)
# CONFIG_CD_NO_IDESCSI is not set
# CONFIG_USB_HPUSBSCSI is not set

and

nefeli linux # cat ck_desktop | grep SD
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
CONFIG_PPP_BSDCOMP=m
# ISDN subsystem
# CONFIG_ISDN is not set
CONFIG_MSDOS_FS=m
CONFIG_UMSDOS_FS=m
CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
# CONFIG_NFSD_TCP is not set
CONFIG_MSDOS_PARTITION=y
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set





Am I missing something?


[P.S. The usb device is functional as I've verified it under windows]

Thanks

Saimon
_________________
Regards,

Saimon Moore
Back to top
View user's profile Send private message
kpitty
n00b
n00b


Joined: 10 Mar 2004
Posts: 9

PostPosted: Sat Apr 17, 2004 8:28 am    Post subject: Reply with quote

Just tried following these instructions for my new Sony Cybershot DSC-P8. No luck yet.

I am using kernel 2.4.20-gentoo-r6 and when I checked the kernel config all the options were set as per the instructions.

Then the modprobes for usbcore, usb-storage and vfat worked fine but no such luck for usb-uhci, usb-ohci, scsi_mod and sd_mod.

Here's what dmesg reports:

Code:

cockatoo linux # dmesg
Linux version 2.4.20-gentoo-r6 (root@cdimage) (gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)) #1 Thu Mar 4 04:11:55 EST 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e8c00 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000bff0000 (usable)
 BIOS-e820: 000000000bff0000 - 000000000bfffc00 (ACPI data)
 BIOS-e820: 000000000bfffc00 - 000000000c000000 (ACPI NVS)
 BIOS-e820: 00000000fffe8c00 - 0000000100000000 (reserved)
191MB LOWMEM available.
ACPI: have wakeup address 0xc0001000
On node 0 totalpages: 49136
zone(0): 4096 pages.
zone(1): 45040 pages.
zone(2): 0 pages.
ACPI: RSDP (v000 PTLTD                      ) @ 0x000f71a0
ACPI: RSDT (v001 PTLTD    RSDT   01540.00000) @ 0x0bffaf68
ACPI: FADT (v001 IBM    430BX    01540.00000) @ 0x0bfffb65
ACPI: BOOT (v001 PTLTD  $SBFTBL$ 01540.00000) @ 0x0bfffbd9
ACPI: DSDT (v001    IBM      BT2 01540.00000) @ 0x00000000
ACPI: BIOS passes blacklist
IBM machine detected. Enabling interrupts during APM calls.
Kernel command line: root=/dev/hda3 vga=791
Initializing CPU#0
Detected 331.726 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 660.27 BogoMIPS
Memory: 188288k/196544k available (1492k kernel code, 6336k reserved, -1804k data, 100k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
Proc Config support by ptb@it.uc3m.es
proc config counted 6528 bytes in names
proc config counted 711 bytes in value handles
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU:     After generic, caps: 0183f9ff 00000000 00000000 00000000
CPU:             Common caps: 0183f9ff 00000000 00000000 00000000
CPU: Intel Mobile Pentium II stepping 0a
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20021122
PCI: PCI BIOS revision 2.10 entry at 0xfd9c5, last bus=4
PCI: Using configuration type 1
    ACPI-0511: *** Info: GPE Block0 defined as GPE0 to GPE15
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: System [ACPI] (supports S0 S1 S3 S4 S5)
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 6 7 9 10 11 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 14 15)
ACPI: Embedded Controller [EC] (gpe 9)
ACPI: Power Resource [PFNH] (off)
ACPI: Power Resource [PFNM] (off)
ACPI: Power Resource [PFNL] (off)
PCI: Probing PCI hardware
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
vesafb: framebuffer at 0xf6000000, mapped to 0xcc818000, size 1536k
vesafb: mode is 1024x768x16, linelength=2048, pages=0
vesafb: protected mode interface info at c000:a730
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Looking for splash picture... no good signature found.
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.10e
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 11
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfc90-0xfc97, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xfc98-0xfc9f, BIOS settings: hdc:pio, hdd:pio
hda: IBM-DBCA-206480, ATA DISK drive
hdc: CRN-8241B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c0173344, I/O limit 4095Mb (mask 0xffffffff)
hda: 12685680 sectors (6495 MB) w/420KiB Cache, CHS=789/255/63, (U)DMA
hdc: ATAPI 24X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Equalizer1996: $Revision: 1.2.1 $ $Date: 1996/09/22 13:52:00 $ Simon Janes (simon@ncm.com)
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
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 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 1412k freed
VFS: Mounted root (ext2 filesystem).
NCR53c406a: no available ports found
aec671x_detect:
scsi: <fdomain> Detection failed (no card)
megaraid: v1.18 (Release Date: Thu Oct 11 15:02:53 EDT 2001)
megaraid: no BIOS enabled.
DC390: 0 adapters found
Failed initialization of WD-7000 SCSI card!
3ware Storage Controller device driver for Linux v1.02.00.031.
3w-xxxx: No cards with valid units found.
NCR53c406a: no available ports found
Red Hat/Adaptec aacraid driver, Mar  4 2004
Loading Adaptec I2O RAID: Version 2.4 Build 5
Detecting Adaptec I2O RAID controllers...
sim710: No NCR53C710 adapter found.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB UHCI at I/O 0xfca0, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
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
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Trying to move old root to /initrd ... failed
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing unused kernel memory: 100k freed
Adding Swap: 506036k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
solo1: version v0.19 time 05:47:29 Mar  4 2004
solo1: joystick port at 0xfc5d
solo1: ddma base address: 0xfc70
parport0: PC-style at 0x3bc [PCSPP,TRISTATE]
lp0: using parport0 (polling).
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
Linux PCMCIA Card Services 3.2.4
  kernel build: 2.4.20-gentoo-r6 #1 Thu Mar 4 04:11:55 EST 2004
  options:  [pci] [cardbus] [apm]
Intel ISA/PCI/CardBus PCIC probe:
  TI 1251A rev 01 PCI-to-CardBus at slot 00:03, mem 0x10000000
    host opts [0]: [pci + serial irq] [pci irq 11] [lat 168/176] [bus 2/5]
    host opts [1]: [pci + serial irq] [pci irq 11] [lat 168/176] [bus 6/9]
    ISA irqs (scanned) = 3,4,7,10 PCI status changes
cs: memory probe 0xa0000000-0xa0ffffff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x4d0-0x4d7
cs: IO port probe 0x04d8-0x04ff: clean.
cs: IO port probe 0x0800-0x08ff: clean.
cs: IO port probe 0x0a00-0x0aff: clean.
cs: IO port probe 0x0c00-0x0cff: clean.
eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr 00:40:F4:2A:84:71
eth0: no IPv6 routers present
inserting floppy driver for 2.4.20-gentoo-r6
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
eth0: no IPv6 routers present
hub.c: new USB device 00:02.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x54c/0x10) is not claimed by any active driver.
uhci.c: fca0: host controller halted. very bad
usb.c: USB disconnect on device 00:02.2-1 address 2
hub.c: new USB device 00:02.2-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x54c/0x10) is not claimed by any active driver.
usb-uhci.c: $Revision: 1.275 $ time 05:51:41 Mar  4 2004
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: USB disconnect on device 00:02.2-1 address 3
usb-uhci.c: $Revision: 1.275 $ time 05:51:41 Mar  4 2004
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver


Mmm... I can see it failed to detect a SCSI card so that's something I need to investigate.

If anyone can offer any other suggestions I'd be grateful.
Back to top
View user's profile Send private message
umk
n00b
n00b


Joined: 18 Mar 2004
Posts: 6

PostPosted: Sun Apr 18, 2004 1:55 pm    Post subject: panasonic camera and 2.6 kernel....usb-storage not working Reply with quote

there's a few of us having problems with panasonic cameras and usb-storage under 2.6 kernels. forum thread here.
basically, we've tried with both devfs and udev, under a few different kernels, with always similar results. the device is identified and the modules are loaded, /dev/sda1 and all that is created (under udev i even have it create /dev/camera for me). However, when we try to mount it, it tells says:
Code:
root # mount /dev/sda1 /mnt/photo/
 mount: No medium found

anyone else have a similar problem? any solutions/ideas? i have never had a problem using the camera in linux before, under 2.4 kernels. i don't want to downgrade though...that'd be too defeatist for me :wink:
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Sun Apr 18, 2004 9:04 pm    Post subject: Reply with quote

Try using the -t parameter to mount to specify expected filesystem type. E.g. mount -t vfat ... for fat32 filesystems.
Back to top
View user's profile Send private message
umk
n00b
n00b


Joined: 18 Mar 2004
Posts: 6

PostPosted: Tue Apr 20, 2004 12:17 am    Post subject: mount -t Reply with quote

oh, i have tried both mount -t auto and -t vfat, among other things, it all returns the same error
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Tue Apr 20, 2004 8:06 am    Post subject: Re: panasonic camera and 2.6 kernel....usb-storage not worki Reply with quote

umk wrote:
there's a few of us having problems with panasonic cameras and usb-storage under 2.6 kernels. forum thread here.
basically, we've tried with both devfs and udev, under a few different kernels, with always similar results. the device is identified and the modules are loaded, /dev/sda1 and all that is created (under udev i even have it create /dev/camera for me). However, when we try to mount it, it tells says:
Code:
root # mount /dev/sda1 /mnt/photo/
 mount: No medium found

anyone else have a similar problem? any solutions/ideas? i have never had a problem using the camera in linux before, under 2.4 kernels. i don't want to downgrade though...that'd be too defeatist for me :wink:


Please check: are you experiencing this ?
Back to top
View user's profile Send private message
Sengoku
n00b
n00b


Joined: 12 Jan 2004
Posts: 24

PostPosted: Tue Apr 20, 2004 8:39 pm    Post subject: Reply with quote

I'm using a USB card reader and I tend to leave it plugged in, most of the time it doesn't have a card in it. This poses a problem which I have a nasty hack for.

Being plugged in without a card gives me a device, /dev/sda but when I put a card in this is not refreshed, I have to issue
Code:
hdparm -z /dev/sda

before the device /dev/sda1 will appear.

My hack is to put a command into the root crontab to issue the hdparm command every minute. This also works for my Zip drive on a different scsi device. My problem is that this seems extraordinarily messy and I think there should be a cleaner way of refreshing the device but I have no idea how.

Any ideas on how to do this in a cleaner fashion? I've tried sending a SIGHUP to devfsd but this achieves nothing.
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Tue Apr 20, 2004 8:45 pm    Post subject: Reply with quote

I do something similiar as i am in the same situations. I installed the usb_storage as a module and just remove and add it when I put a card in. Does the trick for me. :P

thought I will have to try the hdparm thing, it is easier to use one comman then two.

Unless you remove and use the media a lot, do you really need crontab checking that every minute. Why not just just run the command when you need to?
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Sengoku
n00b
n00b


Joined: 12 Jan 2004
Posts: 24

PostPosted: Tue Apr 20, 2004 8:51 pm    Post subject: Reply with quote

The main reason I use the cron job is because I don't want to have to log into the root account every time I want to access a zip disk or the memory card on my system. I don't know if this can be changed but a normal user doesn't have the permissions to refresh the /dev/sda device. I've given normal users access to hdparm but to refresh in /dev? I know not how....
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Tue Apr 20, 2004 9:05 pm    Post subject: Reply with quote

look into sudo:P

you can set it up so that for certain users it doesn't require a password to run commands.

Code:
sudo /sbin/hdparm -z /dev/sda1

_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Sengoku
n00b
n00b


Joined: 12 Jan 2004
Posts: 24

PostPosted: Tue Apr 20, 2004 9:30 pm    Post subject: Reply with quote

Cool, that makes it a good bit easier and now I should be able to mount the devices using one command line.

Code:
sudo /sbin/hdparm -z /dev/sda && mount /mnt/xD


Thanks for that, just what I was looking for.
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Wed Apr 21, 2004 2:11 am    Post subject: Reply with quote

Surely this is what hotplug and even udev is designed to help with?
Back to top
View user's profile Send private message
Sengoku
n00b
n00b


Joined: 12 Jan 2004
Posts: 24

PostPosted: Wed Apr 21, 2004 8:14 am    Post subject: Reply with quote

I'm pretty sure hotplug is working in this situation, if I unplug the card reader and plug it back in with a card inserted then the device and relevant partition number will show up. But this isn't what I want to have to do, I want the device left connected permanently and be able to insert a memory card and have the new partition magically appear.

Is this one of the benefits of udev over devfs?
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Wed Apr 21, 2004 1:36 pm    Post subject: Reply with quote

Correct,if the card reader isn't plugged in, then you put the flash card in the reader and then plug the reader, hotplugged loads teh modules and creates the proper mount points for you to mount.


but if you remove the card and leave the card reader hooked up to the machine, next time you put the card in, it doesn't re-create the mount point (/dev/sda1), So you either of the re-load the modules by hand, use the hdparm -z, or unplug the card reader and plug it back it.

The hotplug doesn't monitor to see if there is a card in the reader or not like windows does, maybe one day it will.
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
doodle
n00b
n00b


Joined: 28 May 2003
Posts: 5
Location: Skanderborg, Denmark

PostPosted: Wed Apr 21, 2004 4:38 pm    Post subject: Reply with quote

Sengoku wrote:
I'm pretty sure hotplug is working in this situation, if I unplug the card reader and plug it back in with a card inserted then the device and relevant partition number will show up. But this isn't what I want to have to do, I want the device left connected permanently and be able to insert a memory card and have the new partition magically appear.


YESSS! I was getting desparate - I thought I was the only one with this problem. Like you I want to leave the card reader on and then just have a (freshly) inserted card mounted. I have come up with a solution that uses devfs(d). This is how it works:

1) Insert these lines in /etc/devfsd.conf:
Code:
# Try to mount detect partitions in cards in USB card reader
LOOKUP          ^sda1            EXECUTE /bin/rattle_flash sda
LOOKUP          ^sdb1            EXECUTE /bin/rattle_flash sdb
LOOKUP          ^sdc1            EXECUTE /bin/rattle_flash sdc


They make devfs(d) call a small script whenever someone tries to use (e.g. mount) a partition on one of the USB "drives" in my 7-in-1 flash reader - but only if the device nodes do not exist.

2) Create this small script (I placed it in /bin/rattle_flash):
Code:
#!/bin/bash
#
# This small script "rattles" an USB card reader
# to see if we can detect the presence of a card.

# We need an argument that tells us which device (i.e. slot)
# we need to rattle.
if [ "$#" -ne 1 ]
then
  exit 
fi

# Find out which device/slot we should rattle
case "$1" in
  sda* )
     mount /dev/sda /mnt/flash_sm &> /dev/null
  ;;

  sdb* )
     mount /dev/sdb /mnt/flash_ms_sd &> /dev/null
  ;;

  sdc* )
     mount /dev/sdc /mnt/flash_cf &> /dev/null
  ;;

esac


The script is fairly simple. It takes a single argument (the name of the USB pseudo drive we are trying to mount). It then tries to mount the entire drive. That fails since it does not make sense, but it has the same effect as the previously suggested hdparm/module-unload-load tricks: if a card has been inserted in the reader, it is detected and the appropriate /dev/sdXY is created.

The net result is this: I can now always try to do a blind mount of the cards in the reader. Even if no /dev/sdXY exists, it is created on the fly and the mount succeeds. I use a "device" on my KDE desktop that represents the CF-slot in the reader and now I can always just click it - if a card is present it will be mounted and Konqi opens up and shows the contents.

The "flash_rattle" script just needs to be executable by root - so once it is in place, all users (depending on your fstab) can mount the flash cards. All in all, no mucking with root permissions or unload-reload modules.

On a smallish note, I have of course also created appropriate entries in /etc/fstab:
Code:
# Entries for flash reader
/dev/sda1   /mnt/flash_sm      vfat   noauto,user   0 0
/dev/sdb1   /mnt/flash_ms_sd   vfat   noauto,user   0 0
/dev/sdc1   /mnt/flash_cf      vfat   noauto,user   0 0

I keep separate mount point for the various card types/slot in the reader, but to each his/her own.
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Wed Apr 21, 2004 8:00 pm    Post subject: Reply with quote

sweet script. I will have to read more about it (I like to understand what I am doing and not just doing stuff :P) and check that out when i get home.
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
lightcycle
n00b
n00b


Joined: 16 Jul 2003
Posts: 24
Location: Sweden

PostPosted: Thu May 06, 2004 9:19 pm    Post subject: Reply with quote

Thank you very much doodle! I recently bought an internal card-reader and found it very annoying to have to su to root to be able to mount a card, but your script solved the problem. Great Idea!
_________________
Screw shareholder's value
Back to top
View user's profile Send private message
kung.foo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 99

PostPosted: Tue Jun 01, 2004 9:42 am    Post subject: Reply with quote

Has anyone got a concrete tutorial how to get this one running under 2.6.6?? I ran through the tut here, but i didn't help me. When i plug in my player dmesg changes to:

Edit: The device i want to run is an iRiver IHP-120!

Code:
usb 1-4: new high speed USB device using address 2
usb 1-4: device not accepting address 2, error -71
usb 1-4: new high speed USB device using address 3
usb 1-4: device not accepting address 3, error -71
usb 1-4: new high speed USB device using address 4
usb 1-4: device not accepting address 4, error -71
usb 1-4: new high speed USB device using address 5
usb 1-4: device not accepting address 5, error -71
usb 1-4: new high speed USB device using address 6
usb 1-4: device not accepting address 6, error -71
usb 1-4: new high speed USB device using address 7
usb 1-4: device not accepting address 7, error -71
usb 1-4: new high speed USB device using address 8
usb 1-4: device not accepting address 8, error -71
usb 1-4: new high speed USB device using address 9
usb 1-4: device not accepting address 9, error -71
usb 1-4: new high speed USB device using address 10
usb 1-4: device not accepting address 10, error -71
usb 1-4: new high speed USB device using address 11
usb 1-4: device not accepting address 11, error -71
usb 1-4: new high speed USB device using address 12
usb 1-4: device not accepting address 12, error -71

Does anyone have any ideas about how to chage this??

Edit: Today i tried a friend of mine's usb 1.1 memory stick, this device strangely just works nicely. Seems like uhci-hcd is bork...
Back to top
View user's profile Send private message
stty0
n00b
n00b


Joined: 26 Feb 2004
Posts: 15

PostPosted: Wed Jun 09, 2004 6:29 pm    Post subject: Having problems with USB drive mounting Reply with quote

I followed the instructions in this thread, my usb i-stick 256MB worked perfectly, using mount -t auto /dev/sda /mnt/usbflash

Today, I changed my ps/2 mouse for a microsoft usb mouse, again, no problems at all.

Now, when i try to mount the usb drive, i get:

mount: you must specify the filesystem type

checking dmesg, i see:

FAT: bogus logical sector size 20487
VFS: can't find valid FAT filesystem on dev 08:00


The drive works fine in windows, i can see the files on it. As I say, yesterday, i could mount and see those files in gentoo as well. help anyone?
Back to top
View user's profile Send private message
Jazz
Guru
Guru


Joined: 16 Nov 2003
Posts: 543
Location: Melbourne, Australia

PostPosted: Thu Jun 10, 2004 3:08 pm    Post subject: Reply with quote

Umm , i get my usb mounting properly.. but when i unmount it, the power led still glows ! whereas in windows it used to turn off after i undocked it..

Can this be done in linux ? is it even safe to pull out the stick still while the power led is glowing ?

BYe,
Jazz
_________________
In 2010, M$ Windows will be a quantum processing emulation layer for a 128-bit mod of a 64-bit hack of a 32-bit patch to a 16-bit GUI for an 8-bit operating system written for a 4-bit processor from a 2-bit company that can't stand 1 bit of competition.
Back to top
View user's profile Send private message
kung.foo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Dec 2003
Posts: 99

PostPosted: Thu Jun 10, 2004 8:23 pm    Post subject: Reply with quote

jassi wrote:

Can this be done in linux ? is it even safe to pull out the stick still while the power led is glowing ?


I do not exactly know, if it is possible to get the LED fixed. But I think it should do no harm to unplug the stick, if you have properly unmounted it (perhaps the device was busy??). Sometimes my player does also "think" it is still connected, even if it is already unmounted.
Back to top
View user's profile Send private message
sceptreofjudah
n00b
n00b


Joined: 13 May 2004
Posts: 24
Location: Longview, WA, USA

PostPosted: Fri Jun 18, 2004 6:43 am    Post subject: USB and P4V533 Motherboard with 2.6.5 Reply with quote

I finally got my USB stuff working. The info here really helped, but it was a little unusual, I guess because the motherboard has 3 USB hubs. The following fstab entries worked:

#Iomega Zip Drive:
/dev/sda4 /mnt/zip auto noauto,user 0 0

#Lexar Jump Drive:
/dev/sdb1 /mnt/jumpdrive vfat noauto,user,umask=077 0 0

#Dazzle SmartMedia reader
/dev/sdc1 /mnt/smartmedia auto noauto,user 0 0

the real trick was learning that the /dev/sd* devices would be generated by the kernel whenever the physical devices were there. It was a game of musical chairs trying to "guess" what device to mount without being able to look. The key hangup was most of the discussion posts mention /dev/sda1 and my devices were not that at all. (I am a noob so no laughing)
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Fri Jun 18, 2004 11:41 am    Post subject: Reply with quote

This is where udev can come in handy, since you can have the system create named devices, or symlinks, so that /dev/myusbdevice always points to the correct /dev/sd?? node for the specified device. Very useful when you have multiple devices on the same bus (e.g. USB).
Back to top
View user's profile Send private message
ssaguiar
n00b
n00b


Joined: 18 Jun 2004
Posts: 1
Location: Florianopolis - Brazil

PostPosted: Sat Jun 19, 2004 2:22 am    Post subject: Re: HOWTO USB Mass Storage Device and Gentoo :D Reply with quote

pjp wrote:
Overall, pretty good. I had a couple of issues.

Instead of usb-uhci, I had to use usb-ohci (found near usb-uhci). Also, I had to include "SCSI support --->", "SCSI disk supprt" which provides the module "sd_mod.o". I thought I already had this included, so it took me a few minutes to realize the problem.

Also, I recommend anyone not familiar with these devices to be patient waiting for data to finish writing. I copied some files over that appeared to be finished before the LED started flashing. The LED then flashed for a while, and finally stopped. For whatever reason, the writing seems to be delayed.



I experimented the same problem. Just issue a sync command (if in console mode), after you write the data to the device, and the system will write the buffer contents to the device (the pendrive) immediately. :wink:
Back to top
View user's profile Send private message
sceptreofjudah
n00b
n00b


Joined: 13 May 2004
Posts: 24
Location: Longview, WA, USA

PostPosted: Sat Jun 19, 2004 11:03 pm    Post subject: udev rules Reply with quote

Thanks for the tip about udev. After futher googling I found this site which succintly describes how to use it. The seventeen year-old fellow who wrote this did an excellent job.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 6 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum