NetBSD 6.0 final released!

NetBSD 6.0 released. It was quite a long wait but I think it was worth it. amd64, i386 ports has better ACPI, hardware support, updated and much better Linux emulation, userland tools are updated too of course. This is probably features I admired and noticed first but it just a small fraction of all changes. Other changes for NetBSD in general and other ports you can read in release announcement. Or just download it from NetBSD mirrors and give it a try.

My pulseaudio compiling problem

I was having a problem to compile pulseaudio from “current” pkgsrc for a long time in my setup. It prevented me from compiling gnome environment normally (as it had dependencies in various media packages from pkgsrc). Finally I noticed that it had been crashing on dependency checking at the same place:

=> Full dependency libsndfile>=1.0.20: found libsndfile-1.0.25
[1]   Segmentation fault (core dumped) /usr/pkg/sbin/pk…
*** Error code 139

Next dependency was speex in generated work/.depends file. So I tried to figure out what had been wrong.

Firstly I re-installed speex:
/usr/pkgscr/audio/speex

Deleted dependency in pulseaudio:
/work/.depends find line:
full    speex>=1.2rc1   ../../audio/speex

When I needed to set environment variables:
LIBSPEEX_LIBS=”-L/usr/pkg/lib -lspeex -lspeexdsp”
LIBSPEEX_CFLAGS=”-I/usr/pkg/include/speex”
export LIBSPEEX_LIBS
export LIBSPEEX_CFLAGS

After make command I got a new error:

===> Creating toolchain wrappers for pulseaudio-0.9.21nb15
sh: Syntax error: expecting “in”
*** Error code 2

So I edited newly created work/.wrapper_makevars.mk:
I found a line:
BUILDLINK_PREFIX.speex=
and added          /usr/pkg:
BUILDLINK_PREFIX.speex=         /usr/pkg

After make command compilation finally started but I still got warnings that /usr/pkgsrc/audio/pulseaudio/work/.buildlink/include/  hadn’t existed. Because of this I added to work/.buildlink folder these files:
cp -r /usr/pkg/include/speex/ /usr/pkgsrc/audio/pulseaudio/work/.buildlink/include/
cp /usr/pkg/lib/libspeex* /usr/pkgsrc/audio/pulseaudio/work/.buildlink/lib/

I thought that this would be enough but compiling still ended up with errors at some point. However these errors led me to the solution. It appeared that all speex include files (*.h) had been broken. They hadn’t source code, only lots of meaningless text and echo outputs. It is hard to say why this happened but one more speex re-installation fixed them. After that pulseaudio compilation just worked without any issues and upper mentioned actions. I am quite sure that this problem existed in different NetBSD setups for me during last two or three months. I installed speex at least two times this time too. Was it my fault or pkgsrc scripts one or something else it is hard to say currently. Nevertheless, this solved problem probably will help me to look into pkgsrc crashes even more flexibly and save unnecessary spent time.

NetBSD6 BETA2 released

NetBSD6 BETA2 was released on May 26, 2012. According to an interesting bsdtalk215 conversation with David Maxwell, Julio Merino, and Brett Lymn at BSDCan 2012 about upcoming release, it is expected to be last beta release before the first release candidate. Of course, if it is needed we may see other beta releases too. This release is interesting to me because one fix was made by help from myself. It took almost three years to find a problem for me after I submitted it (I investigated the problem lot of times in that period). Nevertheless I was extremely happy to contribute to the project.

Last but not least, you can read an interesting interview at unixmen.com  with another NetBSD member – Martin Husemann. It is especially interesting to new people who wants to understand what NetBSD is and what can you expect from it. Some information about upcoming NetBSD 6 release is mentioned too.

EPIA-M900 dmesg output

NetBSD blog without any dmesg output? This is just boring. Only several months ago I bought VIA EPIA-M900 and it was hanging up on boot at that time. Today I tried it yet again and it booted (later I found that VX900 IDE support was added not so long ago)! Thanks for NetBSD developers. Here you go:

dmesg

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012
The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.

NetBSD 6.0_BETA (GENERIC)
total memory = 7423 MB
avail memory = 7192 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter “i8254” frequency 1193182 Hz quality 100
VIA technology Inc. VT3410 I2F00MB (410 AMI R102)
mainbus0 (root)
cpu0 at mainbus0 apid 0: VIA Nano X2 L4350 @ 1.6+ GHz, id 0x6fc
cpu1 at mainbus0 apid 2: VIA Nano X2 L4350 @ 1.6+ GHz, id 0x6fc
ioapic0 at mainbus0 apid 3: pa 0xfec00000, version 3, 24 pins
ioapic1 at mainbus0 apid 4: pa 0xfecc0000, version 3, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId <070111,XSDT1500,20110701>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
timecounter: Timecounter “ACPI-Safe” frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter “hpet0” frequency 14318180 Hz quality 2000
NBPE (PNP0C01) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
UAR1 (PNP0501) at acpi0 not configured
UAR2 (PNP0501) at acpi0 not configured
UAR3 (PNP0501) at acpi0 not configured
UAR4 (PNP0501) at acpi0 not configured
SIOR (PNP0C02) at acpi0 not configured
RMSC (PNP0C02) at acpi0 not configured
pckbc1 at acpi0 (PS2M, PNP0F03) (aux port): io 0x60,0x64 irq 12
OMSC (PNP0C02) at acpi0 not configured
acpiacad0 at acpi0 (ACDP, ACPI0003): ACPI AC Adapter
PCIE (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
RMEM (PNP0C01) at acpi0 not configured
acpibut1 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
acpiwdrt0 at acpi0: mem 0xfed01000,0xfed01004
acpiwdrt0: watchdog interval 1-1023 sec.
attimer1: attached to pcppi1
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x1106 product 0x0410 (rev. 0x80)
pchb1 at pci0 dev 0 function 1: vendor 0x1106 product 0x1410 (rev. 0x00)
pchb2 at pci0 dev 0 function 2: vendor 0x1106 product 0x2410 (rev. 0x00)
pchb3 at pci0 dev 0 function 3: vendor 0x1106 product 0x3410 (rev. 0x00)
pchb4 at pci0 dev 0 function 4: vendor 0x1106 product 0x4410 (rev. 0x00)
pchb5 at pci0 dev 0 function 5: vendor 0x1106 product 0x5410 (rev. 0x00)
pchb6 at pci0 dev 0 function 6: vendor 0x1106 product 0x6410 (rev. 0x00)
pchb7 at pci0 dev 0 function 7: vendor 0x1106 product 0x7410 (rev. 0x00)
ppb0 at pci0 dev 3 function 0: vendor 0x1106 product 0xa410 (rev. 0x00)
ppb0: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga0 at pci1 dev 0 function 0: vendor 0x5333 product 0x9060 (rev. 0x01)
wsdisplay0 at vga0 kbdmux 1: console (80×25, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
hdaudio0 at pci1 dev 0 function 1: HD Audio Controller
hdaudio0: interrupting at ioapic1 pin 1
hdafg0 at hdaudio0: vendor 5333 product 1111
hdafg0: HDMI00 2ch: Digital Out [Built-In] hdafg0: 2ch/0ch 48000Hz PCM16 AC3
hdafg1 at hdaudio0: vendor 5333 product 1111
hdafg1: HDMI00 2ch: Digital Out [Built-In] hdafg1: 2ch/0ch 48000Hz PCM16 AC3
ppb1 at pci0 dev 3 function 1: vendor 0x1106 product 0xb410 (rev. 0x00)
ppb1: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 3 function 2: vendor 0x1106 product 0xc410 (rev. 0x00)
ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci0 dev 3 function 3: vendor 0x1106 product 0xd410 (rev. 0x00)
ppb3: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci4 at ppb3 bus 5
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
vge0 at pci4 dev 0 function 0: VIA VT612X Gigabit Ethernet (rev. 0x82)
vge0: interrupting at ioapic1 pin 12
vge0: Ethernet address:
ukphy0 at vge0 phy 22: OUI 0x0009c3, model 0x0019, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
pchb8 at pci0 dev 3 function 4: vendor 0x1106 product 0xe410 (rev. 0x00)
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies VX900 ATA133 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to native-PCI mode
viaide0: using ioapic0 pin 21 for native-PCI interrupt
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to native-PCI mode
atabus1 at viaide0 channel 1
uhci0 at pci0 dev 16 function 0: vendor 0x1106 product 0x3038 (rev. 0xa0)
uhci0: interrupting at ioapic0 pin 20
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 16 function 1: vendor 0x1106 product 0x3038 (rev. 0xa0)
uhci1: interrupting at ioapic0 pin 22
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 16 function 2: vendor 0x1106 product 0x3038 (rev. 0xa0)
uhci2: interrupting at ioapic0 pin 21
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 16 function 3: vendor 0x1106 product 0x3038 (rev. 0xa0)
uhci3: interrupting at ioapic0 pin 23
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 16 function 4: vendor 0x1106 product 0x3104 (rev. 0x90)
ehci0: interrupting at ioapic0 pin 23
ehci0: dropped intr workaround enabled
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
pcib0 at pci0 dev 17 function 0: vendor 0x1106 product 0x8410 (rev. 0x00)
pchb9 at pci0 dev 17 function 7: vendor 0x1106 product 0xa353 (rev. 0x00)
ppb4 at pci0 dev 19 function 0: vendor 0x1106 product 0xb353 (rev. 0x00)
pci5 at ppb4 bus 6
pci5: i/o space, memory space enabled
hdaudio1 at pci0 dev 20 function 0: HD Audio Controller
hdaudio1: interrupting at ioapic0 pin 17
hdafg2 at hdaudio1: VIA VT2020
hdafg2: DAC00 2ch: Speaker [Jack], HP Out [Jack] hdafg2: ADC01 2ch: Line In [Jack], Mic In [Jack] hdafg2: DIG02 2ch: SPDIF Out [Jack] hdafg2: 2ch/2ch 48000Hz PCM16*
audio0 at hdafg2: full duplex, playback, capture, independent
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu1 at cpu1: ACPI CPU
timecounter: Timecounter “clockinterrupt” frequency 100 Hz quality 0
acpiacad0: AC adapter online.
wd0 at atabus0 drive 0
wd0: <KINGSTON SVP200S3120G>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
uhub0 at usb0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: vendor 0x1106 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
umass0 at uhub4 port 2 configuration 1 interface 0
umass0: JMicron JM20336 SATA, USB Combo, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
cd0 at scsibus0 target 0 lun 0: <HL-DT-ST, DVDRAM GT20N, CQ02> cdrom removable
uhub5 at uhub4 port 3: vendor 0x0424 product 0x2504, class 9/0, rev 2.00/0.01, addr 3
uhub5: multiple transaction translators
uhub5: 2 ports with 2 removable, self powered
umass1 at uhub5 port 1 configuration 1 interface 0
umass1: vendor 0x13fe silicon-power, rev 2.00/1.10, addr 4
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd0 at scsibus1 target 0 lun 0: <, silicon-power, PMAP> disk removable
sd0: 3822 MB, 7644 cyl, 32 head, 32 sec, 512 bytes/sect x 7827456 sectors
ubt0 at uhub5 port 2
ubt0: vendor 0x0a12 Bluetooth2.1+EDR CLASS1, rev 2.00/52.76, addr 5
ehci0: handing over low speed device on port 4 to uhci1
ehci0: handing over low speed device on port 5 to uhci2
ehci0: handing over full speed device on port 7 to uhci3
uhidev0 at uhub1 port 2 configuration 1 interface 0
uhidev0: vendor 0x13ba Generic USB K/B, rev 1.10/0.01, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
uhidev1 at uhub2 port 1 configuration 1 interface 0
uhidev1: Logitech USB Optical Mouse, rev 2.00/27.20, addr 2, iclass 3/1
ums0 at uhidev1: 8 buttons, W and Z dirs
wsmouse0 at ums0 mux 0
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev2 at uhub1 port 2 configuration 1 interface 1
uhidev2: vendor 0x13ba Generic USB K/B, rev 1.10/0.01, addr 2, iclass 3/1
uhidev2: 2 report ids
ums1 at uhidev2 reportid 1: 3 buttons and Z dir
wsmouse1 at ums1 mux 0
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uvideo0 at uhub4 port 8 configuration 1 interface 0: vendor 0x046d product 0x0824, rev 2.00/0.10, addr 6
video0 at uvideo0: vendor 0x046d product 0x0824, rev 2.00/0.10, addr 6
uaudio0 at uhub4 port 8 configuration 1 interface 2
uaudio0: vendor 0x046d product 0x0824, rev 2.00/0.10, addr 6
uaudio0: audio rev 1.00
audio1 at uaudio0: full duplex, playback, capture, independent
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio2 at pad0: half duplex, playback, capture
boot device: cd0
root on cd0a dumps on cd0b
ulpt0 at uhub3 port 1 configuration 1 interface 1
ulpt0: HP PSC 2350 series, rev 2.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
umass2 at uhub3 port 1 configuration 1 interface 3
umass2: HP PSC 2350 series, rev 2.00/1.00, addr 2
umass2: using SCSI over Bulk-Only
scsibus2 at umass2: 2 targets, 1 lun per target
sd1 at scsibus2 target 0 lun 0: <HP, PSC 2355, 1.00> disk removable
sd1: drive offline
sd1: unable to open device, error = 19
root file system type: cd9660
warning: no /dev/console

GSoC projects

NetBSD’s Google Summer of Code projects were announced:

  • Socket option to timestamp UDP packets in the kernel
    Student: Vlad Balan
  • TLS (HTTPS) support in net/tnftp
    Student: Miklós HOMOLYA
  • Port ASan to NetBSD
    Student: steve
  • Sysinst enhancements
    Student: Eugene Lozovoy
  • HTree directory indexing for Ext3
    Student: Vyacheslav Matyushin
  • NAT-PMP and/or UPnP IGD support for NPF; MiniUPnP integration
    Student: Zoltan Arnold Nagy
  • NAT64/46 and NPTv6 integration with NPF
    Student: mpp

I wish great summer and success for students.

Source

NetBSD 6 branched

I noticed that NetBSD 6 branch appeared on development ftp (nyftp.netbsd.org). So long awaited release is coming closer. However, it doesn’t mean that release will be soon. We will probably have to go through some beta period and several release candidates before the release. I would expect release not earlier than the summer but this is just my speculation. Still I’ll try to update my outdated netbsd-current (I didn’t updated it some time already) to that branch on my main computer.

First fix on my reported bug

I filed three bug reports yesterday (total count of my submitted bugs are 4 now) and I got a first fix this morning. It is actually the first code change to NetBSD repository caused by my bug report. That was fast but I hope other bugs will be fixed in less than a year contrary to my first bug report for which I made workaround myself and it is not fixed for almost 3 years. Though I don’t expect much as all of them related to specific hardware and its drivers problems. However, I am happy that my time spent on testing and debugging didn’t go wasted. If you want to fill a bug report you can use web interface for that (or NetBSD send-pr tool).

Personal NetBSD and other things blog