From owner-freebsd-mips@FreeBSD.ORG Fri Jul 11 13:54:38 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0F40039A for ; Fri, 11 Jul 2014 13:54:38 +0000 (UTC) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DBDC2BA7 for ; Fri, 11 Jul 2014 13:54:36 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id bs8so2148659wib.9 for ; Fri, 11 Jul 2014 06:54:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=etjmPkAYfeiqnKeDgf8Edq9LCTNFiD6Oolq7NQb/pbo=; b=mygt1sLnc0cFt25bTmKQno7zlwnF+qO2cWTNkQN6nCxY0GzSBP0Ta6gHOqeZ33XbkL FvJr6yIM8CZrjWH2egVfFFN+3s1GdFZiJNz2zK+gQmg3zAR46MLndkn0i+d8B+LGoGPf jGPgfC5bgEJC0mH6vrBMxG95VLwDd+89wV0kA3+ryrO/ixuJJk9PARjGEAU++jXlkB6T w4nkZUQTI3YJtt16oYwSXe+wy2i0I03CDlQBsNej72FhonOAiqqGsZ2h57qYNWU7MCAy Kr8nF+IbtQcB8AWirJiN4fvXr346omeecB5lTXTqr4RXpSYCKAYpKq3KuLO2Mp5F0Sr5 /nXA== X-Gm-Message-State: ALoCoQmOnbboKng/WgUXcEYl7nFhlCHNUBcvUpqXcBdi3cCNw3R1oYzvo3TVvHtZ2fEu/jBA4+n7 MIME-Version: 1.0 X-Received: by 10.180.109.101 with SMTP id hr5mr5287520wib.25.1405086864363; Fri, 11 Jul 2014 06:54:24 -0700 (PDT) Received: by 10.216.161.200 with HTTP; Fri, 11 Jul 2014 06:54:24 -0700 (PDT) Date: Fri, 11 Jul 2014 07:54:24 -0600 Message-ID: Subject: Compiling uboot for mips From: Tom Everett To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 13:54:38 -0000 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