Compiling uboot for mips
Tom Everett
tom at khubla.com
Fri Jul 11 13:54:38 UTC 2014
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
More information about the freebsd-mips
mailing list