NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/51964: kernel with ath driver does not link without options MODULAR

>Number:         51964
>Category:       kern
>Synopsis:       kernel with ath driver does not link without options MODULAR
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 12 05:25:00 +0000 2017
>Originator:     Robert Elz
>Release:        NetBSD 7.99.??
NetBSD 6.99.30 NetBSD 6.99.30 (ONYX-Dom0) #0: Mon Feb  3 19:26:44 ICT 2014 amd64  (this is from an older kernel)
Architecture: x86_64
Machine: amd64
	Note that much of this PR is guesswork, ...

	It appears as if the ath driver -  in particular,
	requires linker information which is not generated
	for NetBSD kernels without "options MODULAR"

	Create a kernel config file that does not contain
		options MODULAR
	(and does not include anything which has that) but
	which does contain the ath driver (my kernel config
	also contains athn but I doubt that is relevant.)

	I started with the amd64 XEN3_DOM0 kernel config,
	edited it to remove drivers (and other options) not
	relevant to the hardware it is to run on, and
	(as with all the kernels I ever run) removed MODULAR.

	This used to work fine in the past (though has not for
	quite a while now, - probably at least a year, and only
	in current, NetBSD 7* is still fine - I no longer have
	a record of when it first failed) but now produces ...

#      link  ONYX-Dom0/netbsd
/usr/obj/testing/tools/bin/x86_64--netbsd-ld -Map --cref -T netbsd.ldscript -Ttext 0xffffffff80200000 -e start -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
ah.o: In function `ath_hal_probe':
ah.c:(.text+0x10): undefined reference to `__start_link_set_ah_chips'
ah.o: In function `ath_hal_attach':
ah.c:(.text+0x71): undefined reference to `__start_link_set_ah_chips'
/usr/obj/testing/tools/bin/x86_64--netbsd-ld: netbsd: hidden symbol `__stop_link_set_ah_rfs' isn't defined
/usr/obj/testing/tools/bin/x86_64--netbsd-ld: final link failed: Bad value

*** Failed target:  netbsd

	No idea

	For now I have just deleted ath the drivers from the kernel
	config file...  they were only there so that some time in the
	future, when the relevant ath chpset becomes supported by NetBSD
	the wireless on this system would appear - not that it will be very
	useful, the wireless is bridged to the same net to which this
	system has Gbps wired connectivity...

Home | Main Index | Thread Index | Old Index