From owner-freebsd-stable@FreeBSD.ORG Tue Feb 19 03:48:57 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3B9BCE61 for ; Tue, 19 Feb 2013 03:48:57 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by mx1.freebsd.org (Postfix) with ESMTP id AA7E1997 for ; Tue, 19 Feb 2013 03:48:56 +0000 (UTC) Received: by mail-ee0-f48.google.com with SMTP id t10so3282372eei.21 for ; Mon, 18 Feb 2013 19:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=uTabv6qQfVzOiZGDYlEXrrPrq6vMB/idXwyoHhpOztI=; b=pnOHONnmQz4ZKMZLK3GBk3icYv8ZUYbLx4zm24z0k3OP919N2UTLZZixFRqbCsx1M0 SC504lLmxakO/JPY7N1Y6ikx66kUtBI8GPrkCEIaMt36gvh+mesNOL0UXHjuk+tRGOss JzkO9FKiAbAB2+byhxtc5wilICY5I9qWrS2UFmH6/s67lEzpK/HOvhPINmDZPpiFkyCy boKKl3nnHjJ9bYcnvakFthL3ouXlq/aPFmjbgqTlNLPZN8gZravuig0K30OmRgdWQx1G oTD/5x1y5xxGeN+d3aDxrGktV+J6UEZ5Cgm+9qpWHL+3LPVJ2CBe99fym6GdONRYKc3D rnaw== MIME-Version: 1.0 X-Received: by 10.14.175.129 with SMTP id z1mr52519737eel.7.1361245735038; Mon, 18 Feb 2013 19:48:55 -0800 (PST) Received: by 10.14.100.74 with HTTP; Mon, 18 Feb 2013 19:48:54 -0800 (PST) Date: Mon, 18 Feb 2013 19:48:54 -0800 Message-ID: Subject: Having a problem compiling a customized kernel From: Kurt Buff To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 03:48:57 -0000 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 wrote: > yup > > > > adrian > > > On 18 February 2013 17:32, Kurt Buff 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 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 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 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 wrote: >>>>>> It already exists. >>>>>> >>>>>> On Sun, Feb 17, 2013 at 10:18 PM, Adrian Chadd wrote: >>>>>>> try mkdir /usr/local/bin first? >>>>>>> >>>>>>> >>>>>>> >>>>>>> adrian >>>>>>> >>>>>>> On 17 February 2013 22:04, Kurt Buff 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 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