At91rm9200 boot?

M. Warner Losh imp at bsdimp.com
Sun Feb 18 18:43:15 UTC 2007


In message: <20070218180142.GC66059 at x12.dk>
            Soeren Straarup <xride at x12.dk> writes:
: This might be a newbie question, but how do i compile bootspi:
: bugs# make ARCH=arm TARGET_ARCH=arm
: Warning: Object directory not changed from original /usr/src/sys/boot/arm/at91/bootspi
: cc -Os -mcpu=arm9 -ffreestanding  -I/usr/src/sys/boot/arm/at91/bootspi/../libat91  -I/usr/src/sys/boot/arm/at91/bootspi/../../../..  -I/usr/src/sys/boot/arm/at91/bootspi/../../../../arm  -D_KERNEL  -Wall -Waggregate-return   -Wnested-externs  -Wpointer-arith -Wshadow -Wwrite-strings  -Werror  -Wmissing-prototypes  -Wmissing-declarations -DBOOT_KB920X  -DBOOT_COMMANDS -c /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S
: `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
: /usr/src/sys/boot/arm/at91/bootspi/../libat91/arm_init.S:0: error: bad value (arm9) for -mtune= switch
: *** Error code 1
: 
: Stop in /usr/src/sys/boot/arm/at91/bootspi.

Ah yes.  Only the 'top level' makefile understands having a different
target than the host.  So you'll need to do:

cd /usr/src
make TARGET=arm TARGET_ARCH=arm buildenv
cd sys/boot/arm/at91
make

to build changes to the bootspi program.  The above sequence sets up a
build environment similar to what is done during 'make buildworld'.

Warner


More information about the freebsd-arm mailing list