Updated to NetBSD 9 branch

At the end of July I decided to downgrade my graphics card from Radeon RX 460 to Radeon R7 370 (which is performance wise similar card) for better NetBSD compatibility and ability to build NetBSD desktop. It almost coincided with the creation of NetBSD 9 branch which should serve the basis of my desktop system (though current branch will always be followed too in one way or another). However, my upgrade was delayed because unexpected reasons, up until time of writing github and fossil repositories are not synchronized with CVS because of some hardware issues and my alternative resource from IIJ-NetBSD netbsd-src git repository imported netbsd-9 branch just recently. Since they have it now, I finally upgraded the system, as well as updated to the latest packages from pkgsrc current. It worked as expected since I was following current branch up until the branch was created and there were not much room for surprises left. R7 370 has a support in radeon drm driver, was detected correctly and works quite nicely with MATE 1.22.1 Desktop Environment. So I hope to evolve my project and see how much limitations I will hit in my daily usage (because of missing/badly ported software as example). If results will satisfy me, the NetBSD may become my main desktop operating system. You can check dmesg below:

NetBSD 9.0 BETA on Ryzen 5 1600
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018, 2019 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 9.0_BETA (GENERIC) #1: Sat Aug 17 00:25:49 EEST 2019
andriusv@localhost:/home/andriusv/netbsd-src-git/sys/arch/amd64/compile/GENERIC
total memory = 32719 MB
avail memory = 31739 MB
cpu_rng: RDSEED
rnd: seeded with 128 bits
WARNING: ZFS on NetBSD is under development
ZFS filesystem version: 5
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter “i8254” frequency 1193182 Hz quality 100
BIOSTAR Group X370GT5 ( )
mainbus0 (root)
ACPI: RSDP 0x00000000000F05A0 000024 (v02 ALASKA)
ACPI: XSDT 0x00000000DC4AB0A8 0000CC (v01 ALASKA A M I 01072009 AMI 00010013)
ACPI: FACP 0x00000000DC4B03E8 000114 (v06 ALASKA A M I 01072009 AMI 00010013)
ACPI: DSDT 0x00000000DC4AB208 0051E0 (v02 ALASKA A M I 01072009 INTL 20120913)
ACPI: FACS 0x00000000DC547E00 000040
ACPI: APIC 0x00000000DC4B0500 0000DE (v03 ALASKA A M I 01072009 AMI 00010013)
ACPI: FPDT 0x00000000DC4B05E0 000044 (v01 ALASKA A M I 01072009 AMI 00010013)
ACPI: FIDT 0x00000000DC4B0628 00009C (v01 ALASKA A M I 01072009 AMI 00010013)
ACPI: SSDT 0x00000000DC4B06C8 0000C8 (v02 ALASKA CPUSSDT 01072009 AMI 01072009)
ACPI: SSDT 0x00000000DC4B0790 008C98 (v02 AMD AMD ALIB 00000002 MSFT 04000000)
ACPI: SSDT 0x00000000DC4B9428 002FB6 (v01 AMD AMD AOD 00000001 INTL 20120913)
ACPI: MCFG 0x00000000DC4BC3E0 00003C (v01 ALASKA A M I 01072009 MSFT 00010013)
ACPI: BHMB 0x00000000DC4BC420 000474 (v01 ALASKA A M I 00000001 AMI 00000001)
ACPI: HPET 0x00000000DC4BC898 000038 (v01 ALASKA A M I 01072009 AMI 00000005)
ACPI: SSDT 0x00000000DC4BC8D0 000024 (v01 AMDFCH FCHZP 00001000 INTL 20120913)
ACPI: UEFI 0x00000000DC4BC8F8 000042 (v01 ALASKA A M I 00000002 01000013)
ACPI: TPM2 0x00000000DC4BC940 000038 (v04 ALASKA A M I 00000001 AMI 00000000)
ACPI: IVRS 0x00000000DC4BC978 0000D0 (v02 AMD AMD IVRS 00000001 AMD 00000000)
ACPI: SSDT 0x00000000DC4BCA48 001A58 (v01 AMD AMD CPU 00000001 AMD 00000001)
ACPI: CRAT 0x00000000DC4BE4A0 000BD0 (v01 AMD AMD CRAT 00000001 AMD 00000001)
ACPI: CDIT 0x00000000DC4BF070 000029 (v01 AMD AMD CDIT 00000001 AMD 00000001)
ACPI: SSDT 0x00000000DC4BF0A0 001CE5 (v01 AMD AmdTable 00000001 INTL 20120913)
ACPI: SSDT 0x00000000DC4C0D88 0000BF (v01 AMD AMD PT 00001000 INTL 20120913)
ACPI: WSMT 0x00000000DC4C0E48 000028 (v01 ALASKA A M I 01072009 AMI 00010013)
ACPI: SSDT 0x00000000DC4C0E70 0010AF (v01 AMD AmdTable 00000001 INTL 20120913)
ACPI: 9 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 13: pa 0xfec00000, version 0x21, 24 pins
ioapic1 at mainbus0 apid 14: pa 0xfec01000, version 0x21, 32 pins
cpu0 at mainbus0 apid 0
cpu0: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 2
cpu1: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu1: package 0, core 1, smt 0
cpu2 at mainbus0 apid 4
cpu2: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu2: package 0, core 2, smt 0
cpu3 at mainbus0 apid 8
cpu3: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu3: package 0, core 4, smt 0
cpu4 at mainbus0 apid 10
cpu4: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu4: package 0, core 5, smt 0
cpu5 at mainbus0 apid 12
cpu5: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu5: package 0, core 6, smt 0
cpu6 at mainbus0 apid 1
cpu6: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu6: package 0, core 0, smt 1
cpu7 at mainbus0 apid 3
cpu7: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu7: package 0, core 1, smt 1
cpu8 at mainbus0 apid 5
cpu8: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu8: package 0, core 2, smt 1
cpu9 at mainbus0 apid 9
cpu9: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu9: package 0, core 4, smt 1
cpu10 at mainbus0 apid 11
cpu10: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu10: package 0, core 5, smt 1
cpu11 at mainbus0 apid 13
cpu11: AMD Ryzen 5 1600 Six-Core Processor , id 0x800f11
cpu11: package 0, core 6, smt 1
acpi0 at mainbus0: Intel ACPICA 20190405
acpi0: X/RSDT: OemId , AslId
acpi0: autoconfiguration error: invalid PCI address for D01E
acpi0: MCFG: segment 0, bus 0-63, address 0x00000000f8000000
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter “ACPI-Fast” frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter “hpet0” frequency 14318180 Hz quality 2000
AMDN (PNP0C01) at acpi0 not configured
IOMA (PNP0C02) at acpi0 not configured
APSP (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
spkr0 at pcppi1: PC Speaker
wsbell at spkr0 not configured
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
SIO1 (PNP0C02) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303-0) (kbd port): io 0x60,0x64 irq 1
UAR1 (PNP0501) at acpi0 not configured
S900 (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
GPIO (AMDI0030) at acpi0 not configured
TPM (MSFT0101) at acpi0 not configured
AWR0 (PNP0C02) at acpi0 not configured
ABR0 (PNP0C02) at acpi0 not configured
ABR1 (PNP0C02) at acpi0 not configured
ABR2 (PNP0C02) at acpi0 not configured
ABR3 (PNP0C02) at acpi0 not configured
ABR4 (PNP0C02) at acpi0 not configured
ABR5 (PNP0C02) at acpi0 not configured
ABR6 (PNP0C02) at acpi0 not configured
ABR7 (PNP0C02) at acpi0 not configured
AWR1 (PNP0C02) at acpi0 not configured
ABR8 (PNP0C02) at acpi0 not configured
ABR9 (PNP0C02) at acpi0 not configured
ABRA (PNP0C02) at acpi0 not configured
ABRB (PNP0C02) at acpi0 not configured
ABRC (PNP0C02) at acpi0 not configured
ABRD (PNP0C02) at acpi0 not configured
ABRE (PNP0C02) at acpi0 not configured
ABRF (PNP0C02) at acpi0 not configured
PTIO (AMDIF030) at acpi0 not configured
acpitz0 at acpi0 (THRM)
acpitz0: levels: critical 85.0 C, passive cooling
acpiwmi0 at acpi0 (AOD, PNP0C14-AOD): ACPI WMI Interface
acpiwmibus at acpiwmi0 not configured
ACPI: Enabled 1 GPEs in block 00 to 1F
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
amdsmn0 at pci0 dev 0 function 0: AMD Family 17h System Management Network
amdzentemp0 at amdsmn0: AMD CPU Temperature Sensors (Family17h)
vendor 1022 product 1451 (IOMMU system) at pci0 dev 0 function 2 not configured
pchb0 at pci0 dev 1 function 0: vendor 1022 product 1452 (rev. 0x00)
ppb0 at pci0 dev 1 function 1: vendor 1022 product 1453 (rev. 0x00)
ppb0: PCI Express capability version 2 x4 @ 2.5GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
xhci0 at pci1 dev 0 function 0: vendor 1022 product 43b9 (rev. 0x02)
xhci0: interrupting at msi0 vec 0
xhci0: xHCI version 1.10
usb0 at xhci0: USB revision 3.1
usb1 at xhci0: USB revision 2.0
ahcisata0 at pci1 dev 0 function 1: vendor 1022 product 43b5 (rev. 0x02)
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.31, 8 ports, 32 slots, CAP 0xef36ff27
ahcisata0: interrupting at msi1 vec 0
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
atabus4 at ahcisata0 channel 4
atabus5 at ahcisata0 channel 5
atabus6 at ahcisata0 channel 6
atabus7 at ahcisata0 channel 7
ppb1 at pci1 dev 0 function 2: vendor 1022 product 43b0 (rev. 0x02)
ppb1: PCI Express capability version 2
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci2 dev 0 function 0: vendor 1022 product 43b4 (rev. 0x02)
ppb2: PCI Express capability version 2 x1 @ 5.0GT/s
ppb2: link is x1 @ 2.5GT/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci3 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x16)
re0: interrupting at msix2 vec 0
re0: Ethernet address xx:xx:xx:xx:xx:xx
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8251 1000BASE-T media interface, rev. 0
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
ppb3 at pci2 dev 1 function 0: vendor 1022 product 43b4 (rev. 0x02)
ppb3: PCI Express capability version 2 x1 @ 5.0GT/s
ppb3: link is x1 @ 2.5GT/s
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci4 dev 0 function 0: vendor 1b21 product 1080 (rev. 0x03)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
ppb5 at pci2 dev 2 function 0: vendor 1022 product 43b4 (rev. 0x02)
ppb5: PCI Express capability version 2 x1 @ 5.0GT/s
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
ppb6 at pci2 dev 3 function 0: vendor 1022 product 43b4 (rev. 0x02)
ppb6: PCI Express capability version 2 x1 @ 5.0GT/s
pci7 at ppb6 bus 7
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
ppb7 at pci2 dev 4 function 0: vendor 1022 product 43b4 (rev. 0x02)
ppb7: PCI Express capability version 2 x2 @ 5.0GT/s
pci8 at ppb7 bus 8
pci8: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 1fc9 product 4022 (ethernet network) at pci8 dev 0 function 0 not configured
ppb8 at pci2 dev 6 function 0: vendor 1022 product 43b4 (rev. 0x02)
ppb8: PCI Express capability version 2 x1 @ 5.0GT/s
pci9 at ppb8 bus 9
pci9: i/o space, memory space enabled, rd/line, wr/inv ok
ppb9 at pci2 dev 7 function 0: vendor 1022 product 43b4 (rev. 0x02)
ppb9: PCI Express capability version 2 x1 @ 5.0GT/s
ppb9: link is x1 @ 2.5GT/s
pci10 at ppb9 bus 10
pci10: i/o space, memory space enabled, rd/line, wr/inv ok
athn0 at pci10 dev 0 function 0: Atheros AR9287
athn0: rev 2 (2T2R), ROM rev 4, address xx:xx:xx:xx:xx:xx
athn0: interrupting at ioapic1 pin 3
athn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
athn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
pchb1 at pci0 dev 2 function 0: vendor 1022 product 1452 (rev. 0x00)
pchb2 at pci0 dev 3 function 0: vendor 1022 product 1452 (rev. 0x00)
ppb10 at pci0 dev 3 function 1: vendor 1022 product 1453 (rev. 0x00)
ppb10: PCI Express capability version 2 x16 @ 8.0GT/s
pci11 at ppb10 bus 11
pci11: i/o space, memory space enabled, rd/line, wr/inv ok
radeon0 at pci11 dev 0 function 0: vendor 1002 product 6811 (rev. 0x81)
hdaudio0 at pci11 dev 0 function 1: HD Audio Controller
hdaudio0: interrupting at msi3 vec 0
hdafg0 at hdaudio0: vendor 1002 product aa01
hdafg0: HDMI00 2ch: Digital Out [Jack] hdafg0: HDMI01 2ch: Digital Out [Jack] hdafg0: HDMI02 2ch: Digital Out [Jack] hdafg0: HDMI03 2ch: Digital Out [Jack] hdafg0: HDMI04 2ch: Digital Out [Jack] hdafg0: HDMI05 2ch: Digital Out [Jack] hdafg0: 2ch/0ch 32000Hz 44100Hz 48000Hz PCM16 AC3
pchb3 at pci0 dev 4 function 0: vendor 1022 product 1452 (rev. 0x00)
pchb4 at pci0 dev 7 function 0: vendor 1022 product 1452 (rev. 0x00)
ppb11 at pci0 dev 7 function 1: vendor 1022 product 1454 (rev. 0x00)
ppb11: PCI Express capability version 2 x16 @ 8.0GT/s
pci12 at ppb11 bus 12
pci12: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 1022 product 145a (non-essential instrumentation, subclass 0x00) at pci12 dev 0 function 0 not configured
vendor 1022 product 1456 (miscellaneous crypto) at pci12 dev 0 function 2 not configured
xhci1 at pci12 dev 0 function 3: vendor 1022 product 145c (rev. 0x00)
xhci1: interrupting at msi4 vec 0
xhci1: xHCI version 1.0
usb2 at xhci1: USB revision 3.0
usb3 at xhci1: USB revision 2.0
pchb5 at pci0 dev 8 function 0: vendor 1022 product 1452 (rev. 0x00)
ppb12 at pci0 dev 8 function 1: vendor 1022 product 1454 (rev. 0x00)
ppb12: PCI Express capability version 2 x16 @ 8.0GT/s
pci13 at ppb12 bus 13
pci13: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 1022 product 1455 (non-essential instrumentation, subclass 0x00) at pci13 dev 0 function 0 not configured
ahcisata1 at pci13 dev 0 function 2: vendor 1022 product 7901 (rev. 0x51)
ahcisata1: 64-bit DMA
ahcisata1: AHCI revision 1.31, 1 port, 32 slots, CAP 0xf737ff00
ahcisata1: interrupting at msi5 vec 0
atabus8 at ahcisata1 channel 0
hdaudio1 at pci13 dev 0 function 3: HD Audio Controller
hdaudio1: interrupting at msi6 vec 0
hdafg1 at hdaudio1: vendor 10ec product 0892
hdafg1: DAC00 8ch: Speaker [Jack] hdafg1: DAC01 2ch: HP Out [Jack] hdafg1: DIG02 2ch: SPDIF Out [Jack] hdafg1: ADC03 2ch: Line In [Jack], Mic In [Jack] hdafg1: ADC04 2ch: Mic In [Jack] hdafg1: 8ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg1: playback, capture, full duplex, independent
audio0: slinear_le:16 8ch 48000Hz, blk 40ms for playback
audio0: slinear_le:16 2ch 48000Hz, blk 40ms for recording
spkr1 at audio0: PC Speaker (synthesized)
wsbell at spkr1 not configured
piixpm0 at pci0 dev 20 function 0: vendor 1022 product 790b (rev. 0x59)
piixpm0: polling
iic0 at piixpm0 port 0: I2C bus
iic1 at piixpm0 port 1: I2C bus
iic2 at piixpm0 port 2: I2C bus
iic3 at piixpm0 port 3: I2C bus
pcib0 at pci0 dev 20 function 3: vendor 1022 product 790e (rev. 0x51)
pchb6 at pci0 dev 24 function 0: vendor 1022 product 1460 (rev. 0x00)
pchb7 at pci0 dev 24 function 1: vendor 1022 product 1461 (rev. 0x00)
pchb8 at pci0 dev 24 function 2: vendor 1022 product 1462 (rev. 0x00)
pchb9 at pci0 dev 24 function 3: vendor 1022 product 1463 (rev. 0x00)
pchb10 at pci0 dev 24 function 4: vendor 1022 product 1464 (rev. 0x00)
pchb11 at pci0 dev 24 function 5: vendor 1022 product 1465 (rev. 0x00)
pchb12 at pci0 dev 24 function 6: vendor 1022 product 1466 (rev. 0x00)
pchb13 at pci0 dev 24 function 7: vendor 1022 product 1467 (rev. 0x00)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat 1 us, pow 0 mW
acpicpu0: C2: I/O, lat 400 us, pow 0 mW
acpicpu0: P0: FFH, lat 1 us, pow 3960 mW, 3200 MHz
acpicpu0: P1: FFH, lat 1 us, pow 2940 mW, 2800 MHz
acpicpu0: P2: FFH, lat 1 us, pow 1350 mW, 1550 MHz
acpicpu0: T0: I/O, lat 1 us, pow 0 mW, 100 %
acpicpu0: T1: I/O, lat 1 us, pow 0 mW, 88 %
acpicpu0: T2: I/O, lat 1 us, pow 0 mW, 76 %
acpicpu0: T3: I/O, lat 1 us, pow 0 mW, 64 %
acpicpu0: T4: I/O, lat 1 us, pow 0 mW, 52 %
acpicpu0: T5: I/O, lat 1 us, pow 0 mW, 40 %
acpicpu0: T6: I/O, lat 1 us, pow 0 mW, 28 %
acpicpu0: T7: I/O, lat 1 us, pow 0 mW, 16 %
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
acpicpu3 at cpu3: ACPI CPU
acpicpu4 at cpu4: ACPI CPU
acpicpu5 at cpu5: ACPI CPU
acpicpu6 at cpu6: ACPI CPU
acpicpu7 at cpu7: ACPI CPU
acpicpu8 at cpu8: ACPI CPU
acpicpu9 at cpu9: ACPI CPU
acpicpu10 at cpu10: ACPI CPU
acpicpu11 at cpu11: ACPI CPU
timecounter: Timecounter “clockinterrupt” frequency 100 Hz quality 0
timecounter: Timecounter “TSC” frequency 3194380160 Hz quality 3000
uhub0 at usb0: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 3.00/1.00, addr 0
uhub0: 6 ports with 6 removable, self powered
uhub1 at usb1: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 0
uhub1: 14 ports with 14 removable, self powered
uhub2 at usb2: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 3.00/1.00, addr 0
uhub2: 4 ports with 4 removable, self powered
uhub3 at usb3: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 0
uhub3: 4 ports with 4 removable, self powered
IPsec: Initialized Security Association Processing.
ahcisata0 port 1: device present, speed: 6.0Gb/s
ahcisata0 port 5: device present, speed: 3.0Gb/s
autoconfiguration error: ahcisata0 port 1: clearing WDCTL_RST failed for drive 15
autoconfiguration error: ahcisata0 port 5: clearing WDCTL_RST failed for drive 15
autoconfiguration error: ahcisata0 port 1: drive 15 reset failed, disabling PMP
autoconfiguration error: ahcisata0 port 5: drive 15 reset failed, disabling PMP
ahcisata0 port 1: device present, speed: 6.0Gb/s
ahcisata0 port 5: device present, speed: 3.0Gb/s
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: Western Digital (0x1058) Elements 10A8 (0x10a8), rev 3.00/10.42, addr 1
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: disk fixed
sd0: fabricating a geometry
sd0: 931 GB, 953837 cyl, 64 head, 32 sec, 512 bytes/sect x 1953458176 sectors
uhub4 at uhub1 port 12: vendor 05e3 (0x5e3) USB2.0 Hub (0x608), class 9/0, rev 2.00/32.98, addr 2
uhub4: single transaction translator
sd0: fabricating a geometry
uhub4: 4 ports with 4 removable, self powered
ubt0 at uhub3 port 2
ubt0: vendor 0a12 (0xa12) Bluetooth2.1+EDR CLASS1 (0x01), rev 2.00/52.76, addr 1
wd0 at atabus1 drive 0
wd0:
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 476 GB, 992277 cyl, 16 head, 63 sec, 512 bytes/sect x 1000215216 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)
wd0(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
wd1 at atabus5 drive 0
umass1 at uhub0 port 2 configuration 1 interface 0
umass1: StoreJet Transcend (0x174c) StoreJet Transcend (0x5106), rev 3.00/80.00, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd1 at scsibus1 target 0 lun 0: disk fixed
sd1: 238 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 500118192 sectors
sd1: GPT GUID: aa426d16-0d0e-40a1-90e7-9a75f7b5c75f
dk0 at sd1: “67b20926-002a-424f-a169-2c7efc563bb9”, 614401 blocks at 4097, type: msdos
dk1 at sd1: “5d7e40e5-4454-4a98-a81e-c5223d78f161”, 421527550 blocks at 618498, type: ext2fs
dk2 at sd1: “ed7d719c-6ef4-451f-9732-2e4dd981273b”, 35925033 blocks at 464178417, type:
dk3 at sd1: “731c9349-02e0-471d-93db-99f63c06afe8”, 42032369 blocks at 422146048, type: ffs
uhidev0 at uhub4 port 2 configuration 1 interface 0
uhidev0: Fnatic Gear (0x195d) RUSH Mechanical Keyboard (0x2030), rev 2.00/1.09, addr 4, iclass 3/1
ukbd0 at uhidev0: 8 Variable keys, 6 Array codes
wskbd0 at ukbd0: console keyboard
uhidev1 at uhub4 port 2 configuration 1 interface 1
uhidev1: Fnatic Gear (0x195d) RUSH Mechanical Keyboard (0x2030), rev 2.00/1.09, addr 4, iclass 3/0
uhid0 at uhidev1: input=4, output=0, feature=0
uhidev2 at uhub4 port 2 configuration 1 interface 2
uhidev2: Fnatic Gear (0x195d) RUSH Mechanical Keyboard (0x2030), rev 2.00/1.09, addr 4, iclass 3/0
ukbd1 at uhidev2: 120 Variable keys, 0 Array codes
wskbd1 at ukbd1 mux 1
uhidev3 at uhub4 port 3 configuration 1 interface 0
uhidev3: Kensington (0x47d) Kensington USB/PS2 Orbit (0x1022), rev 1.10/4.00, addr 5, iclass 3/1
ums0 at uhidev3: 2 buttons
wsmouse0 at ums0 mux 0
autoconfiguration error: ahcisata0 port 5: clearing WDCTL_RST failed for drive 0
wd1: autoconfiguration error: IDENTIFY failed
wd1: fixing 0 sector size
wd1: secperunit and ncylinders are zero
wd1(ahcisata0:5:0): using PIO mode 0
WARNING: 7 errors while detecting hardware; check system log.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/amd64/9.0/modules
kern info: [drm] initializing kernel modesetting (PITCAIRN 0x1002:0x6811 0x1458:0x2015).
kern info: [drm] register mmio base: 0xfcf00000
kern info: [drm] register mmio size: 262144
kern info: ATOM BIOS: GV
radeon0: info: VRAM: 2048M 0x0000000000000000 – 0x000000007FFFFFFF (2048M used)
radeon0: info: GTT: 2048M 0x0000000080000000 – 0x00000000FFFFFFFF
kern info: [drm] Detected VRAM RAM=800M, BAR=256M
kern info: [drm] RAM width 256bits DDR
Zone kernel: Available graphics memory: 11320714 kiB
Zone dma32: Available graphics memory: 2097152 kiB
kern info: [drm] radeon: 2048M of VRAM memory ready
kern info: [drm] radeon: 2048M of GTT memory ready.
kern info: [drm] Loading pitcairn Microcode
kern info: [drm] radeon/PITCAIRN_mc2.bin: 31100 bytes
kern info: [drm] Internal thermal controller with fan control
kern info: [drm] radeon: dpm initialized
radeon0: autoconfiguration error: error: radeon_vce: Can’t load firmware “radeon/TAHITI_vce.bin”
kern info: [drm] GART: num cpu pages 524288, num gpu pages 524288
kern info: [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
radeon0: info: WB enabled
radeon0: info: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0x0xffff91992157cc00
radeon0: info: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0x0xffff91992157cc04
radeon0: info: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0x0xffff91992157cc08
radeon0: info: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0x0xffff91992157cc0c
radeon0: info: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0x0xffff91992157cc10
radeon0: info: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0x0xffffd9825ae75a18
radeon0: autoconfiguration error: error: VCE init error (-22).
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
kern info: [drm] Driver supports precise vblank timestamp query.
radeon0: info: radeon: MSI limited to 32-bit
radeon0: interrupting at ioapic1 pin 30 (radeon0)
kern info: [drm] radeon: irq initialized.
kern info: [drm] ring test on 0 succeeded in 2 usecs
kern info: [drm] ring test on 1 succeeded in 1 usecs
kern info: [drm] ring test on 2 succeeded in 1 usecs
kern info: [drm] ring test on 3 succeeded in 5 usecs
kern info: [drm] ring test on 4 succeeded in 5 usecs
kern info: [drm] ring test on 5 succeeded in 2 usecs
kern info: [drm] UVD initialized successfully.
kern info: [drm] ib test on ring 0 succeeded in 0 usecs
kern info: [drm] ib test on ring 1 succeeded in 0 usecs
kern info: [drm] ib test on ring 2 succeeded in 0 usecs
kern info: [drm] ib test on ring 3 succeeded in 0 usecs
kern info: [drm] ib test on ring 4 succeeded in 0 usecs
kern info: [drm] ib test on ring 5 succeeded
kern info: [drm] Radeon Display Connectors
kern info: [drm] Connector 0:
kern info: [drm] DP-1
kern info: [drm] HPD4
kern info: [drm] DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c
kern info: [drm] Encoders:
kern info: [drm] DFP1: INTERNAL_UNIPHY2
kern info: [drm] Connector 1:
kern info: [drm] HDMI-A-1
kern info: [drm] HPD5
kern info: [drm] DDC: 0x6550 0x6550 0x6554 0x6554 0x6558 0x6558 0x655c 0x655c
kern info: [drm] Encoders:
kern info: [drm] DFP2: INTERNAL_UNIPHY2
kern info: [drm] Connector 2:
kern info: [drm] DVI-I-1
kern info: [drm] HPD6
kern info: [drm] DDC: 0x6580 0x6580 0x6584 0x6584 0x6588 0x6588 0x658c 0x658c
kern info: [drm] Encoders:
kern info: [drm] DFP3: INTERNAL_UNIPHY
kern info: [drm] CRT1: INTERNAL_KLDSCP_DAC1
kern info: [drm] Connector 3:
kern info: [drm] DVI-D-1
kern info: [drm] HPD1
kern info: [drm] DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
kern info: [drm] Encoders:
kern info: [drm] DFP4: INTERNAL_UNIPHY1
radeondrmkmsfb0 at radeon0
radeondrmkmsfb0: framebuffer at 0xffffd9825b8b6000, size 1920×1080, depth 32, stride 7680
wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)

Second round of GSoC reports are available in NetBSD blog:

Second round of GSoC’2019 reports are available in NetBSD blog:

Fun read:

USBNET: A story of networking and threads that won’t stop pulling

Continuation on fuzzers:

Fuzzing NetBSD Filesystems via AFL. [Part 2]

Other work sponsored by the NetBSD project:

Codelite building issues from pkgsrc

Recently I am trying to build my own desktop environment on NetBSD which is based on current branch and using current pkgsrc for packages. I successfully built up to date MATE 1.22.1 desktop environment but got stuck on pretty outaded CodeLite IDE (9.1.0 in pkgsrc compared to 13.0.0 being the latest at the time of writing). The first error I hit by was:

/usr/pkgsrc/editors/codelite/work/codelite-9.1/LiteEditor/clangpch_cache.h:35:10: fatal error: clang-c/Index.h: No such file or directory

Since I was quite sure that I should have it, I quickly looked around and I found that header exists in /usr/pkg/include/clang-c/Index.h. So quick workaround was quite obvious by setting CFLAGS environment variable to point to pkg include folder. Since I checked that this variable didn’t have any value, I just simply did:

export CFLAGS=/usr/pkg/include

It helped me to finish the build successfully but linking failed with “ld: cannot find -lclang” error… So yet another environment variable was needed:

export LIBRARY_PATH=/usr/pkg/lib

After that linking went successfully but it wasn’t the end of the story yet. Package PLIST file contained 5 files which were not available after the build. Apparently spell checker was not part of the build for some reason and lib/codelite/SpellCheck.so and all files in share/codelite/dics/ folder (including folder itself) were missing. Because of this pkg_create was failing to assemble the installation package. You would see messages like “pkg_create: can’t stat <filename>”. I just decided remove those files from PLIST file:

fossil diff --unified PLIST

Index: editors/codelite/PLIST
==================================================================
— editors/codelite/PLIST
+++ editors/codelite/PLIST
@@ -22,11 +22,10 @@
lib/codelite/MemCheck.so
lib/codelite/Outline.so
lib/codelite/QMakePlugin.so
lib/codelite/SFTP.so
lib/codelite/SnipWiz.so
-lib/codelite/SpellCheck.so
lib/codelite/Subversion.so
lib/codelite/Tweaks.so
lib/codelite/UnitTestsPP.so
lib/codelite/WebTools.so
lib/codelite/Wizards.so
@@ -64,14 +63,10 @@
share/codelite/config/cfg/sdl.cfg
share/codelite/config/cfg/std.cfg
share/codelite/config/cfg/windows.cfg
share/codelite/config/codelite.xml.default
share/codelite/config/debuggers.xml.default
-share/codelite/dics/en_GB.aff
-share/codelite/dics/en_GB.dic
-share/codelite/dics/en_US.aff
-share/codelite/dics/en_US.dic
share/codelite/gdb_printers/boost/init.py
share/codelite/gdb_printers/boost/printers.py
share/codelite/gdb_printers/helper.py
share/codelite/gdb_printers/libstdcxx/init.py
share/codelite/gdb_printers/libstdcxx/v6/init.py

Unfortunately there is one caveat that after changing this file I needed to make a clean build again (make clean before make install). Fortunately, it doesn’t take long to rebuild CodeLite on modern CPU, especially if all cores are utilized. Finally, after all the struggles CodeLite IDE started successfully (even if it’s a relatively old version).

CodeLite 9.1.0 on NetBSD amd64 8.99.50

Update: Actually I managed to build the latest CodeLite (13.0.1) too straight from github source code. The most applied patches were the same as pkgsrc package has (actually seems even less is needed now). Manually I needed to add /usr/pkg/libexec/wx-3.0 to PATH since build script need wx-config and I also needed to change libssh.so path to from /usr/lib/libssh.so to /usr/pkg/lib/libssh.so (libssh-0.87) in CMakeFiles/<module>.dir/link.txt files which were linking against it. Probably updating pkgsrc package should not be difficult too considering my relatively easy success , so I guess package is not actively maintained anymore. Will see if I can prepare a patch.

CodeLite 13.0.1 on NetBSD amd64 8.99.50

First round of GSoC reports

First round of GSoC reports are available in NetBSD blog:

Also an interesting read about fuzzers:

Write your own fuzzer for NetBSD kernel! [Part 1]

NetBSD 8.1 released

Today the NetBSD Project announced 8.1 release. It already follows the new release cycle without teeny releases and represents selected changes to improve stability and security plus some new enhancements and features. Main highlights include INTEL-SA-00233 (MDS) mitigation, various kernel data leak fixes, smtoff property to disable SMT explicitly in rc.conf(5), addition of mfii(4) and bwfm(4) drivers, DRM/KMS improvements, performance regression fix in tmpfs, updated dhcpcd(8) and httpd(8), fixes for sh(1), reproducible builds, network drivers, thread local storage (TLS) in position independent executables (PIE). All changes can be found here. Source and binaries can be downloaded from the project CDN or any other mirrors.

NetBSD 8.1 RC1 released

The NetBSD project released the first and possibly the only release candidate for 8.1 release. As usual this release represents a subset of selected security and stability fixes, additionally with some selected new drivers and enhancements. It has workarounds for the latest CPU vulnerabilities, rc.conf(5) has a new property to disable smt (Simultaneous Multi-Threading). dhcpcd(8) was updated to 7.2.2, along with httpd(8). Full list of changes can be found here. You can download it from NetBSD project CDN or any of the project mirrors.

GSoC 2019

The NetBSD project is participating in Google Summer of Code 2019 and projects for this year were announced:

Must admit that few projects are out of my knowledge area but some of them are really interesting I am planning to follow them closely. As an interesting fact Siddharth is participating for the second year in a row.

Some interesting developments on NetBSD

Since I didn’t write any news update for a while, lately some interesting developments were happening in few NetBSD areas which I would like to share.

Virtualization is one of these areas, it received few interesting updates recently. The first one is Intel HAXM hardware-accelerated support. You can also read an independently written how-to here. It works with Intel CPUs with VTx only. Another one is NetBSD Virtual Machine Monitor or NVVM. Initially it supported AMD CPUs only, but recently it was updated to support Intel CPUs too. You can read It is a good time to start testing them. Update: the developer recently added the detailed NVVM presentation article to the official NetBSD blog.

Another area was LLVM sanitizers and improved LLVM support (reports can be found in NetBSD blog here, here, here and here).

One more hot topic is RISC-V architecture recently. Especially, once WD released their SweRW core on GitHub. The NetBSD project developers started work on RISC-V support as well:

Finally, you can watch an interesting FOSDEM’19 video by Benny Siegert who provided more info on various updates.


Personal NetBSD and other things blog