Presario V3412AU OpenBSD 4.2-Current

Azalia, OpenBSD January 23rd, 2008

My Notebook detail : Compaq Presario V3412AU running on OpenBSD 4.2-Current January 23, 2008. I still got some problem with this kernel: sound, acpi, wireless still not work correctly.

Here my dmesg output from:

OpenBSD 4.2-current (BETHESDA) #5: Wed Jan 23 09:47:01 WIT 2008
krisna@bethesda.ciputra.ac.id:/home/archives/src/sys/arch/i386/compile/BETHESDA
cpu0: AMD Turion(tm) 64 X2 (”AuthenticAMD” 686-class, 512KB L2 cache) 1.81 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,
MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
real mem = 1005146112 (958MB)
avail mem = 963858432 (919MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/22/07, BIOS32 rev. 0 @ 0xfdbc5, SMBIOS rev. 2.4 @ 0xdc010 (27 entries)
bios0: vendor Hewlett-Packard version “F.39″ date 11/22/2007
bios0: Hewlett-Packard Presario V3000 (GM187PA#UUF)
acpi at bios0 function 0×0 not configured
pcibios0: pcibios_get_status - function not supported
pcibios at bios0 function 0×1a not configured
bios0: ROM list: 0xc0000/0xf200 0xcf800/0×1800 0xdc000/0×4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
“NVIDIA C51 Host” rev 0xa2 at pci0 dev 0 function 0 not configured
“NVIDIA C51 Memory” rev 0xa2 at pci0 dev 0 function 1 not configured
“NVIDIA C51 Memory” rev 0xa2 at pci0 dev 0 function 2 not configured
“NVIDIA C51 Memory” rev 0xa2 at pci0 dev 0 function 3 not configured
“NVIDIA C51 Memory” rev 0xa2 at pci0 dev 0 function 4 not configured
“NVIDIA C51 Memory” rev 0xa2 at pci0 dev 0 function 5 not configured
“NVIDIA C51 Memory” rev 0xa2 at pci0 dev 0 function 6 not configured
“NVIDIA C51 Memory” rev 0xa2 at pci0 dev 0 function 7 not configured
ppb0 at pci0 dev 2 function 0 “NVIDIA C51 PCIE” rev 0xa1
pci1 at ppb0 bus 1
bwi0 at pci1 dev 0 function 0 “Broadcom BCM4312″ rev 0×02: could not map memory space
ppb1 at pci0 dev 3 function 0 “NVIDIA C51 PCIE” rev 0xa1
pci2 at ppb1 bus 3
vga1 at pci0 dev 5 function 0 vendor “NVIDIA”, unknown product 0×0244 rev 0xa2
wsdisplay0 at vga1 mux 1: console (80×25, vt100 emulation)
wsdisplay0: screen 1-5 added (80×25, vt100 emulation)
“NVIDIA MCP51 Host” rev 0xa2 at pci0 dev 9 function 0 not configured
pcib0 at pci0 dev 10 function 0 “NVIDIA MCP51 ISA” rev 0xa3
nviic0 at pci0 dev 10 function 1 “NVIDIA MCP51 SMBus” rev 0xa3
iic0 at nviic0
spdmem0 at iic0 addr 0×50: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
spdmem1 at iic0 addr 0×51: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
iic1 at nviic0
“NVIDIA MCP51 PMU” rev 0xa3 at pci0 dev 10 function 3 not configured
ohci0 at pci0 dev 11 function 0 “NVIDIA MCP51 USB” rev 0xa3: irq 11, version 1.0, legacy support
ehci0 at pci0 dev 11 function 1 “NVIDIA MCP51 USB” rev 0xa3: irq 7
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 “NVIDIA EHCI root hub” rev 2.00/1.00 addr 1
pciide0 at pci0 dev 13 function 0 “NVIDIA MCP51 IDE” rev 0xf1: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <Slimtype, DVD A DS8A1P, CH71> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
pciide1 at pci0 dev 14 function 0 “NVIDIA MCP51 SATA” rev 0xf1: DMA
pciide1: using irq 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <Hitachi HTS541616J9SA00>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb2 at pci0 dev 16 function 0 “NVIDIA MCP51 PCI-PCI” rev 0xa2
pci3 at ppb2 bus 5
“Ricoh 5C832 Firewire” rev 0×00 at pci3 dev 9 function 0 not configured
sdhc0 at pci3 dev 9 function 1 “Ricoh 5C822 SD/MMC” rev 0×19: irq 10
sdmmc0 at sdhc0
“Ricoh 5C843 MMC” rev 0×01 at pci3 dev 9 function 2 not configured
“Ricoh 5C592 Memory Stick” rev 0×0a at pci3 dev 9 function 3 not configured
“Ricoh 5C852 xD” rev 0×05 at pci3 dev 9 function 4 not configured
azalia0 at pci0 dev 16 function 1 “NVIDIA MCP51 HD Audio” rev 0xa2: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia_attach: resetting
azalia_attach: reset counter = 4998
azalia_attach: reset counter = 4989
azalia0: found a codec at #0
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: codec[0] vid 0×14f15045, subid 0×30b5103c, rev. 1.0, HDA version 1.0
azalia_codec_init: nidstart=1 #functions=2
azalia_codec_init: FTYPE result = 0×00000001
azalia_codec_init: There are 12 widgets in the audio function.
encodings=1<PCM>
PCM formats=e0140<24bit,20bit,16bit,96kHz,48kHz>
inamp: mute=0 size=0 steps=0 offset=0
outamp: mute=0 size=0 steps=0 offset=0
gpio: wake=0 unsol=0 gpis=0 gpos=0 gpios=0
azalia0: unknown10 wcap=40058d<POWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO>
cap=10014<EAPD,OUTPUT,PRESENCE>
[01/00] color=unknown device=speaker conn=fixed conntype=analog
location=top chassis=internal special=none
outamp: mute=1 size=5 steps=43 offset=43
connections=0×19,0×17; selected=0×17
azalia0: green11 wcap=40058d<POWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO>
cap=113c<VREF80,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE>
[01/15] color=green device=headphones conn=jack conntype=1/8
location=front chassis=external special=none
outamp: mute=1 size=5 steps=43 offset=43
connections=0×19,0×17; selected=0×17
azalia0: pink12 wcap=40058d<POWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO>
cap=113c<VREF80,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE>
[02/14] color=pink device=mic conn=none conntype=1/8
location=front chassis=separate special=none
outamp: mute=1 size=5 steps=43 offset=43
connections=0×19,0×17; selected=0×17
azalia0: black13 wcap=400301<DIGITAL,CONNLIST,STEREO>
cap=10<OUTPUT>
[03/00] color=black device=SPDIF-out conn=jack conntype=optical
location=rear chassis=separate special=none
connections=0×18; selected=0×18
azalia0: unknown14 wcap=400081<UNSOL,STEREO>
cap=1124<VREF80,VREFHIZ,INPUT,PRESENCE>
[15/00] color=unknown device=mic conn=fixed conntype=analog
location=spec0 chassis=internal special=riser
azalia0: unknown15 wcap=400001<STEREO>
cap=20<INPUT>
[02/01] color=unknown device=cd conn=none conntype=atapi
location=right chassis=internal special=none
azalia0: beep16 wcap=70000c<AMPOV,OUTAMP>
outamp: mute=1 size=11 steps=7 offset=7
azalia0: mix17 wcap=20050b<POWER,CONNLIST,AMPOV,INAMP,STEREO>
inamp: mute=1 size=5 steps=43 offset=20
connections=0×19,0×14,0×12,0×11,0×15; selected=0×19
azalia0: dac18 wcap=211<DIGITAL,FORMATOV,STEREO>
encodings=5<AC3,PCM>
PCM formats=60040<20bit,16bit,48kHz>
azalia0: dac19 wcap=c11<LRSWAP,POWER,FORMATOV,STEREO>
encodings=1<PCM>
PCM formats=e0540<24bit,20bit,16bit,192kHz,96kHz,48kHz>
azalia0: adc1a wcap=100d0b<LRSWAP,POWER,CONNLIST,AMPOV,INAMP,STEREO>
inamp: mute=1 size=5 steps=23 offset=0
connections=0×17,0×14,0×12,0×11,0×15; selected=0×15
azalia0: vendor1b wcap=f00000
azalia_codec_init: dacgroup[0]: 19
azalia_codec_init: dacgroup[1]: 18
azalia0: codec[s]: Conexant/0×5045
audio0 at azalia0
azalia_round_blocksize: resultant block size = 384
azalia_round_blocksize: resultant block size = 384
nfe0 at pci0 dev 20 function 0 “NVIDIA MCP51 LAN” rev 0xa3: irq 11, address 00:16:d3:ae:60:67
eephy0 at nfe0 phy 1: Marvell 88E1118 Gigabit PHY, rev. 0
pchb0 at pci0 dev 24 function 0 “AMD AMD64 HyperTransport” rev 0×00
pchb1 at pci0 dev 24 function 1 “AMD AMD64 Address Map” rev 0×00
pchb2 at pci0 dev 24 function 2 “AMD AMD64 DRAM Cfg” rev 0×00
pchb3 at pci0 dev 24 function 3 “AMD AMD64 Misc Cfg” rev 0×00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0×60/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 0×61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 “NVIDIA OHCI root hub” rev 1.00/1.00 addr 1
biomask effd netmask effd ttymask ffff
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 5 configuration 1 interface 0 “vendor 0×04f3 PS/2+USB Mouse” rev 1.10/22.90 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b.

Do You have any idea on this problem?

Squid-ldap OpenBSD 4.2

Ldap, OpenBSD, Squid November 30th, 2007

Edit /usr/ports/www/squid/Makefile

CONFIGURE_ARGS+=–datadir=”${PREFIX}/share/squid” \
–enable-auth=”basic digest” \
–enable-arp-acl \
–enable-basic-auth-helpers=”NCSA YP LDAP” \
–enable-digest-auth-helpers=”password” \
–enable-external-acl-helpers=”ip_user unix_group” \
–enable-removal-policies=”lru heap” \
–enable-ssl \
–enable-delay-pools \
–enable-storeio=”ufs diskd null” \
–localstatedir=”${SQUIDDIR}”

then do make and you’ll got error like this:

[PATH_TO_SQUID_WORKDIR]/squid-2.6.STABLE13/helpers/basic_auth/LDAP/squid_ldap_auth.c:704:
warning: assignment makes pointer from integer without a cast
[PATH_TO_SQUID_WORKDIR]/squid-2.6.STABLE13/helpers/basic_auth/LDAP/squid_ldap_auth.c:740: error:
`LDAP_COMPARE_TRUE’ undeclared (first use in this function)
*** Error code 1

edit [PATH_TO_SQUID_WORKDIR]/build-i386/helpers/basic_auth/LDAP/Makefile, add & change the configuration to:

[PATH_TO_SQUID_WORKDIR]/build-i386/helpers/basic_auth/LDAP/Makefile
—————
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I/usr/local/include
LDADD = -L$(top_builddir)/lib -lmiscutil $(LIB_LDAP) $(LIB_LBER) $(XTRA_LIBS) /usr/local/lib/libldap-2.3.so.9.1
-L
[PATH_TO_SQUID_WORKDIR]/build-i386/helpers/external_acl/ldap_group/Makefile
————————
LDADD = -L$(top_builddir)/lib -lmiscutil $(LIB_LDAP) $(LIB_LBER) -lm /usr/local/lib/libldap-2.3.so.9.1 -L/usr/local/lib
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I/usr/local/include

Then do ‘make’

: warning: strcat() is almost always misused, please use strlcat()
if cc -DHAVE_CONFIG_H -I. -I
[PATH_TO_SQUID_WORKDIR]/squid-2.6.STABLE13/tools -I../include -I. -I[PATH_TO_SQUID_WORKDIR]/squid-2.6.STABLE13/tools -I../include -I[PATH_TO_SQUID_WORKDIR]/squid-2.6.STABLE13/include -I[PATH_TO_SQUID_WORKDIR]/squid-2.6.STABLE13/lib/libTrie/include -DDEFAULT_CACHEMGR_CONFIG=\”/etc/cachemgr.conf\” -O2 -pipe -MT cachemgr__CGIEXT_-cachemgr.o -MD -MP -MF “.deps/cachemgr__CGIEXT_-cachemgr.Tpo” -c -o cachemgr__CGIEXT_-cachemgr.o `test -f ‘cachemgr.c’ || echo ‘/usr/ports/www/squid/w-squid-2.6.STABLE13/squid-2.6.STABLE13/tools/’`cachemgr.c; then mv -f “.deps/cachemgr__CGIEXT_-cachemgr.Tpo” “.deps/cachemgr__CGIEXT_-cachemgr.Po”; else rm -f “.deps/cachemgr__CGIEXT_-cachemgr.Tpo”; exit 1; fi
cc -O2 -pipe -g -o cachemgr.cgi -static cachemgr__CGIEXT_-cachemgr.o -L../lib -lmiscutil -lm
../lib/libmiscutil.a(rfc1738.o)(.text+0xe0): In function `rfc1738_do_escape’:
: warning: sprintf() is often misused, please use snprintf()

Copy [PATH_TO_SQUID_WORKDIR]/build-i386/helpers/basic_auth/LDAP/squid_ldap_auth to /usr/local/libexec

OpenBSD Interface Bonding

OpenBSD November 29th, 2007

While browsing i’m found the nice article about OpenBSD Interface Bonding. I’ll test for stability of this configuration before applying into my server. This is the first link:
-
The following is used on OpenBSD since version 3.9 to combine two physical interfaces (fxp1, fxp2) into a single virtual interface (trunk0). This method allows one to take the feeds from a traditional two-output tap and present a single virtual interface to NSM applications.

# ifconfig fxp1 up
# ifconfig fxp2 up
# ifconfig trunk0 trunkport fxp1 up
# ifconfig trunk0 trunkport fxp2 up
# ifconfig trunk0 trunkproto roundrobin up

To make this configuration permanent between reboots:

echo “up” > /etc/hostname.fxp1
echo “up” > /etc/hostname.fxp2
echo “trunkproto roundrobin trunkport fxp1 trunkport fxp2″ > /etc/hostname.trunk0

Remember to replace fxp1 and fxp2 with the network interfaces on your OpenBSD system (e.g., em0, xl0, rl0, etc.).

OpenBSD 3.8 only supported the round robin trunk protocol.

-The other bonding interface article

Hava Nagila

Music, OpenBSD September 20th, 2007

Taken From Wikipedia nice song from Hebrew. It also “ported to OpenBSD” song 4.0 hehehe… Nice song.. Simak penuturan Wikipedia berikut:

Hava Nagila (הבה נגילה in Hebrew) is a Hebrew folk song, the title meaning “Let us rejoice.” It is a song of celebration, especially popular amongst irreligious Jewish and Roma communities. In popular culture, it is used as a metonym for Judaism, and is a staple of band performers at Jewish festivals.

Though the melody is an ancient one of folk origin, the commonly used text was probably composed in 1918 to celebrate the British victory in Palestine during World War I as well as the Balfour Declaration.

A transliteration, spelling of the title and lyrics varies.

Transliteration Hebrew Text English Translation
Hava nagila הבה נגילה Let’s rejoice
Hava nagila הבה נגילה Let’s rejoice
Hava nagila venis’mecha הבה נגילה ונשמחה Let’s rejoice and be happy
(repeat stanza once)
Hava neranenah הבה נרננה Let’s sing
Hava neranenah הבה נרננה Let’s sing
Hava neranenah venis’mecha הבה נרננה ונשמחה Let’s sing and be happy
—————- (repeat stanza once) —————————
Uru, uru achim! !עורו, עורו אחים Awake, awake, brothers!
Uru achim b’lev sameach עורו אחים בלב שמח Awake brothers with a happy heart
—————- (repeat line three times) —————————
Uru achim, uru achim! !עורו אחים, עורו אחים Awake, brothers, awake, brothers!
B’lev sameach בלב שמח With a happy heart

It should be noted that ch is pronounced like the German ch (after a back vowel, as in Bach) or Spanish j [IPA: /x/].

Hahaha Nice Song… You can also download many variety of this song..