Re: USB harddrive

2008-02-03 Thread Christian Rudolph

Stuart Henderson wrote:

On 2008/02/02 11:55, Christian Rudolph wrote:

I'm using OpenBSD 4.2 on a soekris 4501.


you have to be careful with PCI cards in 4501, the power supply
is very limited, it's quite possible to damage your soekris with the
wrong card.


Thanks for the notice concerning energy. I got the idea to use a USB hub 
as "external power supply" and now it works.


regards,
Christian Rudolph



Re: USB harddrive

2008-02-02 Thread Stuart Henderson
On 2008/02/02 11:55, Christian Rudolph wrote:
> I'm using OpenBSD 4.2 on a soekris 4501.

you have to be careful with PCI cards in 4501, the power supply
is very limited, it's quite possible to damage your soekris with the
wrong card.

http://lists.soekris.com/pipermail/soekris-tech/2003-July/003036.html

4801/5501 are more flexible.

> I have attached a USB controller and plugged in a harddrive.
> The problem is, the device doesn't get recognized by OpenBSD.
>
> Then I tried another box and plugged in the same harddrive.
> result: it works.
>
> But I need to run this disk at my soekris box.
>
> Following my dmesg output (working machine):
> $ dmesg
> OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: AMD Athlon(tm) XP 2100+ ("AuthenticAMD" 686-class, 256KB L2 cache)
> 1.75 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
> real mem  = 536375296 (511MB)
> avail mem = 511008768 (487MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 11/05/02, BIOS32 rev. 0 @ 0xfdae0,
> SMBIOS rev. 2.3 @ 0xf0640 (32 entries)
> bios0: vendor American Megatrends Inc. version "07.00T  " date 11/05/2002
> bios0: Gigabyte Technology Co., Ltd. 7VRXP
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xf/0x1
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7b60/224 (12 entries)
> pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT8233 ISA" rev 0x00)
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc/0xbc00
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "VIA VT8366 PCI" rev 0x00
> ppb0 at pci0 dev 1 function 0 "VIA VT8366 AGP" rev 0x00
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "NVIDIA GeForce3 Ti 200" rev 0xa3
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> ral0 at pci0 dev 12 function 0 "Ralink RT2560" rev 0x01: irq 11, address
> 00:80:5a:33:31:6c
> ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
> viapm0 at pci0 dev 17 function 0 "VIA VT8233A ISA" rev 0x00
> iic0 at viapm0
> maxtmp0 at iic0 addr 0x4c: lm90
> pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
> channel 0 configured to compatibility, channel 1 configured to compatibility
> wd0 at pciide0 channel 0 drive 0: 
> wd0: 16-sector PIO, LBA48, 39266MB, 80418240 sectors
> wd1 at pciide0 channel 0 drive 1: 
> wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
> atapiscsi0 at pciide0 channel 1 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom
> removable
> cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
> uhci0 at pci0 dev 17 function 2 "VIA VT83C572 USB" rev 0x23: irq 10
> uhci1 at pci0 dev 17 function 3 "VIA VT83C572 USB" rev 0x23: irq 10
> rl0 at pci0 dev 19 function 0 "Realtek 8139" rev 0x10: irq 5, address
> 00:20:ed:3b:65:a2
> rlphy0 at rl0 phy 0: RTL internal PHY
> uhci2 at pci0 dev 20 function 0 "VIA VT83C572 USB" rev 0x50: irq 11
> uhci3 at pci0 dev 20 function 1 "VIA VT83C572 USB" rev 0x50: irq 11
> ehci0 at pci0 dev 20 function 2 "VIA VT6202 USB" rev 0x51: irq 5
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0: VIA EHCI root hub, rev 2.00/1.00, addr 1
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1: VIA UHCI root hub, rev 1.00/1.00, addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2: VIA UHCI root hub, rev 1.00/1.00, addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3: VIA UHCI root hub, rev 1.00/1.00, addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4: VIA UHCI root hub, rev 1.00/1.00, addr 1
> isa0 at mainbus0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pmsi0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pmsi0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: 
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> it0 at isa0 port 0x290/8: IT87
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> biomask ef65 netmask ef65 ttymask ffe7
> pctr: user-level cycle counter enabled
> mtrr: Pentium Pro MTRR support
> dkcsum: wd0 matches BIOS drive 0x80
> dkcsum: wd1 matches BIOS drive 0x81
> root on wd0a swap on wd0b dump on wd0b
> umass0 at uhub1 port 1 configuration 1 interface 0
> umass0: JMicron USB to ATA/ATAPI Bridge, rev 2.00/1.00, addr 2
> umass0: using SCSI over Bulk-Only
> scsibus1 at umass0: 2 targets
> sd0 at 

USB harddrive

2008-02-02 Thread Christian Rudolph

Hi,
I'm using OpenBSD 4.2 on a soekris 4501.

I have attached a USB controller and plugged in a harddrive.
The problem is, the device doesn't get recognized by OpenBSD.

Then I tried another box and plugged in the same harddrive.
result: it works.

But I need to run this disk at my soekris box.

Following my dmesg output (working machine):
$ dmesg
OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) XP 2100+ ("AuthenticAMD" 686-class, 256KB L2 cache)
1.75 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 536375296 (511MB)
avail mem = 511008768 (487MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/05/02, BIOS32 rev. 0 @ 0xfdae0,
SMBIOS rev. 2.3 @ 0xf0640 (32 entries)
bios0: vendor American Megatrends Inc. version "07.00T  " date 11/05/2002
bios0: Gigabyte Technology Co., Ltd. 7VRXP
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7b60/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT8233 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xbc00
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8366 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8366 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce3 Ti 200" rev 0xa3
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ral0 at pci0 dev 12 function 0 "Ralink RT2560" rev 0x01: irq 11, address
00:80:5a:33:31:6c
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
viapm0 at pci0 dev 17 function 0 "VIA VT8233A ISA" rev 0x00
iic0 at viapm0
maxtmp0 at iic0 addr 0x4c: lm90
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 39266MB, 80418240 sectors
wd1 at pciide0 channel 0 drive 1: 
wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 17 function 2 "VIA VT83C572 USB" rev 0x23: irq 10
uhci1 at pci0 dev 17 function 3 "VIA VT83C572 USB" rev 0x23: irq 10
rl0 at pci0 dev 19 function 0 "Realtek 8139" rev 0x10: irq 5, address
00:20:ed:3b:65:a2
rlphy0 at rl0 phy 0: RTL internal PHY
uhci2 at pci0 dev 20 function 0 "VIA VT83C572 USB" rev 0x50: irq 11
uhci3 at pci0 dev 20 function 1 "VIA VT83C572 USB" rev 0x50: irq 11
ehci0 at pci0 dev 20 function 2 "VIA VT6202 USB" rev 0x51: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: VIA EHCI root hub, rev 2.00/1.00, addr 1
usb1 at uhci0: USB revision 1.0
uhub1 at usb1: VIA UHCI root hub, rev 1.00/1.00, addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2: VIA UHCI root hub, rev 1.00/1.00, addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3: VIA UHCI root hub, rev 1.00/1.00, addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4: VIA UHCI root hub, rev 1.00/1.00, addr 1
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ef65 netmask ef65 ttymask ffe7
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a swap on wd0b dump on wd0b
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: JMicron USB to ATA/ATAPI Bridge, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0:  SCSI2 0/direct fixed
sd0: 476940MB, 60801 cyl, 255 head, 63 sec, 512 bytes/sec, 976773168 sec
total




dmesg output of soekris box:
$ dmesg
OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Am5x86 W/B 133/160 ("AuthenticAMD" 486-class)
cpu0: FPU
real mem  = 66678784 (63MB)
avail mem = 55808000 (53MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/41/22, BIOS32 rev. 0 @ 0xf7840
pcibi