Date: Fri, 11 Jul 2014 07:54:24 -0600 From: Tom Everett <tom@khubla.com> To: freebsd-mips@freebsd.org Subject: Compiling uboot for mips Message-ID: <CAB3ij4C5CHLRy0W3iTUL1yXS8OzV%2BPh1Ff4J6tVHPj24085Oxw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Good morning. I'm trying to compile u-boot for the AR7161 platform. I've
gotten the uboot-source from D-Link's GPL.
I am able to configure u-boot for ap83:
gmake CROSS_COMPILE=mips-freebsd- SED=gsed HOSTCC=cc ap83_config
however, when I do the compile I get the error below. Is this a known
issue?
/storage/home/tom/dir825/AthSDK/platform/AR7161/u-boot/cpu/mips/../../httpd/bsp.h:10:1:
warning: this is the location of the previous definition
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:
Assembler messages:
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: unrecognized opcode `extern __inline__ unsigned int
set_cp0_status(unsigned int set){unsigned int res'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: bad expression
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: missing ')'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: junk at end of line, first unrecognized character is `i'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: unrecognized opcode `__asm__
__volatile__(".set\tpush\n\t"".set\treorder\n\t""mfc0\t%0,""$12""\n\t"".set\tpop":"=r"(__res))'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: unrecognized opcode `__res'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: junk at end of line, first unrecognized character is `}'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: unrecognized opcode `res |=set'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: unrecognized opcode `__asm__
__volatile__("mtc0\t%0,""$12""\n\t""nop"::"r"(res))'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: unrecognized opcode `return res'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: junk at end of line, first unrecognized character is `}'
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: bad expression
/home/tom/dir825/AthSDK/platform/AR7161/u-boot/include/asm/mipsregs.h:317:
Error: missing ')'
--
A better world shall emerge based on faith and understanding - Douglas
MacArthur
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB3ij4C5CHLRy0W3iTUL1yXS8OzV%2BPh1Ff4J6tVHPj24085Oxw>
