Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2000 11:58:45 -0800 (PST)
From:      Mark Kent <mark@noc.mainstreet.net>
To:        freebsd-mobile@FreeBSD.ORG
Subject:   (long) multiple queries about 4.0 on Sony 505HS
Message-ID:  <200003291958.LAA04012@noc.mainstreet.net>

next in thread | raw e-mail | index | archive | help
Hello,

I have a Sony Z505HS, which has a pcmcia CD device (Ninja-ATA) and a
USB floppy, a serial and parallel port hanging off a "port
replicator", Yamaha ds-xg onboard sound, a Sony MemoryStick port
(flash memory), an IR port, and a miserable built-in (soft) modem
(http://www.vaio.net/products/pc/notebook/pcgz505hs.html).

This is my first freeBSD machine, first non-Sun (other than
an Apple 280c).

I've installed 4.0 release from the net (via ftp), which worked very
nicely.  I've done a "make world" just to see it happen, I've made my
own kernel, I've got the CD player to play music CDs (using kscd) but
I've got to use the "line out" on the CD player to reap the benefits.

I've been using Geocrawler to search for stuff, and (naturally?)
mostly get 3.x answers and references to PAO to solve most
of my problems.  There is not much concrete 4.0 info that I can find.

I can't get sound to work.  In one of my experiments I enabled the
"pcaudio" (pca0) and can get noise by stuffing files into
/dev/pcaudio.  I've backed off from using pca0 figuring that
it is not needed for my set-up (too primitive?).

So, I've got a bunch of questions.  Ouptut of boot -v is at the 
end of this message.

a) PNPBIOS or not?  Some have pointed at "device pcm"
   as the way to do sound in 4.0 and somewhere I saw that
   you should have "options PNPBIOS" if you use "device pcm"

   But, when I use "options PNPBIOS" the USB part of the boot
   process says to turn it off.

b) I'm assuming that the use of PNPBIOS should correspond
   exactly with the setting of "PnP OS?" in the BIOS set-up.
   True?

c) Which of these should I expect to be able to get to work
   by using just 4.0-release:

   1) sound
   2) MemoryStick (appears as removeable disk in windows)
   3) modem (http://808hi.com/56k/hcf9.htm)
   4) IR port

   Yes, I recognize that a C compiler comes with 4.0 and 
   so I should be able to do anything.  But that's not
   what I'm asking :-)

d) I've seen people type "use device pcm and make the
   appropriate devices in /dev".  But how up-to-date is
   MAKEDEV?  Some devices as identified by dmesg don't
   appear in MAKEDEV.

e) What is the relation between major and minor device numbers
   and the IRQ and memory address?  'man mknod' sort of implies
   that hints can be found under /usr/src/sys/conf/, and I
   see the "majors" file.  But I search for pcm  and find

  50      card            pcmcia cards

  which doesn't sound like what I want (for sound).  
  A check of /dev

  crw-r--r--  1 root  wheel      50,   0 Mar 29 08:39 card0
  crw-r--r--  1 root  wheel      50,   1 Mar 28 12:42 card1
  crw-r--r--  1 root  wheel      50,   2 Mar 28 12:42 card2
  crw-r--r--  1 root  wheel      50,   3 Mar 28 12:42 card3
 
  seems to confirm that this isn't what I want for sound.

  Meanwhile, 'grep -i sound majors' gives

  30      snd             sound driver system
 
  pointing at the snd device for which I've seen comments
  (in LINT) that we don't use this for the new pcm:

# The newpcm driver (use INSTEAD of snd0 and all VOXWARE drivers!). 
# Note that motherboard sound devices may require options PNPBIOS.

f) (I am not a peecee person) How do I find a comprehensive
   list of "things" known to my system and once I have the list
   (which I would guess would include IRQ numbers and memory addresses)
   what do I do with such a list in freeBSD?

   I can dual-boot so if the answer starts with "boot under Windows..."
   then I am OK with that.

   This question is triggered by certain things in GENERIC and
   LINT.  Lines there include stuff like 
   "port 0x534 irq 5 drq 1 flags 0x08"
   but how do They (They == the people who put this all together)
   know that on any given system that device is at irq 5, etc?

g) Do I really care about the APM stuff?  I've got a light that flashes
   when battery level is <= 10%, so I'm not likely to miss this.  
   
   It seems that I can suspend at the hardware level and come back to
   life with only one ill-effect (I need to do "ifconfig fxp0 up" to
   get networking back).  

   I can adjust screen brightness using the "Fn" key (a key not seen
   by "xev" so I'm guessing not seen by the kernel either).

   Am I missing anything?

h) I see I haven't asked this exact question yet, so here goes:

   How, exactly, do I get sound to work on the Sony Z505HS?

   I want to be able to play CDs and hear them, and play mpeg files
   and hear the sound, and play Realwhatever and hear the sound, etc.

This is what I've got currently:

  FreeBSD laptop.mainstreet.net 4.0-RELEASE FreeBSD 4.0-RELEASE #0:
  Tue Mar 28 12:54:23 PST 2000     
  mark@laptop.mainstreet.net:/usr/src/sys/compile/MDK  i386

device          pcm0 at isa? irq 10 drq 1 flags 0x0
device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15

and here is the "boot -v" output:

avail memory = 257183744 (251156K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00f6c90
bios32: Entry = 0xfd880 (c00fd880)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0x11e
pnpbios: Found PnP BIOS data at 0xc00f6cc0
pnpbios: Entry = f0000:b331  Rev = 1.0
pnpbios: Event flag at 400
Other BIOS signatures found:
ACPI: 000f6c30
Preloaded elf kernel "kernel" at 0xc0314000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc03140a8.
Pentium Pro MTRR support enabled
md0: Malloc disk
Creating DISK md0
Math emulator present
pci_open(1):    mode 1 addr port (0x0cf8) is 0x80003904
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=71908086)
npx0: <math processor> on motherboard
npx0: INT 16 interface
pci_open(1):    mode 1 addr port (0x0cf8) is 0x00000000
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=71908086)
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
found-> vendor=0x8086, dev=0x7190, revid=0x03
        class=06-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        map[10]: type 1, range 32, base 40000000, size 24
found-> vendor=0x8086, dev=0x7191, revid=0x03
        class=06-04-00, hdrtype=0x01, mfdev=0
        subordinatebus=1        secondarybus=1
found-> vendor=0x8086, dev=0x7110, revid=0x02
        class=06-01-00, hdrtype=0x00, mfdev=1
        subordinatebus=0        secondarybus=0
found-> vendor=0x8086, dev=0x7111, revid=0x01
        class=01-01-80, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        map[20]: type 1, range 32, base 0000fc90, size  4
found-> vendor=0x8086, dev=0x7112, revid=0x01
        class=0c-03-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=d, irq=9
        map[20]: type 1, range 32, base 0000fca0, size  5
found-> vendor=0x8086, dev=0x7113, revid=0x03
        class=06-80-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        map[90]: type 1, range 32, base 00001040, size  4
found-> vendor=0x104d, dev=0x8039, revid=0x02
        class=0c-00-10, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base fedf7000, size 11
        map[14]: type 1, range 32, base fedf7c00, size  9
found-> vendor=0x1073, dev=0x0010, revid=0x02
        class=04-01-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base fedf8000, size 15
        map[14]: type 1, range 32, base 0000fcc0, size  6
        map[18]: type 3, range 32, base 0000fc8c, size  2
found-> vendor=0x14f1, dev=0x2443, revid=0x01
        class=07-80-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base fede0000, size 16
        map[14]: type 3, range 32, base 0000fc38, size  3
found-> vendor=0x8086, dev=0x1229, revid=0x08
        class=02-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base fedf6000, size 12
        map[14]: type 1, range 32, base 0000fc40, size  6
        map[18]: type 1, range 32, base fec00000, size 20
found-> vendor=0x1180, dev=0x0475, revid=0x80
        class=06-07-00, hdrtype=0x02, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=255
found-> vendor=0x104d, dev=0x808a, revid=0x01
        class=05-01-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base fedf7800, size 10
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
found-> vendor=0x10c8, dev=0x0005, revid=0x20
        class=03-00-00, hdrtype=0x00, mfdev=0
        subordinatebus=0        secondarybus=0
        intpin=a, irq=9
        map[10]: type 1, range 32, base fd000000, size 24
        map[14]: type 1, range 32, base fe400000, size 22
        map[18]: type 1, range 32, base feb00000, size 20
pci1: <PCI bus> on pcib1
pci1: <NeoMagic MagicMedia 256AV SVGA controller> (vendor=0x10c8, dev=0x0005) at 0.0 irq 9
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfc90-0xfc9f at device 7.1 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xfc90
ata0: mask=03 status0=50 status1=00
ata0: mask=03 status0=50 status1=00
ata0: devices = 0x1
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xfc98
ata1: mask=03 status0=00 status1=00
ata1: mask=03 status0=00 status1=00
ata1: devices = 0x0
ata1: probe allocation failed
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfca0-0xfcbf irq 9 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ugen0: Y-E DATA FlashBuster-U, rev 1.00/1.28, addr 2
chip1: <Intel 82371AB Power management controller> port 0x1040-0x104f at device 7.3 on pci0
pci0: <unknown card> (vendor=0x104d, dev=0x8039) at 8.0 irq 9
pci0: <unknown card> (vendor=0x1073, dev=0x0010) at 9.0 irq 9
pci0: <unknown card> (vendor=0x14f1, dev=0x2443) at 10.0 irq 9
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> port 0xfc40-0xfc7f mem 0xfec00000-0xfecfffff,0xfedf6000-0xfedf6fff irq 9 at device 11.0 on pci0
        using shared irq9.
fxp0: Ethernet address 08:00:46:06:2d:7a
bpf: fxp0 attached
pcic-pci0: <Ricoh RL5C475 PCI-CardBus Bridge> at device 12.0 on pci0
PCI Config space:
00:  04751180 02100007 06070080 00020000
10:  00000000 020000dc 00000000 00000000
20:  00000000 00000000 00000000 00000000
30:  00000000 00000000 00000000 078001ff
40:  8082104d 000003e1 00000000 00000000
50:  00000000 00000000 00000000 00000000
60:  00000000 00000000 00000000 00000000
70:  00000000 00000000 00000000 00000000
80:  00020001 00000000 04630463 30000000
90:  00000000 00000000 00000000 00000000
Cardbus Socket registers:
00:  f000ff53: f000ff53: f000e2c3: f000ff53:
10:  f000ff53: f000ff54: f000a0af: f0001153:
ExCa registers:
00: 13 88 f5 5a 72 d0 80 e1 3f 74 c8 fa 66 8b 46 08
10: 52 66 0f b6 d9 66 31 d2 66 f7 f3 88 eb 88 d5 43
20: 30 d2 66 f7 f3 88 d7 5a 66 3d ff 03 00 00 fb 77
30: a2 86 c4 c0 c8 02 08 e8 40 91 88 fe 28 e0 8a 66
pci0: <unknown card> (vendor=0x104d, dev=0x808a) at 13.0 irq 9
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
devclass_alloc_unit: ata0 already exists, using next available unit number
devclass_alloc_unit: ata1 already exists, using next available unit number
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
fdc0: direction bit not set
fdc0: cmd 3 failed at out byte 1 of 3
ata3: iobase=0x0170 altiobase=0x0376 bmaddr=0x0000
ata3: mask=03 status0=00 status1=00
ata3: mask=03 status0=00 status1=00
ata3: devices = 0x0
ata3: probe allocation failed
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000
psm0: current command byte:0047
kbdc: TEST_AUX_PORT status:0000
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:0000
psm: status 00 02 64
psm: status 00 00 64
psm: status 00 03 64
psm: status 00 03 64
psm: status 53 02 14
psm: data 08 00 00
psm: status 00 02 64
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0-00, 2 buttons
psm0: config:00000000, flags:00000000, packet size:3
psm0: syncmask:c0, syncbits:00
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
fb0: vga0, vga, type:VGA (5), flags:0x7007f
fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000
fb0: init mode:24, bios mode:3, current mode:24
fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k
VGA parameters upon power-up
50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 07 30 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
VGA parameters in BIOS for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
EGA/VGA parameters to be used for mode 24
50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 
bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 
b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 
3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff 
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 irq 10 on isa0
pcic0: management irq 10
pccard0: <PC Card bus -- kludge version> on pcic0
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: irq maps: 0x1 0x1 0x1 0x1
sio1: probe failed test(s): 0 1 2 4 6 7 9
ppc0: parallel port found at 0x378
ppc0: ECP SPP SPP
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
mss_probe: no address given, try 0x530
mss_detect, busy still set (0xff)
sbc0: <Soundblaster Pro> at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0
pcm1: <SB DSP 3.01 (ViBRA16X)> on sbc0
pcm: setmap 5000, 2000; 0xcb3a0000 -> 5000
pcm: setmap 7000, 2000; 0xcb3a2000 -> 7000
isa_probe_children: probing PnP devices
BIOS Geometries:
 0:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
bpf: ppp0 attached
new masks: bio 40084200, tty 400310b2, net 400712b2
bpf: lo0 attached
ata0-master: success setting up UDMA2 mode on PIIX4 chip
ad0: <TOSHIBA MK1214GAP/N0.13 E> ATA-4 disk at ata0 as master
ad0: 11513MB (23579136 sectors), 23392 cyls, 16 heads, 63 S/T, 512 B/S
ad0: 16 secs/int, 1 depth queue, UDMA33
ad0: piomode=4 dmamode=2 udmamode=4 cblid=1
Creating DISK ad0
Creating DISK wd0
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 0
ad0s1: type 0xb, start 63, end = 8401994, size 8401932 : OK
ad0s2: type 0xa5, start 8401995, end = 23567354, size 15165360 : OK
start_init: trying /sbin/init
Linux-ELF exec handler installed
splash: image decoder found: logo_saver
devclass_alloc_unit: ata1 already exists, using next available unit number
pcic: I/O win 0 flags 17 180-187
pcic: I/O win 0 flags 7 180-187
pcic: I/O win 0 flags 17 180-187
pcic: I/O win 1 flags 17 386-386
ata4: iobase=0x0180 altiobase=0x0386 bmaddr=0x0000
ata4: mask=03 status0=00 status1=01
ata4: mask=03 status0=00 status1=01
ata4: devices = 0xc
ata4 at port 0x180-0x187,0x386 irq 3 slot 0 on pccard0
ata4-slave: identify retries exceeded
ata4-master: piomode=4 dmamode=2 udmamode=-1 dmaflag=1
acd0: <TOSHIBA CD-ROM XM-1902B/1624> CDROM drive at ata4 as master
acd0: read 2755KB/s (2755KB/s), 128KB buffer, BIOSPIO
acd0: Reads: CD-R, CD-RW, CD-DA stream
acd0: Audio: play, 16 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: CD-ROM 120mm audio disc loaded, unlocked


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003291958.LAA04012>