Date: Mon, 18 Feb 2013 19:48:54 -0800 From: Kurt Buff <kurt.buff@gmail.com> To: freebsd-stable@freebsd.org Subject: Having a problem compiling a customized kernel Message-ID: <CADy1Ce4pBpMRdTB97=RXgv8nrO2fSyAZ5enXnGQtzv2cnRv4hA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
All, I'm working on troubleshooting a random network dropout in an older Acer Aspire One, and am compiling an otherwise generic kernel with the following options: options ATH_DEBUG options AH_DEBUG options ATH_DIAGAPI I started the process with 'make buildkernel KERNCONF=ATH-KERNEL', but it aborted with the following: cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -Werror vers.c linking kernel.debug ld:/usr/src/sys/conf/ldscript.i386:66: syntax error *** [kernel.debug] Error code 1 Stop in /usr/obj/usr/src/sys/ATH-KERNEL. *** [buildkernel] Error code 1 Stop in /usr/src. *** [buildkernel] Error code 1 Stop in /usr/src. I'm currently running 9.1-RELEASE - I had to svn the source, as I had used freebsd-update last couple of weeks to move from 7.2 to 8.0 to 8.3 to 9.0 to 9.1. Does anyone have an idea what I might have done incorrectly, or at least how I might correct the issue? Thanks, Kurt On Mon, Feb 18, 2013 at 5:43 PM, Adrian Chadd <adrian@freebsd.org> wrote: > yup > > > > adrian > > > On 18 February 2013 17:32, Kurt Buff <kurt.buff@gmail.com> wrote: >> BTW - those should read >> >> options ATH_DEBUG >> options AH_DEBUG >> options ATH_DIAGAPI >> >> Correct? >> >> >> On Mon, Feb 18, 2013 at 5:21 PM, Adrian Chadd <adrian@freebsd.org> wrote: >>> Just athregs -i ath0 >>> >>> And you nee da kernel with ATH_DEBUG, AH_DEBUG and ATH_DIAGAPI compiled in: :) >>> >>> >>> >>> adrian >>> >>> >>> On 18 February 2013 16:37, Kurt Buff <kurt.buff@gmail.com> wrote: >>>> Did a make at /usr/src/tools/tools/ath, and it all compiled, and got >>>> athregs copied into /usr/loca/bin. >>>> >>>> Don't see athpeek anywhere, though. >>>> >>>> Also, I tried 'athregs -i ath0 -a' and got back 'invalid argument'. >>>> >>>> Next steps? >>>> >>>> Kurt >>>> >>>> On Mon, Feb 18, 2013 at 10:39 AM, Adrian Chadd <adrian@freebsd.org> wrote: >>>>> okay. Just copy the athregs tool to /usr/local/bin/ then, and then run it? >>>>> >>>>> oh, hm. Try "make" first, rather than "make install" >>>>> >>>>> >>>>> adrian >>>>> >>>>> On 18 February 2013 08:27, Kurt Buff <kurt.buff@gmail.com> wrote: >>>>>> It already exists. >>>>>> >>>>>> On Sun, Feb 17, 2013 at 10:18 PM, Adrian Chadd <adrian@freebsd.org> wrote: >>>>>>> try mkdir /usr/local/bin first? >>>>>>> >>>>>>> >>>>>>> >>>>>>> adrian >>>>>>> >>>>>>> On 17 February 2013 22:04, Kurt Buff <kurt.buff@gmail.com> wrote: >>>>>>>> Um, I'm missing something, I suppose... >>>>>>>> >>>>>>>> I cd'ed to /usr/src/tools/tools/ath, and I see an athregs directory >>>>>>>> with Makefile and dumpregs.c in it, but when cd'ed into it and did a >>>>>>>> make install just got back an error message" >>>>>>>> >>>>>>>> install -s -o root -g wheel -m 555 athregs /usr/local/bin >>>>>>>> install: athregs: No such file or directory >>>>>>>> *** [_proginstall] Error code 71 >>>>>>>> >>>>>>>> Also, I don't see anything regarding athpeek. >>>>>>>> >>>>>>>> So, what next? >>>>>>>> >>>>>>>> Kurt >>>>>>>> >>>>>>>> >>>>>>>> On Sun, Feb 17, 2013 at 12:48 PM, Adrian Chadd <adrian@freebsd.org> wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> So "hal status 3" is HAL_EIO - which means the hardware didn't respond >>>>>>>>> as expected. >>>>>>>>> >>>>>>>>> So maybe the hardware is getting all angry during reset. >>>>>>>>> >>>>>>>>> Compile up athpeek and athregs from src/tools/tools/ath/, compile your >>>>>>>>> kernel with: >>>>>>>>> >>>>>>>>> ATH_DEBUG >>>>>>>>> AH_DEBUG >>>>>>>>> ATH_DIAGAPI >>>>>>>>> >>>>>>>>> and then when it happens again, do this: >>>>>>>>> >>>>>>>>> # athregs >>>>>>>>> >>>>>>>>> which will dump out a snapshot of useful registers. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Adrian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADy1Ce4pBpMRdTB97=RXgv8nrO2fSyAZ5enXnGQtzv2cnRv4hA>