Port-vax archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
RE: qe missing config reference to if_uba
Well, port VAX is slower and compiling was somewhat broken for a long time, so it may have been harder to check different device configs and corresponding kernel configs. Perhaps no one has tried to trim down GENERIC before? I've been able to shave off as much as 1.5MB - 2.0MB (of 4-ish MB) by eliminating devices and options that I do not use.
Several other devices (de, il, dmc) in files.uba did have preexisting references to ifuba -- although it appear on closer inspection (grep if_uba dev/qbus/*) that qt needs ifuba, too.
And, yes about other devices, probably. For example, after I sent the below patch, I also noticed that by disabling lkkbd0 (and also wskbd*, lkms0 and wsmouse*) in the kernel config that it exposed a possible bug and undefined reference in dz_vsbus_attach (arch/vax/vsa/dz_vsbus.c:156), where dz_cdevsw is required by the code path, but is defined conditionally on line 143 and seemingly on whether lkkbd0 is enabled. I'm less sure about this part and even more so for the fix, since I'm not yet familiar with console configuration and handling in the kernel and on VAX.
Thanks and kind regards,
Josh
-----Original Message-----
From: port-vax-owner%NetBSD.org@localhost <port-vax-owner%NetBSD.org@localhost> On Behalf Of Johnny Billquist
Sent: Monday, April 21, 2025 5:04 AM
To: Josh Moyer <JMoyer%nodomain.net@localhost>; port-vax%netbsd.org@localhost
Subject: Re: qe missing config reference to if_uba
I find it a bit strange that this hasn't been noticed before. And isn't
the same problem then the case with a bunch of other devices?
Johnny
On 2025-04-19 23:27, Josh Moyer wrote:
> Hello port-vax!
> I was trying to compile a custom kernel on my VAXserver 3x00/KA655 and found that the linking was failing due to an unavailable reference. I propose the following patch to resolve the issue:
>
> diff --git a/sys/dev/qbus/files.uba b/sys/dev/qbus/files.uba
> index 20c6e0c..2503b77 100644
> --- a/sys/dev/qbus/files.uba
> +++ b/sys/dev/qbus/files.uba
> @@ -38,7 +38,7 @@ attach qt at uba
> file dev/qbus/if_qt.c qt
>
> # DEQNA/DELQA Ethernet controller
> -device qe: ifnet, ether, arp
> +device qe: ifnet, ether, arp, ifuba
> attach qe at uba
> file dev/qbus/if_qe.c qe
>
> --
> Thanks and kind regards,
> _____
> | * * | Josh Moyer (he/him) <JMoyer%NODOMAIN.NET@localhost>
> |*(*)*| http://jmoyer.nodomain.net/
> \ - / http://www.nodomain.net/
> \//
> Love, Responsibility, Justice
> Liebe, Verantwortung, Gerechtigkeit
>
> Please don't eat the animals.
> Thanks.
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt%softjar.se@localhost || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
Home |
Main Index |
Thread Index |
Old Index