kernel: GENERIC again, plus every USB driver GENERIC leaves out

The release kernel panicked on real hardware at boot (IRQ 6, a lock error).
It carried ALL's options (PCI_INTR_FIXUP, PCIBIOS_INTR_GUESS,
PCIBIOS_IRQS_HINT, COMPAT_*, ...) and ALL's drivers that GENERIC lacks,
experimental ACPI ones among them.  Konrad, 2026-11-18: 'revert mal die
ganze ALL kacke. einfach GENERIC aber mit allem was usb angeht'.

- makronix_workstation.config: back to 866df91be6 (multi-head consoles,
  four screens, the splash), plus the include below.
- makronix_devices.config: only the USB drivers of dev/usb that
  usbdevices.config leaves out: uatp (+wsmouse), umb, uhmodem (+ucom),
  gscan (with options CAN).
- GENERIC: the console colours white on black directly, instead of an
  override that made config(1) warn.

nbconfig GENERIC, INSTALL, GENERIC_KASLR: exit 0, no warnings; the four USB
drivers are in the kernel Makefile.
This commit is contained in:
lotherk committed 2026-11-18 16:03:37 +00:00
1 parent 91c13b435f
commit b2a65a76df
3 files changed
+39 -278

No files matched your search

+7 -7
View File
@@ -273,13 +273,13 @@ options WSEMUL_VT100 # VT100 / VT220 emulation
#options WSEMUL_DEFAULT="\"vt100\"" # NB: default is "sun" if enabled
# different kernel output - see dev/wscons/wsdisplayvar.h
options WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8)
# Makronix: the Sun console - black on light white, kernel messages green on
# light white. The same defaults as sparc/conf/GENERIC:51-54 and
# macppc/conf/GENERIC:141-144; the IRIX magenta was hard on the eyes.
options WS_DEFAULT_FG=WSCOL_BLACK
options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
options WS_KERNEL_FG=WSCOL_GREEN
options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
# Makronix: light text on black, kernel messages and the user's terminal
# alike (Konrad, 2026-11-17: "nur die farben wie bei sun" -- the colours,
# without WSEMUL_SUN, whose escape sequences broke the installer's menus).
options WS_DEFAULT_FG=WSCOL_WHITE
options WS_DEFAULT_BG=WSCOL_BLACK
options WS_KERNEL_FG=WSCOL_WHITE
options WS_KERNEL_BG=WSCOL_BLACK
# customization of console border color
options WSDISPLAY_CUSTOM_BORDER # custom border colors via wsconsctl(8)
# compatibility to other console drivers
+25 -162
View File
@@ -1,166 +1,29 @@
# License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree.
#
# Makronix: every device driver and pseudo device that upstream ALL declares
# and that GENERIC (with the config files it includes) leaves out. ALL is upstream's compile test ("does not necessarily produce a
# bootable or useful kernel"); this file takes its devices, not its options --
# the options are in makronix_workstation.config.
# Makronix: the USB drivers of the NetBSD tree that GENERIC does not carry
# (dev/usb/usbdevices.config has them commented out or not at all). Included
# by conf/makronix_workstation.config.
#
# Why: a driver that is not built in is not there. PCI and USB drivers are
# not autoloaded as modules, so what GENERIC leaves out exists only in the
# modules set, which not every install carries and which nothing loads by
# itself. Everything here is built in, so a machine of any age is expected
# to work by itself.
#
# No ISA card: probing the legacy bus maps fixed memory windows below 1 MB
# before it knows whether a card is there, and bus_space_map panics when that
# hole is already taken -- boot stopped in extent_alloc_region at
# nca_isa_match (measured 2026-11-17 on OVMF). Konrad: "ok scheiss auf isa".
# What GENERIC itself probes on ISA (com, lpt, pckbd) is untouched.
#
# Included by conf/makronix_workstation.config, which every arch's GENERIC
# includes. i386's GENERIC already has "irframe* at oboe?" and
# "pseudo-device swwdog"; config(1) warns about the duplicate and does not
# fail, and i386 is not a Makronix target today.
#
# A driver added to ALL upstream does not appear here by itself: after an
# import, regenerate this file the same way (ALL's device lines minus what
# GENERIC and its includes have) and commit it with the import.
# Only USB. Until 2026-11-18 this file carried everything of ALL that GENERIC
# lacks, with ALL's options in makronix_workstation.config; on real hardware
# the release kernel panicked at boot (IRQ 6, a lock error) -- PCI interrupt
# fixups, PCIBIOS IRQ hints and experimental ACPI drivers from ALL. Konrad:
# "revert mal die ganze ALL kacke. einfach GENERIC aber mit allem was usb
# angeht". USB drivers are not autoloaded as modules, so what is not built
# in does not attach.
odcm0 at cpu0 # On-demand clock modulation
padlock0 at cpu0 # VIA PadLock
apm* at acpi? # ACPI apm emulation
acpipmtr* at acpi? # ACPI Power Meter (experimental)
acpismbus* at acpi? # ACPI SMBus CMI (experimental)
applesmc* at acpi? # Apple System Management Controller
atppc* at acpi? # AT-style parallel port
hpacel* at acpi? # HP 3D DriveGuard accelerometer
hpqlb* at acpi? # HP Quick Launch Buttons
wss* at acpi? # NeoMagic 256AV in wss mode
ym* at acpi? # Yamaha OPL3-SA[23] audio
applesmcfan* at applesmcbus?
applesmctemp* at applesmcbus?
rdcpcib* at pci? dev ? function ? # RDC Vortex86/PMX-1000 PCI-ISA w/
hpet* at ichlpcib?
tco* at ichlpcib? # TCO watch dog timer
isa0 at amdpcib?
isa0 at rdcpcib?
isa0 at rdcpcib?
ibmcd* at pci? dev ? function ?
gpio* at ibmcd?
btvmei* at pci? dev ? function ?
btvmeii* at pci? dev ? function ?
vme* at vmebus?
chipsfb* at pci? dev ? function ?
gffb* at pci? dev ? function ?
igsfb* at pci? dev ? function ?
machfb* at pci? dev ? function ?
pm2fb* at pci? dev ? function ?
r128fb* at pci? dev ? function ?
radeonfb* at pci? dev ? function ?
tga* at pci? dev ? function ? # DEC ZLXp-E[123] Graphics
unichromefb* at pci? dev ? function ? # VIA Unichrome framebuffer console
voodoofb* at pci? dev ? function ?
wcfb* at pci? dev ? function ?
viadrmums* at drm?
ibmhawk0 at iic? addr 0x37
imc* at pci? dev ? function ? # Intel Integrated Memory Controller,
imcsmb* at imc? # the associated SMBus controller,
iic* at imcsmb? # and the SMBus itself
smscmon* at iic? addr 0x2c
smscmon* at iic? addr 0x2d # (alternate address)
iic* at amdpm? # sensors below are on this bus
alipm* at pci? dev ? function ?
iic* at alipm?
dbcool* at iic? addr 0x2C # Unknown other motherboard(s)
dbcool* at iic? addr 0x2D # Tyan S2881
dbcool* at iic? addr 0x2E # Tyan S2882-D
ibmhawk0 at iic? addr 0x37
lm0 at iic? addr 0x2e flags 0x0
smscmon* at iic? addr 0x2c
viaenv* at pci? dev ? function ?
spdmem* at iic? addr 0x50
spdmem* at iic? addr 0x51
spdmem* at iic? addr 0x52
spdmem* at iic? addr 0x53
spdmem* at iic? addr 0x54
spdmem* at iic? addr 0x55
spdmem* at iic? addr 0x56
spdmem* at iic? addr 0x57
sdtemp* at iic? addr 0x18
sdtemp* at iic? addr 0x19
sdtemp* at iic? addr 0x1a
sdtemp* at iic? addr 0x1b
sdtemp* at iic? addr 0x1c
sdtemp* at iic? addr 0x1d
sdtemp* at iic? addr 0x1e
sdtemp* at iic? addr 0x1f
ssdfb* at iic?
dpti* at iop? tid 0 # DPT/Adaptec control interface
gpio* at gpiosim?
gpioow* at gpio? offset ? mask ? # 1-wire bitbanging via gpio
gpioiic* at gpio?
iic* at gpioiic?
gpiolock* at gpio?
gpiopwm* at gpio?
nca* at pci? dev ? function ? # Domex DMX-3191D
nca* at pcmcia? function ? # NCR53C400 SCSI
dse* at scsibus? target ? lun ? # SCSI ethernet (Dayna)
se* at scsibus? target ? lun ? # SCSI ethernet adapters
se* at scsibus? target ? lun ?
ips* at pci? dev ? function ? # Adaptec/IBM ServeRAID
geodeide* at pci? dev ? function ? # AMD Geode IDE controllers
rccide* at pci? dev ? function ? # ServerWorks IDE controllers
rdcide* at pci? dev ? function ? # RDC PMX-1000 IDE controllers
schide* at pci? dev ? function ? # Intel SCH IDE controllers
stpcide* at pci? dev ? function ? # STMicro STPC IDE controllers
fd0 at fdc0 drive 0
vte* at pci? dev ? function ? # Vortex86 RDC R6040 Fast Ethernet
wwanc* at pci? dev ? function ? # Intel XMM7360 LTE modem
wwan* at wwanc? # Intel XMM7360 LTE modem
rdcphy* at mii? phy ? # RDC R6040 internal PHY
pseudo-device vhci
usb* at vhci?
uhub* at uhub? port ?
uatp* at uhidev? reportid ?
wsmouse* at uatp? mux 0
stuirda* at uhub? port ? configuration ? interface ?
umb* at uhub? port ? # Mobile Broadband Interface Model (EXPERIMENTAL)
gscan* at uhub? port ? # Geschwister Schneider USB to CAN interface
ucom* at uark? portno ?
uhmodem* at uhub?
ucom* at uhmodem? portno ?
oboe* at pci? dev ? function ?
irframe* at oboe?
sdhc* at cardbus? function ? # SD Host Controller
gcscaudio* at pci? dev ? function ? # AMD Geode CS5536 Companion Audio
opl* at wss?
opl* at yds?
opl* at ym?
mpu* at fms?
mpu* at ym?
wsbell* at spkr? # Bell for wscons display
gtp* at pci? dev ? function ? # Guillemot Maxi Radio FM 2000 Radio Card
radio* at gtp?
iic* at cxdtv?
iic* at coram?
qat* at pci? dev ? function ? # Intel QuickAssist
joy* at pci? # Game ports (usually on audio cards)
joy* at eap? # See CAVEATS in eap(4) before enabling
joy* at eso? # ESS Solo-1 on-board joystick
flash* at flashbus?
nand* at nandbus?
pseudo-device dm # device-mapper disk driver
pseudo-device ipfilter # IP filter (firewall) and NAT
pseudo-device mpls # MPLS pseudo-interface
pseudo-device faith # IPv[46] tcp relay translation i/f
pseudo-device kttcp
pseudo-device srt # source-address-based routing
pseudo-device wg # VPN tunnel compatible with WireGuard
pseudo-device canloop # CAN loopback interface
pseudo-device gpiosim 1 # GPIO simulator
pseudo-device autofs # experimental - AUTOFS
pseudo-device iscsi
pseudo-device swsensor
pseudo-device pud
pseudo-device dmoverio
pseudo-device nandemulator
# Apple USB trackpad (MacBook keyboards and trackpads attached over USB)
uatp* at uhidev? reportid ?
wsmouse* at uatp? mux 0
# Mobile Broadband Interface Model (LTE sticks, built-in WWAN modules);
# experimental upstream
umb* at uhub? port ?
# Huawei E220 3G/HSDPA modem
uhmodem* at uhub? port ?
ucom* at uhmodem? portno ?
# Geschwister Schneider USB to CAN interface (and clones); needs the CAN stack
options CAN
gscan* at uhub? port ?
+7 -109
View File
@@ -2,18 +2,13 @@
#
# Makronix: what every Makronix Unix workstation carries, independent of the
# machine. Included by arch/*/conf/GENERIC (amd64 and i386 today, the next
# architecture when it comes).
# architecture when it comes). Only lines that name no bus and no attachment
# belong here; drivers and their attachments stay in the arch config.
#
# The rule behind it: hardware is recognised and works by itself, and the
# kernel is a release kernel, not a test kernel: everything upstream ALL can
# do that a machine may need is here, without the debug of ALL (Konrad,
# 2026-11-17: "alles was in ALL drin is ... ohne debug funktionieren, quasi
# release kernel"). Options live here; drivers and their attachments live in
# conf/makronix_devices.config, which this file includes at its end, because
# a driver that is not built in is not there (PCI and USB drivers are not
# autoloaded as modules; network interfaces, device nodes, exec formats and
# file systems are). The firmware those drivers ask for is in the
# distribution (src/mk.conf).
# The rule behind it: hardware is recognised and works by itself. What the
# kernel cannot autoload as a module (PCI and USB drivers are not autoloaded;
# network interfaces, device nodes, exec formats and file systems are) is
# built in, and its firmware is in the distribution (src/mk.conf).
# Several display devices, each a console of its own (multi-head), and four
# virtual screens on every one of them (wscons(4), wsconscfg(8)).
@@ -28,102 +23,5 @@ makeoptions SPLASHSCREEN_IMAGE="${NETBSDSRCDIR}/../docs/logo/makronix-square-239
# Note: COMPAT_BSDPTY is already in conf/compat_netbsd.config (included by
# every GENERIC), so it is not repeated here.
# Everything ALL has, with no debug: upstream's ALL is the list of what the
# kernel can do; a release kernel carries the features and leaves out what
# only a test wants (DIAGNOSTIC, DEBUG, LOCKDEBUG, KUBSAN, MBUFTRACE,
# UVMHIST, BIOHIST, SYSCALL_STATS/TIMES, DDB_COMMANDONENTER), what would
# change the console or the memory a machine may use (CONSDEVNAME,
# CONS_OVERRIDE, REALBASEMEM, REALEXTMEM, PHYSMEM_MAX_*), a layout or colour
# policy (PCKBD_LAYOUT, UKBD_LAYOUT, WS_*_BG/FG/COLATTR, VGA_CONSOLE_SCREENTYPE),
# the fault injector (FAULT), the network stack without the big lock
# (NET_MPSAFE, a change of its own) and changed semantics for pipes
# (PIPE_SOCKETPAIR) or the console keyboard security model (KEYLOCK).
# Konrad, 2026-11-17: "alles was in ALL drin is ... ohne debug funktionieren,
# quasi release kernel".
options ACPI_ACTIVATE_DEV
options ALTQ
options ALTQ_BLUE
options ALTQ_CBQ
options ALTQ_CDNR
options ALTQ_FIFOQ
options ALTQ_FLOWVALVE
options ALTQ_HFSC
options ALTQ_LOCALQ
options ALTQ_PRIQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_WFQ
options BEEP_ONHALT
options BEEP_ONHALT_COUNT=3
options BEEP_ONHALT_PERIOD=250
options BEEP_ONHALT_PITCH=1500
options BUFQ_READPRIO
options CAN
options COMPAT_386BSD_MBRPART
options COMPAT_LINUX
options COMPAT_LINUX32
options COMPAT_OSSAUDIO
options CPURESET_DELAY=2000
options DCCP
options DKWEDGE_METHOD_BSDLABEL
options DKWEDGE_METHOD_MBR
options DKWEDGE_METHOD_RDB
options DKWEDGE_METHOD_TOS
options EXEC_AOUT
options GATEWAY
options IFA_STATS
options IPFILTER_COMPAT
options IPFILTER_LOG
options IPFILTER_LOOKUP
options LFS_EI
options LFS_EXTATTR
options LFS_KERNEL_RFW
options LFS_QUOTA
options LFS_QUOTA2
options MPLS
options MROUTING
options MULTIBOOT
options PCI_ADDR_FIXUP
options PCIBIOS
options PCIBIOS_INTR_GUESS
options PCIBIOS_IRQS_HINT=0x0a00
options PCIBIOS_LIBRETTO_FIXUP
options PCIBIOS_SHARP_MM20_FIXUP
options PCI_BUS_FIXUP
options PCI_INTR_FIXUP
options PIM
options PPPOE_SERVER
options RF_INCLUDE_CHAINDECLUSTER=1
options RF_INCLUDE_EVENODD=1
options RF_INCLUDE_INTERDECLUSTER=1
options RF_INCLUDE_PARITY_DECLUSTERING=1
options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
options RF_INCLUDE_PARITYLOGGING=1
options RF_INCLUDE_RAID5_RS=1
options SCTP
options SEMMNI=10
options SEMMNS=60
options SEMMNU=30
options SEMUME=10
options SIOP_SYMLED
options SPPP_FILTER
options TCP_SIGNATURE
options V7FS_EI
options VGA_CONSOLE_ATI_BROKEN_FONTSEL
options WSKBD_EVENT_AUTOREPEAT
options X86EMU
# The console of a workstation: light text on black, kernel messages and the
# user's terminal alike (Konrad, 2026-11-17: "nur die farben wie bei sun",
# the Sun console look -- without WSEMUL_SUN, whose escape sequences are not
# VT100: with it the installer's menus came out as 'q' lines).
options WS_DEFAULT_FG=WSCOL_WHITE
options WS_DEFAULT_BG=WSCOL_BLACK
options WS_KERNEL_FG=WSCOL_WHITE
options WS_KERNEL_BG=WSCOL_BLACK
# Every device driver ALL declares and GENERIC leaves out, ISA cards
# included: a driver that is not built in is not there, and PCI/USB drivers
# are not autoloaded as modules (see the file).
# The USB drivers NetBSD has that GENERIC leaves out (conf/makronix_devices.config).
include "conf/makronix_devices.config"