LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   External USB BACKPACK CD-ReWriter problem... (https://www.linuxquestions.org/questions/linux-hardware-18/external-usb-backpack-cd-rewriter-problem-212360/)

perry 08-01-2004 11:48 PM

External USB BACKPACK CD-ReWriter problem... (Solved!)
 
well, i had this working under mandrake 9.1 one time, i was able to read & burn cd's. now i'm using slackware 10.0 with the 2.4.26 kernal. and i downloaded and ran the stuff from microsolutions and seem to have a little bit of luck. here's the diagnostics so far:

Backpack Hotplug support

Code:

root@slackware:/home/perry/projects/bpck-usb-firmware-1.1# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 001 Device 009: ID 0d49:3000 Maxtor
Bus 001 Device 010: ID 0ac9:0000 Micro Solutions, Inc. BackPack CD-ReWriter
Bus 001 Device 012: ID 2632:0001 TwinMOS
Bus 001 Device 011: ID 04b8:0005 Seiko Epson Corp. Stylus Printer

an attempt to mount either /dev/scd0 or /dev/scd1 gives the following:

Code:

root@slackware:/home/perry# mount /mnt/backpack
mount: special device /dev/sdc0 does not exist
root@slackware:/home/perry# mount /mnt/backpack
mount: /dev/sdc1 is not a valid block device

so you see, the lsusb utility detects the presence of the BackPack device, however thats about as far as it goes. other utilities show dianostics on other devices:

Code:

root@slackware:/home/perry/projects/bpck-usb-firmware-1.1# cat /proc/scsi/usb-storage-0/1
  Host scsi1: usb-storage
      Vendor: Maxtor
      Product: Maxtor USB Drive
Serial Number: 1200E000022206767
    Protocol: Transparent SCSI
    Transport: Bulk
        GUID: 0d493000200e000022206767
    Attached: Yes
root@slackware:/home/perry/projects/bpck-usb-firmware-1.1# cat /proc/scsi/usb-storage-1/2
  Host scsi2: usb-storage
      Vendor: CanonUSA
      Product: Photo Card RW
Serial Number: CANU60000091
    Protocol: Transparent SCSI
    Transport: Bulk
        GUID: 263200010000cb7e60000091
    Attached: Yes

and this:

Code:

root@slackware:/home/perry/projects/bpck-usb-firmware-1.1# cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: MAXTOR 4 Model: K040H2          Rev: A08.
  Type:  Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: CanonUSA Model: Photo Card RW  1 Rev: 0001
  Type:  Direct-Access                    ANSI SCSI revision: 02

now my fstab is setup as such:

Code:

/dev/hda6        swap            swap        defaults        0  0
#/dev/hda8        /tmp            ext2        defaults        1  2
tmpfs            /tmp                  tmpfs              auto,rw
tmpfs            /home/guest      tmpfs              auto,rw
/dev/hda5        /                reiserfs    defaults        1  1
/dev/hda10      /opt            reiserfs    defaults        1  2
/dev/hda11      /var/www        ext2        defaults        1  2
/dev/hda7        /usr            reiserfs    defaults        1  2
/dev/hda9        /home            ext2        defaults        1  2
/dev/hda2        /mnt/windows    vfat        noauto,users    1  0
/dev/sda1        /mnt/maxtor      vfat        noauto,users    1  0
/dev/sdb1        /mnt/flashcard  vfat        noauto,users    1  0
/dev/cdrom      /mnt/cdrom      iso9660    users,noauto,ro  0  0
/dev/sdc1        /mnt/backpack    iso9660    users,noauto,rw  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0

cdrecord --scanbus sees the others

Code:

root@slackware:/home/perry/projects/bpck-usb-firmware-1.1# cdrecord --scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus1:
        1,0,0  100) 'MAXTOR 4' 'K040H2          ' 'A08.' Disk
        1,1,0  101) *
        1,2,0  102) *
        1,3,0  103) *
        1,4,0  104) *
        1,5,0  105) *
        1,6,0  106) *
        1,7,0  107) *
scsibus2:
        2,0,0  200) 'CanonUSA' 'Photo Card RW  1' '0001' Removable Disk
        2,1,0  201) *
        2,2,0  202) *
        2,3,0  203) *
        2,4,0  204) *
        2,5,0  205) *
        2,6,0  206) *
        2,7,0  207) *

lsmod (whatever this does):

Code:

Module                  Size  Used by    Not tainted
parport_pc            14788  0
bpck                  10796  0
paride                  3680  1  [bpck]
parport                23336  0  [parport_pc paride]
snd-pcm-oss            37736  1
snd-mixer-oss          12504  3  [snd-pcm-oss]
printer                7744  0
usb-storage            66176  0
uhci                  24444  0  (unused)
usbcore                59308  1  [printer usb-storage uhci]
snd-es1968            14788  5
gameport                1420  0  [snd-es1968]
snd-pcm                56072  0  [snd-pcm-oss snd-es1968]
snd-timer              13604  0  [snd-pcm]
snd-page-alloc          6328  0  [snd-es1968 snd-pcm]
snd-ac97-codec        49500  0  [snd-es1968]
snd-mpu401-uart        3200  0  [snd-es1968]
snd-rawmidi            12740  0  [snd-mpu401-uart]
snd-seq-device          3888  0  [snd-rawmidi]
snd                    30852  1  [snd-pcm-oss snd-mixer-oss snd-es1968 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore              3396  5  [snd]
ipt_TOS                  984  34  (autoclean)
ipt_LOG                3416  47  (autoclean)
ipt_TCPMSS              2360  2  (autoclean)
iptable_nat            15438  0  (autoclean) (unused)
ipt_tos                  440  0  (unused)
iptable_mangle          2072  1
ipt_tcpmss              792  0  (unused)
ipt_mac                  600  0  (unused)
iptable_filter          1644  1
ipt_multiport            664  0  (unused)
ip_conntrack_ftp        3888  0  (unused)
ipt_state                504  12
ip_conntrack          19236  1  [iptable_nat ip_conntrack_ftp ipt_state]
ipt_limit                856  50
ip_tables              12416  14  [ipt_TOS ipt_LOG ipt_TCPMSS iptable_nat ipt_tos iptable_mangle ipt_tcpmss ipt_mac iptable_filter ipt_multiport ipt_state ipt_limit]
serial_cs              4756  0  (unused)
xirc2ps_cs            12496  1
ds                      6548  2  [serial_cs xirc2ps_cs]
yenta_socket          10336  2
pcmcia_core            39972  0  [serial_cs xirc2ps_cs ds yenta_socket]
ide-scsi                9328  0
agpgart                43940  0  (unused)

so, i'm all ears! seems like a simple process for someone who has been there and as i said, it worked before with mandrake 9.1 albeit with a later version of hotplug that caused minor problems in other areas...

so i don't know

- perry

dmesg output following should that be useful to anyone!

Code:

Linux version 2.4.26 (root@tree) (gcc version 3.3.4) #8 Mon Jun 14 19:09:31 PDT 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000ea000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001ffffc00 (ACPI data)
 BIOS-e820: 000000001ffffc00 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Dell Inspiron 7500 machine detected. Disabling APM idle calls.
ACPI: RSDP (v000 DELL                                      ) @ 0x000f72e0
ACPI: RSDT (v001 DELL    I 7500  0x06040000  LTP 0x00000000) @ 0x1fffafa6
ACPI: FADT (v001 DELL    I 7500  0x06040000 PTL  0x00000001) @ 0x1ffffb65
ACPI: BOOT (v001 PTLTD  $SBFTBL$ 0x06040000  LTP 0x00000001) @ 0x1ffffbd9
ACPI: DSDT (v001 DELL    I 7500  0x06040000 MSFT 0x0100000b) @ 0x00000000
Kernel command line: BOOT_IMAGE=slackware_acpi ro root=305 acpi=force
Initializing CPU#0
Detected 501.141 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 999.42 BogoMIPS
Memory: 515128k/524224k available (1975k kernel code, 8708k reserved, 661k data, 128k 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: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU:    After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU:            Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20040326
PCI: PCI BIOS revision 2.10 entry at 0xfd9ae, last bus=1
PCI: Using configuration type 1
ACPI: IRQ9 SCI: Edge set to Level Trigger.
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 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 5 7)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 9 10 11 14 15)
ACPI: Embedded Controller [EC0] (gpe 9)
schedule_task(): keventd has not started
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: Power Resource [PFN0] (off)
ACPI: Power Resource [PFN1] (off)
PCI: Probing PCI hardware
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 5
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
PCI: Cannot allocate resource region 4 of device 00:07.1
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
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Battery Slot [BAT1] (battery absent)
ACPI: Lid Switch [LID]
ACPI: Power Button (CM) [PWRB]
ACPI: Sleep Button (CM) [SBTN]
ACPI: Fan [FAN0] (on)
ACPI: Fan [FAN1] (on)
ACPI: Processor [CPU0] (supports C1 C2, 8 throttling states)
ACPI: Thermal Zone [THRM] (69 C)
vesafb: framebuffer at 0xfd000000, mapped to 0xe0818000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=4
vesafb: protected mode interface info at c000:506a
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10f
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K 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
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1080-0x1087, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1088-0x108f, BIOS settings: hdc:DMA, hdd:pio
hda: FUJITSU MHK2120AT, ATA DISK drive
blk: queue c03e27c0, I/O limit 4095Mb (mask 0xffffffff)
hdc: TOSHIBA DVD-ROM SD-C2302, 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: 23579136 sectors (12073 MB) w/512KiB Cache, CHS=1559/240/63, UDMA(33)
hdc: attached ide-cdrom driver.
hdc: ATAPI 24X DVD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 hda: hda1 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 > hda2
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
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
  8regs    :  829.600 MB/sec
  32regs    :  477.200 MB/sec
  pIII_sse  :  1010.800 MB/sec
  pII_mmx  :  1134.000 MB/sec
  p5_mmx    :  1182.800 MB/sec
raid5: using function: pIII_sse (1010.800 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.8(17/11/2003)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
FAT: bogus logical sector size 0
UMSDOS: msdos_read_super failed, mount aborted.
FAT: bogus logical sector size 0
FAT: bogus logical sector size 0
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
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Adding Swap: 799304k swap-space (priority -1)
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
apm: overridden by ACPI.
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Intel 440BX chipset
agpgart: AGP aperture is 64M @ 0xe0000000
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
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
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
Linux Kernel Card Services 3.1.22
  options:  [pci] [cardbus] [pm]
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Intel ISA PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
Yenta ISA IRQ mask 0x0498, PCI irq 11
Socket status: 30000010
Yenta ISA IRQ mask 0x0498, PCI irq 11
Socket status: 30000006
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0820-0x08ff: clean.
cs: IO port probe 0x0800-0x080f: clean.
cs: IO port probe 0x03e0-0x04ff: excluding 0x4d0-0x4d7
cs: IO port probe 0x0100-0x03af: excluding 0x378-0x37f
cs: IO port probe 0x0a00-0x0aff: clean.
cs: memory probe 0xa0000000-0xa0ffffff: clean.
xirc2ps_cs.c 1.31 1998/12/09 19:32:55 (dd9jn+kvh)
eth0: MII link partner: 01e1
eth0: MII selected
eth0: media 100BaseT, silicon revision 0
eth0: Xircom: port 0x300, irq 3, hwaddr 00:10:A4:BB:D2:0C
ttyS03 at port 0x02e8 (irq = 3) is a 16550A
eth0: MII link partner: 01e1
eth0: MII selected
eth0: media 100BaseT, silicon revision 0
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (4095 buckets, 32760 max) - 288 bytes per conntrack
es1968: clocking to 48000
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 0x1060, IRQ 5
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 00:07.2-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: new USB device 00:07.2-1.1, assigned address 3
usb.c: USB device 3 (vend/prod 0xac9/0x0) is not claimed by any active driver.
hub.c: new USB device 00:07.2-1.2, assigned address 4
usb.c: USB device 4 (vend/prod 0xd49/0x3000) is not claimed by any active driver.
hub.c: new USB device 00:07.2-1.3, assigned address 5
usb.c: USB device 5 (vend/prod 0x4b8/0x5) is not claimed by any active driver.
hub.c: new USB device 00:07.2-1.4, assigned address 6
usb.c: USB device 6 (vend/prod 0x2632/0x1) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: MAXTOR 4  Model: K040H2            Rev: A08.
  Type:  Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 78198750 512-byte hdwr sectors (40038 MB)
 sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: CanonUSA  Model: Photo Card RW  1  Rev: 0001
  Type:  Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
SCSI device sdb: 160768 512-byte hdwr sectors (82 MB)
sdb: Write Protect is off
 sdb: sdb1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 6
USB Mass Storage support registered.
usb.c: registered new driver usblp
printer.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
printer.c: v0.13: USB Printer Device Class driver
Stealth SYN/RST scan: IN=eth0 OUT= MAC=00:10:a4:bb:d2:0c:00:04:e2:18:81:72:08:00 SRC=142.176.20.9 DST=192.168.2.6 LEN=1500 TOS=0x00 PREC=0x00 TTL=41 ID=19600 DF PROTO=TCP SPT=20608 DPT=2100 WINDOW=41200 RES=0x20 ACK RST SYN URGP=1
Stealth SYN/RST scan: IN=eth0 OUT= MAC=00:10:a4:bb:d2:0c:00:04:e2:18:81:72:08:00 SRC=142.176.20.9 DST=192.168.2.6 LEN=1500 TOS=0x00 PREC=0x00 TTL=41 ID=18108 DF PROTO=TCP SPT=80 DPT=35694 WINDOW=41193 RES=0x00 ACK RST SYN URGP=1
paride: version 1.06 installed (parport)
paride: bpck registered as protocol 0
usb.c: USB disconnect on device 00:07.2-1.2 address 4
hub.c: new USB device 00:07.2-1.2, assigned address 7
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 7
usb.c: USB disconnect on device 00:07.2-1.4 address 6
hub.c: new USB device 00:07.2-1.4, assigned address 8
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 8
usb.c: USB disconnect on device 00:07.2-1.1 address 3
usb.c: USB disconnect on device 00:07.2-1.2 address 7
hub.c: new USB device 00:07.2-1.1, assigned address 9
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 9
hub.c: new USB device 00:07.2-1.2, assigned address 10
usb.c: USB device 10 (vend/prod 0xac9/0x0) is not claimed by any active driver.
usb.c: USB disconnect on device 00:07.2-1.4 address 8
usb.c: USB disconnect on device 00:07.2-1.3 address 5
printer.c: usblp0: removed
hub.c: new USB device 00:07.2-1.4, assigned address 11
printer.c: usblp0: USB Bidirectional printer dev 11 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
hub.c: new USB device 00:07.2-1.3, assigned address 12
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 12
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
pcd: pcd version 1.07, major 46, nice 0
pcd0: Autoprobe failed
pcd: No CD-ROM drive found
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected

this is the source code for bpckusb the utility that gets installed somewhere in the hotplug directory and called during startup (you can really see it trying)

Code:

#!/bin/sh

# Load bulk/interrupt transfer test firmware into
# various EZ-USB USB devices that will run it

#TEMPLATE PROGRAM TAKEN FROM http://linux-hotplug.sourceforge.net/perf 4/2/2002
#Adapted for BACKPACK USB drives

FIRMWARE=
FLAGS=

# pre-renumeration device IDs
case $PRODUCT in

# BACKPACK USB2 INTERNAL ADAPTER

#----------------------SCANNNERS SCANNERS-------------------------------
#external usb1 scanner
ac9/0/0)
        FIRMWARE=usb/bpckusb.fw/BP1SCAN.HEX
        ;;

#external usb2 scanner
ac9/1/*)
        FIRMWARE=usb/bpckusb.fw/BP2SCAN.HEX
        FLAGS="-2"
        ;;

#----------------------USB1 EXTERNAL-------------------------------
#external usb1 cd-romish series 5
ac9/1000/*)
        FIRMWARE=usb/bpckusb.fw/BP1CD5.HEX
        ;;
#external usb1 cd-romish series 6
ac9/1001/*)
        FIRMWARE=usb/bpckusb.fw/BP1CD6.HEX
        ;;
#external usb1 hard drive series 5
ac9/1002/*)
        FIRMWARE=usb/bpckusb.fw/BP1HD5.HEX
        ;;
#external usb1 hard drive series 6
ac9/1003/*)
        FIRMWARE=usb/bpckusb.fw/BP1HD6.HEX
        ;;

#----------------------USB2 EXTERNAL-------------------------------
#external usb2 cd-romish series 5
ac9/1004/*)
        FIRMWARE=usb/bpckusb.fw/BP2CD5.HEX
        FLAGS="-2"
        ;;
#external usb2 cd-romish series 6
ac9/1005/*)
        FIRMWARE=usb/bpckusb.fw/BP2CD6.HEX
        FLAGS="-2"
        ;;
#external usb2 hard drive series 5
ac9/1006/*)
        FIRMWARE=usb/bpckusb.fw/BP2HD5.HEX
        FLAGS="-2"
        ;;
#external usb2 hard drive series 6
ac9/1007/*)
        FIRMWARE=usb/bpckusb.fw/BP2HD6.HEX
        FLAGS="-2"
        ;;

#----------------------USB2 INTERNAL-------------------------------
#internal usb2 cd-romish drive
ac9/10/*)
        FIRMWARE=usb/bpckusb.fw/BPINTCD.HEX
        FLAGS="-2"
        ;;

#internal usb2 cd-romish drive
ac9/11/*)
        FIRMWARE=usb/bpckusb.fw/BPINTHD.HEX
        FLAGS="-2"
        ;;
esac


# quit unless we were called to download some firmware
if [ "$FIRMWARE" = "" ]; then
    # OR:  restructure to do other things for
    # specific post-renumeration devices
    exit 0
fi

# missing firmware?
if [ ! -r $FIRMWARE ]; then
    if [ -x /usr/bin/logger ]; then
        /usr/bin/logger -t $0 "missing $FIRMWARE for $PRODUCT ??"
    fi
    exit 1
fi

if [ ! -x /sbin/fxload ]; then
        if [ -x /usr/bin/logger ]; then
                /usr/bin/logger -t $0 "cannot load firmware, missing fxload"
            fi
            exit 1
fi

if [ -x /usr/bin/logger ]; then
    /usr/bin/logger -t $0 "load $FIRMWARE for $PRODUCT to $DEVICE"
fi

        /sbin/fxload $FLAGS -I $FIRMWARE


perry 08-02-2004 12:06 AM

fxload
 
the beauty of going thru the trouble of posting everything on this site is that you have a tendency to isolate that little tiny bit of information that you skipped over....

the fxload specification
the fxload package

Code:

root@slackware:/home/perry/projects# fxload
no device specified!
usage: fxload [-vV] [-t type] [-D devpath]
                [-I firmware_hexfile] [-s loader] [-c config_byte]
                [-L link] [-m mode]
... [-D devpath] overrides DEVICE= in env
... device types:  one of an21, fx, fx2
... at least one of -I, -L, -m is required

i don't know what to expect from it but i do know that bpckusb makes extensive use of it....

reboot and see what happens i guess

- perry

perry 08-02-2004 12:28 AM

Problem solved!
 
Ok, ok, not having fxload installed was probably a little stupid of me but whats interesting is that it has loaded it as /dev/sr0. i found this thanks to diagnostics from k3b

here's the status now:

Code:

root@slackware:/home/perry# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 001 Device 003: ID 0d49:3000 Maxtor
Bus 001 Device 008: ID 0ac9:10ff Micro Solutions, Inc.
Bus 001 Device 005: ID 2632:0001 TwinMOS
Bus 001 Device 006: ID 04b8:0005 Seiko Epson Corp. Stylus Printer

notice the change in device title

Code:

root@slackware:/home/perry# cdrecord --scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus1:
        1,0,0  100) 'MAXTOR 4' 'K040H2          ' 'A08.' Disk
        1,1,0  101) *
        1,2,0  102) *
        1,3,0  103) *
        1,4,0  104) *
        1,5,0  105) *
        1,6,0  106) *
        1,7,0  107) *
scsibus2:
        2,0,0  200) 'CanonUSA' 'Photo Card RW  1' '0001' Removable Disk
        2,1,0  201) *
        2,2,0  202) *
        2,3,0  203) *
        2,4,0  204) *
        2,5,0  205) *
        2,6,0  206) *
        2,7,0  207) *
scsibus3:
        3,0,0  300) 'TEAC    ' 'CD-W58E        ' '1.0A' Removable CD-ROM
        3,1,0  301) *
        3,2,0  302) *
        3,3,0  303) *
        3,4,0  304) *
        3,5,0  305) *
        3,6,0  306) *
        3,7,0  307) *

now it's finally present

Code:

root@slackware:/home/perry# cat /proc/scsi/usb-storage-0/1
  Host scsi1: usb-storage
      Vendor: Maxtor
      Product: Maxtor USB Drive
Serial Number: 1200E000022206767
    Protocol: Transparent SCSI
    Transport: Bulk
        GUID: 0d493000200e000022206767
    Attached: Yes
root@slackware:/home/perry# cat /proc/scsi/usb-storage-1/2
  Host scsi2: usb-storage
      Vendor: CanonUSA
      Product: Photo Card RW
Serial Number: CANU60000091
    Protocol: Transparent SCSI
    Transport: Bulk
        GUID: 263200010000cb7e60000091
    Attached: Yes
root@slackware:/home/perry# cat /proc/scsi/usb-storage-2/3
  Host scsi3: usb-storage
      Vendor: Micro Solutions
      Product: BACKPACK USB Cable
Serial Number: 21718110
    Protocol: 8020i
    Transport: Bulk
        GUID: 0ac910ff0000000021718110
    Attached: Yes

this output from k3b is what tipped me off on the device name:

Code:

k3b: ------------------------------
k3b: Blockdevice:    /dev/sr0
k3b: Vendor:        TEAC
k3b: Description:    CD-W58E
k3b: Version:        1.0A
k3b: MountDevice:
k3b: Mountpoint:
k3b: Write speed:    706
k3b: Profiles:      Error
k3b: Devicetype:    CD-R; CD-RW; CD-ROM
k3b: Writing modes:  SAO; TAO; RAW; SAO/R16; RAW/R96P; RAW/R96R
k3b: Reader aliases: /dev/sr0, /dev/scd0
k3b: ------------------------------
k3b: Blockdevice:    /dev/hdc
k3b: Vendor:        TOSHIBA
k3b: Description:    DVD-ROM SD-C2302
k3b: Version:        1013
k3b: MountDevice:    /dev/cdrom
k3b: Mountpoint:    /mnt/cdrom
k3b: Write speed:    0
k3b: Profiles:      DVD-ROM; CD-ROM
k3b: Devicetype:    CD-ROM; DVD-ROM
k3b: Writing modes:  None
k3b: Reader aliases: /dev/hdc, /dev/cdrom
k3b: ------------------------------

so a quick change to the /etc/fstab and a mount command issued as a user and it seems to be working. the question is now is whether it'll actually burn anything but it looks very promising....

i'll let you know if there's any problems. other than all the noise bpckusb seems to make during boot up, it's right on the mark ([i]i sure hope there's a echo off in linux)

hope this helps someone else!

- perry

ps. /dev/scd0 works just as good....

perry 08-02-2004 12:33 AM

Just another happy Slackware experience...
 
As much as i appreciated the simplicity of RPM, here's where i think a key difference lies when you run into problems. I had to spend three times as long getting my burner working on Mandrake and i did so by twisting the arm of the backpack hotplug rpm that i had to install back then. this time around, no rpms at all, i just downloaded the packages i needed as tar.gz, opened with file-roller and took my best shot installing where i thought it needed to go. and i'll be damned it things just went a whole lot smoother....

just part of getting used to it i guess but hey, the difference it makes, makes all the difference!

incidentally, anybody know how to suppress or redirect alot of diagnostic output from the bpckusb script ? it makes for a really noisy startup screen....

- perry

ps.
This thread might wanna go into the Members Success Stories area just in case some other poor fella finds himself in the same boat!

:p

perry 08-02-2004 01:21 AM

/etc/rc.d/rc.hotplug modified....
 
well it seems i was easily able to track down the code involved and make an educated guess as how to take out the unwanted flooding of the screen with what seemed like scripting code. and everything appears to work, however i get this module.usbmap unparseable line message about 3 times while /etc/rc.d/rc.hotplug does it's thing... (i was expecting to see that message at least 4 times as i have 4 usb ports + the hub itself, but when i ran it at the root console, i actually got it 5 times, so i dunno what the deal is)

here's the origional code:

Code:

case "$1" in
    start|restart|status)
        for RC in /etc/hotplug/*.rc
        do
            $RC $1
        done
        touch /var/lock/subsys/hotplug
        ;;

here's what i changed it to:

Code:

case "$1" in
    start|restart|status)
        echo hotplug start > /var/log/hotplug.messages
        for RC in /etc/hotplug/*.rc
        do
            $RC $1 >> /var/log/hotplug.messages
        done
        touch /var/lock/subsys/hotplug
        ;;

anyone want to point out a terrible mistake/oversight i might be making, i typically don't like to ignore error messages after i do something

but, like i said, everything WORKS!!!

and you can't complain about that!

ok, just did a dry run on a cd-rw and manage to burn 240 meg in almost not time at all! however, trying to burn from one usb device to another usb device caused some problems.... maybe if i throw in the sync, see what happens but the main thing is that it works and it's kinda nice looking to boot!

- perry

perry 08-02-2004 01:54 AM

wow!
 
whatever the this error message is:

Code:

modules.usbmap unparseable line:
.

it appears to be harmless however i'd love to know where it's origionating from...

but the real plus is that i just figured out how to reset my external cd-rewriter without having to reboot the damn system. all i got to do is issue a /etc/rc.d/rc.hotplug stop then drop the power cord going to it, plug it back in and then /etc/rc.d/rc.hotplug start and presto it works!

perhaps a restart would work too but this way i know it's safe to drop the power, provided everything is unmounted first!

Linux is Cool man!

- perry

:p


All times are GMT -5. The time now is 08:05 PM.