From owner-freebsd-arm@FreeBSD.ORG Wed Jul 10 08:47:56 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 036293F9 for ; Wed, 10 Jul 2013 08:47:56 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x233.google.com (mail-ea0-x233.google.com [IPv6:2a00:1450:4013:c01::233]) by mx1.freebsd.org (Postfix) with ESMTP id 93F5B1C9A for ; Wed, 10 Jul 2013 08:47:55 +0000 (UTC) Received: by mail-ea0-f179.google.com with SMTP id b15so4764730eae.24 for ; Wed, 10 Jul 2013 01:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6Y4phW9t+TVRb3o2D992mFsFomSIc+lYoArr5T7unjw=; b=R6Ow44UeXOa9qcu+z4pS+q5YC1XFhPS9ogSWV3rOr7rvlL9jelkSA1ryLg8epn8eyg Th5R4KScvwLzCGDBFkO7P7BKw82JBsLfIrSA6kr91jlWEiQda0wU6KKzh13lAZHgASha HApl8kLvP56/eqUFP/mwAfN9OMAQ8ZbiSOJmZna6iJXZQ9u5D1FWx1wjjOQH7Vk40+DM 7BKZLwWYr2jhrv2cMTn1kSmqkTd/tFxOW2JIK64TyDSJ+ObySOQ3iN+8rZHre0nbgd9x sitRVqafTWJPmRMq5kfjseDo6mZvFeizxFDkDDUQj8A2Z5dXSguWKN4794qBOcpCsPwo UY7A== MIME-Version: 1.0 X-Received: by 10.14.47.196 with SMTP id t44mr23888375eeb.18.1373446074498; Wed, 10 Jul 2013 01:47:54 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Wed, 10 Jul 2013 01:47:54 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Jul 2013 01:47:54 -0700 Message-ID: Subject: Re: if_run compilation fails (Cubieboard) From: hiren panchasara To: XiaoQI Ge Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 08:47:56 -0000 On Wed, Jul 10, 2013 at 1:33 AM, XiaoQI Ge wrote: > hello all > I tried to if_run compiled into the kernel, but prompt an error, the error > message is as follows: > > TION_HEADERS -include opt_global.h -ffreestanding -Werror > /usr/src/sys/arm/allwinner/aintc.c > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > /usr/src/sys/arm/allwinner/bus_space.c > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > /usr/src/sys/arm/allwinner/common.c > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > /usr/src/sys/arm/allwinner/a10_machdep.c > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > config.c > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > env.c > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > hints.c > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > vnode_if.c > :> hack.c > cc -shared -nostdlib hack.c -o hack.So > rm -f hack.c > cat /usr/src/sys/conf/ldscript.arm|sed s/KERNPHYSADDR/0x40200000/g| sed > s/KERNVIRTADDR/0xc0200000/g > ldscript.arm > MAKE=make sh /usr/src/sys/conf/newvers.sh CUBIEBOARD1G > svn: E155036: The working copy at '/usr/src' > is too old (format 29) to work with client version '1.8.0 (r1490375)' > (expects format 31). You need to upgrade the working copy first. > > 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 > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -ffreestanding -Werror > vers.c > linking kernel.debug > if_run.o: In function `run_load_microcode': > /usr/src/sys/dev/usb/wlan/if_run.c:979: undefined reference to > `firmware_get' > /usr/src/sys/dev/usb/wlan/if_run.c:1059: undefined reference to > `firmware_put' > runfw.o: In function `runfw_fw_modevent': > /usr/obj/armv6/arm.arm/usr/src/sys/CUBIEBOARD1G/runfw.c:31: undefined > reference to `firmware_unregister' > /usr/obj/armv6/arm.arm/usr/src/sys/CUBIEBOARD1G/runfw.c:23: undefined > reference to `firmware_register' > *** Error code 1 > > Stop. > make: stopped in /usr/obj/armv6/arm.arm/usr/src/sys/CUBIEBOARD1G > *** Error code 1 > > Stop. > make: stopped in /usr/src > *** Error code 1 > > Stop. > make: stopped in /usr/src > > === > My kernel configuration file Riga: > > device wlan > device wlan_wep > device wlan_ccmp > device wlan_tkip > > device > > run > device wlan_amrr > device runfw You also need "device firmware" here? (guessing from the errors you are getting: Undefined reference to `firmware_register') cheers, Hiren > > Please help me > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"