Re (long): A-DATA flash drive: some oddities and how to add USBquirks

2003-08-14 Thread Igor B. Bykhalo
From: Nate Lawson [EMAIL PROTECTED]
To: Igor B. Bykhalo [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 2:56 AM
Subject: Re: A-DATA flash drive: some oddities and how to add USB quirks


 Looking at your dmesg output, I see that your drive is reporting that it's
 not ready.  However, your dmesg doesn't show any actual failure.
 Instead it looks like CAM retries and then succeeds in probing the device.

 Please report the exact failure behavior and the dmesg of any errors.

 -Nate

Failures:

In attemp to mount:

 Script started on Wed Aug 13 15:48:11 2003
 goshik# mount -v -t msdos /dev/da0s1 /mnt
 msdos: /dev/da0s1: Device not configured
 goshik# exit
 exit

 Script done on Wed Aug 13 15:48:26 2003

Accompanied by console messages:

 Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 
 0 0 0 0 0 0
 Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 
 0 0 0 0 0 0
 Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 
 0 0 0 0 0 0
 Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): Medium not present

Some usb and camcontrol output:

 Script started on Wed Aug 13 15:39:37 2003
 goshik# usbdevs -v
 Controller /dev/usb0:
 addr 1: self powered, config 1, UHCI root hub(0x), VIA(0x), rev 1.00
  port 1 addr 2: self powered, config 1, USB Embedded Hub(0x2515), A-DATA Technology 
 Inc.(0x067b), rev 0.01
   port 1 addr 3: self powered, config 1, USB Mass Storage Device(0x2517), A-DATA 
 Technology Inc.(0x067b), rev 0.01
  port 2 powered
 goshik# camcontrol rescan all
 Re-scan of bus 0 was successful
 goshik# camcontrol devlist -v
 scbus0 on umass-sim0 bus 0:
 A-DATA Flash 2.0 P1.0at scbus0 target 0 lun 0 (pass0,da0)
 scbus-1 on xpt0 bus 0:
  at scbus-1 target -1 lun -1 (xpt0)
 goshik# camcontrol inquiry da0
 pass0: A-DATA Flash 2.0 P1.0 Removable Direct Access SCSI-0 device
 pass0: Serial Number 
 pass0: 650KB/s transfers
 goshik# exit
 exit

 Script done on Wed Aug 13 15:40:25 2003

Camcontrol commands are accompanied by console messages:

 Aug 13 15:40:03 goshik /kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 
 0 0 0 0
 Aug 13 15:40:03 goshik /kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24  0
 Aug 13 15:40:03 goshik /kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 1 80 0 
 ff 0
 Aug 13 15:40:18 goshik /kernel: (pass0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0
 Aug 13 15:40:18 goshik /kernel: (pass0:umass-sim0:0:0:0): INQUIRY. CDB: 12 1 80 0 ff  0

From dmesg (boot -v before above commands):

 Copyright (c) 1992-2003 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 4.8-STABLE #31: Wed Aug 13 14:43:41 MSD 2003
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GO
 Calibrating clock(s) ... TSC clock: 1334887190 Hz, i8254 clock: 1193117 Hz
 Timecounter i8254  frequency 1193117 Hz
 CPU: AMD Athlon(tm) XP 1500+ (1334.89-MHz 686-class CPU)
   Origin = AuthenticAMD  Id = 0x662  Stepping = 2
   
 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
   AMD Features=0xc048MP,AMIE,DSP,3DNow!
 Data TLB: 32 entries, fully associative
 Instruction TLB: 16 entries, fully associative
 L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
 L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
 L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
 real memory  = 268369920 (262080K bytes)
 Physical memory chunk(s):
 0x01000 - 0x9, 651264 bytes (159 pages)
 0x000369000 - 0x00ffe7fff, 264761344 bytes (64639 pages)
 config en apm0
 config di psm0
 config di ppc0
 config q
 avail memory = 257847296 (251804K bytes)
 bios32: Found BIOS32 Service Directory header at 0xc00faf90
 bios32: Entry = 0xfb400 (c00fb400)  Rev = 0  Len = 1
 pcibios: PCI BIOS entry at 0xb430
 pnpbios: Found PnP BIOS data at 0xc00fbef0
 pnpbios: Entry = f:bf20  Rev = 1.0
 Other BIOS signatures found:
 ACPI: 000f66f0
 Preloaded elf kernel kernel at 0xc0342000.
 Preloaded userconfig_script /boot/kernel.conf at 0xc03420a8.
 Preloaded elf module vesa.ko at 0xc03420f8.
 Preloaded elf module vn.ko at 0xc0342194.
 Preloaded elf module if_ef.ko at 0xc0342230.
 Preloaded elf module if_sis.ko at 0xc03422d0.
 Preloaded elf module miibus.ko at 0xc0342370.
 Preloaded elf module snd_via8233.ko at 0xc0342410.
 Preloaded elf module snd_pcm.ko at 0xc03424b4.
 Preloaded elf module usb.ko at 0xc0342554.
 Preloaded elf module ugen.ko at 0xc03425f0.
 Preloaded elf module umass.ko at 0xc034268c.
 Preloaded elf module snp.ko at 0xc034272c.
[...]
 uhci0: VIA 83C572 USB controller port 0xd800-0xd81f irq 12 at device 17.2 on pci0
 usb0: VIA 83C572 USB controller

Re: PATCH: type errors in src-tree

2003-03-04 Thread Igor B. Bykhalo
 From: David O'Brien [EMAIL PROTECTED]
 To: Jens Rehsack [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, March 05, 2003 10:01 AM
 Subject: Re: PATCH: type errors in src-tree
 

 On Mon, Mar 03, 2003 at 12:08:04AM +0100, Jens Rehsack wrote:
  Now, that OpenWatcom is released, the FreeBSd port of it should follow. 
  And maybe someone will try to compile the kernel and world with it.
 
 I hate to be the skeptic, but looking at OpenWatcom 1.0, it only produces
 dos and win32 binaries.  It will be a *long* time until it targets Unix
 correctly.

Just FYI: Well, not only dos and win32, but it will be really long...
What they have now:

 From: Bart Oldeman [EMAIL PROTECTED]
 Newsgroups: openwatcom.contributors
 Sent: Sunday, March 02, 2003 7:36 AM
 Subject: Re: bootstrap on linux
 
 In article [EMAIL PROTECTED], Andi Kleen wrote:
  Michal Necasek [EMAIL PROTECTED] writes:
  
  Andi Kleen wrote:
  does a native bootstrap on linux of openwatcom work yet?
 
No. Some of the tools can be built and some even work but not
  enough to get the build environment going.
  
  Can you elaborate a bit on it. What does work, what doesn't?
 
 the compilers work (wcc386 and wcc), compiled using gcc and compiled
 using watcom. they can however (still) only reliably output OMF
 objects.
 
 wlink can be cross-compiled for Linux but crashes (SIGSEGV) if you 
 run it there to combine several OMFs into an ELF executable. Without
 a working linker the Linux hosted compiler isn't very useful yet
 -- and a full bootstrap impossible.
 
 There has been an attempt to cross-compile wasm, I'm not sure how
 far that went.
 
 wmake cannot be compiled yet -- it uses spawnxx calls that would
 need to be translated into fork()s and execve()s for Linux (using
 a wrapper or to be implemented in the Watcom LIBC).
 
 And Linux development has stalled for the last month (lack of time of
 the contributors).
 
 Bart

heh

 
  If that would work, this would be great, because the watcom compiler
  generates much better code than gcc does, even than gcc -O3 (and all
  known optimizations on).
 
 Rather than just repeat some old wife's tale; can anyone produce a real
 analysis backing this statement up?

Not me :)

Igor


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: 3c509 testers wanted!

1999-10-22 Thread Igor B. Bykhalo

From: "Matthew N. Dodd" [EMAIL PROTECTED]
Subject: 3c509 testers wanted!

I've rewritten the ISA bus front end code for if_ep and would like to
solicit testers.

ftp://ftp.jurai.net/users/winter/patches/if_ep.diff

You'll have to edit sys/i386/isa/isa_compat.h and remove all the
references to epdriver and NEP.

Right now 'wired' devices aren't supported so use

device ep0

in your config file.

I'd especially like people with 3c509Bs to put them in PnP mode and try
booting with this patch.

I'd also like someome with several adapters to stuff a box with them and
try booting.  Of interest is the case where a 3c509B in PnP mode is
installed as well as an older non-PnP 3c509.  I suspect this combination
will have 'issues' but am not sure.  Boot verbosely and mail me the
output, as well as the output of 'pnpinfo' if you're running a 3c509B.

Can it be applied to:
ns: {1} uname -a
FreeBSD ns.binep.ac.ru 3.1-STABLE FreeBSD 3.1-STABLE #0: Wed Sep 29 21:54:10 MSD 1999
[EMAIL PROTECTED] :/usr/src/sys/compile/BINEP.ega  i386

with (from dmesg)

Oct 20 19:36:32 ns /kernel: ep0 at 0x300-0x30f irq 12 on isa
Oct 20 19:36:32 ns /kernel: ep0: aui/bnc[*BNC*] address 00:20:af:56:35:ac
Oct 20 19:36:32 ns /kernel: ep1 at 0x320-0x32f irq 11 on isa
Oct 20 19:36:32 ns /kernel: ep1: aui/bnc[*BNC*] address 00:20:af:8f:76:61
Oct 20 19:36:32 ns /kernel: ep2 at 0x340-0x34f irq 10 on isa
Oct 20 19:36:32 ns /kernel: ep2: aui/bnc[*BNC*] address 00:20:af:8f:93:a9

These are Etherlinks III 3C509B ASSY 03-0021-100-REV-B,
and they are probably PnP, don't remember...

But the machine itself is 486DX2 with VLB m/b, it's definitely
not PnP. Runs as internet gateway, web server and IPXrouted (yes...)

Or should i upgrade to 3.3? (no-no, not to current, been there 8-))


Thanks.

- -- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |


Regards, Goshik
_
Windows 2001: "Sorry, pal, i just can't do this"



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message