Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2013 18:11:44 +0800
From:      XiaoQI Ge <ghw@7axu.com>
To:        hiren panchasara <hiren.panchasara@gmail.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: if_run compilation fails (Cubieboard)
Message-ID:  <CAKrd9eWiRS2B5dETwUO9vt_5K7kbap_D1HqqbHNG16dO0=-0jw@mail.gmail.com>
In-Reply-To: <CALCpEUEoJx5Fm2qanrJvoRdSPsyNSOWad=35d5Smg0qjPmc1AQ@mail.gmail.com>
References:  <CAKrd9eX%2B8QyCwsAWE6UichiWWrxG0rO1sF=CPOFDjB%2B2ewhKPw@mail.gmail.com> <CALCpEUEoJx5Fm2qanrJvoRdSPsyNSOWad=35d5Smg0qjPmc1AQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you, I'll try again

--
Regards.
By: XiaoQI Ge; PGP:8B09D5F7
WWW: https://www.7axu.com/



2013/7/10 hiren panchasara <hiren.panchasara@gmail.com>

> On Wed, Jul 10, 2013 at 1:33 AM, XiaoQI Ge <ghw@7axu.com> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKrd9eWiRS2B5dETwUO9vt_5K7kbap_D1HqqbHNG16dO0=-0jw>