Re: Crosscompiling NetBSD for Fonera not working with HEAD?
David Young <[email protected]> Sat, 16 May 2009 14:34:36 -0500
| Newsgroups | gmane.os.netbsd.ports.evbmips |
|---|---|
| Message-ID | <[email protected]> |
On Sat, May 16, 2009 at 01:13:04PM +0200, Fredrik Pettai wrote: > I got a old FON2100 from a friend and thought it would be fun to try > runing NetBSD on it. Cool! I've run NetBSD on the Meraki, but never on a Fonera. > I searched and found this old thread: http://mail-index.netbsd.org/port-evbmips/2008/01/23/msg000012.html > So I looked at the Changelog, and HEAD seems to have gotten at least > ath(4) and HAL updated in HEAD. > However, then I crosscompile the MERAKI kernel, it fails due to a > missing file (from HAL i believe): > > /usr/src/sys/arch/mips/atheros/ar5315.c:72:75: error: contrib/dev/ath/ > ah_soc.h : No such file or directory > nbmkdep: compile failed. It seems that the file has moved to src/sys/external/isc/atheros_hal/dist/ah_soc.h. I think that you need to change the #include line to #include "ah_soc.h", and to make sure that the kernel configuration includes sys/external/isc/atheros_hal/conf/files.ath_hal and sys/external/isc/atheros_hal/conf/std.ath_hal in one way or another. You can use the i386 kernel configuration as an example: % grep external sys/arch/i386/conf/* sys/arch/i386/conf/std.i386:include "external/isc/atheros_hal/conf/std.ath_hal" % grep files.ath_hal sys/conf/* sys/conf/files:include "external/isc/atheros_hal/conf/files.ath_hal" Let me know if you need more help. Dave -- David Young OJC Technologies [email protected] Urbana, IL * (217) 278-3933