NetBSD 9.0 RC1 released

Around four months after the NetBSD 9 branch was created the NetBSD project finally announced the first release candidate of 9.0 release. During this period development was still very active with more than 500 pull-ups processed, which improved aarch64 stability, included new hardware support, fixed some older drivers, and installer/sysinst, improved NVVM (hardware virtualization) interface and added usbnet (a common framework for usb ethernet drivers). I must admit that I am very excited about the upcoming release because of two main reasons: first, because of its new features and improvements listed below, and second, although I am not a NetBSD developer, I am proud that among all NetBSD releases, I contributed to this the most by submitting patches and bug reports, which were fixed before release.

The main highlights of the 9.0 release are:

NetBSD 9.0 RC1 can be downloaded from the project’s CDN service or other project mirrors. Please test it and submit bug reports here.

Besides, unofficial bootable ARM images for certain boards can be downloaded here. ARM port also has documentation on running it under the QEMU emulator.

pkgsrc-2019Q3 released

On 3 of October 64rd quarterly release of pkgsrc was announced. pkgsrc-2019Q3 had 301 packages added and 114 packages removed, 1280 packages were updated (1682 package updates in total). Besides notable additions mentioned in the release announcement, it was the first release with contribution from myself! Due to time constraints I don’t believe that I will become regular contributor but I plan to work on few selected packages in the future too.

Final reports from GSoC’2019

A bit too late but here one can find links to the final reports from GSoC’2019 (hope I didn’t miss any):

Previous reports:

Looks like it was one of the most productive and successful summers for the NetBSD project!

NetBSD9 BETA boots successfully on Mac mini late 2014 (MGEN2AE/A)

First time I tested Mac mini late 2014 (MGEN2AE/A) on NetBSD 7 which didn’t have a proper USB3 support. Since USB and thunderbolt are the only external ports, the system was literally useless at that time (my boot device was USB based flash drive, no input could be used as well). Later I bought thunderbolt hard drive which was booting on NetBSD 8 but I was still facing problems with non working USB devices. After some investigation I found out that all BSDs freeze on BIOS boot but FreeBSD/OpenBSD were successfully booting on UEFI boot. I tried to do the same on NetBSD 8 but ended up with completely black screen stating “sync out of range” error. And finally on NetBSD 9 BETA it boots successfully! All USB devices work and screen is working properly too. There are few caveats though:

  • You must use UEFI image to boot: NetBSD-9.0_BETA-amd64-uefi-install.img.gz
  • Broadcom BCM4360 wireless network adapter doesn’t work (no drivers are present and probably it won’t be supported anytime soon).
  • I failed to find working SD card, though SD adapter is recognized. Attaching SD card just throws an error.
  • Thunderbolt is likely not (fully) supported (though I didn’t test it, and previously I was successfully booting from it at least).

On the bright side graphics card has DRM support and Broadcom BCM57766 Gigabit Ethernet adapter works well. Proper USB 3 support and fixed display issue makes the system finally usable on this Apple computer. Described issues with wireless and SD cards can be solved with external USB devices if required. Please see dmesg log below:

NetBSD 9 BETA on Mac mini late 2014

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) #0: Sat Sep 7 18:06:30 UTC 2019
mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC
total memory = 8068 MB
avail memory = 7798 MB
cpu_rng: RDRAND
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
RTC BIOS diagnostic error 0xff<clock_battery,ROM_cksum,config_unit,memory_size,fixed_disk,invalid_time>
timecounter: Timecounter “i8254” frequency 1193182 Hz quality 100
efi: systbl at pa 88e8ee10
Apple Inc. Macmini7,1 (1.0)
mainbus0 (root)
ACPI: RSDP 0x0000000088D8E014 000024 (v02 APPLE )
ACPI: XSDT 0x0000000088D8E1C0 00009C (v01 APPLE Apple00 00000000 01000013)
ACPI: FACP 0x0000000088D8C000 0000F4 (v05 APPLE Apple00 00000000 Loki 0000005F)
ACPI: DSDT 0x0000000088D7F000 007CDE (v03 APPLE Macmini 00070001 INTL 20100915)
ACPI: FACS 0x0000000088D18000 000040
ACPI: HPET 0x0000000088D8B000 000038 (v01 APPLE Apple00 00000001 Loki 0000005F)
ACPI: APIC 0x0000000088D8A000 0000BC (v02 APPLE Apple00 00000001 Loki 0000005F)
ACPI: SBST 0x0000000088D88000 000030 (v01 APPLE Apple00 00000001 Loki 0000005F)
ACPI: ECDT 0x0000000088D87000 000053 (v01 APPLE Apple00 00000001 Loki 0000005F)
ACPI: SSDT 0x0000000088D7E000 000222 (v01 APPLE SataAhci 00001000 INTL 20100915)
ACPI: SSDT 0x0000000088D7D000 000024 (v01 APPLE SmcDppt 00001000 INTL 20100915)
ACPI: SSDT 0x0000000088D75000 0010FC (v01 APPLE UsbLpt 00001000 INTL 20100915)
ACPI: SSDT 0x0000000088D74000 000032 (v01 APPLE SsdtS3 00001000 INTL 20100915)
ACPI: SSDT 0x0000000088D70000 0034F5 (v01 APPLE PcieTbt 00001000 INTL 20100915)
ACPI: SSDT 0x0000000088D61000 0000B8 (v01 APPLE Sdxc 00001000 INTL 20100915)
ACPI: SSDT 0x0000000088D5F000 000594 (v01 PmRef Cpu0Ist 00003000 INTL 20100915)
ACPI: SSDT 0x0000000088D5E000 000B83 (v01 PmRef CpuPm 00003000 INTL 20100915)
ACPI: DMAR 0x0000000088D5D000 000088 (v01 APPLE HSW 00000001 AAPL 00000001)
ACPI: MCFG 0x0000000088D89000 00003C (v01 APPLE Apple00 00000001 Loki 0000005F)
ACPI: 9 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 40 pins
cpu0 at mainbus0 apid 0
cpu0: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz, id 0x40651
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 2
cpu1: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz, id 0x40651
cpu1: package 0, core 1, smt 0
cpu2 at mainbus0 apid 1
cpu2: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz, id 0x40651
cpu2: package 0, core 0, smt 1
cpu3 at mainbus0 apid 3
cpu3: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz, id 0x40651
cpu3: package 0, core 1, smt 1
acpi0 at mainbus0: Intel ACPICA 20190405
acpi0: X/RSDT: OemId <APPLE , Apple00,00000000>, AslId < ,01000013>
acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
ACPI Error: No handler for Region CMS0 SystemCMOS
ACPI Error: Region SystemCMOS (ID=5) has no handler (20190405/exfldio-323)
ACPI Error: Aborting method _SB.PCI0._INI due to previous error (AE_NOT_EXIST) (20190405/psparse-581)
acpi0: MCFG: segment 0, bus 0-154, address 0x00000000e0000000
ACPI Error: Needed type [Reference], found [Integer] 0xffff94f0eb2c2648 (20190405/exresop-114)
ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for OpcodeName unavailable
ACPI Error: Aborting method _PR.CPU0._PDC due to previous error (AE_AML_OPERAND_TYPE) (20190405/psparse-581)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFF94F2497A0010 00067C (v01 PmRef ApIst 00003000 INTL 20100915)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFF94F0EB24CC10 000119 (v01 PmRef ApCst 00003000 INTL 20100915)
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
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
acpiec0 at acpi0 (EC, PNP0C09-0): using acpiecdt0
acpivga0 at acpi0 (IGPU): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0400): ACPI Display Output Device
acpiout2 at acpivga0 (DD03, 0x0200): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device
acpiout5 at acpivga0 (DD06, 0x0006): ACPI Display Output Device
acpiout6 at acpivga0 (DD07, 0x0007): ACPI Display Output Device
acpiout7 at acpivga0 (DD08, 0x0008): ACPI Display Output Device
acpiout8 at acpivga0 (DD1F, 0x001f): ACPI Display Output Device
acpivga0: autoconfiguration error: unknown output device acpiout0
acpivga0: autoconfiguration error: unknown output device acpiout2
acpivga0: autoconfiguration error: unknown output device acpiout3
acpivga0: autoconfiguration error: unknown output device acpiout4
acpivga0: autoconfiguration error: unknown output device acpiout5
acpivga0: autoconfiguration error: unknown output device acpiout6
acpivga0: autoconfiguration error: unknown output device acpiout7
acpivga0: autoconfiguration error: unknown output device acpiout8
acpivga0: connected output devices:
acpivga0: 0x0400 (acpiout1): Unknown Output Device, head 0
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53
SMC (APP0001) at acpi0 not configured
PDRC (PNP0C02) at acpi0 not configured
MEM2 (PNP0C01) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
ACPI: Enabled 4 GPEs in block 00 to 7F
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 8086 product 0a04 (rev. 0x09)
i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 0a2e (rev. 0x09)
hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
hdaudio0: interrupting at msi0 vec 0
hdaudio0: autoconfiguration error: RIRB timeout
hdaudio0: autoconfiguration error: RIRB timeout
xhci0 at pci0 dev 20 function 0: vendor 8086 product 9c31 (rev. 0x04)
xhci0: interrupting at msi1 vec 0
xhci0: xHCI version 1.0
usb0 at xhci0: USB revision 3.0
usb1 at xhci0: USB revision 2.0
vendor 8086 product 9c3a (miscellaneous communications, revision 0x04) at pci0 dev 22 function 0 not configured
hdaudio1 at pci0 dev 27 function 0: HD Audio Controller
hdaudio1: interrupting at msi2 vec 0
hdafg0 at hdaudio1: vendor 1013 product 4208
hdafg0: DAC00 2ch: Speaker [Built-In]
hdafg0: DAC01 2ch: HP Out [Jack]
hdafg0: DIG02 2ch: SPDIF Out [Jack]
hdafg0: ADC03 2ch: Mic In [Jack]
hdafg0: 2ch/2ch 48000Hz PCM16*
audio0 at hdafg0: playback, capture, full duplex, independent
audio0: slinear_le:16 2ch 48000Hz, blk 40ms for playback
audio0: slinear_le:16 2ch 48000Hz, blk 40ms for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
ppb0 at pci0 dev 28 function 0: vendor 8086 product 9c10 (rev. 0xe4)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 2: vendor 8086 product 9c14 (rev. 0xe4)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb1: link is x1 @ 2.5GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 14e4 product 43a0 (miscellaneous network, revision 0x03) at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 3: vendor 8086 product 9c16 (rev. 0xe4)
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> 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
bge0 at pci3 dev 0 function 0: Broadcom BCM57766 Gigabit Ethernet
bge0: interrupting at msix3 vec 0
bge0: HW config 00081154, 00006014, 00002838, 00000000 00000000
bge0: ASIC unknown BCM57766 (0x57766001), Ethernet address xx:xx:xx:xx:xx:xx
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM57765 1000BASE-T media interface, rev. 1
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
sdhc0 at pci3 dev 0 function 1: vendor 14e4 product 16bc (rev. 0x01)
sdhc0: interrupting at ioapic0 pin 16
sdhc0: SDHC 3.0, rev 21, SDMA, 200000 kHz, HS SDR50 DDR50 SDR104 HS200 1.8V 3.0V 3.3V, re-tuning mode 1 (1s timer), 2048 byte blocks
sdmmc0 at sdhc0 slot 0
ppb3 at pci0 dev 28 function 4: vendor 8086 product 9c18 (rev. 0xe4)
ppb3: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 5.0GT/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 8086 product 156d (rev. 0x00)
ppb4: PCI Express capability version 2 <Upstream Port of PCI-E Switch>
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
ppb5 at pci5 dev 0 function 0: vendor 8086 product 156d (rev. 0x00)
ppb5: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x4 @ 2.5GT/s
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 8086 product 156c (miscellaneous system) at pci6 dev 0 function 0 not configured
ppb6 at pci5 dev 3 function 0: vendor 8086 product 156d (rev. 0x00)
ppb6: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x4 @ 2.5GT/s
pci7 at ppb6 bus 7
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
ppb7 at pci5 dev 4 function 0: vendor 8086 product 156d (rev. 0x00)
ppb7: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x4 @ 2.5GT/s
pci8 at ppb7 bus 56
pci8: i/o space, memory space enabled, rd/line, wr/inv ok
ppb8 at pci5 dev 5 function 0: vendor 8086 product 156d (rev. 0x00)
ppb8: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x4 @ 2.5GT/s
pci9 at ppb8 bus 57
pci9: i/o space, memory space enabled, rd/line, wr/inv ok
ppb9 at pci5 dev 6 function 0: vendor 8086 product 156d (rev. 0x00)
ppb9: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x4 @ 2.5GT/s
pci10 at ppb9 bus 106
pci10: i/o space, memory space enabled, rd/line, wr/inv ok
pcib0 at pci0 dev 31 function 0: vendor 8086 product 9c43 (rev. 0x04)
ahcisata0 at pci0 dev 31 function 2: vendor 8086 product 9c03 (rev. 0x04)
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 1 port, 32 slots, CAP 0xc734ff00<PSC,SSC,PMD,SAM,ISS=0x3=Gen3,SCLO,SAL,SALP,SNCQ,S64A>
ahcisata0: interrupting at msi4 vec 0
atabus0 at ahcisata0 channel 0
ichsmb0 at pci0 dev 31 function 3: vendor 8086 product 9c22 (rev. 0x04)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at pcib0
pcppi0 at isa0 port 0x61
spkr1 at pcppi0: PC Speaker
wsbell at spkr1 not configured
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFF94F0EB86D010 0004F0 (v01 PmRef Cpu0Cst 00003001 INTL 20100915)
acpicpu0: C1: FFH, lat 1 us, pow 1000 mW
acpicpu0: C2: FFH, lat 148 us, pow 200 mW
acpicpu0: C3: FFH, lat 506 us, pow 200 mW
acpicpu0: P0: FFH, lat 10 us, pow 28000 mW, 2601 MHz, turbo boost
acpicpu0: P1: FFH, lat 10 us, pow 28000 mW, 2600 MHz
acpicpu0: P2: FFH, lat 10 us, pow 26574 mW, 2500 MHz
acpicpu0: P3: FFH, lat 10 us, pow 22459 mW, 2200 MHz
acpicpu0: P4: FFH, lat 10 us, pow 19853 mW, 2000 MHz
acpicpu0: P5: FFH, lat 10 us, pow 17601 mW, 1800 MHz
acpicpu0: P6: FFH, lat 10 us, pow 14027 mW, 1500 MHz
acpicpu0: P7: FFH, lat 10 us, pow 12007 mW, 1300 MHz
acpicpu0: P8: FFH, lat 10 us, pow 9839 mW, 1100 MHz
acpicpu0: P9: FFH, lat 10 us, pow 7769 mW, 900 MHz
acpicpu0: P10: FFH, lat 10 us, pow 5792 mW, 754 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 %
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=100
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution, Tjmax=100
acpicpu2 at cpu2: ACPI CPU
acpicpu3 at cpu3: ACPI CPU
timecounter: Timecounter “clockinterrupt” frequency 100 Hz quality 0
timecounter: Timecounter “TSC” frequency 2600177840 Hz quality 3000
uhub0 at usb0: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 3.00/1.00, addr 0
uhub0: 4 ports with 4 removable, self powered
uhub1 at usb1: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 0
uhub1: 9 ports with 9 removable, self powered
IPsec: Initialized Security Association Processing.
ahcisata0 port 0: device present, speed: 3.0Gb/s
wd0 at atabus0 drive 0
wd0: <APPLE HDD HTS541010A9E662>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 sectors
uhidev0 at uhub1 port 2 configuration 1 interface 0
uhidev0: CASUE (0x2a7a) CASUE USB Keyboard (0x9a18), rev 1.10/0.01, addr 1, iclass 3/1
ukbd0 at uhidev0: 8 Variable keys, 6 Array codes
wd0: GPT GUID: 6ff6bde0-2008-46e7-9c6f-171bdb49d5cf
dk0 at wd0: “EFI System Partition”, 409600 blocks at 40, type: msdos
dk1 at wd0: “Customer”, 1953115488 blocks at 409640, type: <unknown>
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), NCQ (32 tags) w/PRIO
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags) w/PRIO
wskbd0 at ukbd0: console keyboard
uhidev1 at uhub1 port 2 configuration 1 interface 1
uhidev1: CASUE (0x2a7a) CASUE USB Keyboard (0x9a18), rev 1.10/0.01, addr 1, iclass 3/0
uhidev1: 2 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
uhub2 at uhub1 port 3: Apple Inc. (0xa5c) BRCM20702 Hub (0x4500), class 9/0, rev 2.00/1.00, addr 2
uhub2: 3 ports with 0 removable, self powered
uhidev2 at uhub2 port 1 configuration 1 interface 0
uhidev2: vendor 05ac (0x5ac) product 820a (0x820a), rev 2.00/1.00, addr 3, iclass 3/1
uhidev2: 1 report ids
ukbd1 at uhidev2 reportid 1: 8 Variable keys, 6 Array codes
wskbd1 at ukbd1 mux 1
uhidev3 at uhub2 port 2 configuration 1 interface 0
uhidev3: vendor 05ac (0x5ac) product 820b (0x820b), rev 2.00/1.00, addr 4, iclass 3/1
uhidev3: 2 report ids
ums0 at uhidev3 reportid 2: 3 buttons
wsmouse0 at ums0 mux 0
ugen0 at uhub2 port 3
ugen0: Apple Inc. (0x5ac) Bluetooth USB Host Controller (0x8289), rev 2.00/1.50, addr 5
uhidev4 at uhub1 port 4 configuration 1 interface 0
uhidev4: Apple, Inc. (0x5ac) IR Receiver (0x8242), rev 2.00/1.00, addr 6, iclass 3/0
uhidev4: 38 report ids
uhid2 at uhidev4 reportid 36: input=4, output=0, feature=0
uhid3 at uhidev4 reportid 37: input=4, output=0, feature=0
uhid4 at uhidev4 reportid 38: input=4, output=0, feature=0
umass0 at uhub1 port 7 configuration 1 interface 0
umass0: vendor 13fe (0x13fe) silicon-power (0x3223), rev 2.00/1.10, addr 7
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <, silicon-power, PMAP> disk removable
sd0: 3822 MB, 7644 cyl, 32 head, 32 sec, 512 bytes/sect x 7827456 sectors
sd0: GPT GUID: 980625ee-83b7-4b23-a832-a652067547e8
dk2 at sd0: “EFI system”, 262144 blocks at 2048, type: msdos
dk3 at sd0: “f2808115-eb40-41e8-b590-d3fdf0aca33b”, 2908160 blocks at 264192, type: ffs
WARNING: 10 errors while detecting hardware; check system log.
boot device: sd0
root on dk3
root file system type: ffs
kern.module.path=/stand/amd64/9.0/modules
kern info: [drm] Memory usable by graphics device = 2048M
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
clock: unknown CMOS layout
kern info: [drm] Driver supports precise vblank timestamp query.
kern info: [drm] failed to find VBIOS tables
i915drmkms0: interrupting at ioapic0 pin 16 (i915drmkms0)
intelfb0 at i915drmkms0
intelfb0: framebuffer at 0xffffa380ae7db000, size 1920×1080, depth 32, stride 7680
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wskbd1: connecting to wsdisplay0

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

Personal NetBSD and other things blog