if_run compilation fails (Cubieboard)

XiaoQI Ge ghw at 7axu.com
Wed Jul 10 10:12:26 UTC 2013


Thank you, I'll try again

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



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

> On Wed, Jul 10, 2013 at 1:33 AM, XiaoQI Ge <ghw at 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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>


More information about the freebsd-arm mailing list