Quantcast

Can`t build big-endian kernel FreeBSD 9.0 RELEASE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Can`t build big-endian kernel FreeBSD 9.0 RELEASE

erikses@gmail.com
Hi,
i cant figure out why I cant cross-build *big-endian* kernel.

first i make toolchain :

$make TARGET=arm TARGET_ARCH=armeb  toolchain

then when I`m trying to build kernel I see:

$make  KERNCONF=AT91SAM9260EK TARGET=arm TARGET_ARCH=armeb  buildkernel

*cc -mlittle-endian *-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
-I/usr/src/sys/contrib/libfdt -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 -mcpu=arm9
-ffreestanding -Wno-error  /usr/src/sys/cam/cam_periph.c


but when I`m building world using :

$make TARGET=arm TARGET_ARCH=armeb buildworld

i see:

cc -O2 -pipe -I. -DGCCVER=\"4.2\" -DIN_GCC -DHAVE_CONFIG_H
-DPREFIX=\"/usr\" -DCROSS_COMPILE *-DTARGET_ENDIAN_DEFAULT=MASK_BIG_END
*-I/usr/obj/arm.armeb/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools
-I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include
-I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber
-g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89  
-I/usr/obj/arm.armeb/usr/src/tmp/legacy/usr/include  
-L/usr/obj/arm.armeb/usr/src/tmp/legacy/usr/lib -o genemit genemit.o
rtl.o read-rtl.o ggc-none.o vec.o min-insn-modes.o gensupport.o
print-rtl.o errors.o libiberty.a -lm
./genemit
/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/arm/arm.md
insn-conditions.md > insn-emit.c


what am I doing wrong ?

target CPU is Atmel ARM AT91SAM9260, I`m using AT91SAM9G20 modified config

Stanislaw.
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can`t build big-endian kernel FreeBSD 9.0 RELEASE

Warner Losh

On Jan 27, 2012, at 4:06 PM, [hidden email] wrote:

> make  KERNCONF=AT91SAM9260EK TARGET=arm TARGET_ARCH=armeb  buildkernel

Does the AT91SAM9260EK have 'machine arm armeb' in it?  The other atmel arms are little endian, so are you sure it is big endian?

Warner

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Loading...