From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 06:21:43 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AAE553B4; Mon, 15 Jun 2015 06:21:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 744E9CD6; Mon, 15 Jun 2015 06:21:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iesa3 with SMTP id a3so56093547ies.2; Sun, 14 Jun 2015 23:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=8YZH052hKcZMOwhBMubJDylBo5pWYO3GWllyj7hLkVE=; b=ck0TDjRBeY78aDW25Dy4wYyaGnqXfTY3Li1RdWlCleggg9OlVIkqvXH3+gChZ3/NRz RCugfiBrVvbEkQmYh5Xj5s/bSH1YzJtdOtPwYIy/+/4zcGX9Eewpko70XYzvZdvzKxg2 Bom/32doeAy7yPKWUx7uyUh/Ih2Jic6pmMF2+aaT2cuS2GcvKgSRYOyPmLneO50PNwnL JzkyqXTntngUxE8k9p5DjvQFzkDf8VQo/YAHhZgyje6tDNJ+RuXeVJP2PUl2LvESaSHA +/CBmXkU3lvozeyJ8KuWzIwMsCrotbmBeUCe7OK6t/Z6R3qXTfcA7C9wVprIhwE16zr7 MH1w== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr31659259iof.88.1434349302899; Sun, 14 Jun 2015 23:21:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 14 Jun 2015 23:21:42 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Jun 2015 23:21:42 -0700 X-Google-Sender-Auth: kfwP6eqJ8PjVlsavb64W3JwJIgQ Message-ID: Subject: Re: Starting to cross-compile non-base software for MIPS - what it's like From: Adrian Chadd To: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2015 06:21:43 -0000 So, for what it's worth - after the relevant hacks to convince the various stages to do their thing, I actually /do/ have a user/kernel cross-built from gcc-4.9.2 up on both the mips32 emulator (qemu) /and/ on real hardware (AR9331, MIPS24kc). The installworld fails because somehow the CROSS_TOOLCHAIN bits aren't being included right, so the compiler bits aren't set right. Here, COMPILER_TYPE=gcc and COMPILER_VERSION=40902 - with this, MK_GCC is set to NO and the legacy c++ library isn't built. There's no compiler built with it though, so until I cross compile a compiler package (and cross-compile pkg, grr) getting a compiler /into/ the image is going to take some time. But, it does boot and run fine, and cross-compiled binaries (eg dropbear client/server) work fine, as well as crunchgen binaries (rescue, bsdbox.) -adrian