2.5" USB hardrivedrive problem

From: qoska kotfare (seditaniedi_at_gmail.com)
Date: 06/28/05

  • Next message: Fred Gilham: "Weird problem with devstat interface"
    Date: Tue, 28 Jun 2005 19:26:25 +0200
    To: freebsd-current@freebsd.org
    
    

    Hello there!
    My question is about external 2.5" USB harddisk i seem to not get it
    recognized by FreeBSD and i am hoping to get a solution :)
    The case has inside a TOSHIBA MK3017GAP 30Gb drive
    I tried modifying some quirks on /usr/src/sys/cam/scsi/scsi_da.c and
    the same problem again. Ah forgott the error messages are at the end
    of the dmesg output regardingg umass0 !!!
    /* dmesg output

    Copyright (c) 1992-2005 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
            The Regents of the University of California. All rights reserved.
    FreeBSD 6.0-CURRENT #7: Mon Jun 27 17:42:27 CEST 2005
        ermali@qoska:/usr/obj/usr/src/sys/QOSKA
    ACPI APIC Table: <ASUS P4SDX >
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2000.15-MHz 686-class CPU)
      Origin = "GenuineIntel" Id = 0xf27 Stepping = 7
      Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
      Features2=0x4400<CNTX-ID,<b14>>
    real memory = 1073725440 (1023 MB)
    avail memory = 1037602816 (989 MB)
    ioapic0 <Version 8.0> irqs 0-23 on motherboard
    netsmb_dev: loaded
    acpi0: <ASUS P4SDX> on motherboard
    acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 20
    acpi0: Power Button (fixed)
    pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
    pci_link1: <ACPI PCI Link LNKB> on acpi0
    pci_link2: <ACPI PCI Link LNKC> irq 10 on acpi0
    pci_link3: <ACPI PCI Link LNKD> irq 3 on acpi0
    pci_link4: <ACPI PCI Link LNKE> irq 5 on acpi0
    pci_link5: <ACPI PCI Link LNKF> irq 9 on acpi0
    pci_link6: <ACPI PCI Link LNKG> on acpi0
    pci_link7: <ACPI PCI Link LNKH> irq 9 on acpi0
    Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
    cpu0: <ACPI CPU> on acpi0
    p4tcc0: <CPU Frequency Thermal Control> on cpu0
    acpi_button0: <Power Button> on acpi0
    pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
    pci0: <ACPI PCI bus> on pcib0
    agp0: <SiS 655 host to AGP bridge> mem 0xe8000000-0xebffffff at device
    0.0 on pci0
    pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
    pci1: <ACPI PCI bus> on pcib1
    nvidia0: <GeForce4 MX 440 with AGP8X> mem
    0xe7000000-0xe7ffffff,0xf0000000-0xf7ffffff irq 16 at device 0.0 on
    pci1
    nvidia0: [GIANT-LOCKED]
    isab0: <PCI-ISA bridge> at device 2.0 on pci0
    isa0: <ISA bus> on isab0
    atapci0: <SiS 963 UDMA133 controller> port
    0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xb400-0xb40f irq 16 at device 2.5
    on pci0
    ata0: <ATA channel 0> on atapci0
    ata1: <ATA channel 1> on atapci0
    pcm0: <SiS 7012> port 0xa400-0xa4ff,0xa000-0xa07f irq 18 at device 2.7 on pci0
    pcm0: [GIANT-LOCKED]
    pcm0: <Analog Devices AD1980 AC97 Codec>
    ohci0: <SiS 5571 USB controller> mem 0xe6800000-0xe6800fff irq 20 at
    device 3.0 on pci0
    ohci0: [GIANT-LOCKED]
    usb0: OHCI version 1.0, legacy support
    usb0: <SiS 5571 USB controller> on ohci0
    usb0: USB revision 1.0
    uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 3 ports with 3 removable, self powered
    ohci1: <SiS 5571 USB controller> mem 0xe6000000-0xe6000fff irq 21 at
    device 3.1 on pci0
    ohci1: [GIANT-LOCKED]
    usb1: OHCI version 1.0, legacy support
    usb1: <SiS 5571 USB controller> on ohci1
    usb1: USB revision 1.0
    uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 3 ports with 3 removable, self powered
    ehci0: <EHCI (generic) USB 2.0 controller> mem 0xe5800000-0xe5800fff
    irq 23 at device 3.3 on pci0
    ehci0: [GIANT-LOCKED]
    usb2: EHCI version 1.0
    usb2: companion controllers, 3 ports each: usb0 usb1
    usb2: <EHCI (generic) USB 2.0 controller> on ehci0
    usb2: USB revision 2.0
    uhub2: SiS EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub2: 6 ports with 6 removable, self powered
    sis0: <SiS 900 10/100BaseTX> port 0x9800-0x98ff mem
    0xe5000000-0xe5000fff irq 19 at device 4.0 on pci0
    miibus0: <Mrlphy0: <RTL8201L 10/100 media interface> on miibus0
    rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    sis0: Ethernet address: 00:0c:6e:d3:9b:a0
    rl0: <RealTek 8139 10/100BaseTX> port 0x9400-0x94ff mem
    0xe4800000-0xe48000ff irq 18 at device 10.0 on pci0
    miibus1: <MII bus> on rl0
    rlphy1: <RealTek internal media interface> on miibus1
    rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    rl0: Ethernet address: 00:06:4f:09:8b:62
    fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
    fdc0: [FAST]
    fd0: <1440-KB 3.5" drive> on fdc0 drive 0
    ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77b irq 7
    drq 3 on acpi0
    ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
    ppc0: FIFO with 16/16/9 bytes threshold
    ppbus0: <Parallel port bus> on ppc0
    plip0: <PLIP network interface> on ppbus0
    lpt0: <Printer> on ppbus0
    lpt0: Interrupt-driven port
    ppi0: <Parallel I/O> on ppbus0
    sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
    sio0: type 16550A
    atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
    atkbd0: <AT Keyboard> irq 1 on atkbdc0
    kbd0 at atkbd0
    atkbd0: [GIANT-LOCKED]
    psm0: <PS/2 Mouse> irq 12 on atkbdc0
    psm0: [GIANT-LOCKED]
    psm0: model IntelliMouse, device ID 3
    npx0: [FAST]
    npx0: <math processor> on motherboard
    npx0: INT 16 interface
    pmtimer0 on isa0
    orm0: <ISA Option ROM> at iomem 0xc0000-0xcefff on isa0
    sc0: <System console> at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x300>
    sio1: configured irq 3 not in bitmap of probed irqs 0
    sio1: port may not be enabled
    vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    umass0: ScanLogic USBIDE ScanLogic USBIDE, rev 1.10/2.60, addr 2
    Timecounter "TSC" frequency 2000152380 Hz quality 800
    Timecounters tick every 1.000 msec
    Fast IPsec: Initialized Security Association Processing.
    ad0: 39205MB <Maxtor 6E040L0 NAR61590> at ata0-master UDMA133
    ad1: 78167MB <Maxtor 6Y080L0 YAR41BW0> at ata0-slave UDMA133
    acd0: CDRW <HL-DT-ST GCE-8523B/1.01> at ata1-master UDMA33
    umass0: Invalid CSW: tag 80 should be 1
    ATA PseudoRAID loaded
    cd0 at ata1 bus 0 target 0 lun 0
    cd0: <HL-DT-ST CD-RW GCE-8523B 1.01> Removable CD-ROM SCSI-0 device
    cd0: 33.000MB/s transfers
    cd0: Attempt to query device size failed: NOT READY, Medium not
    present - tray closed
    umass0: Invalid CSW: tag 524632 should be 2
    umass0: Invalid CSW: tag 524632 should be 3
    umass0: Invalid CSW: tag 524632 should be 4
    umass0: Invalid CSW: tag 524632 should be 5
    umass0: Invalid CSW: tag 524632 should be 6
    (da0:umass-sim0:0:0:0): got CAM status 0x4
    (da0:umass-sim0:0:0:0): fatal error, failed to attach to device
    (da0:umass-sim0:0:0:0): lost device
    umass0: Invalid CSW: tag 524632 should be 7
    umass0: Invalid CSW: tag 524632 should be 8
    umass0: Invalid CSW: tag 524632 should be 9
    umass0: Invalid CSW: tag 524632 should be 10
    umass0: Invalid CSW: tag 524632 should be 11
    (da0:umass-sim0:0:0:0): removing device entry
    Opened disk da0 -> 5
    Trying to mount root from ufs:/dev/ad0s3a
    sis0: link state changed to DOWN
    sis0: link state changed to UP
    Accounting enabled
    end dmesg output */

    I am attaching even my kernel config file just in case.
    U can tell me if i have to give any other information.
    Thanks in advance!

    /* kernel config file

    machine i386
    cpu I686_CPU
    ident QOSKA

    # To statically compile in device wiring instead of /boot/device.hints
    #hints "GENERIC.hints" # Default places to look for devices.

    makeoptions COPTFLAGS=" -O -pipe"

    options SCHED_4BSD # 4BSD scheduler
    options INET # InterNETworking
    #options INET6
    options FFS # Berkeley Fast Filesystem
    options SOFTUPDATES # Enable FFS soft updates support
    options UFS_ACL # Support for access control lists
    options UFS_DIRHASH # Improve performance on big directories
    options MD_ROOT # MD is a potential root device
    options MSDOSFS # MSDOS Filesystem
    options CD9660 # ISO 9660 Filesystem
    options PROCFS # Process filesystem (requires PSEUDOFS)
    options PSEUDOFS # Pseudo-filesystem framework
    options GEOM_GPT # GUID Partition Tables.
    options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
    options COMPAT_FREEBSD4 # Compatible with FreeBSD4
    options COMPAT_LINUX
    options SCSI_DELAY=15000 # Delay (in ms) before probing SCSI
    options KTRACE # ktrace(1) support
    options SYSVSHM # SYSV-style shared memory
    options SYSVMSG # SYSV-style message queues
    options SYSVSEM # SYSV-style semaphores
    options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
    extensions
    options KBD_INSTALL_CDEV # install a CDEV entry in /dev
    options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
                                            # output. Adds ~128k to driver.
    options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
                                            # output. Adds ~215k to driver.

    options ADAPTIVE_GIANT # Giant mutex is adaptive.
    #options NET_WITH_GIANT
    options PREEMPTION
    #options FULL_PREEMPTION

    options ALTQ
    options ALTQ_CBQ
    options ALTQ_RED
    options ALTQ_RIO
    options ALTQ_HFSC
    options ALTQ_CDNR
    options ALTQ_PRIQ
    #options ALTQ_NOPCC #for SMP build

    options BRIDGE

    device pf
    device pflog
    device pfsync
    options TCP_DROP_SYNFIN
    options ZERO_COPY_SOCKETS
    #options VFS_AIO
    options DEVICE_POLLING
    options HZ=1000

    #options IPFILTER
    #options IPFILTER_LOG

    options IPSTEALTH
    options NETGRAPH
    options NETSMB
    options NETSMBCRYPTO
    options LIBMCHAIN
    options LIBICONV
    options SMBFS

    #options IPSEC
    #options IPSEC_ESP
    options FAST_IPSEC

    #options SMP
    device apic # I/O APIC

    # Bus support. Do not remove isa, even if you have no isa slots
    device isa
    device eisa
    device pci

    device crypto
    device acpi
    device mem
    device cpufreq

    # Floppy drives
    device fdc

    # ATA and ATAPI devices
    device ata
    device atadisk # ATA disk drives
    device ataraid # ATA RAID drives
    device atapicd # ATAPI CDROM drives
    device atapifd # ATAPI floppy drives
    device atapist # ATAPI tape drives
    options ATA_STATIC_ID # Static device numbering
    device atapicam
    device scbus
    device da
    device cd
    device pass
    device md

    # atkbdc0 controls both the keyboard and the PS/2 mouse
    device atkbdc # AT keyboard controller
    device atkbd # AT keyboard
    device psm # PS/2 mouse

    device vga # VGA video card driver

    device splash # Splash screen and screen saver support

    # syscons is the default console driver, resembling an SCO console
    device sc
    options VESA
    # Enable this for the pcvt (VT220 compatible) console driver
    #device vt
    #options XSERVER # support for X server on a vt console
    #options FAT_CURSOR # start with block cursor

    device agp # support several AGP chipsets

    # Floating point support - do not disable.
    device npx

    # Power management support (see NOTES for more options)
    #device apm
    # Add suspend/resume support for the i8254.
    device pmtimer

    # Serial (COM) ports
    device sio # 8250, 16[45]50 based serial ports

    # Parallel port
    device ppc
    device ppbus # Parallel port bus (required)
    device lpt # Printer
    device plip # TCP/IP over parallel
    device ppi # Parallel port interface device
    #device vpo # Requires scbus and da

    # PCI Ethernet NICs.
    device miibus # MII bus support
    device rl # RealTek 8129/8139
    device sis # Silicon Integrated Systems SiS 900/SiS 7016

    # Wireless NIC cards
    device wlan # 802.11 support
    device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs.

    # Pseudo devices.
    device loop # Network loopback
    device mem # Memory and kernel memory devices
    device io # I/O device
    device random # Entropy device
    device ether # Ethernet support
    device sl # Kernel SLIP
    device ppp # Kernel PPP
    device tun # Packet tunnel.
    device pty # Pseudo-ttys (telnet etc)
    device md # Memory "disks"
    device gif # IPv6 and IPv4 tunneling
    device faith # IPv6-to-IPv4 relaying (translation)

    # The `bpf' device enables the Berkeley Packet Filter.
    # Be aware of the administrative consequences of enabling this!
    device bpf # Berkeley packet filter

    # USB support
    device uhci # UHCI PCI->USB interface
    device ohci # OHCI PCI->USB interface
    device ehci
    device usb # USB Bus (required)
    device udbp # USB Double Bulk Pipe devices
    device ugen # Generic
    device uhid # "Human Interface Devices"
    device ukbd # Keyboard
    device ulpt # Printer
    device umass # Disks/Mass storage - Requires scbus and da
    device ums # Mouse
    device urio # Diamond Rio 500 MP3 player
    device uscanner # Scanners

    device sound
    device snd_ich

    options SC_ALT_MOUSE_IMAGE
    options SC_HISTORY_SIZE=1000
    options SC_PIXEL_MODE
    options SC_NORM_ATTR=(FG_GREEN|BG_BLACK)
    options SC_NORM_REV_ATTR=(FG_BLACK|BG_GREEN)
    options SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK)
    options SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED)

    end kernel config file */
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Fred Gilham: "Weird problem with devstat interface"