From owner-freebsd-mips@FreeBSD.ORG Sun Jun 14 19:13:46 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C308A57E; Sun, 14 Jun 2015 19:13:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (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 8FD28EEA; Sun, 14 Jun 2015 19:13:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iebgx4 with SMTP id gx4so50462437ieb.0; Sun, 14 Jun 2015 12:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=CrXoxBllZ0EcUYzTZqK3MjwPI/79gf+62WxgMakvwHE=; b=G8drNhsU8h6a6S4yZQrkuNZpReMpyaQy852Y5H4dydPHHBlGua7D1wJcOeIyih5eHY ACo++zMoEPVX+KAi/p6Nn0hxJW2OBhTv3EThza1GboisGDHqtR+8hAEEkfvbto8FtGzi CnrjGt7Hctf8lw4r/TOqYCe3bJrRMw3PIckKes+j3tkmxhBUAjEvt+1hah9qU7fjSnoL XxUor+wLzalMV5Y8V+hvcTJSlM7GpmOskgmMnisJ7Bhlke5hpv4rZ2QqtpWriECD/Eb6 mTCzVX0CvdGZUPLe05xu72jZFKfRothJj6rXaEavv311xW/tk+gB8sG0pXoIbyzA/jmE PuDA== MIME-Version: 1.0 X-Received: by 10.50.78.232 with SMTP id e8mr6480162igx.32.1434309225893; Sun, 14 Jun 2015 12:13:45 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 14 Jun 2015 12:13:45 -0700 (PDT) Date: Sun, 14 Jun 2015 12:13:45 -0700 X-Google-Sender-Auth: XpcOWo25DpF7HISY5zeSpRugXiI Message-ID: Subject: 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: Sun, 14 Jun 2015 19:13:46 -0000 Hi! I've been hacking at cross compiling things on FreeBSD for a while, and I have made some progress. This email is less of a "how you can do it" and more of a "these are the roadblocks that prevent it from working out of the box." I'm using gcc-4.9.2 from ports - there's a cross compiler for mips/mips64, and there's mips-binutils/mips64-binutils. I'm using those to compile world and kernel. The kernel works; world requires some patching to compile. I'll write a post when I have a complete system booting/running from gcc-4.9.2. My test application is dropbear. Ie, I'm cross-compiling dropbear for mips from freebsd/i386. * There are some issues in libgcc - I have a patch that I've emailed out for review. I'll do some more testing and commit it next week when I know it works. * There are some environment variables that need to be set before I compile dropbear. Here's what it looks like: CPU_ARGS="-march=mips32 -msoft-float -Wa,-msoft-float" INCS="-I/home/adrian/work/freebsd/head-embedded-2/root/mips/usr/include" export CROSS_COMPILE=mips-portbld-freebsd11.0 export CC=${CROSS_COMPILE}-gcc export CXX=${CROSS_COMPILE}-g++ #export LD=${CROSS_COMPILE}-ld #export AR=${CROSS_COMPILE}-ar #export RANLIB=${CROSS_COMPILE}-ranlib #export STRIP=${CROSS_COMPILE}-strip export LD=mips-freebsd-l export AR=mips-freebsd-ar export RANLIB=mips-freebsd-ranlib export STRIP=mips-freebsd-strip export SYSROOT=/home/adrian/work/freebsd/head-embedded-2/root/mips/ export CFLAGS="--sysroot=$SYSROOT ${CPU_ARGS} ${INCS} -O" export CXXFLAGS="--sysroot=$SYSROOT ${CPU_ARGS} ${INCS} -O" export CPPFLAGS="--sysroot=$SYSROOT ${CPU_ARGS} ${INCS} -O" export LDFLAGS=--sysroot=$SYSROOT # now run: # /configure --host=mips-portbld-freebsd11.0 # gmake ... then I hit a problem with how we populate links in /usr/lib and such. TL;DR - the symlinks we use are not relative paths, they're absolute paths - and this makes cross building using sysroot / explicit library paths fail to work right. Sigh. In particular, I needed to manually undo the libgcc symlink for it to compile. compilation complained about other libraries, but the resulting binaries did run. * yes, I tested the dropbear/dbclient binaries in a mips qemu VM (not qemu-mips-user, but a full mips MALTA VM.) Both worked fine. * the sysroot setup didn't correctly set the include path stuff right - I need to chase that down. Ie, it was still searching in /usr/include/ rather than ${SYSROOT}/usr/include/ . The library code obeyed the library searching, except for that hardlink. So, the very basics of "how can we cross compile things to run inside a freebsd-mips machine" work fine. It's amusing and annoying that the sysroot thing popped up. I do wonder if this class of problem keeps popping up when people do builds from one freebsd version to another; but I currently have no clear idea how to automate detecting this. On the plus side, it did work. So: * I'll try to wrangle juli/bsdimp to review the libgcc change I have so userland compiles using gcc-4.9 with warnings disabled. * I'll try to wrangle juli/bsdimp to review the kernel changes needed to compile up the kernel with gcc-4.9. * I'd like some help / comments on what we can do about the absolute symlinks used for various things inside an installed root. Ideally we'd have an option that would let us populate only relative links - that'd instantly make this problem go away. * I'll go hit up bapt and some netbsd friends for some help with expected sysroot behaviour on gcc/binutils. It's possible there are still bugs with the dynamic sysroot (ie, when you don't compile your toolchain with an explicit sysroot to something other than '/') that need addressing. Then I'll worry about starting to convert a few ports to be native cross building. -a From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 02:15:24 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 2E6DBFEB; Mon, 15 Jun 2015 02:15:24 +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 ECAE6BED; Mon, 15 Jun 2015 02:15:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iebgx4 with SMTP id gx4so53762392ieb.0; Sun, 14 Jun 2015 19:15:23 -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=hg5UDeIG+PlkoykmoF3i/fTMol4oDv+B38Rnydro3SI=; b=fWxqqwEZ2PcMAMaJEH6vUpbg3kgn8dpgR9zbtSu2we1pIjh1x22NShhH5xYNdby33L Onl7YiO4wWPifQm7sBIZz6SXaRhqSbFpiaHN0VGQVTD70R/fiz8vw1kq+9ljuIgnEqpr igY+8TXfqfGxNmSu/fXXRhDhlVN1JqZ9tV3kC/+CE7SJFZbHq2VelRUJ+fSn9Wt0395l iWaBPbw2vJMbPdrsGcvs26hcIfy/B/aB3a8Am59M2nA7AWsSRaK+289Ijg0ay9K0phWK 8Xet7ASGJZKDgimcR+nhtuf09xIxeModrWDbBXxhj064SMbPFrKRO9bmC+DyzZlGXStr uhmg== MIME-Version: 1.0 X-Received: by 10.50.79.228 with SMTP id m4mr17542453igx.6.1434334522998; Sun, 14 Jun 2015 19:15:22 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 14 Jun 2015 19:15:22 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Jun 2015 19:15:22 -0700 X-Google-Sender-Auth: kKjzPBZa5fMoQy2bF_JiPCwzRus 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 02:15:24 -0000 Hm, for some reason, doing a make installworld with an external compiler set fails with an unknown compiler type. -adrian From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 02:18:33 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 E555DBB; Mon, 15 Jun 2015 02:18:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (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 AB2EBBF7; Mon, 15 Jun 2015 02:18:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbsb11 with SMTP id sb11so41235482igb.0; Sun, 14 Jun 2015 19:18:33 -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=TJpN8hwwMYJCE/AcWQyNXbU8MSGP9dfkC3ZqUXz7gvU=; b=ccm/h0DRDoqNwlIkhOfkbffYY0QHgLUlEDPzoZvxL40Duy30h4Vmyi+XddIdddZTxq yps+drGRYoi35Jux5uCHl8q0ga0Rcgq0LhP0+r3v0AzEwbN8xeQ/7hw7p9caxu0cBrgf O6+yaLp60XDQFetV67LTsnhMxcY5tygxnpQPK5a5PC7IdhU26kRRmQEkCM6jm+XsUsHa vmi7+NTZfb6ybIasoaGw9gDlSj0kO8rBLJfarCu3dTYv9MDIhMSYlrbP8WOPLjpiN9Vm TGy+yyMkCTvAXzBX52xLX6fGJpuqPpsnh4O/PXTpYDhcuXlRcyEg0IHt1iNvUKx8vyiP eMXw== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr30838050iof.88.1434334713141; Sun, 14 Jun 2015 19:18:33 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 14 Jun 2015 19:18:33 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Jun 2015 19:18:33 -0700 X-Google-Sender-Auth: faQhvxhsTK5-hxwWarYmsZ65XVw 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 02:18:34 -0000 Actually, the installworld part fails: ===> gnu (install) ===> gnu/lib (install) ===> gnu/lib/csu (install) ===> gnu/lib/libgcc (install) ===> gnu/lib/libdialog (install) ===> gnu/lib/libregex (install) ===> gnu/lib/libgcov (install) install: libgcov.a: No such file or directory *** Error code 71 .. I'm guessing it's not building some gnu/gcc bits when using an external toolchain? Ah yes, it is - MK_GCC is apparently being set to NO during build, but not during intsallworld, even though I am setting things during the installworld phase. here's what i'm calling: *** Stage : installworld env MAKEOBJDIRPREFIX=/home/adrian/work/freebsd/head-embedded-2/src/../obj/mips/ make -s DB_FROM_SRC=1 TARGET=mips TARGET_ARCH=mips NO_WERROR=1 CROSS_TOOLCHAIN=mips-gcc COMPILER_TYPE=gcc TARGET_CPUTYPE=mips32 CPUTYPE=mips32 KERNCONF=MALTA KODIR=/boot/kernel.MALTA/ DESTDIR=/home/adrian/work/freebsd/head-embedded-2/src/../root/mips NO_ROOT=yes KMODDIR=/boot/kernel.MALTA/ __MAKE_CONF=/home/adrian/work/freebsd/head-embedded-2/src/../root/mips/../make.conf.mips SRCCONF=/home/adrian/work/freebsd/head-embedded-2/src/../root/mips/../src.conf.mips LOCAL_DIRS= installworld .. any ideas? -a 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 From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 16:08:14 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 13181D51 for ; Mon, 15 Jun 2015 16:08:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) (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 CF8011FD for ; Mon, 15 Jun 2015 16:08:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by iecrd14 with SMTP id rd14so34200869iec.3 for ; Mon, 15 Jun 2015 09:08:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=hDWpGgx1RbZxJSxp5VjDwCEq0fDF/zwn6TL5yoTubB4=; b=fzyhItz5SBZ9eH2y9zdv+eTlUuiPCFRheRXwdU3Iw2qxgcM4zwmWxtQbqvlP/IyFNH IlSmUQB9FtEh+9ZJEzuNWvTgSEk6sipZOZDtCg1gdMhLC277SI99CZxuXe+vSnIPQtyd ywuOY4jKmiUhwsYJ1jw8me8KWhi7wy0kRSY4a8XoHz+dw6/daj7jWS60HwuL6vAIrJ4W XxGcBUoyGhOQJHdVt5oNJe4KCzZUCz8590oxJ8SRPGW3Bfg7yvK1JtjKQIE1a+M9fcgQ pPyLykANHtt3Yqj6QrECXEkR6XvohLLpCw6cQO0AvwvDdoeCAmEV/2QobslJMk3G3Bem ok+A== X-Gm-Message-State: ALoCoQlp99OlmaCpk/yUf05N+zoQRdPOxsVRnjq4u2dB3v/Gw9gJn8zGkTkIKf2aiMBYMWWp8iiw X-Received: by 10.50.78.232 with SMTP id e8mr11780567igx.32.1434384492804; Mon, 15 Jun 2015 09:08:12 -0700 (PDT) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id p17sm7859620igr.15.2015.06.15.09.08.11 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jun 2015 09:08:12 -0700 (PDT) Sender: Warner Losh Subject: Re: [rfc] fix umul_ppmm() in our libgcc Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_4879EB78-93CC-45C8-8FEF-B77BC2137A68"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: Date: Mon, 15 Jun 2015 10:08:12 -0600 Cc: "freebsd-mips@freebsd.org" Message-Id: <47D07C4F-1AF3-4AD7-BFAA-76B0FD8BFFC4@bsdimp.com> References: To: Adrian Chadd X-Mailer: Apple Mail (2.2098) 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 16:08:14 -0000 --Apple-Mail=_4879EB78-93CC-45C8-8FEF-B77BC2137A68 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 13, 2015, at 4:41 PM, Adrian Chadd wrote: >=20 > Hi, >=20 > our libgcc in -base is very .. old. It chokes when compiling for > mips32. This patch seems to do the right thing. >=20 > Does anyone have any positive/negative feedback? What code does it generate? Something doesn=E2=80=99t look quite right, but I can=E2=80=99t quite = put my finger on it. Warner > Thanks, >=20 >=20 > -adrian >=20 >=20 > Index: contrib/gcc/longlong.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- contrib/gcc/longlong.h (revision 284090) > +++ contrib/gcc/longlong.h (working copy) > @@ -584,11 +584,11 @@ >=20 > #if defined (__mips__) && W_TYPE_SIZE =3D=3D 32 > #define umul_ppmm(w1, w0, u, v) \ > - __asm__ ("multu %2,%3" = \ > - : "=3Dl" ((USItype) (w0)), = \ > - "=3Dh" ((USItype) (w1)) = \ > - : "d" ((USItype) (u)), = \ > - "d" ((USItype) (v))) > + do { = \ > + UDItype __ll =3D (UDItype)(u) * (v); = \ > + w1 =3D __ll >> 32; = \ > + w0 =3D __ll; = \ > + } while (0) > #define UMUL_TIME 10 > #define UDIV_TIME 100 > #endif /* __mips__ */ > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" --Apple-Mail=_4879EB78-93CC-45C8-8FEF-B77BC2137A68 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVfvhsAAoJEGwc0Sh9sBEAE3sP/Ryyiyxg4eN6WMgy1pSy+3xp am4JIA5vPQrgd4kpzryz5Tq5s/uIr3rSOKKyHvFM47PUW5n/lpM08OdYzITR7BzV 0ducAaN9ohnzoG4rTJZH924mm42VHvpF/CgpIeALmZXvQqy9bGJKVQ27KfijD9/6 QE1bMPdzlh0Iuy6iUJsVcS1z0piY+8tDdzIbp8IGa2EHcNoMo9GeVKuiCLq89WHn IT7zJS+u3sCD54EKB24BG3ZL8UmQD8Lb5Qti4xBFmLxs9hdfofevcicZM9BNafAO UOiU3hgMlbb4t99Q+WLncdYg3AsDX5J2J/EJQ3TliYTT6u0jHKyW2e4BKYcsXkc+ yP7e0V1bU9Q15cZUzVT99ygonk9aqwTzroM6RPs2+XY4LDbuSgnSmqHRtEIy/HR3 3i2assbNOUBNh3QFdngNFLuCTmLnLKPWfLZpsOkGDkDnxtYwRbPL+Fy/8r6Bdt3x wYKiZn3bcTfMqrFlXLfyWUB4LCFsJpx5Ta0AJ5OG1RilmM8f8Q/1eOvUhq7YdJcN VYwOSmrCcd71t83HY8Pga3PKovsM+34bNamDlMrr+XMnqBR31v7KdMop898HOyvy j7OWU9otucJ8prgKWNOycN08sovgdsSczjg6KkRhEtlldd3XWviPI+IvOsOFLQ1I K5YNxSSCJUYehIa67xGM =w0mn -----END PGP SIGNATURE----- --Apple-Mail=_4879EB78-93CC-45C8-8FEF-B77BC2137A68-- From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 17:15:55 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 B0F1F99B; Mon, 15 Jun 2015 17:15:55 +0000 (UTC) (envelope-from stas@freebsd.org) Received: from mx0.deglitch.com (unknown [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 71F058F7; Mon, 15 Jun 2015 17:15:55 +0000 (UTC) (envelope-from stas@freebsd.org) Received: from [192.168.11.8] (unknown [98.248.95.7]) by mx0.deglitch.com (Postfix) with ESMTPSA id 5E7278FC27; Mon, 15 Jun 2015 21:15:45 +0400 (MSK) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: [rfc] fix umul_ppmm() in our libgcc From: Stanislav Sedov In-Reply-To: Date: Mon, 15 Jun 2015 10:15:35 -0700 Cc: "freebsd-mips@freebsd.org" Content-Transfer-Encoding: 7bit Message-Id: <7895DD8F-6165-4EF9-AAE7-098C601470D8@freebsd.org> References: To: Adrian Chadd X-Mailer: Apple Mail (2.2098) 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 17:15:55 -0000 > On Jun 13, 2015, at 3:41 PM, Adrian Chadd wrote: > > Hi, > > our libgcc in -base is very .. old. It chokes when compiling for > mips32. This patch seems to do the right thing. > > Does anyone have any positive/negative feedback? > > Thanks, > > > -adrian > > > Index: contrib/gcc/longlong.h > =================================================================== > --- contrib/gcc/longlong.h (revision 284090) > +++ contrib/gcc/longlong.h (working copy) > @@ -584,11 +584,11 @@ > > #if defined (__mips__) && W_TYPE_SIZE == 32 > #define umul_ppmm(w1, w0, u, v) \ > - __asm__ ("multu %2,%3" \ > - : "=l" ((USItype) (w0)), \ > - "=h" ((USItype) (w1)) \ > - : "d" ((USItype) (u)), \ > - "d" ((USItype) (v))) > + do { \ > + UDItype __ll = (UDItype)(u) * (v); \ > + w1 = __ll >> 32; \ > + w0 = __ll; \ > + } while (0) > #define UMUL_TIME 10 > #define UDIV_TIME 100 > #endif /* __mips__ */ This looks right to me in terms of functionality, but what is wrong with the original code (multu)? That one seems correct as well. What error do you see when compiling it? -- ST4096-RIPE From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 17:23:05 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 240A4D4A for ; Mon, 15 Jun 2015 17:23:05 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) (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 E1FC7B3F for ; Mon, 15 Jun 2015 17:23:04 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by igblz2 with SMTP id lz2so55542654igb.1 for ; Mon, 15 Jun 2015 10:23:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=Jg61YZFHp+UqzSewoJRQcqrihKrefHlpbVbiDNM4r5g=; b=lS6zYDer04pUAdumKJwaZVjcEH3UmsrM8fmqTxZpuT8aF9nnz2lnjA38I9YL5Vx0jj WHPtbo6MLuD8MArfTaa7SvAHmZSjC/IoCfmmjERVPcZIbYZx7WAtKQ0FhojzhRLOpcDT OhMuBujpbZ4edvruTolll/euLkzo/FcgWBSNhrHktvDYiWuvCpb+FtM+K7LSC45lfEQ7 2WDc5n8lRBhMB1SoO7BrUst5QyVzpt2HSrE/TCYly+uhkX2hDSeuUs1ckrVZ9nOVY0BM p4Q2Y9TBJ272XzRzKzhRGil9BkBOPmXxtU6C6OYy2wvugt69HymS9sS3z8jU8mEQXRLL o7Qg== X-Gm-Message-State: ALoCoQkzH3u1ul55VAXtBriyWMBD8PKbQ8suiiWoPOmVHknhYtI0oqevw/U75IwrGmviKHquMJxX X-Received: by 10.50.79.196 with SMTP id l4mr22545722igx.48.1434388984250; Mon, 15 Jun 2015 10:23:04 -0700 (PDT) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id rt5sm7993918igb.8.2015.06.15.10.23.03 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jun 2015 10:23:03 -0700 (PDT) Sender: Warner Losh Subject: Re: Starting to cross-compile non-base software for MIPS - what it's like Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2B777C26-1D06-4FE9-96C4-978352D20094"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: Date: Mon, 15 Jun 2015 11:23:00 -0600 Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Message-Id: References: To: Adrian Chadd X-Mailer: Apple Mail (2.2098) 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 17:23:05 -0000 --Apple-Mail=_2B777C26-1D06-4FE9-96C4-978352D20094 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 14, 2015, at 1:13 PM, Adrian Chadd wrote: >=20 > Hi! >=20 > I've been hacking at cross compiling things on FreeBSD for a while, > and I have made some progress. This email is less of a "how you can do > it" and more of a "these are the roadblocks that prevent it from > working out of the box." >=20 > I'm using gcc-4.9.2 from ports - there's a cross compiler for > mips/mips64, and there's mips-binutils/mips64-binutils. I'm using > those to compile world and kernel. The kernel works; world requires > some patching to compile. I'll write a post when I have a complete > system booting/running from gcc-4.9.2. >=20 > My test application is dropbear. Ie, I'm cross-compiling dropbear for > mips from freebsd/i386. >=20 > * There are some issues in libgcc - I have a patch that I've emailed > out for review. I'll do some more testing and commit it next week when > I know it works. > * There are some environment variables that need to be set before I > compile dropbear. Here's what it looks like: >=20 > CPU_ARGS=3D"-march=3Dmips32 -msoft-float -Wa,-msoft-float" > = INCS=3D"-I/home/adrian/work/freebsd/head-embedded-2/root/mips/usr/include"= >=20 > export CROSS_COMPILE=3Dmips-portbld-freebsd11.0 > export CC=3D${CROSS_COMPILE}-gcc > export CXX=3D${CROSS_COMPILE}-g++ > #export LD=3D${CROSS_COMPILE}-ld > #export AR=3D${CROSS_COMPILE}-ar > #export RANLIB=3D${CROSS_COMPILE}-ranlib > #export STRIP=3D${CROSS_COMPILE}-strip > export LD=3Dmips-freebsd-l > export AR=3Dmips-freebsd-ar > export RANLIB=3Dmips-freebsd-ranlib > export STRIP=3Dmips-freebsd-strip > export SYSROOT=3D/home/adrian/work/freebsd/head-embedded-2/root/mips/ > export CFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" > export CXXFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" > export CPPFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" > export LDFLAGS=3D--sysroot=3D$SYSROOT >=20 > # now run: > # /configure --host=3Dmips-portbld-freebsd11.0 > # gmake >=20 > ... then I hit a problem with how we populate links in /usr/lib and > such. TL;DR - the symlinks we use are not relative paths, they're > absolute paths - and this makes cross building using sysroot / > explicit library paths fail to work right. Sigh. In particular, I > needed to manually undo the libgcc symlink for it to compile. > compilation complained about other libraries, but the resulting > binaries did run. That=E2=80=99s one of about 6 reasons that what we produce isn=E2=80=99t = a sysroot. We need to create a sysroot target that=E2=80=99s very close to the xdev targets with all the compiler bits stripped out. We=E2=80=99re= close though. I have about 1/2 of the patch needed to remove xdev entirely and replace it with sysroot. You shouldn=E2=80=99t need the INCS args if you have a proper sysroot. And the CPU_ARGS is an indication we=E2=80=99re building our port incorrectly. This is the same feedback I gave on the kernel make changes you suggested. > * yes, I tested the dropbear/dbclient binaries in a mips qemu VM (not > qemu-mips-user, but a full mips MALTA VM.) Both worked fine. >=20 > * the sysroot setup didn't correctly set the include path stuff right > - I need to chase that down. Ie, it was still searching in > /usr/include/ rather than ${SYSROOT}/usr/include/ . The library code > obeyed the library searching, except for that hardlink. That sounds like a bug in the default path of our gcc port. > So, the very basics of "how can we cross compile things to run inside > a freebsd-mips machine" work fine. It's amusing and annoying that the > sysroot thing popped up. I do wonder if this class of problem keeps > popping up when people do builds from one freebsd version to another; > but I currently have no clear idea how to automate detecting this. For one version to another we have a very controlled and constrained environment. Inside of that, there are enough people building in = purposely broken environments to detect regressions. Once you involve configure and foreign software things become rather unconstrained... > On the plus side, it did work. I=E2=80=99ve had hacks like this for =E2=80=9Csimple=E2=80=9D arts for = years. It=E2=80=99s why I wrote xdev in the first place. I had it working in the FreeBSD 6 time frame for cross building some ports. But once you get past a certain class of very well behaved ports, it goes to hell in a hurry. > So: >=20 > * I'll try to wrangle juli/bsdimp to review the libgcc change I have > so userland compiles using gcc-4.9 with warnings disabled. I=E2=80=99ll be happy to take a look. > * I'll try to wrangle juli/bsdimp to review the kernel changes needed > to compile up the kernel with gcc-4.9. I=E2=80=99ve already reviewed that one. gcc isn=E2=80=99t being compiled = correctly and that need to be fixed. This is the forth time I=E2=80=99ve given = this feedback. > * I'd like some help / comments on what we can do about the absolute > symlinks used for various things inside an installed root. Ideally > we'd have an option that would let us populate only relative links - > that'd instantly make this problem go away. All installworld-ish targets should use relative path symbolic links. The fact they are using absolute paths is a bug. In the FreeBSD 6 time frame, I fought this battle at work and it wasn=E2=80=99t hard to = fix. I no longer have access to those sources, and I honestly can=E2=80=99t recall how I fixed it (it may have been in a post-processing step). > * I'll go hit up bapt and some netbsd friends for some help with > expected sysroot behaviour on gcc/binutils. It's possible there are > still bugs with the dynamic sysroot (ie, when you don't compile your > toolchain with an explicit sysroot to something other than '/') that > need addressing. bapt and I have been talking about this for a while. We=E2=80=99ve both = been busy doing other things so haven=E2=80=99t focused on it other than in = off moments. > Then I'll worry about starting to convert a few ports to be native > cross building. You should talk to bapt about the rather extensive work he=E2=80=99s = done in this area, which is why I=E2=80=99ve looked at transitioning the xdev support to just sysroot support. Warner --Apple-Mail=_2B777C26-1D06-4FE9-96C4-978352D20094 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVfwn1AAoJEGwc0Sh9sBEAMI0P/j12ZOpHoOHhBkn0crUdLTR8 FRskASw84nMM5/h0vOkVlaBVrWxj/pRSbl7ysUhMXWC0CHx3RK5tKqrDby0A7TFj UurUZE1kmD7oUacX/tAMlnZuL5di2jopmqntprY83HvZoUsXsoeoDhTPxOXjW5KB c7UhbCZPCZkxXMNWUFIAPs/DI5HfpfxQxZmtq3HyLPuQOlzQt+Q24nocQzRXxT5b PcKSd0pN+F/Km6CiPcZzdg0oGefuwLZ+oOMrJH/igiqR94WmYypOvksb/E+H5mEa 6kpGDJuzrBueVy/Rx0TRK+MhlsGcM3zFtYmpmU9H06smR9RaYizka2NLqA38gop5 gvoZvELK0050+cjUBFuoS2hM8e258mkphfr+HKAsittZtT1HX7A8OA0W3AID6Vi6 xYvGisMllvHqN9cnGj3pNnbXRqeYx6RAJylmJnnAvGjbTw4W8C6XcD/07kzBxO3M H5qgTnn/STF0TwwlA4o6JxX0XF1mKXtGP8pvBMHun77yfQ1tBTuLEUHrCuK7Uar4 UbPpu0BgOapEhDsVZUK+MiMcUy88n1kxRoBkgzBQXsQ9JMdd2pnOAyQh+xL5tHQg GFg2UeyPRok1EkaJJLGTEXlwp6CT9xq0FufC+b3JBM46qZQLvio9LgxM97nLUDCZ YSSgptmDj+RtNJeJdXHS =J58A -----END PGP SIGNATURE----- --Apple-Mail=_2B777C26-1D06-4FE9-96C4-978352D20094-- From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 17:31:21 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 1A270331 for ; Mon, 15 Jun 2015 17:31:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) (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 D560DD38 for ; Mon, 15 Jun 2015 17:31:20 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by igbiq7 with SMTP id iq7so23814833igb.1 for ; Mon, 15 Jun 2015 10:31:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=/NoEjnc9aFLUKhEoTnf1qvDnIa180WuflRH/QjtH4nk=; b=bAnZu1ob7mJRgvsZ0MOlucCaD2IzEWlu98vvKDMgPUIF7p4uFDAWZIPBxz6Jh1RZX3 OjV4ox8dq05qETlfV+/OirhEXYZUkDMkEwgt8Y9OL2W9XA/uIGx4+J+t34CMDRSe10g7 v/LqVePpugBdqxQWkmyeUeo7fl3+uR6aAKIcUxqj6Ua9e2An8bEStyokW6YTcUkSwGja IZYDQRZEWECFdNso6E6YCdztshL66n8KoOSMrd6j0HjSS1jxKxlD6Q2E4PMZojGALgP2 d+agaIlgh9FwTuwUHRK1lbBflNaCOorchiMdDEOXaw0oYq4i4Fy9SopRtasCGIDptOUW 6W6w== X-Gm-Message-State: ALoCoQkeVGB+eA4WFbsYBOTA83NPqIhD2jqPQg6WxiiGbTZiuc6ytj1GhXyoQZ0zia/ya8o6XXi+ X-Received: by 10.107.136.88 with SMTP id k85mr10570035iod.63.1434389480227; Mon, 15 Jun 2015 10:31:20 -0700 (PDT) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id y124sm9260891iod.13.2015.06.15.10.31.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jun 2015 10:31:19 -0700 (PDT) Sender: Warner Losh Subject: Re: Starting to cross-compile non-base software for MIPS - what it's like Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_A5074BF4-BC88-4BF3-9445-7A318F88F910"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: Date: Mon, 15 Jun 2015 11:31:17 -0600 Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Message-Id: <2ADF0848-4190-4D40-808B-DA6D539FA431@bsdimp.com> References: To: Adrian Chadd X-Mailer: Apple Mail (2.2098) 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 17:31:21 -0000 --Apple-Mail=_A5074BF4-BC88-4BF3-9445-7A318F88F910 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 15, 2015, at 12:21 AM, Adrian Chadd wrote: >=20 > 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). >=20 > 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=3Dgcc and COMPILER_VERSION=3D40902 - with this, MK_GCC = is > set to NO and the legacy c++ library isn't built. That=E2=80=99s actually correct. =46rom about 4.8 and onward, clang and = gcc should be using the same c++ runtime. Maybe our defaults are a bit messed up, since libgcov likely shouldn=E2=80=99t be tied to MK_GCC at all=E2=80=A6 = With the clang introduction, we=E2=80=99ve not always had a good clear line about the different = subtle aspects of clang vs gcc, and this may be one of them. > 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. gcc does support the notion of building on host X to generate binaries that run on host Y that generate code for host Z. But that might be a bit of a stretch for our system. > But, it does boot and run fine, and cross-compiled binaries (eg > dropbear client/server) work fine, as well as crunchgen binaries > (rescue, bsdbox.) That=E2=80=99s cool! Warner --Apple-Mail=_A5074BF4-BC88-4BF3-9445-7A318F88F910 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVfwvlAAoJEGwc0Sh9sBEAqX8P/32M9k39Ixiq1eq+6FIzgP/5 8DPaKn9XUXDlpdPsYlKTjLg51NfM57wZGySm9oWFxu95TSMf8iafcxLmdloWXxhZ KKSyqnPcSLrYrsUP+pccjbNsUih6fK/Nc3pvYmNIDet/zNv0lbo7HwiSrNLPW8QK I3flnXq+iThG8gFCno9dqCKBZIc3+HIt0+0SZZqO84z7Ct0uQOsQ4DwtqE3DNMPU 57b6CgnWSNrsXd6Ob6sQNe27WHogCS1nCQrzH0Fclkpe6xTF8k8lL6SARd0hP26M zso54R3zp5kmUlLTTgXMyRHzEnWBEDh/vahSEKru2mPBJnlsfVIDcMFXoWtv/3FV BDa0WlnmUudW35beuVw8CKrc4xLnHFn5WPXXp5Y+cjb8u62KTmUr1U9n8Nxba+2K eYpqzwbkG4nAyyPMVXjcs7hkPeWaKzSg8QM26Vetk2uLQ5g/s3jYEPWxzt48HhoP LGuBAT3PNMzzdYbvka6PL0CRlHTQh+XdcMuoVHVLMB+ULO4z2fWpP8GkGuQPuENP JOTWabErI/oHo3aWWwwoejwdqdlTOa4J8b5a0VEeqinXhc4EeJkhV26Yv/LgWLdh mcCqc5D+sxLlre9n3gEzYrgYzJYugyIvHJYAKMui0a3WooXjDosC+ee9YCPF3b8p FQsuBZMNrzCSB1evqPXN =5pqU -----END PGP SIGNATURE----- --Apple-Mail=_A5074BF4-BC88-4BF3-9445-7A318F88F910-- From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 18:39:37 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 602DDC15; Mon, 15 Jun 2015 18:39:37 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (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 26AF1F1B; Mon, 15 Jun 2015 18:39:37 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igboe5 with SMTP id oe5so37187874igb.1; Mon, 15 Jun 2015 11:39:36 -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:cc:content-type:content-transfer-encoding; bh=KAUTJecYVNsPyEp1Xg5TZox86rwan6+wnMLNwutKGMQ=; b=NzvKfjLUD+PUuzyoqVGi5VubOU5Dc2hX4iVCknzzkyFShjo/GZL1ieJH9Aru8+vPIu 1xeV0pdm1ecdNMzHamyI1kdokBiW84DFQxhFxBQRjV4PUR+2gartJ3xwKuhf9xmJGgZT eG4hI8Z7R6DYuboocA4UMyTLnQ7h1uGfkqGWUof3Cwf1TajhXoKm4uB7/54W/xpXLA+f X4gj4UQR8Qqa5honW59cATLGC6rbRwIyoO2lfGggzutzBn2sKEZQd3r1ZNGDJeX9mLzj lujU2qQxtwOdk65Q938c+MGY/1AzcomWTXSyxXAS8hqKgFyGOhguK2c4FiAz329keOFy SHPQ== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr35708374iof.88.1434393576009; Mon, 15 Jun 2015 11:39:36 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Mon, 15 Jun 2015 11:39:35 -0700 (PDT) In-Reply-To: <2ADF0848-4190-4D40-808B-DA6D539FA431@bsdimp.com> References: <2ADF0848-4190-4D40-808B-DA6D539FA431@bsdimp.com> Date: Mon, 15 Jun 2015 11:39:35 -0700 X-Google-Sender-Auth: 3xRmu-j0EPUYLUWFPcTzr2qILms Message-ID: Subject: Re: Starting to cross-compile non-base software for MIPS - what it's like From: Adrian Chadd To: Warner Losh Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 18:39:37 -0000 On 15 June 2015 at 10:31, Warner Losh wrote: > >> On Jun 15, 2015, at 12:21 AM, Adrian Chadd wrote: >> >> 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=3Dgcc and COMPILER_VERSION=3D40902 - with this, MK_GCC is >> set to NO and the legacy c++ library isn't built. > > That=E2=80=99s actually correct. From about 4.8 and onward, clang and gcc= should > be using the same c++ runtime. Maybe our defaults are a bit messed up, > since libgcov likely shouldn=E2=80=99t be tied to MK_GCC at all=E2=80=A6 = With the clang introduction, > we=E2=80=99ve not always had a good clear line about the different subtle= aspects > of clang vs gcc, and this may be one of them. *nod* so,, I agree with all of that, but the above is the result, not the c= ause. make buildworld uses CROSS_TOOLCHAIN for the gcc config and cascades things correctly. make installworld doesn't seem to use CROSS_TOOLCHAIN everywhere, and it defaults to assuming we're building with gcc, and thus MK_GCC=3Dyes, and it tries installing non-built things. If I manually set the COMPILER_TYPE / COMPILER_VERSION variables then things work out. I /think/ that's broken behaviour, so I'm going to check first with bapt to see what's supposed to happen and see what we can do to sort that out. -a From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 18:45:00 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 C0549E44; Mon, 15 Jun 2015 18:45:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::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 88A1519F; Mon, 15 Jun 2015 18:45:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igboe5 with SMTP id oe5so37305620igb.1; Mon, 15 Jun 2015 11:45:00 -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:cc:content-type:content-transfer-encoding; bh=Jh9RDx/0NBKv45sZUXCoKx85B9eily1TZMuNCY64lZY=; b=tNAyozuKEKk4SmbzTziEQDLZXRZs5QH9oBLnf6I5bD+MCIUloYhOrPYYZYS2plyZO8 my7kecCl66qHrcmUn1uQtfHTDt4OhjKm7Vu6qSM36MmPI7A7VG1dSF9gYYyUXNkO2w1T j9xbReEjvJESVZMogxRWX465bNFMjPebOsqmcLCiefQfdC1dCth10FK6K4B3duEV3pzR fEW7YdLMuSp9f3M+90I+pPjXrWcTZLyDSjTZgLtXZxwXoa4/HYThvY7K1FzjnJqBZRoP X02VK1kcHnoPrQOHOJgjqII/2Lb7p0Vm5jimcluLuyI27ttjzqM5ZJbGDf0n6gmBIGcC xZqQ== MIME-Version: 1.0 X-Received: by 10.107.164.70 with SMTP id n67mr36278843ioe.8.1434393900091; Mon, 15 Jun 2015 11:45:00 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Mon, 15 Jun 2015 11:45:00 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jun 2015 11:45:00 -0700 X-Google-Sender-Auth: 65Bl0xlapu_pTTD_cVut7jTNYT8 Message-ID: Subject: Re: Starting to cross-compile non-base software for MIPS - what it's like From: Adrian Chadd To: Warner Losh Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 18:45:01 -0000 On 15 June 2015 at 10:23, Warner Losh wrote: > >> On Jun 14, 2015, at 1:13 PM, Adrian Chadd wrote: >> >> Hi! >> >> I've been hacking at cross compiling things on FreeBSD for a while, >> and I have made some progress. This email is less of a "how you can do >> it" and more of a "these are the roadblocks that prevent it from >> working out of the box." >> >> I'm using gcc-4.9.2 from ports - there's a cross compiler for >> mips/mips64, and there's mips-binutils/mips64-binutils. I'm using >> those to compile world and kernel. The kernel works; world requires >> some patching to compile. I'll write a post when I have a complete >> system booting/running from gcc-4.9.2. >> >> My test application is dropbear. Ie, I'm cross-compiling dropbear for >> mips from freebsd/i386. >> >> * There are some issues in libgcc - I have a patch that I've emailed >> out for review. I'll do some more testing and commit it next week when >> I know it works. >> * There are some environment variables that need to be set before I >> compile dropbear. Here's what it looks like: >> >> CPU_ARGS=3D"-march=3Dmips32 -msoft-float -Wa,-msoft-float" >> INCS=3D"-I/home/adrian/work/freebsd/head-embedded-2/root/mips/usr/includ= e" >> >> export CROSS_COMPILE=3Dmips-portbld-freebsd11.0 >> export CC=3D${CROSS_COMPILE}-gcc >> export CXX=3D${CROSS_COMPILE}-g++ >> #export LD=3D${CROSS_COMPILE}-ld >> #export AR=3D${CROSS_COMPILE}-ar >> #export RANLIB=3D${CROSS_COMPILE}-ranlib >> #export STRIP=3D${CROSS_COMPILE}-strip >> export LD=3Dmips-freebsd-l >> export AR=3Dmips-freebsd-ar >> export RANLIB=3Dmips-freebsd-ranlib >> export STRIP=3Dmips-freebsd-strip >> export SYSROOT=3D/home/adrian/work/freebsd/head-embedded-2/root/mips/ >> export CFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" >> export CXXFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" >> export CPPFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" >> export LDFLAGS=3D--sysroot=3D$SYSROOT >> >> # now run: >> # /configure --host=3Dmips-portbld-freebsd11.0 >> # gmake >> >> ... then I hit a problem with how we populate links in /usr/lib and >> such. TL;DR - the symlinks we use are not relative paths, they're >> absolute paths - and this makes cross building using sysroot / >> explicit library paths fail to work right. Sigh. In particular, I >> needed to manually undo the libgcc symlink for it to compile. >> compilation complained about other libraries, but the resulting >> binaries did run. > > That=E2=80=99s one of about 6 reasons that what we produce isn=E2=80=99t = a > sysroot. We need to create a sysroot target that=E2=80=99s very close > to the xdev targets with all the compiler bits stripped out. We=E2=80=99r= e > close though. I have about 1/2 of the patch needed to remove > xdev entirely and replace it with sysroot. Sweet. > You shouldn=E2=80=99t need the INCS args if you have a proper sysroot. > And the CPU_ARGS is an indication we=E2=80=99re building our port > incorrectly. This is the same feedback I gave on the kernel > make changes you suggested. It looks like a proper sysroot - I think it's just the dynamic sysroot stuff being broken. > I=E2=80=99ve had hacks like this for =E2=80=9Csimple=E2=80=9D arts for ye= ars. It=E2=80=99s why I wrote > xdev in the first place. I had it working in the FreeBSD 6 time frame > for cross building some ports. But once you get past a certain > class of very well behaved ports, it goes to hell in a hurry. >> * I'll try to wrangle juli/bsdimp to review the kernel changes needed >> to compile up the kernel with gcc-4.9. > > I=E2=80=99ve already reviewed that one. gcc isn=E2=80=99t being compiled = correctly > and that need to be fixed. This is the forth time I=E2=80=99ve given this > feedback. There are some other issues too. The softfloat/hardfloat stuff reared its head - in order to avoid assembler warnings we have to manually set it, but then the floating point register accesses in fp.S / swtch.S generate errors. I've worked around that for now, but I need to dig into why the warnings are generated in the first case. >> * I'd like some help / comments on what we can do about the absolute >> symlinks used for various things inside an installed root. Ideally >> we'd have an option that would let us populate only relative links - >> that'd instantly make this problem go away. > > All installworld-ish targets should use relative path symbolic links. > The fact they are using absolute paths is a bug. In the FreeBSD 6 > time frame, I fought this battle at work and it wasn=E2=80=99t hard to fi= x. I > no longer have access to those sources, and I honestly can=E2=80=99t > recall how I fixed it (it may have been in a post-processing > step). I'd love to get this fixed and into the tree. >> * I'll go hit up bapt and some netbsd friends for some help with >> expected sysroot behaviour on gcc/binutils. It's possible there are >> still bugs with the dynamic sysroot (ie, when you don't compile your >> toolchain with an explicit sysroot to something other than '/') that >> need addressing. > > bapt and I have been talking about this for a while. We=E2=80=99ve both b= een > busy doing other things so haven=E2=80=99t focused on it other than in of= f > moments. > >> Then I'll worry about starting to convert a few ports to be native >> cross building. > > You should talk to bapt about the rather extensive work he=E2=80=99s done > in this area, which is why I=E2=80=99ve looked at transitioning the xdev > support to just sysroot support. I have been too! fear not. That's how I got this far! -a From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 21:32:02 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 901C277F; Mon, 15 Jun 2015 21:32:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (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 5AD5F22A; Mon, 15 Jun 2015 21:32:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbiq7 with SMTP id iq7so28756552igb.1; Mon, 15 Jun 2015 14:32:01 -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:cc:content-type; bh=VTJvbC3tTFZt4YDkpArif32zrf6lC+VK1ZHhx0phbY0=; b=S6c1F6zmWXCIK/9oYHh7H0QkuO8l4HXpTmaeUyvBaBGSOyC0ReK/bbDpLz5QctUL6w 3Rr27bwHyZtC2xkD9BjukANtkiLrsdOq2ETrHbJo/3DL3Lama3TaMlPFOnEB9fVotiTv hj2GtO475SdoIvcsVo1jShozsg/CDe+5vfJ3UXzSz7XZlsj3wJB8KQMcePHjCQIo++Bp UuQKV4gU+rJKBM9mX/fiRz1b8byh0QESnXDXTAkqZP7fXpYwOJDd/LAzPvSr6anEXCml sld3tpd2QLuY1vqs771IB5QaYDiBLcGk+EE3PGWKXxIIMtF5Rm3IrZKesTY6Hl2zvn+0 4kxw== MIME-Version: 1.0 X-Received: by 10.50.111.167 with SMTP id ij7mr23473233igb.49.1434403921769; Mon, 15 Jun 2015 14:32:01 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Mon, 15 Jun 2015 14:32:01 -0700 (PDT) In-Reply-To: <7895DD8F-6165-4EF9-AAE7-098C601470D8@freebsd.org> References: <7895DD8F-6165-4EF9-AAE7-098C601470D8@freebsd.org> Date: Mon, 15 Jun 2015 14:32:01 -0700 X-Google-Sender-Auth: cbUyLITb-9BeYRqVAZATLMv1V-0 Message-ID: Subject: Re: [rfc] fix umul_ppmm() in our libgcc From: Adrian Chadd To: Stanislav Sedov Cc: "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 21:32:02 -0000 The error is unsupported constraints. '=h' (hi register) is unsupported as of some GCC > 4.2.1. -a On 15 June 2015 at 10:15, Stanislav Sedov wrote: > >> On Jun 13, 2015, at 3:41 PM, Adrian Chadd wrote: >> >> Hi, >> >> our libgcc in -base is very .. old. It chokes when compiling for >> mips32. This patch seems to do the right thing. >> >> Does anyone have any positive/negative feedback? >> >> Thanks, >> >> >> -adrian >> >> >> Index: contrib/gcc/longlong.h >> =================================================================== >> --- contrib/gcc/longlong.h (revision 284090) >> +++ contrib/gcc/longlong.h (working copy) >> @@ -584,11 +584,11 @@ >> >> #if defined (__mips__) && W_TYPE_SIZE == 32 >> #define umul_ppmm(w1, w0, u, v) \ >> - __asm__ ("multu %2,%3" \ >> - : "=l" ((USItype) (w0)), \ >> - "=h" ((USItype) (w1)) \ >> - : "d" ((USItype) (u)), \ >> - "d" ((USItype) (v))) >> + do { \ >> + UDItype __ll = (UDItype)(u) * (v); \ >> + w1 = __ll >> 32; \ >> + w0 = __ll; \ >> + } while (0) >> #define UMUL_TIME 10 >> #define UDIV_TIME 100 >> #endif /* __mips__ */ > > This looks right to me in terms of functionality, but what is wrong > with the original code (multu)? That one seems correct as well. > > What error do you see when compiling it? > > -- > ST4096-RIPE > > > From owner-freebsd-mips@FreeBSD.ORG Mon Jun 15 21:39:10 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 22DD6CB3 for ; Mon, 15 Jun 2015 21:39:10 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) (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 E0BDD2AD for ; Mon, 15 Jun 2015 21:39:09 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by igboe5 with SMTP id oe5so40905485igb.1 for ; Mon, 15 Jun 2015 14:39:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=lL+u8VwC7ZDuaKSyGo2cWDOHDazSsK6I3l9TtCTkVXk=; b=iAfjfCyYJAHudOgz9E9/p12R/jd+NS3kuOij9B7+fnmZ7jMnHpN9656e7Yn1B8KO7F GhlN/8GSdMDgywdoBquZu22UlUdadDqnvCM6AQik+DPNzsnLFTNTHObPWrTqYwXV2FHc m2u6UUKxC5H+2sqxu1nD21fNbQV73ulaGlLnXBIF0W7c+7vDgTq5QgxEljCgkbS5VESU wo3OC15bysyqAXMkHU6KD5FRfe2ZcLBGtXiSx32avuUCu/Y5yH3Rn6O5bUw2nal8lEiP BZSxkdOzHDz/EA6H3Z9GklvDMddIwHlWAUasoYAkndauk7BQ0I8h1RD07fvgM+DmEZfq tmDw== X-Gm-Message-State: ALoCoQk7/yECPIH+kr2V1eAzw9E/5k/rX5SfFj/jIA/xfDkCe6GsQK2p9I1Fgp9tbSlkOfHuHQ9v X-Received: by 10.50.4.66 with SMTP id i2mr23887578igi.40.1434404348409; Mon, 15 Jun 2015 14:39:08 -0700 (PDT) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by mx.google.com with ESMTPSA id j5sm9694966ioo.8.2015.06.15.14.39.06 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jun 2015 14:39:06 -0700 (PDT) Sender: Warner Losh Subject: Re: [rfc] fix umul_ppmm() in our libgcc Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_75CCEFDB-821A-438B-9686-2C0F0D3046E1"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: Date: Mon, 15 Jun 2015 15:39:04 -0600 Cc: Stanislav Sedov , "freebsd-mips@freebsd.org" Message-Id: <4E91032E-901F-4667-B271-5D0C5361CC08@bsdimp.com> References: <7895DD8F-6165-4EF9-AAE7-098C601470D8@freebsd.org> To: Adrian Chadd X-Mailer: Apple Mail (2.2098) 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 21:39:10 -0000 --Apple-Mail=_75CCEFDB-821A-438B-9686-2C0F0D3046E1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 do { UDltype ll; __asm__ (=E2=80=9Cmuiltu %2 %3=E2=80=9D : =E2=80=9C=3Dx=E2= =80=9D ll : =E2=80=9Cd=E2=80=9D ((USltype)(u)), =E2=80=9Cd=E2=80=9D((USlty= pe)(v))); w1 =3D ll >> 32; w0 =3D ll;} while 0; might be a good replacement. The =E2=80=9Ch=E2=80=9D constraint was = abandoned and not replaced by anything. Thought there may be simpler = ways, since I haven=E2=80=99t looked to see how this is actually used. Warner > On Jun 15, 2015, at 3:32 PM, Adrian Chadd wrote: >=20 > The error is unsupported constraints. '=3Dh' (hi register) is > unsupported as of some GCC > 4.2.1. >=20 >=20 >=20 > -a >=20 >=20 > On 15 June 2015 at 10:15, Stanislav Sedov wrote: >>=20 >>> On Jun 13, 2015, at 3:41 PM, Adrian Chadd = wrote: >>>=20 >>> Hi, >>>=20 >>> our libgcc in -base is very .. old. It chokes when compiling for >>> mips32. This patch seems to do the right thing. >>>=20 >>> Does anyone have any positive/negative feedback? >>>=20 >>> Thanks, >>>=20 >>>=20 >>> -adrian >>>=20 >>>=20 >>> Index: contrib/gcc/longlong.h >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> --- contrib/gcc/longlong.h (revision 284090) >>> +++ contrib/gcc/longlong.h (working copy) >>> @@ -584,11 +584,11 @@ >>>=20 >>> #if defined (__mips__) && W_TYPE_SIZE =3D=3D 32 >>> #define umul_ppmm(w1, w0, u, v) \ >>> - __asm__ ("multu %2,%3" = \ >>> - : "=3Dl" ((USItype) (w0)), = \ >>> - "=3Dh" ((USItype) (w1)) = \ >>> - : "d" ((USItype) (u)), = \ >>> - "d" ((USItype) (v))) >>> + do { = \ >>> + UDItype __ll =3D (UDItype)(u) * (v); = \ >>> + w1 =3D __ll >> 32; = \ >>> + w0 =3D __ll; = \ >>> + } while (0) >>> #define UMUL_TIME 10 >>> #define UDIV_TIME 100 >>> #endif /* __mips__ */ >>=20 >> This looks right to me in terms of functionality, but what is wrong >> with the original code (multu)? That one seems correct as well. >>=20 >> What error do you see when compiling it? >>=20 >> -- >> ST4096-RIPE >>=20 >>=20 >>=20 > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" --Apple-Mail=_75CCEFDB-821A-438B-9686-2C0F0D3046E1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVf0X5AAoJEGwc0Sh9sBEAXoMQAIOEaxeB5DRoCqS0EQBUGazk GgszvSxhPRFezgOOdtko/DeSu4WBVhmTPaKNU607VABKH4taISzIWvt+ZirNox4D 7gvFy9UoVjy8BnL5gxEraFVZ2KG0A5U3ilrmZWrrMrjMzGWlQFjszC4sFYr3RgOA /Y0W2f1Qahc9jY+NPWKU9CGsYkqaCc6APOokKoOVHPj5NFw1X1wJhQAgpUf70W/X XqVOpjG/sEdr49CE3WklZmFzD6WOEt1hkQpJdCsO+CR8clDv6+MZyYLCqrOz5GQu sR6gvCxK5NYLhaJ9To2MzlPC4P1WaLl+d2RsVmXA5lsTJKo+cw4ND4nWioINxnV5 uZZACKNDWnXYQjqrCYnSPlbNvN9FhQQEVXlAYVYJ3CMbiIYg8b+CaV/JO/k/CyiF Qlse/8g0RVouflRdRzHauhu1etty9y18FhUts29rEuUfVrORQ7K/5QkeVCnQ5KZH MSoUVb/mBZBQ5NEdNnjyVMZJ2CrfRKHSGQyuiB19+3jdfGrX1enwCecsxCOv4o+X /unbuboto7G41ks32xTb38rBuUdL/4THZTHi0K39BWR7KvlbY7d5tmFk1WTV25Om KQHMPjN0pNsw3HaH4TJHi+SgnXlQab43twyB6Kyre3kL3JXpUzYllIf2z15qCr5P 6jxf06d3rY8cg+3Ybtxw =M2jk -----END PGP SIGNATURE----- --Apple-Mail=_75CCEFDB-821A-438B-9686-2C0F0D3046E1-- From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 05:18:40 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 88C7DF62; Tue, 16 Jun 2015 05:18:40 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qc0-x234.google.com (mail-qc0-x234.google.com [IPv6:2607:f8b0:400d:c01::234]) (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 4122EF81; Tue, 16 Jun 2015 05:18:40 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by qcej3 with SMTP id j3so1524698qce.3; Mon, 15 Jun 2015 22:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=d2zgaOl8dTXEVdjamLSu9xh3w4isVkWYqwK+8Ev88k4=; b=KFla0NWkUGQlt9YU5L0rpWlgIra0krMA5mzoJyzXMqqT7/IkwD4RIdNCJ0/Lq1HzXu QYgWuGYsxBiq42LdzpH8bxXyXngtWTmnjRR9YtyB/f/m45yK1uY3oSUzPUGN8TJGSrSP WR3+x1cHMM+jFW+Yo8NCtejyfpwWD9QSK/G/gaj+xTKtm/p7hQnTnHsPEb+46So2OkI6 5N6kgq0qHiO5xfl0+LWLKKFFleBWNYwezBoZcKPQGO+dBejuCEmdZ3br3mAdpmGqSbN2 LuQKxBgOX6vq3QQSezR7JpCKfWQVem00+5ibnuJTmtRRSsqmP9GVzAVPe/9m3E/bzlIe xhtA== X-Received: by 10.140.216.83 with SMTP id m80mr42509039qhb.14.1434431919205; Mon, 15 Jun 2015 22:18:39 -0700 (PDT) Received: from kan ([2601:18f:0:1570:226:18ff:fe00:232e]) by mx.google.com with ESMTPSA id i90sm3239113qkh.5.2015.06.15.22.18.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 22:18:38 -0700 (PDT) Date: Tue, 16 Jun 2015 01:18:32 -0400 From: Alexander Kabaev To: Adrian Chadd Cc: "freebsd-mips@freebsd.org" Subject: Re: [rfc] fix umul_ppmm() in our libgcc Message-ID: <20150616011832.146e0f0e@kan> In-Reply-To: References: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/3d+MeqRa5bvdTBGI0e9/E5h"; protocol="application/pgp-signature" 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: Tue, 16 Jun 2015 05:18:40 -0000 --Sig_/3d+MeqRa5bvdTBGI0e9/E5h Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 13 Jun 2015 15:41:34 -0700 Adrian Chadd wrote: > Hi, >=20 > our libgcc in -base is very .. old. It chokes when compiling for > mips32. This patch seems to do the right thing. >=20 > Does anyone have any positive/negative feedback? >=20 > Thanks, >=20 >=20 > -adrian Newer version of GCC use similar construct, but actual multiplication is done using more correct selection of casts: UDItype __x =3D (UDItype) (USItype) (u) * (USItype) (v); I suggest you follow their lead. No objections otherwise. --=20 Alexander Kabaev --Sig_/3d+MeqRa5bvdTBGI0e9/E5h Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVf7GoXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDNUY3RDk5NTk5QjY0MUUxM0M1MTU2OTEw NzEzMjI5OTkyNzkyRTdFAAoJEAcTIpmSeS5+ky0P/2GMR7QLcs53VX/Hz3cNBZ/n 02VBYoUvWs7VJ/fVn4+jGeZyO1LR+Qwu9WcDaeEONo/4PsfuCNjZ7etMIaXG9dt8 KhQugRx9soh3040EniwVXc1lBASCVhkWA3k2PKWyyPfDwEqZ14f3/DdB6iPCMHpu mxA1y+MRF9j4pAmusYya4SyT9ThhHQhC+2reaoBvUpPG8neA6K6kyGi5+ZL7Ejqh WGKXfEjV+AGIvoI4DpUVXvahy/hTY1D6nQlHbwypxepv7FLh5czwh7Pk3kwmITsb hvsVpkWl0pS8iUsHUpIXQR1F/zBfcAb/MqcsYOlLW6pYwj8KfHUWiylfj4h5IM7i DS+c9fbltrOsC634Kb0cCEB7/fLN4VR1qM8g9gkSRMBbyDH2gHYy7h3//hetXrRN D3PgyL945rnfssz3IUTwwUxEyyn8cyostpuDsfTNboRL/FiQDT7h3Qd+FvLN/F4b +d9nbze3reEauAxQQQKEdi+/C7GPkjWbMlf/U5ezpwUhnbbjsy6wsnGAg/N4W7qB mRC3tpCdEkYHuF55LgAFlmCdht+zrYBsmMt4ZENQE+SwJCW+gyJUgva0GJltG3Iv jPccIr4h1Iy2FLNYOYYfxo/0o6gSG5vQSHaa7mZ5Ueyprnal6FrATBhdn+B9Gcun qt5bkdJHec+O4fP6hWTQ =bzBe -----END PGP SIGNATURE----- --Sig_/3d+MeqRa5bvdTBGI0e9/E5h-- From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 06:38:08 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 0A954FF for ; Tue, 16 Jun 2015 06:38:08 +0000 (UTC) (envelope-from anonymous@ip-173-201-34-172.ip.secureserver.net) Received: from p3plsmtpp1ded04.prod.phx3.secureserver.net (p3plsmtpp1ded04.prod.phx3.secureserver.net [208.109.80.2]) by mx1.freebsd.org (Postfix) with ESMTP id D8B8B883 for ; Tue, 16 Jun 2015 06:38:07 +0000 (UTC) (envelope-from anonymous@ip-173-201-34-172.ip.secureserver.net) Received: from ip-173-201-34-172.ip.secureserver.net ([173.201.34.172]) by p3plsmtpp1ded04.prod.phx3.secureserver.net with : DED : id gue51q0013iqBPR01ue5WL; Mon, 15 Jun 2015 23:38:06 -0700 x-originating-ip: 173.201.34.172 Received: (qmail 13695 invoked by uid 10001); 15 Jun 2015 23:38:05 -0700 To: freebsd-mips@freebsd.org Subject: Payment for driving on toll road, invoice #00312207 Date: Tue, 16 Jun 2015 00:38:05 -0600 From: "E-ZPass Manager" Reply-To: "E-ZPass Manager" Message-ID: <5a5c4d72a8e60da3164a322ca383e878@ip-173-201-34-172.ip.secureserver.net> X-Priority: 3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Tue, 16 Jun 2015 06:38:08 -0000 Notice to Appear, You have a unpaid bill for using toll road. You are kindly asked to pay your debt as soon as possible. You can find the invoice is in the attachment. Yours faithfully, Rafael Fields, E-ZPass Agent. From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 13:19:01 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 F130317A; Tue, 16 Jun 2015 13:19:00 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL004-OMC4S18.hotmail.com (col004-omc4s18.hotmail.com [65.55.34.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5A816E5; Tue, 16 Jun 2015 13:19:00 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from COL130-W14 ([65.55.34.201]) by COL004-OMC4S18.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 16 Jun 2015 06:18:54 -0700 X-TMN: [3bK4JJtp12tIl+NBHmtWfB/u6N9Q90Lx] X-Originating-Email: [m.vale@live.com.au] Message-ID: From: Michael Vale To: Adrian Chadd , Warner Losh CC: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Subject: RE: Starting to cross-compile non-base software for MIPS - what it's like Date: Tue, 16 Jun 2015 23:48:53 +1030 Importance: Normal In-Reply-To: References: , , MIME-Version: 1.0 X-OriginalArrivalTime: 16 Jun 2015 13:18:54.0261 (UTC) FILETIME=[FE57C650:01D0A836] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Tue, 16 Jun 2015 13:19:01 -0000 Here is onething that can be added under .if defined(X_BUILD_FOR)=2C either= as an .include e.g. bsd.cross.mk. or just paste it in there. if X_BUILD_F= OR /is/ defined=2C configure --host mips-freebsd-* etc will already be done= if you just invoke a normal ports build rather than running configure manu= ally from port/work/. =20 I know it's not perfect=2C but the only thing that needs and overview is th= e declaration of SYSROOT. I used ${LOCALBASE} to define the right position= =2C i'm unsure if this is correct. =20 ---------------------------- bsd.cross.mk ---------------------------------= ------------------------------------------- =20 .if exist(/usr/${X_BUILD_FOR}/usr/bin/${X_BUILD_FOR}-portbld-freebsd11.0-gc= c) then \ MAKE_ENV+=3D CPU_ARGS=3D"-march=3D${X_BUILD_FOR}" INCS=3D"-l${SRCDIR}/../root/${X_BUILD_FOR} .else IGNORE=3D Install gcc with mips support from ports first. .if FLOAT=3D"hard" then \ MAKE_ENV+=3D CPU_ARGS=3D"-mhard-float=2C -Wa=2C-mhard-float" .else \ MAKE_ENV+=3D CPU_ARGS=3D"-msoft-float=2C -Wa=2C-msoft-float" MAKE_ENV+=3D CROSS_COMPILE=3D"${X_BUILD_FOR}-portbld-freebsd${OS_REL} \ CC=3D${CROSS_COMPILE}-gcc \ CXX=3D${CROSS_COMPILE}-g++ \ LD=3D${X_BUILD_FOR}-freebsd-ld \ AR=3D${X_BUILD_FOR}-freebsd-ar \ RANLIB=3D${X_BUILD_FOR}-freebsd-ranlib \ STRIP=3D${X_BUILD_FOR}-freebsd-strip \ SYSROOT=3D${LOCALBASE}/${X_BUILD_FOR}/ \ CFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" CXXFLAGS=3D"--sysroot=3D$SYSROOM ${CPU_ARGS} ${INCS} -O" =20 > Date: Mon=2C 15 Jun 2015 11:45:00 -0700 > Subject: Re: Starting to cross-compile non-base software for MIPS - what = it's like > From: adrian@freebsd.org > To: imp@bsdimp.com > CC: embedded@freebsd.org=3B freebsd-mips@freebsd.org >=20 > On 15 June 2015 at 10:23=2C Warner Losh wrote: > > > >> On Jun 14=2C 2015=2C at 1:13 PM=2C Adrian Chadd w= rote: > >> > >> Hi! > >> > >> I've been hacking at cross compiling things on FreeBSD for a while=2C > >> and I have made some progress. This email is less of a "how you can do > >> it" and more of a "these are the roadblocks that prevent it from > >> working out of the box." > >> > >> I'm using gcc-4.9.2 from ports - there's a cross compiler for > >> mips/mips64=2C and there's mips-binutils/mips64-binutils. I'm using > >> those to compile world and kernel. The kernel works=3B world requires > >> some patching to compile. I'll write a post when I have a complete > >> system booting/running from gcc-4.9.2. > >> > >> My test application is dropbear. Ie=2C I'm cross-compiling dropbear fo= r > >> mips from freebsd/i386. > >> > >> * There are some issues in libgcc - I have a patch that I've emailed > >> out for review. I'll do some more testing and commit it next week when > >> I know it works. > >> * There are some environment variables that need to be set before I > >> compile dropbear. Here's what it looks like: > >> > >> CPU_ARGS=3D"-march=3Dmips32 -msoft-float -Wa=2C-msoft-float" > >> INCS=3D"-I/home/adrian/work/freebsd/head-embedded-2/root/mips/usr/incl= ude" > >> > >> export CROSS_COMPILE=3Dmips-portbld-freebsd11.0 > >> export CC=3D${CROSS_COMPILE}-gcc > >> export CXX=3D${CROSS_COMPILE}-g++ > >> #export LD=3D${CROSS_COMPILE}-ld > >> #export AR=3D${CROSS_COMPILE}-ar > >> #export RANLIB=3D${CROSS_COMPILE}-ranlib > >> #export STRIP=3D${CROSS_COMPILE}-strip > >> export LD=3Dmips-freebsd-l > >> export AR=3Dmips-freebsd-ar > >> export RANLIB=3Dmips-freebsd-ranlib > >> export STRIP=3Dmips-freebsd-strip > >> export SYSROOT=3D/home/adrian/work/freebsd/head-embedded-2/root/mips/ > >> export CFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" > >> export CXXFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" > >> export CPPFLAGS=3D"--sysroot=3D$SYSROOT ${CPU_ARGS} ${INCS} -O" > >> export LDFLAGS=3D--sysroot=3D$SYSROOT > >> > >> # now run: > >> # /configure --host=3Dmips-portbld-freebsd11.0 > >> # gmake > >> > >> ... then I hit a problem with how we populate links in /usr/lib and > >> such. TL=3BDR - the symlinks we use are not relative paths=2C they're > >> absolute paths - and this makes cross building using sysroot / > >> explicit library paths fail to work right. Sigh. In particular=2C I > >> needed to manually undo the libgcc symlink for it to compile. > >> compilation complained about other libraries=2C but the resulting > >> binaries did run. > > > > That=92s one of about 6 reasons that what we produce isn=92t a > > sysroot. We need to create a sysroot target that=92s very close > > to the xdev targets with all the compiler bits stripped out. We=92re > > close though. I have about 1/2 of the patch needed to remove > > xdev entirely and replace it with sysroot. >=20 > Sweet. >=20 > > You shouldn=92t need the INCS args if you have a proper sysroot. > > And the CPU_ARGS is an indication we=92re building our port > > incorrectly. This is the same feedback I gave on the kernel > > make changes you suggested. >=20 > It looks like a proper sysroot - I think it's just the dynamic sysroot > stuff being broken. >=20 > > I=92ve had hacks like this for =93simple=94 arts for years. It=92s why = I wrote > > xdev in the first place. I had it working in the FreeBSD 6 time frame > > for cross building some ports. But once you get past a certain > > class of very well behaved ports=2C it goes to hell in a hurry. >=20 >=20 > >> * I'll try to wrangle juli/bsdimp to review the kernel changes needed > >> to compile up the kernel with gcc-4.9. > > > > I=92ve already reviewed that one. gcc isn=92t being compiled correctly > > and that need to be fixed. This is the forth time I=92ve given this > > feedback. >=20 > There are some other issues too. The softfloat/hardfloat stuff reared > its head - in order to avoid assembler warnings we have to manually > set it=2C but then the floating point register accesses in fp.S / > swtch.S generate errors. I've worked around that for now=2C but I need > to dig into why the warnings are generated in the first case. >=20 > >> * I'd like some help / comments on what we can do about the absolute > >> symlinks used for various things inside an installed root. Ideally > >> we'd have an option that would let us populate only relative links - > >> that'd instantly make this problem go away. > > > > All installworld-ish targets should use relative path symbolic links. > > The fact they are using absolute paths is a bug. In the FreeBSD 6 > > time frame=2C I fought this battle at work and it wasn=92t hard to fix.= I > > no longer have access to those sources=2C and I honestly can=92t > > recall how I fixed it (it may have been in a post-processing > > step). >=20 > I'd love to get this fixed and into the tree. >=20 > >> * I'll go hit up bapt and some netbsd friends for some help with > >> expected sysroot behaviour on gcc/binutils. It's possible there are > >> still bugs with the dynamic sysroot (ie=2C when you don't compile your > >> toolchain with an explicit sysroot to something other than '/') that > >> need addressing. > > > > bapt and I have been talking about this for a while. We=92ve both been > > busy doing other things so haven=92t focused on it other than in off > > moments. > > > >> Then I'll worry about starting to convert a few ports to be native > >> cross building. > > > > You should talk to bapt about the rather extensive work he=92s done > > in this area=2C which is why I=92ve looked at transitioning the xdev > > support to just sysroot support. >=20 > I have been too! fear not. That's how I got this far! >=20 >=20 > -a > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe=2C send any mail to "freebsd-embedded-unsubscribe@freebsd.= org" = From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 16:27:26 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 DD7456A7 for ; Tue, 16 Jun 2015 16:27:26 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 75735B5F for ; Tue, 16 Jun 2015 16:27:25 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5GGQv3E035111 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 16 Jun 2015 18:27:03 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5GGQs4n079943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jun 2015 18:26:54 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5GGQsqj015013; Tue, 16 Jun 2015 18:26:54 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5GGQsrw015012; Tue, 16 Jun 2015 18:26:54 +0200 (CEST) (envelope-from ticso) Date: Tue, 16 Jun 2015 18:26:54 +0200 From: Bernd Walter To: freebsd-mips@freebsd.org Cc: Bernd Walter Subject: TP-Link WDR-4300 Message-ID: <20150616162654.GB14540@cicely7.cicely.de> Reply-To: ticso@cicely.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Tue, 16 Jun 2015 16:27:27 -0000 I've just bought an WDR-4300, after gavin@ mentioned it might work with FreeBSD. Headers for console and what looks like an JTAG are already soldered on. My 4300 (board rev 1.3 / device rev 1.7) has the following 3 Atheros chips: AR9344-BC2A obviously main SoC, but also has direct connected RF circuit (2.4GHz?) AR9580-AR1A 5GHz WiFi?, but RF from AR9344 circuit seems to be passed through it AR8327N-BL1A obviously ethernet switch maybe with additional PHY for second MAC. It also has a 8MB SPI flash and should have 128MB DDR3. The pictures I've seen of the 4300 and 3600 models make me believe they are very similar in design and it's at least said they share the AR9344 SoC. The chip list on this page about the 3600 also match up: https://github.com/freebsd/freebsd-wifi-build/wiki/TPLink-TL-WDR3600 Is it save to just use this guide? -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 17:31:26 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CEE1FBF7 for ; Tue, 16 Jun 2015 17:31:26 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 62DC2DEA for ; Tue, 16 Jun 2015 17:31:25 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5GHVBlV035615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 16 Jun 2015 19:31:11 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5GHV5IK080449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jun 2015 19:31:06 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5GHV5SB015270; Tue, 16 Jun 2015 19:31:05 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5GHV5PE015269; Tue, 16 Jun 2015 19:31:05 +0200 (CEST) (envelope-from ticso) Date: Tue, 16 Jun 2015 19:31:05 +0200 From: Bernd Walter To: freebsd-mips@freebsd.org Cc: Bernd Walter Subject: Re: TP-Link WDR-4300 Message-ID: <20150616173105.GC14540@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150616162654.GB14540@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Tue, 16 Jun 2015 17:31:27 -0000 On Tue, Jun 16, 2015 at 06:26:54PM +0200, Bernd Walter wrote: > I've just bought an WDR-4300, after gavin@ mentioned it might work > with FreeBSD. > Headers for console and what looks like an JTAG are already soldered on. > > My 4300 (board rev 1.3 / device rev 1.7) has the following 3 Atheros > chips: > AR9344-BC2A > obviously main SoC, but also has direct connected RF circuit (2.4GHz?) > > AR9580-AR1A > 5GHz WiFi?, but RF from AR9344 circuit seems to be passed through it > > AR8327N-BL1A > obviously ethernet switch maybe with additional PHY for second MAC. > > It also has a 8MB SPI flash and should have 128MB DDR3. > The pictures I've seen of the 4300 and 3600 models make me believe > they are very similar in design and it's at least said they share the > AR9344 SoC. > The chip list on this page about the 3600 also match up: > https://github.com/freebsd/freebsd-wifi-build/wiki/TPLink-TL-WDR3600 > Is it save to just use this guide? Memory layout seems to match the 3600 description: U-Boot 1.1.4 (Jun 17 2013 - 12:31:57) U-boot DB120 DRAM: 128 MB id read 0x100000ff flash size 8MB, sector count = 128 Flash: 8 MB Using default environment PCIe Reset OK!!!!!! In: serial Out: serial Err: serial Net: ag934x_enet_initialize... No valid address in Flash. Using fixed address wasp reset mask:c03300 WASP ----> S17 PHY * : cfg1 0x7 cfg2 0x7114 eth0: ba:be:fa:ce:08:41 athrs17_reg_init: complete eth0 up eth0 Autobooting in 1 seconds db12x> print env ## Error: "env" not defined db12x> printenv bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART) bootcmd=bootm 0x9f020000 bootdelay=1 baudrate=115200 ethaddr=0xba:0xbe:0xfa:0xce:0x08:0x41 ipaddr=192.168.1.111 serverip=192.168.1.100 dir= lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize;cp.b $fileaddr 0x9f000000 $filesize lf=tftp 0x80060000 ${dir}db12x${bc}-jffs2&&erase 0x9f050000 +0x630000;cp.b $fileaddr 0x9f050000 $filesize lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize;cp.b $fileaddr 0x9f680000 $filesize stdin=serial stdout=serial stderr=serial ethact=eth0 Environment size: 686/65532 bytes -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 17:47:42 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D6A26133 for ; Tue, 16 Jun 2015 17:47:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (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 A116020C for ; Tue, 16 Jun 2015 17:47:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbiq7 with SMTP id iq7so48590979igb.1 for ; Tue, 16 Jun 2015 10:47:42 -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:cc:content-type; bh=aBAqTZiSSXzuhqTIXYaK/pkpMb8yUTiE4MvlqHzVoJU=; b=Zu4NtY/9n7Yqrf7C3zrRy2eWB/kjS2TGomMfhz4KXt9XSYOFb7OQGdepEOtnmVYd3Y 14r3SU85BSXuo8bV+2LCvcChkfDX861mOTiaj97HMVnHwxBOafrRitedovMlwBqG9Jbf VMh+mt5No6EqP/ayczBQT+fNuRcsdjBpheDTEdra4dgvyNGPTprq8R0altpFQ/EHkE2/ oILokegszZAuke5f24MC15ue25QEyIoJreYrXSFfLh97gip9lsIR98Ip/FYeR3GF+7UT eOXeUAi4vAWye/SweFFMN7oEzXwQ/IGX2JMDGerw7+r00Y0HCd5SVLtJvWp2Oqro/I63 WJ/Q== MIME-Version: 1.0 X-Received: by 10.50.78.232 with SMTP id e8mr19212183igx.32.1434476861961; Tue, 16 Jun 2015 10:47:41 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Tue, 16 Jun 2015 10:47:41 -0700 (PDT) In-Reply-To: <20150616011832.146e0f0e@kan> References: <20150616011832.146e0f0e@kan> Date: Tue, 16 Jun 2015 10:47:41 -0700 X-Google-Sender-Auth: F3tLmPirFq02IoTo6-AiC13Y0OU Message-ID: Subject: Re: [rfc] fix umul_ppmm() in our libgcc From: Adrian Chadd To: Alexander Kabaev Cc: "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: Tue, 16 Jun 2015 17:47:42 -0000 ok, I'll give this a go tomorrow. -a On 15 June 2015 at 22:18, Alexander Kabaev wrote: > On Sat, 13 Jun 2015 15:41:34 -0700 > Adrian Chadd wrote: > >> Hi, >> >> our libgcc in -base is very .. old. It chokes when compiling for >> mips32. This patch seems to do the right thing. >> >> Does anyone have any positive/negative feedback? >> >> Thanks, >> >> >> -adrian > > Newer version of GCC use similar construct, but actual multiplication > is done using more correct selection of casts: > > UDItype __x = (UDItype) (USItype) (u) * (USItype) (v); > > I suggest you follow their lead. No objections otherwise. > > -- > Alexander Kabaev From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 17:49:59 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3215D1A9 for ; Tue, 16 Jun 2015 17:49:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (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 F0D2922B for ; Tue, 16 Jun 2015 17:49:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iesa3 with SMTP id a3so18004356ies.2 for ; Tue, 16 Jun 2015 10:49:58 -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:cc:content-type; bh=g0Tw54iIAwc5Jg8o46VvitgamnMUpg3pDSf1H1HmmnA=; b=fCeMRmAscMtLolkEPJGtfEINBynB4mdjM+0ZZx7l4etgGeeIVVxxxFyrLJoEl+hP5R mH/gl5xvzQANq+kAVJ9beSb+zIMoF8TMurgSnci/u4EpiaVVEsEMwoh9pj+AipMlcmiF /VxlYB4Mv8k8ZczQGSbL5VZ/dbMBTiEdKlmAO5FAfUaEtauh4Upv7jeeosAcUn7GdbM4 qtfq95HiYm7Za7gmLuhP6SXfp2uUQqKLqO9WUpZEg2HGHEZoaTnCqyv3ud4ei7KvsgGY lCfRQzi7gqRZTejKBeqef5SM9Fvm3o1p0Rtbpc/BlEeBekwDYy5jLtLeUFNHf1bFYjg1 N1qA== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr2127399iof.88.1434476998489; Tue, 16 Jun 2015 10:49:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Tue, 16 Jun 2015 10:49:58 -0700 (PDT) In-Reply-To: <20150616173105.GC14540@cicely7.cicely.de> References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> Date: Tue, 16 Jun 2015 10:49:58 -0700 X-Google-Sender-Auth: JcBxpI1yHdHUH5Q7oSqLt1xOe-s Message-ID: Subject: Re: TP-Link WDR-4300 From: Adrian Chadd To: ticso@cicely.de Cc: "freebsd-mips@freebsd.org" , Bernd Walter 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: Tue, 16 Jun 2015 17:49:59 -0000 Hi, https://github.com/freebsd/freebsd-wifi-build/wiki/TPLink-TL-WDR3600 .. everything is the same here, except the firmware string from openwrt that needs to be used when generating the firmware image. You can extract it out of the openwrt build system. Then, in freebsd-wifi-build/build/cfg, do this: * copy the 4300 config file to a new one * edit the new one, replace the tplink firwmare version string with the one for the 3600 * build an image, try flashing it -adrian From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 17:51:15 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 4EB121E5 for ; Tue, 16 Jun 2015 17:51:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) (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 172B6322 for ; Tue, 16 Jun 2015 17:51:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iecrd14 with SMTP id rd14so17978683iec.3 for ; Tue, 16 Jun 2015 10:51:14 -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:cc:content-type; bh=ia35/eRNiqEYTsCSIG4gFBYuEQ+uuT1W6MKSMzgGAw8=; b=knQTwctxTY0guS2XxGPLEfD8lpouFxkxEOXvAH4DDZLDJa9RmBFFIht87JnejA0P7K 1RSGIyhsdF/1wI06yuhHkK6NQNyiR1kUItnZOXyvUOEH4PAFX1tr/e5pQrDGBH3f7Q// eroXQZ6XGceu/7qz53xeZ+DlIi1N771wxntnYhCPxYwL6fZYbu7dIwrvpzoLd6MD5Hn6 /W904uK2kBs9/sOO1lLsATgXmeLBMJTwhbVs12pwQ3KVrvE7M9fmWH9QainjPGRVvIpw susdxnka1zryStGDWqb3f6dejUiY1fdSOKooICaWLLM7avba9dOwyVTlhj9JeNNRRVG3 ZpJg== MIME-Version: 1.0 X-Received: by 10.50.78.232 with SMTP id e8mr19230957igx.32.1434477074468; Tue, 16 Jun 2015 10:51:14 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Tue, 16 Jun 2015 10:51:14 -0700 (PDT) In-Reply-To: References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> Date: Tue, 16 Jun 2015 10:51:14 -0700 X-Google-Sender-Auth: dymWGVGMz3QJtvUykLfttDxzRQM Message-ID: Subject: Re: TP-Link WDR-4300 From: Adrian Chadd To: ticso@cicely.de Cc: "freebsd-mips@freebsd.org" , Bernd Walter 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: Tue, 16 Jun 2015 17:51:15 -0000 .. so, it /should/ work - the 3600 just uses the AR9344 on-board switch, rather than the AR8327N gige switch. I think I included both in the WNDR config file, so either should work. The only thing you should have to do is what I just emailed out - the firmware version string used for generating the flash image. -adrian From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 17:58:54 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 B6AFE8F5; Tue, 16 Jun 2015 17:58:54 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B744669; Tue, 16 Jun 2015 17:58:53 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5GHwZaP035808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 16 Jun 2015 19:58:41 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5GHwWqZ080640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jun 2015 19:58:32 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5GHwWFQ015388; Tue, 16 Jun 2015 19:58:32 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5GHwVWp015387; Tue, 16 Jun 2015 19:58:32 +0200 (CEST) (envelope-from ticso) Date: Tue, 16 Jun 2015 19:58:31 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, "freebsd-mips@freebsd.org" , Bernd Walter Subject: Re: TP-Link WDR-4300 Message-ID: <20150616175831.GD14540@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Tue, 16 Jun 2015 17:58:54 -0000 On Tue, Jun 16, 2015 at 10:51:14AM -0700, Adrian Chadd wrote: > .. so, it /should/ work - the 3600 just uses the AR9344 on-board > switch, rather than the AR8327N gige switch. The OpenWRT wiki says the 3600 uses the AR8327N as well and their pictures show almost the same board. Only visual difference I've spoted so far is the 3rd antenna circuit is unpopulated. > I think I included both in the WNDR config file, so either should > work. The only thing you should have to do is what I just emailed out > - the firmware version string used for generating the flash image. Great. I'll give it a try until weekend. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 19:10:14 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 DD0C44DE for ; Tue, 16 Jun 2015 19:10:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (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 A5FEEA1E for ; Tue, 16 Jun 2015 19:10:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbzc4 with SMTP id zc4so86369498igb.0 for ; Tue, 16 Jun 2015 12:10:14 -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:cc:content-type; bh=16ZO90NdNBaMiygjk6gCJmJz6QYtVkW4Gu4JdmO9B0A=; b=XlP9v3fkF6ee9XSb45tkeHUUfSfthe9KDBsvknHl1OwjO8ccvgY3Tp2ArBEIFx08XM 9aeoYshafkNo17suHPdLRhDa8NxRKN/WFSTeJFGmwldyYMU0wQ60uL1x2dOGqYb7yrzo 3vSunubyNntT6UWOLQ/X2RdoBEN3YaxsGjFDzi8U/UChdH9N0Vw0o8YRY7KnvRn4VaLZ G18GMopai/u/wcn7la2fR921N7SZp4K5MxEgLzkfrqgSSEUBIctp+rBXx3osmoT6Qne+ zbaehRYYDvLNNsqLrTYlYdGITGOsNVmUP9pJEc4KUKNBJ2bO/qavSzvNpWNFM8jq4BxO G7hw== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr2563312iof.88.1434481814047; Tue, 16 Jun 2015 12:10:14 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Tue, 16 Jun 2015 12:10:13 -0700 (PDT) In-Reply-To: <20150616175831.GD14540@cicely7.cicely.de> References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> Date: Tue, 16 Jun 2015 12:10:13 -0700 X-Google-Sender-Auth: rC5bGxs4N8wW-rdKm5zNi0JH1wM Message-ID: Subject: Re: TP-Link WDR-4300 From: Adrian Chadd To: ticso@cicely.de Cc: "freebsd-mips@freebsd.org" , Bernd Walter 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: Tue, 16 Jun 2015 19:10:15 -0000 Ok, right. I nthat case it's just 2x2 wifi, and gige ethernet. the config string to put in the build cfg file, fro mopenwrt: $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma)) $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma)) .. same kernel config should work fine. I'll go update freebsd-wifi-build tonight once I wrap up with work. From owner-freebsd-mips@FreeBSD.ORG Tue Jun 16 19:27:21 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 61DF37EA; Tue, 16 Jun 2015 19:27:21 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E836EDC7; Tue, 16 Jun 2015 19:27:20 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5GJQxSE036260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 16 Jun 2015 21:27:04 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5GJQt03081359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jun 2015 21:26:55 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5GJQtl0015760; Tue, 16 Jun 2015 21:26:55 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5GJQtSZ015759; Tue, 16 Jun 2015 21:26:55 +0200 (CEST) (envelope-from ticso) Date: Tue, 16 Jun 2015 21:26:55 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, "freebsd-mips@freebsd.org" , Bernd Walter Subject: Re: TP-Link WDR-4300 Message-ID: <20150616192655.GE14540@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Tue, 16 Jun 2015 19:27:21 -0000 On Tue, Jun 16, 2015 at 12:10:13PM -0700, Adrian Chadd wrote: > Ok, right. I nthat case it's just 2x2 wifi, and gige ethernet. > > the config string to put in the build cfg file, fro mopenwrt: > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma)) > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma)) > > .. same kernel config should work fine. I'll go update > freebsd-wifi-build tonight once I wrap up with work. Cool - thank you! Unfortunately I'll have to remove it from my desk for some payed work, but will test it during the next days. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Wed Jun 17 15:18:41 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 477BEEBD; Wed, 17 Jun 2015 15:18:41 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (mail.soaustin.net [66.135.54.68]) by mx1.freebsd.org (Postfix) with ESMTP id 29C1C321; Wed, 17 Jun 2015 15:18:40 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: by mail.soaustin.net (Postfix, from userid 502) id F085D561CE; Wed, 17 Jun 2015 10:18:33 -0500 (CDT) Date: Wed, 17 Jun 2015 10:18:33 -0500 From: Mark Linimon To: Warner Losh Cc: Adrian Chadd , "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Subject: Re: Starting to cross-compile non-base software for MIPS - what it's like Message-ID: <20150617151833.GA13147@lonesome.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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: Wed, 17 Jun 2015 15:18:41 -0000 On Mon, Jun 15, 2015 at 11:23:00AM -0600, Warner Losh wrote: > This is the forth time I’ve given this feedback. I think you've been staring at the loader too much :-) mcl From owner-freebsd-mips@FreeBSD.ORG Wed Jun 17 15:32:16 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B20A7455 for ; Wed, 17 Jun 2015 15:32:16 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) (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 845E89FE for ; Wed, 17 Jun 2015 15:32:16 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by padev16 with SMTP id ev16so38488312pad.0 for ; Wed, 17 Jun 2015 08:32:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=7B29e0c2qpI9MVda6bi8pnLPc30+W42AuVHfv0QR4Fk=; b=CMYhopf7fYAFSBkO1n/pKqiHYtX/ekl4lR+YFsJW0pQ8kh4lNuDBHFEE5b16+YFhBG BSqZLA5aeDzs8IfeP7t3Ts+HkAS/MHoEl9xcfbnSd6lca8SkfKwOeeW5arb4M/i4/n3C zjHdMHHAOaxmWZS8nvvQZobIcpXfmH0WMBpqiszr53YSIWkg5/LdbEzDBjWWiwe9kwff niIXjWBHNm/5vcmf1HIn+bXa8YUkU/qBFL1EmUkGyhTxAUqzKmIZwZN3zdv7AkVu98GO RDRqu9rhYB2hudxhJ+WU6jJpA+E2JONMzFu44wxGz6aAnmGO0R5wg+MTDIQCDhZamuKq E3sg== X-Gm-Message-State: ALoCoQk57dOJSOXgcAgKQMEJzdoOpOd99lvn1eHTtrhnktJmgCKPOrnNtiE1Bnmq1LgetyfjnX15 X-Received: by 10.68.190.8 with SMTP id gm8mr11998144pbc.30.1434554788771; Wed, 17 Jun 2015 08:26:28 -0700 (PDT) Received: from [10.64.24.56] ([69.53.236.236]) by mx.google.com with ESMTPSA id uk6sm5119023pac.27.2015.06.17.08.26.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jun 2015 08:26:27 -0700 (PDT) Sender: Warner Losh Subject: Re: Starting to cross-compile non-base software for MIPS - what it's like Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_275D63B5-3A5A-4B86-946A-94363B013DA2"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <20150617151833.GA13147@lonesome.com> Date: Wed, 17 Jun 2015 09:26:27 -0600 Cc: Adrian Chadd , "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" Message-Id: References: <20150617151833.GA13147@lonesome.com> To: Mark Linimon X-Mailer: Apple Mail (2.2098) 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: Wed, 17 Jun 2015 15:32:16 -0000 --Apple-Mail=_275D63B5-3A5A-4B86-946A-94363B013DA2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 17, 2015, at 9:18 AM, Mark Linimon = wrote: >=20 > On Mon, Jun 15, 2015 at 11:23:00AM -0600, Warner Losh wrote: >> This is the forth time I=E2=80=99ve given this feedback. >=20 > I think you've been staring at the loader too much :-) only forth also builtin definitions feedback 1 + dup feedback ! .=E2=80=9D Make sure the compiler=E2=80=99s defaults are correct=E2=80=9D = cr 4 - 0=3D if .=E2=80=9D This is the forth time I=E2=80=99ve given this = feedback.=E2=80=9D cr \ Bah! Who needs lua! --Apple-Mail=_275D63B5-3A5A-4B86-946A-94363B013DA2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVgZGjAAoJEGwc0Sh9sBEAG5MP/RKPfWW5tklgCGdI4au7npG5 9D4Tr/V2PbDZ7ZOny30KS/9AF/ABJvOMX5LMtTeOcLYSJUlTUKEnI1U7SU6cW92O JWC8rntgD9uFAaDzBAYXuy5GFlr9K6JWc4xCF9fhV2NspMCCPmEfYv+j8q01HV38 EifO8+MKTKjCdASNtoYUDRb//CCVAEOxcul2k0ITA1Q/wOZnmjFcZaVzJdBIx3gX aRrrsIVgI1mdS5onpG/XAbwG7+hn2BsomaQ/+3mTEth7h9RLZea+YW4W1jCPPJg7 2I25wC4eeUUcx0fN4/1El2AeRmMul2BjRGCWS+ZBW89qbW2SbzXTttgXYHTyxU1f lUrpxv6ywDHsQOEZpLa+yWtxMnbb/gkRz+O9OcAFxoY2atfbJpRXjzrPPESricqr JnuxayJndfE7Y8qFZ4zxPVjf6z7r2Arx/hHEWR4YMLZFkRkDZRLQ/FMiIXLA6YK8 ZnyC7KqdHXLRSM2rCAJyNDWdn/joabUoTvVkRqADN93pbrflRZlLr9OXr8W03ntt L6zLKdrMCk+akBwaJzTgT6/I849ipKwkfGFRltpN9vz91KtSSgl6JQer/f8VShdu seDgOZW3tHWfMZ087vmY+nTpLB/Ipr8ia0Vw0mYQxS+Cx1WM/MbsTab94JHOzNwz S5TXJmKIjqC0Lh8XkKXF =K9PL -----END PGP SIGNATURE----- --Apple-Mail=_275D63B5-3A5A-4B86-946A-94363B013DA2-- From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 02:57:36 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D42FC7DF for ; Thu, 18 Jun 2015 02:57:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (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 9DA0DCAC for ; Thu, 18 Jun 2015 02:57:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iebmu5 with SMTP id mu5so46496327ieb.1 for ; Wed, 17 Jun 2015 19:57:35 -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:cc:content-type; bh=E8X4JhON1fiIbhh9XQfI6YtQe56bcJrR+k8boSzp9bU=; b=H8AZF74lYkiwh26k/4sg3ZX3UyKqMpZQ88dYwU7v4gtBLxMvOSCwhAIkbuhvPMM3d1 A0LI0Om0/KaFtnwZAtPpOoUMaThQH5Y5GMRMKQ0iG7KXmXyROm76i0UBdphOX3mctH+f Yiaq1Ha6tuMtjN3hRAOY+/D0nzUmj1PwCO9oycDVC4Q+DsX66WPActYZNXBehrJ+wln9 O0JtVPWQaFw1zmOqfhxAIwc7XZiRWoMzLxDAfJIVyCvKmOjnM7jpgwaGohywFppgWDkt HuP+muWSKZiaIBh5vmpdUaZaZzR8f65e6pYutyG/SRwYZOtVKnimSJtY3TPsLWqAG8TQ kU9g== MIME-Version: 1.0 X-Received: by 10.50.79.129 with SMTP id j1mr2148451igx.32.1434596255852; Wed, 17 Jun 2015 19:57:35 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Wed, 17 Jun 2015 19:57:35 -0700 (PDT) In-Reply-To: References: <20150616011832.146e0f0e@kan> Date: Wed, 17 Jun 2015 19:57:35 -0700 X-Google-Sender-Auth: HHRvLenoSenlfcEN5zWsLVdTnwM Message-ID: Subject: Re: [rfc] fix umul_ppmm() in our libgcc From: Adrian Chadd To: Alexander Kabaev Cc: "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: Thu, 18 Jun 2015 02:57:36 -0000 Ok, so this: adrian@lucy-11i386:~/work/freebsd/head-embedded-2/src/contrib/gcc % svn diff longlong.h Index: longlong.h =================================================================== --- longlong.h (revision 284394) +++ longlong.h (working copy) @@ -584,11 +584,11 @@ #if defined (__mips__) && W_TYPE_SIZE == 32 #define umul_ppmm(w1, w0, u, v) \ - __asm__ ("multu %2,%3" \ - : "=l" ((USItype) (w0)), \ - "=h" ((USItype) (w1)) \ - : "d" ((USItype) (u)), \ - "d" ((USItype) (v))) + do { \ + UDItype __x = (UDItype) (USItype) (u) * (USItype) (v); \ + w1 = __x >> 32; \ + w0 = __x; \ + } while (0) #define UMUL_TIME 10 #define UDIV_TIME 100 #endif /* __mips__ */ ? -a From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 03:59:42 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 9A09546F; Thu, 18 Jun 2015 03:59:42 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (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 5E9AFD6C; Thu, 18 Jun 2015 03:59:42 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by qkbp125 with SMTP id p125so33530692qkb.2; Wed, 17 Jun 2015 20:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=RDB9dTpt6f6/5aRJ0B0/lAAuEGtQpH8PiX/9Bkk54y8=; b=OEh6dAevMpezSTCBi0zr/VTqiZZLxW5LbGbn2O85HsvbMgiaGajbclvZW9SMOSFKiR SJ5HNpXWLp8qhk5lX9j9NQaBJzMFJ7NOhrOrromhKRHWEnlafz+jTJ4e9vDSXqpRxX1H tVYgteusENUK9bRGNEgbaq1Ye4Igk/sV/mtK7AMJb24j+cdwqD7gbzaO2yrkt385/4FH Etq23Rv9NtRUYQO9Zfg18G0jJMXjAaPg2yLoDV8UBfCsifnykijxbMPOhUOC6Zw4rYtI UQgXduGY03um9mpJGdxAZ0+7/QZg+pPkJ2WK22mj3E8VjWUPYPyegYM/oAqBSmYUg9b7 6rnQ== X-Received: by 10.140.27.211 with SMTP id 77mr12040792qgx.64.1434599981380; Wed, 17 Jun 2015 20:59:41 -0700 (PDT) Received: from kan ([2601:18f:0:1570:226:18ff:fe00:232e]) by mx.google.com with ESMTPSA id 140sm3263825qhg.16.2015.06.17.20.59.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2015 20:59:40 -0700 (PDT) Date: Wed, 17 Jun 2015 23:59:34 -0400 From: Alexander Kabaev To: Adrian Chadd Cc: "freebsd-mips@freebsd.org" Subject: Re: [rfc] fix umul_ppmm() in our libgcc Message-ID: <20150617235934.3d2c4c95@kan> In-Reply-To: References: <20150616011832.146e0f0e@kan> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/0HSCHw2_GhpySvTaZ6gGh2G"; protocol="application/pgp-signature" 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: Thu, 18 Jun 2015 03:59:42 -0000 --Sig_/0HSCHw2_GhpySvTaZ6gGh2G Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 17 Jun 2015 19:57:35 -0700 Adrian Chadd wrote: > Ok, so this: >=20 > adrian@lucy-11i386:~/work/freebsd/head-embedded-2/src/contrib/gcc % > svn diff longlong.h > Index: longlong.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- longlong.h (revision 284394) > +++ longlong.h (working copy) > @@ -584,11 +584,11 @@ >=20 > #if defined (__mips__) && W_TYPE_SIZE =3D=3D 32 > #define umul_ppmm(w1, w0, u, v) \ > - __asm__ ("multu %2,%3" \ > - : "=3Dl" ((USItype) (w0)), \ > - "=3Dh" ((USItype) (w1)) \ > - : "d" ((USItype) (u)), \ > - "d" ((USItype) (v))) > + do { \ > + UDItype __x =3D (UDItype) (USItype) (u) * (USItype) (v); \ > + w1 =3D __x >> 32; \ > + w0 =3D __x; \ > + } while (0) > #define UMUL_TIME 10 > #define UDIV_TIME 100 > #endif /* __mips__ */ >=20 >=20 > ? >=20 >=20 >=20 > -a Looks good to me. --=20 Alexander Kabaev --Sig_/0HSCHw2_GhpySvTaZ6gGh2G Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVgkInXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDNUY3RDk5NTk5QjY0MUUxM0M1MTU2OTEw NzEzMjI5OTkyNzkyRTdFAAoJEAcTIpmSeS5++h4QAJGIEjyUtroOviLOqKPpn6JM tmyzbyW1hJg45hNlYuNRZQjSLWCSul7W7ajtqLhdA/LZCoiGtSg7ACn3j0olaJK3 lPeevMJWFIavpZVA0yCrd19VeV2OvzlLdBdYsMgo5PkguQqDFMPAFZa/JEdl27Lp sWIGsgWY1pQEjxWbhxIvxhCsQGfgTUU6ZLPU6o0tomKV50rev2lDWhuJ9uYXgGj4 wVy765UacjA8Vrl/fqhHacEuIJq/0KR8nt5o1jDFGg0WIuJUlHrxFxDvD7EPAz6r ZdYsv7eA2/M2eFLHP2Ldmb5JBlW8ytOPxB4gndch6j6TF4H30OSs6jcBC4utl0wK 7VMFHzlnKLvwes7jFH8ke79A9L0M7ibhvSiNNcyiLmHIv99vpQ6O5u+jprDrBu+T ab9gkY1nR33sWzkxF6Ue1gxSd7LnAPd2I6nnyHV3YMUp/2w7R9h20Ou4+aLQguu9 760jOBDRByK1n25dStT0cvNivZFNfbKbZjiTG/1dQyMSEonataZbWC9lzwyn10gi P+PSIciHvAdv0h8qigw+m1tmFgG2RR+5CnlxlqsAxsmb3F2dkvL9LTYyfVf8l4YU Mt0efIrkyCQTZlHzWuwXC04BoC2zFrQkf5G/1VcjiMnJvYQi9n7hgmk8TPDLNhrC AphKJNzf2lFYLTsrUupX =R2qq -----END PGP SIGNATURE----- --Sig_/0HSCHw2_GhpySvTaZ6gGh2G-- From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 04:01:00 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 286B1591 for ; Thu, 18 Jun 2015 04:01:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) (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 E5443E12 for ; Thu, 18 Jun 2015 04:00:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iesa3 with SMTP id a3so47221759ies.2 for ; Wed, 17 Jun 2015 21:00:59 -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:cc:content-type; bh=r/nh/5JaqUe9WyD/Vdnp3ynwnHczvpAeAPA83pHu+OA=; b=PTjnqva1FHWyao5FLYi/VnQHgi0KrvnV73SigktgdMiwJL5ZKV77lERYYbVmlJvvhE GaAvsYA+2jPhbFwohfK/Z2HI/zUMPJt4JPpJX/1HXPntuk9CjBZa92ognWeQrbHACHRs EFIoK9bbY8K8DM2lhIeZY6JdFms2JDN22Y0HkNnhdcZKBj4++d37Y3LPrPYvmUsHV69l DNngVEPgeRx4UUMAZaXiRxt+ar6mhzLmmIy/I655sKSpeYZpnBFEp6uiiBdsfH0T4OPj 6hb+rDFdxbPv35NW2yhKbGYjFDtb+ijmZsxErCI5wSLB40e3txb0+8gLqDA5VeG6VZcf BYmA== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr8193338iof.88.1434600059310; Wed, 17 Jun 2015 21:00:59 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Wed, 17 Jun 2015 21:00:59 -0700 (PDT) In-Reply-To: <20150617235934.3d2c4c95@kan> References: <20150616011832.146e0f0e@kan> <20150617235934.3d2c4c95@kan> Date: Thu, 18 Jun 2015 00:00:59 -0400 X-Google-Sender-Auth: fNX7dLCi0J29OOV9DBuAlrLjOjw Message-ID: Subject: Re: [rfc] fix umul_ppmm() in our libgcc From: Adrian Chadd To: Alexander Kabaev Cc: "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: Thu, 18 Jun 2015 04:01:00 -0000 ok, i'm building a test image. (my kingdom for being able to run the freebsd unit tests with what's in src..) -a On 17 June 2015 at 23:59, Alexander Kabaev wrote: > On Wed, 17 Jun 2015 19:57:35 -0700 > Adrian Chadd wrote: > >> Ok, so this: >> >> adrian@lucy-11i386:~/work/freebsd/head-embedded-2/src/contrib/gcc % >> svn diff longlong.h >> Index: longlong.h >> =================================================================== >> --- longlong.h (revision 284394) >> +++ longlong.h (working copy) >> @@ -584,11 +584,11 @@ >> >> #if defined (__mips__) && W_TYPE_SIZE == 32 >> #define umul_ppmm(w1, w0, u, v) \ >> - __asm__ ("multu %2,%3" \ >> - : "=l" ((USItype) (w0)), \ >> - "=h" ((USItype) (w1)) \ >> - : "d" ((USItype) (u)), \ >> - "d" ((USItype) (v))) >> + do { \ >> + UDItype __x = (UDItype) (USItype) (u) * (USItype) (v); \ >> + w1 = __x >> 32; \ >> + w0 = __x; \ >> + } while (0) >> #define UMUL_TIME 10 >> #define UDIV_TIME 100 >> #endif /* __mips__ */ >> >> >> ? >> >> >> >> -a > > Looks good to me. > > -- > Alexander Kabaev From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 13:43:30 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51862A6C for ; Thu, 18 Jun 2015 13:43:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) (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 19DFC1BA for ; Thu, 18 Jun 2015 13:43:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iesa3 with SMTP id a3so54968331ies.2 for ; Thu, 18 Jun 2015 06:43:29 -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:cc:content-type; bh=vs3+sYpPLQDkaoMUQmpak7AFjksCGAZIzZ0hDOe75+c=; b=z6PVwGI+nDbCFbCbAO5vutZ/RBbaXIvZB/tFNC3RVkVtX3pKIkKXLYWeags11hmNRH kj2K2mv0IxRtELLZ/De4+DnLixMnYiqaQukVmUI6y3l0PXlTekB8SWLHS9C0oqXxsBcU W2aqit1tmoN/wazQDVJTSdk2ZW7j3lomT7aKIgCo//VBmFLKkDH5VqUmOTNKEAQQqLsJ 8tvgRF0DnsZE1j+P+oVPS++K1tNu3RpAzxGMeg7FXZtJMP86eja4hav0zeH30Aq84zVk oW/3k91vVtapuYfWSXBFSYXr/aqqdEtrYrivzjkPH7vAIQp1muwRqeJYIrkOhG7Ytbgq epfg== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr10758528iof.88.1434635009591; Thu, 18 Jun 2015 06:43:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Thu, 18 Jun 2015 06:43:29 -0700 (PDT) In-Reply-To: References: <20150616011832.146e0f0e@kan> <20150617235934.3d2c4c95@kan> Date: Thu, 18 Jun 2015 06:43:29 -0700 X-Google-Sender-Auth: SEuIzrshtqbCHCr3Cm-9yUG9o4o Message-ID: Subject: Re: [rfc] fix umul_ppmm() in our libgcc From: Adrian Chadd To: Alexander Kabaev Cc: "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: Thu, 18 Jun 2015 13:43:30 -0000 Ok, I've committed that. Thanks! -a From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 14:51:07 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 BAFBC349 for ; Thu, 18 Jun 2015 14:51:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (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 876713FF for ; Thu, 18 Jun 2015 14:51:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igboe5 with SMTP id oe5so20476447igb.1 for ; Thu, 18 Jun 2015 07:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=IvANoEMzfFvQ2vmC4tCKSWuad+x9r2ksEyroTMIWw3k=; b=xGK0J72VtjE12fj3C3gHGk+1JHeaffFSz7LEN08XDw4fPHIJHz6shmxIgCgh8wHIpo zUMe4+2CqrPIcHTkrRUl28PYhhpLLSzmLzFzAn1C+7PDFOFn7YcjOsJx82ZUC51c2XtU U9waZzB2hdnKp8dFTQeRFLR9knQljgg0yNfaQJTu9W0AibxloxzXQDOP8L0O4T3ZMTwD uppLxHmWjcnKLMSEjNk9U6NlBI/iCNrml100MEr1F7+EBuQ+/gVRhFujC7AhPELXwSu9 QlIMAuKW1j5L26+hRSQUmzxtu14L3ISPTX9RV6S1Y5KgxiVogkMygH2fn9lYYkHb3E+j Zl/w== MIME-Version: 1.0 X-Received: by 10.42.120.66 with SMTP id e2mr6224914icr.37.1434639066850; Thu, 18 Jun 2015 07:51:06 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Thu, 18 Jun 2015 07:51:06 -0700 (PDT) Date: Thu, 18 Jun 2015 07:51:06 -0700 X-Google-Sender-Auth: 4qhoHuKdFhw3O6VQdduCg9XssyQ Message-ID: Subject: [rfc] add support routines required for gcc-4.9 From: Adrian Chadd To: "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: Thu, 18 Jun 2015 14:51:07 -0000 -adrian The following is neded for gcc-4.9, as it doesn't supply these inline functions. What do people think? adrian@lucy-11i386:~/work/freebsd/head-embedded-2/src % svn diff sys/conf/files.mips Index: sys/conf/files.mips =================================================================== --- sys/conf/files.mips (revision 284394) +++ sys/conf/files.mips (working copy) @@ -61,6 +61,9 @@ libkern/memmove.c standard libkern/cmpdi2.c optional mips | mipsel libkern/ucmpdi2.c optional mips | mipsel +# required for gcc-4.9? +libkern/ashldi3.c standard +libkern/ashrdi3.c standard # cfe support dev/cfe/cfe_api.c optional cfe -adrian From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 18:59:04 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFB4B9AC for ; Thu, 18 Jun 2015 18:59:04 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) (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 A3037D31 for ; Thu, 18 Jun 2015 18:59:04 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by pdbci14 with SMTP id ci14so13982923pdb.2 for ; Thu, 18 Jun 2015 11:59:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=v5qtPcwzSMZ/UEuXZwbCfkJXX1573sm0wnZbJCcT5EU=; b=C8Kh9KzrgcReWXlqBXo2/dk6OaAse78FldESOY+FIBiZOy0HQ8+ADMWUkwWrwB+yxn fht/O59+41wHS6XyFOS2K5hXvtTDrF31iro5h3y+jGAXteNr22GSfRxpuH69Gw+m8kXi +PL0BdQU6oxHvt8FJz3WbFC2kBnL29CtixGCvqRPSSJhOji3jK90qbAui4JcGZgt+5y0 zx/SE9k/ppn/rOgMhSnEVlplT5czVwn8tlQmdzJn1EZvSxkf+LoQjH3t+uDJogHaykzf TJaT+rCG4uSF25Fm3JWydXBut/A2LI8+3gdxw8S5WP5SJaB9cCgU2FxQzgugr43SD7Ex 1OdQ== X-Gm-Message-State: ALoCoQmNm7uspq/bn4Pnfm4D22BFsd7yICKV3SBj4uOXerlh78QXMy62IWY/LHe24jH3fEaOfnb2 X-Received: by 10.66.252.3 with SMTP id zo3mr23383615pac.26.1434653943696; Thu, 18 Jun 2015 11:59:03 -0700 (PDT) Received: from [10.64.24.56] ([69.53.236.236]) by mx.google.com with ESMTPSA id bi4sm8774876pbc.56.2015.06.18.11.59.02 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jun 2015 11:59:03 -0700 (PDT) Sender: Warner Losh Subject: Re: [rfc] add support routines required for gcc-4.9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2411E37F-CBFD-44CA-A6CD-E8E30214A411"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: Date: Thu, 18 Jun 2015 12:59:05 -0600 Cc: "freebsd-mips@freebsd.org" Message-Id: References: To: Adrian Chadd X-Mailer: Apple Mail (2.2098) 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: Thu, 18 Jun 2015 18:59:05 -0000 --Apple-Mail=_2411E37F-CBFD-44CA-A6CD-E8E30214A411 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 18, 2015, at 8:51 AM, Adrian Chadd wrote: >=20 > -adrian > The following is neded for gcc-4.9, as it doesn't supply these inline = functions. >=20 > What do people think? >=20 > adrian@lucy-11i386:~/work/freebsd/head-embedded-2/src % svn diff > sys/conf/files.mips > Index: sys/conf/files.mips > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/conf/files.mips (revision 284394) > +++ sys/conf/files.mips (working copy) > @@ -61,6 +61,9 @@ > libkern/memmove.c standard > libkern/cmpdi2.c optional mips | mipsel > libkern/ucmpdi2.c optional mips | mipsel > +# required for gcc-4.9? I=E2=80=99d just remove this comment. Otherwise this looks great to me. = The few extra bytes from this code are so far in the noise having it be more specifically = conditional isn=E2=80=99t worth the effort. Warner > +libkern/ashldi3.c standard > +libkern/ashrdi3.c standard >=20 > # cfe support > dev/cfe/cfe_api.c optional cfe >=20 > -adrian > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" --Apple-Mail=_2411E37F-CBFD-44CA-A6CD-E8E30214A411 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVgxT6AAoJEGwc0Sh9sBEATgoP+gL31G9ZiHyW9j5M/kZWvH9i Nn08a/5wSCSIgbiYDXtgMmBDYv3v0Ga6dGJO/Xs03bvD762dSQs5JXEY1a2aqcvM cTN43jwBP+4GBkMkHNlUd8hGTyzbn6w/RnUEvGx6xcNHq51YJUAlN0f+BihJ4PWY ViRPCVdB3cARjhexMvUY7A5hUdY7Y8Rxr34p1SBGZRKgChCRnq2wC547gdVYdkPa Z7norOl7iT5fFQyezKEYp+MG8kj5Z5zryUqV2ZJW7M6pmQ96QXHvjTwVsmr2UPpT 0teR5UbPhOAD8N/KoPqJD8NiZBUQ9JnvM4CUJZA0XJy4XqM/rV66kbh92FTTa/9w ZgRCIIuZi48gZTvTQzkAz1QKeQdOAFreMKi6TeKvxzeX+UZjNF2J7zPQ5QBvCuWo Kki7KZYDqnC4ojnyGrCEsEfGxIkoqMH+gLSrv18dIPsZwHop2uH2kpDHS5B0yQpc 8LitowpWM6PJGMwcQ+F9aWQ18OfjzZ0gvfuffOFhywbSdMdVMHsitoezf+N1OeV1 fCFnlH277bgo/X3RAg2V+UHF9/8ei+0zObCmH4odDN1AJglbaZtnpOXVbddE6y2V 7pdZMNbjYfj/EIe4neamu8v6nRJQxVZtM0COz726ZOqndKMp6Q96lV8PiW17Vvds RmSt0V0YlBaXiYF5wGF0 =ZhRw -----END PGP SIGNATURE----- --Apple-Mail=_2411E37F-CBFD-44CA-A6CD-E8E30214A411-- From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 19:52:04 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 7215F7F2 for ; Thu, 18 Jun 2015 19:52:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (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 3B073D5E for ; Thu, 18 Jun 2015 19:52:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igboe5 with SMTP id oe5so27252476igb.1 for ; Thu, 18 Jun 2015 12:52:03 -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:cc:content-type:content-transfer-encoding; bh=+JBOENPGqDYHubqAFtNrwKX0Dr8D8sUoNzPvjxKsegw=; b=Vn2UbHtWSt5mIgDfWwelxphrGfse3Dwkbzwma1u1QGZd2x01i7RolzynrYure7PlO+ RuC+Srpt4cftIiIT1mxloW9BtXw7sa0+atYMsS0jMRzLWzUfs6Y78QdWVL/N2Uj9PBAQ CvfFK9kKQI51txq2NVYtivGAMayAEPjfAEuQxFMlL3TQ6p6f7dKUMcurvHc/uqilS/jn FQudI2A1wqvVWfGCLaawMSvi6QQjvgjpKEOL7gqG7tmZ8rNP2iElrEUwyZGKCDcMTQyH W2dKu1HAfiQPjiyu28ycGNJzIv+Si6g79Pq0pHrJA6J/YhSMdINtuqwOic1sAmhpPwiA vx0A== MIME-Version: 1.0 X-Received: by 10.107.155.74 with SMTP id d71mr17138779ioe.29.1434657123632; Thu, 18 Jun 2015 12:52:03 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Thu, 18 Jun 2015 12:52:03 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Jun 2015 12:52:03 -0700 X-Google-Sender-Auth: XfmFEaCJ5Hd-6-l6UvquhXh3M9Q Message-ID: Subject: Re: [rfc] add support routines required for gcc-4.9 From: Adrian Chadd To: Warner Losh Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 18 Jun 2015 19:52:04 -0000 Ok, I'll commit it tonight. THanks! -a On 18 June 2015 at 11:59, Warner Losh wrote: > >> On Jun 18, 2015, at 8:51 AM, Adrian Chadd wrote: >> >> -adrian >> The following is neded for gcc-4.9, as it doesn't supply these inline fu= nctions. >> >> What do people think? >> >> adrian@lucy-11i386:~/work/freebsd/head-embedded-2/src % svn diff >> sys/conf/files.mips >> Index: sys/conf/files.mips >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- sys/conf/files.mips (revision 284394) >> +++ sys/conf/files.mips (working copy) >> @@ -61,6 +61,9 @@ >> libkern/memmove.c standard >> libkern/cmpdi2.c optional mips | mipsel >> libkern/ucmpdi2.c optional mips | mipsel >> +# required for gcc-4.9? > > I=E2=80=99d just remove this comment. Otherwise this looks great to me. T= he few extra bytes > from this code are so far in the noise having it be more specifically con= ditional > isn=E2=80=99t worth the effort. > > Warner > >> +libkern/ashldi3.c standard >> +libkern/ashrdi3.c standard >> >> # cfe support >> dev/cfe/cfe_api.c optional cfe >> >> -adrian >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@FreeBSD.ORG Thu Jun 18 21:39:50 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 858574EE for ; Thu, 18 Jun 2015 21:39:50 +0000 (UTC) (envelope-from postmaster+288515@post.webmailer.de) Received: from cg6-p00-ob.smtp.rzone.de (cg6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5310::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04704ACC for ; Thu, 18 Jun 2015 21:39:49 +0000 (UTC) (envelope-from postmaster+288515@post.webmailer.de) X-RZG-CLASS-ID: cg00 Received: from mrslant.store ([192.168.42.31]) by jored.store (RZmta 37.7 OK) with ESMTP id V02550r5ILdhHRe for ; Thu, 18 Jun 2015 23:39:43 +0200 (CEST) Received: (from Unknown UID 288515@localhost) by post.webmailer.de (8.13.7/8.13.7) id t5ILdhvp026842; Thu, 18 Jun 2015 21:39:43 GMT To: freebsd-mips@freebsd.org Subject: Notice to Appear Date: Thu, 18 Jun 2015 23:39:43 +0200 From: "County Court" Reply-To: "County Court" Message-ID: <5a5c4d72a8e60da3164a322ca383e878@w8f.rzone.de> X-Priority: 3 MIME-Version: 1.0 X-RZG-SCRIPT: :P28WfFC8JrA0JY4UkyfhUWv+YuCloWhyOLkm/T5wMizR3elopJRbkBrEIol7aWFhfA1RLENaN3Iyj5xObPJYpwTOXF7Kboy9jR4IRj3HU8RZxyghouP71GZe9w2/hyRVxqodHGtCRYtBSTAdZA== Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 18 Jun 2015 21:39:50 -0000 Notice to Appear, You have to appear in the Court on the June 27. Please, do not forget to bring all the documents related to the case. Note: The case may be heard by the judge in your absence if you do not come. The Court Notice is attached to this email. Regards, Jimmie Atkins, Clerk of Court. From owner-freebsd-mips@FreeBSD.ORG Fri Jun 19 20:26:51 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 50CA0D19; Fri, 19 Jun 2015 20:26:51 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BE5CFFA3; Fri, 19 Jun 2015 20:26:49 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5JKQPaH070694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 19 Jun 2015 22:26:26 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5JKQNg2031046 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Jun 2015 22:26:23 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5JKQNl8036643; Fri, 19 Jun 2015 22:26:23 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5JKQNvH036642; Fri, 19 Jun 2015 22:26:23 +0200 (CEST) (envelope-from ticso) Date: Fri, 19 Jun 2015 22:26:22 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Bernd Walter , "freebsd-mips@freebsd.org" Subject: Re: TP-Link WDR-4300 Message-ID: <20150619202622.GC34133@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Fri, 19 Jun 2015 20:26:51 -0000 On Tue, Jun 16, 2015 at 12:10:13PM -0700, Adrian Chadd wrote: > Ok, right. I nthat case it's just 2x2 wifi, and gige ethernet. > > the config string to put in the build cfg file, fro mopenwrt: > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma)) > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma)) So if I got it right, then all I need to change is the TPLINK_HARDWARE_ID from 0x36000001 to 0x43000001, right? > .. same kernel config should work fine. I'll go update > freebsd-wifi-build tonight once I wrap up with work. git pull didn't show up anything new. Nevertheless I'm building with the mentioned change right now. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Fri Jun 19 21:09:59 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9ABF5D32; Fri, 19 Jun 2015 21:09:59 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C5C87BF3; Fri, 19 Jun 2015 21:09:58 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5JL9Yk9070884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 19 Jun 2015 23:09:41 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5JL9UkX031372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Jun 2015 23:09:31 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5JL9UWv036827; Fri, 19 Jun 2015 23:09:30 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5JL9Uw0036826; Fri, 19 Jun 2015 23:09:30 +0200 (CEST) (envelope-from ticso) Date: Fri, 19 Jun 2015 23:09:30 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Bernd Walter , "freebsd-mips@freebsd.org" Subject: Re: TP-Link WDR-4300 - Success!!! Message-ID: <20150619210930.GD34133@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150619202622.GC34133@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Fri, 19 Jun 2015 21:09:59 -0000 On Fri, Jun 19, 2015 at 10:26:22PM +0200, Bernd Walter wrote: > On Tue, Jun 16, 2015 at 12:10:13PM -0700, Adrian Chadd wrote: > > Ok, right. I nthat case it's just 2x2 wifi, and gige ethernet. > > > > the config string to put in the build cfg file, fro mopenwrt: > > > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma)) > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma)) > > So if I got it right, then all I need to change is the TPLINK_HARDWARE_ID > from 0x36000001 to 0x43000001, right? > > > .. same kernel config should work fine. I'll go update > > freebsd-wifi-build tonight once I wrap up with work. > > git pull didn't show up anything new. > Nevertheless I'm building with the mentioned change right now. It's booting :-) Next step will be trying to populate an USB-Stick with a full base root-fs. Will take some time because of this UFS-byteorder thing If anyone has a tip to do using an ARM or i386. Last time I did a NFS-root carambola 2 and copy'ed from NFS to local stick using this board. U-Boot 1.1.4 (Jun 17 2013 - 12:31:57) U-boot DB120 DRAM: 128 MB id read 0x100000ff flash size 8MB, sector count = 128 Flash: 8 MB Using default environment PCIe Reset OK!!!!!! In: serial Out: serial Err: serial Net: ag934x_enet_initialize... No valid address in Flash. Using fixed address wasp reset mask:c03300 WASP ----> S17 PHY * : cfg1 0x7 cfg2 0x7114 eth0: ba:be:fa:ce:08:41 athrs17_reg_init: complete eth0 up eth0 Autobooting in 1 seconds ## Booting image at 9f020000 ... Uncompressing Kernel Image ... OK Starting kernel ... CPU platform: Atheros AR9344 rev 2 CPU Frequency=560 MHz CPU DDR Frequency=450 MHz CPU AHB Frequency=225 MHz platform frequency: 560 MHz CPU reference clock: 40 MHz CPU MDIO clock: 100 MHz arguments: a0 = 00000007 a1 = a7f8ffb0 a2 = 08000000 a3 = 00000008 Cmd line:argv is invalid Environment: envp is invalid Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v76.151 MMU: Standard TLB, 32 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0xbee3519e Config3=0x2c20 Physical memory chunk(s): 0x545000 - 0x7ffffff, 128692224 bytes (31419 pages) Maxmem is 0x8000000 ar934x_chip_init_gmac: gmac_cfg=0x00000001 ar934x_configure_gmac: ETH_CFG=0x00000001 ar71xx: Overriding MAC from EEPROM ar71xx: Board MAC: 14:cc:20:ed:1c:7b ar71xx: devid 'ath.0', MAC offset '0' hint.ath.0.macaddr => 14:cc:20:ed:1c:7b ar71xx: devid 'ath.1', MAC offset '-1' hint.ath.1.macaddr => 14:cc:20:ed:1c:7a ar71xx: devid 'arge.0', MAC offset '-2' hint.arge.0.macaddr => 14:cc:20:ed:1c:79 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #0 r284544: Fri Jun 19 22:48:59 CEST 2015 ticso@cicely1.cicely.de:/home/builder/wdr4300/obj/mips/mips.mips/home/builder/wdr4300/head/sys/TL-WDR4300 mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0x8053e7c0. real memory = 134217728 (131072K bytes) Physical memory chunk(s): 0x005d9000 - 0x07d98fff, 125566976 bytes (30656 pages) avail memory = 125296640 (119MB) wlan: <802.11 Link Layer> random: entropy device infrastructure driver random: selecting highest priority adaptor mem: null: random: SOFT: yarrow init() random: selecting highest priority adaptor nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 280000000 Hz quality 800 Event timer "MIPS32" frequency 280000000 Hz quality 800 argemdio0: at mem 0x19000000-0x19000fff on nexus0 mdio0: on argemdio0 mdioproxy0: on mdio0 arswitch0: on mdio0 arswitch0: ar8327_fetch_pdata_port: port 0: speed=3, duplex=1, txpause=1, rxpause=1 arswitch0: ar8327_fetch_pdata_pad: pad 0: mode=6, rxclk_sel=0, txclk_sel=0, txclk_delay_sel=1, rxclk_delay_sel=2, txclk_delay_en=1, rxclk_enable_en=1, sgmii_delay_en=0, pipe_rxclk_sel=0 arswitch0: ar8327_phy_fixup: called; phy=0; chiprev=4 arswitch0: ar8327_phy_fixup: called; phy=1; chiprev=4 arswitch0: ar8327_phy_fixup: called; phy=2; chiprev=4 arswitch0: ar8327_phy_fixup: called; phy=3; chiprev=4 arswitch0: ar8327_phy_fixup: called; phy=4; chiprev=4 miibus0: on arswitch0 ukphy0: PHY 0 on miibus0 ukphy0: OUI 0x00c82e, model 0x0003, rev. 4 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus1: on arswitch0 ukphy1: PHY 1 on miibus1 ukphy1: OUI 0x00c82e, model 0x0003, rev. 4 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus2: on arswitch0 ukphy2: PHY 2 on miibus2 ukphy2: OUI 0x00c82e, model 0x0003, rev. 4 ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus3: on arswitch0 ukphy3: PHY 3 on miibus3 ukphy3: OUI 0x00c82e, model 0x0003, rev. 4 ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus4: on arswitch0 ukphy4: PHY 4 on miibus4 ukphy4: OUI 0x00c82e, model 0x0003, rev. 4 ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto etherswitch0: on arswitch0 mdio1: on arswitch0 mdioproxy1: on mdio1 argemdio1: at mem 0x1a000000-0x1a000fff on nexus0 mdio2: on argemdio1 mdioproxy2: on mdio2 arswitch1: on mdio2 arswitch1: ar9340_hw_global_setup: GMII arswitch1: ar9340_hw_global_setup: PHY4 - Local miibus5: on arswitch1 ukphy5: PHY 0 on miibus5 ukphy5: OUI 0x00c82e, model 0x0004, rev. 2 ukphy5: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus6: on arswitch1 ukphy6: PHY 1 on miibus6 ukphy6: OUI 0x00c82e, model 0x0004, rev. 2 ukphy6: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus7: on arswitch1 ukphy7: PHY 2 on miibus7 ukphy7: OUI 0x00c82e, model 0x0004, rev. 2 ukphy7: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus8: on arswitch1 ukphy8: PHY 3 on miibus8 ukphy8: OUI 0x00c82e, model 0x0004, rev. 2 ukphy8: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus9: on arswitch1 ukphy9: PHY 4 on miibus9 ukphy9: OUI 0x00c82e, model 0x0004, rev. 2 ukphy9: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto etherswitch1: on arswitch1 mdio3: on arswitch1 mdioproxy3: on mdio3 apb0 at irq 4 on nexus0 uart0: <16550 or compatible> at mem 0x18020003-0x1802001a irq 3 on apb0 uart0: console (115200,n,8,1) uart0: fast interrupt gpio0: at mem 0x18040000-0x18040fff irq 2 on apb0 gpio0: [GIANT-LOCKED] gpio0: gpio pinmask=0x63f800 gpio0: ar71xx_gpio_attach: GPIO 18: func=46, mode=1 gpio0: ar71xx_gpio_attach: GPIO 19: func=47, mode=1 gpiobus0: on gpio0 gpioled0: at pin(s) 11 on gpiobus0 gpioled1: at pin(s) 12 on gpiobus0 gpioled2: at pin(s) 13 on gpiobus0 gpioled3: at pin(s) 14 on gpiobus0 gpioled4: at pin(s) 15 on gpiobus0 gpioc0: on gpio0 ehci0: at mem 0x1b000100-0x1b0010ff irq 1 on nexus0 usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0 on ehci0 ehci0: usbpf: Attached pcib0 at irq 0 on nexus0 pcib0: ar724x_pci_slot_fixup: checking dev pcib0, 0/0/0 pcib0: found EEPROM at 0x1fff4000 on 0.0.0 pcib0: EEPROM firmware: 0x1fff4000 @ 16384 bytes firmware: 'pcib.0.bus.0.0.0.eeprom_firmware' version 1: 16384 bytes loaded at 0xc0861000 pcib0: device EEPROM 'pcib.0.bus.0.0.0.eeprom_firmware' registered pci0: on pcib0 pci0: domain=0, physical bus=0 found-> vendor=0x168c, dev=0x0033, revid=0x01 domain=0, bus=0, slot=0, func=0 class=02-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0146, statreg=0x0010, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 3 supports D0 D1 D3 current D0 MSI supports 4 messages, 64 bit, vector masks map[10]: type Memory, range 64, base 0, size 17, enabled ath1: at device 0.0 on pci0 ath1: Lazy allocation of 0x20000 bytes rid 0x10 type 3 at 0x10000000 ath1: ath_pci_attach: looking up firmware @ 'pcib.0.bus.0.0.0.eeprom_firmware' ath1: ath_pci_attach: EEPROM firmware @ 0xc0861000 ar9300_attach: calling ar9300_hw_attach ar9300_hw_attach: calling ar9300_eeprom_attach ar9300_flash_map: unimplemented for now Restoring Cal data from DRAM ar9300_hw_attach: ar9300_eeprom_attach returned 0 ath1: RX status length: 48 ath1: RX buffer size: 4096 ath1: TX descriptor length: 128 ath1: TX status length: 36 ath1: TX buffers per descriptor: 4 ath1: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries ath1: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries ath1: [HT] enabling HT modes ath1: [HT] enabling short-GI in 20MHz mode ath1: [HT] 1 stream STBC receive enabled ath1: [HT] 1 stream STBC transmit enabled ath1: [HT] 3 RX streams; 3 TX streams ath1: Overriding MAC address from environment: '14:cc:20:ed:1c:7a' ath1: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps ath1: 3T3R ath1: 11na MCS 20MHz ath1: MCS 0-7: 6.5Mbps - 65Mbps ath1: MCS 8-15: 13Mbps - 130Mbps ath1: MCS 16-23: 19.5Mbps - 195Mbps ath1: 11na MCS 20MHz SGI ath1: MCS 0-7: 7Mbps - 72Mbps ath1: MCS 8-15: 14.5Mbps - 144.5Mbps ath1: MCS 16-23: 21.5Mbps - 216.5Mbps ath1: 11na MCS 40MHz: ath1: MCS 0-7: 13.5Mbps - 135Mbps ath1: MCS 8-15: 27Mbps - 270Mbps ath1: MCS 16-23: 40.5Mbps - 405Mbps ath1: 11na MCS 40MHz SGI: ath1: MCS 0-7: 15Mbps - 150Mbps ath1: MCS 8-15: 30Mbps - 300Mbps ath1: MCS 16-23: 45Mbps - 450Mbps ath1: AR9580 mac 448.4 RF5110 phy 361.6 ath1: 2GHz radio: 0x0000; 5GHz radio: 0x0000 ath1: Use hw queue 1 for WME_AC_BE traffic ath1: Use hw queue 0 for WME_AC_BK traffic ath1: Use hw queue 2 for WME_AC_VI traffic ath1: Use hw queue 3 for WME_AC_VO traffic ath1: Use hw queue 8 for CAB traffic ath1: Use hw queue 9 for beacons ath1: using multicast key search arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 arge0: Overriding MAC address from environment: '14:cc:20:ed:1c:79' arge0: arge_fetch_pll_config: pll_1000 = 0x6000000 arge0: arge_attach: overriding MII mode to 'RGMII' mii_attach_proxy: not attaching, no mdio device hint for arge0 arge0: finishing attachment, phymask 0000, proxy null arge0: bpf attached arge0: Ethernet address: 14:cc:20:ed:1c:79 arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: arge_attach: overriding MII mode to 'GMII' arge1: Generating random ethernet address. mii_attach_proxy: not attaching, no mdio device hint for arge1 arge1: finishing attachment, phymask 0000, proxy null arge1: bpf attached arge1: Ethernet address: 62:73:64:c6:e0:10 ath0: Vendor=0x168c, Device=0x0031 ath0: Vendor=0x168c, Device=0x0031 ath0: at mem 0x18100000-0x1811ffff irq 0 on nexus0 ath0: eeprom @ 0x1fff0000 (16384 bytes) ath0: eeprom data @ 0xbfff0000 Bootstrap clock 40MHz Enterprise mode: 0x00000000 ar9300_attach: calling ar9300_hw_attach ar9300_hw_attach: calling ar9300_eeprom_attach ar9300_flash_map: unimplemented for now Restoring Cal data from DRAM ar9300_hw_attach: ar9300_eeprom_attach returned 0 ath0: RX status length: 48 ath0: RX buffer size: 4096 ath0: TX descriptor length: 128 ath0: TX status length: 36 ath0: TX buffers per descriptor: 4 ath0: ath_edma_setup_rxfifo: type=0, FIFO depth = 16 entries ath0: ath_edma_setup_rxfifo: type=1, FIFO depth = 128 entries ath0: [HT] enabling HT modes ath0: [HT] enabling short-GI in 20MHz mode ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] 2 RX streams; 2 TX streams ath0: Overriding MAC address from environment: '14:cc:20:ed:1c:7b' ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps ath0: 2T2R ath0: 11ng MCS 20MHz ath0: MCS 0-7: 6.5Mbps - 65Mbps ath0: MCS 8-15: 13Mbps - 130Mbps ath0: 11ng MCS 20MHz SGI ath0: MCS 0-7: 7Mbps - 72Mbps ath0: MCS 8-15: 14.5Mbps - 144.5Mbps ath0: 11ng MCS 40MHz: ath0: MCS 0-7: 13.5Mbps - 135Mbps ath0: MCS 8-15: 27Mbps - 270Mbps ath0: 11ng MCS 40MHz SGI: ath0: MCS 0-7: 15Mbps - 150Mbps ath0: MCS 8-15: 30Mbps - 300Mbps ath0: AR9340 mac 768.2 RF5110 phy 850.9 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 ath0: Use hw queue 1 for WME_AC_BE traffic ath0: Use hw queue 0 for WME_AC_BK traffic ath0: Use hw queue 2 for WME_AC_VI traffic ath0: Use hw queue 3 for WME_AC_VO traffic ath0: Use hw queue 8 for CAB traffic ath0: Use hw queue 9 for beacons ath0: using multicast key search spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 mx25l0: at cs 0 on spibus0 mx25l0: w25q64, sector 65536 bytes, 128 sectors ar71xx_wdog0: on nexus0 Device configuration finished. Timecounters tick every 1.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 2048 lo0: bpf attached arswitch0port1: link state changed to DOWN arswitch0port2: link state changed to DOWN arswitch0port3: link state changed to DOWN arswitch0port4: link state changed to DOWN arswitch0port5: link state changed to DOWN arswitch1port1: link state changed to DOWN arswitch1port2: link state changed to DOWN arswitch1port3: link state changed to DOWN arswitch1port4: link state changed to DOWN arswitch1port5: link state changed to DOWN GEOM: new disk flash/spi0 usbus0: 480Mbps High Speed USB v2.0 MAP: flash/spi0: 0x20000, data=0x20000 "/dev/map/u-boot" MAP: search flash/spi0 for key ".!/bin/sh" from 0x20000, step 0x10000 ugen0.1: at usbus0 uhub0: on usbus0 MAP: flash/spi0: 20000x160000, data=0x160000 "/dev/map/kernel" MAP: search flash/spi0 for key ".!/bin/sh" from 0x20000, step 0x10000 MAP: flash/spi0: 180000x650000, data=0x650000 "/dev/map/rootfs" MAP: flash/spi0: 7d0000x10000, data=0x10000 "/dev/map/cfg" MAP: flash/spi0: 7e0000x10000, data=0x10000 "/dev/map/mib0" MAP: flash/spi0: 7f0000x10000, data=0x10000 "/dev/map/ART" map/rootfs.uncompress: GEOM_ULZMA image found map/rootfs.uncompress: 276 x 65536 blocks MAP: No valid partition found at map/rootfs.uncompress random: unblocking device. Root mount waiting for: usbus0 uhub0: 1 port with 1 removable, self powered arswitch0: arswitch_miipollstat: port 4: port -> UP arswitch0port5: link state changed to UP ugen0.2: at usbus0 uhub1: on usbus0 Root mount waiting for: usbus0 uhub1: 4 ports with 4 removable, self powered Trying to mount root from ufs:map/rootfs.uncompress []... warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init Jun 19 20:49:54 init: login_getclass: unknown class 'daemon' MAP: No valid partition found at md0 MAP: No valid partition found at md0 MAP: No valid partition found at md1 MAP: No valid partition found at md1 MAP: No valid partition found at md2 MAP: No valid partition found at md2 *** Populating /var .. *** Loading configuration files .. *** Restoring from /dev/map/cfg .. gunzip: unknown compression format 1+0 records in 1+0 records out 65536 bytes transferred in 3.963786 secs (16534 bytes/sec) 0 blocks *** Completed. *** setting up hostname *** Load kernel modules .. bridgestp kldload: can't load bridgestp: module already loaded or in kernel .. if_bridge kldload: can't load if_bridge: No such file or directory .. random kldload: can't load random: No such file or directory *** bringing up loopback .. *** Default password/login databases .. *** Starting networking via /etc/rc.d/base/net *** Interface: arge0: start *** Interface: arge0: done *** Interface: bridge0: start bridge0: bpf attached bridge0: Ethernet address: ee:30:74:00:5a:28 arge0: promiscuous mode enabled bridge0: link state changed to UP *** Interface: bridge0: done *** inetd *** Done! FreeBSD/mips (freebsd-wifi) (ttyu0) login: -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Fri Jun 19 21:21:06 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 7F54D142; Fri, 19 Jun 2015 21:21:06 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 11BD4FA2; Fri, 19 Jun 2015 21:21:05 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5JLKjiO070936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 19 Jun 2015 23:20:51 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5JLKgsH031464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Jun 2015 23:20:42 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5JLKgGQ036877; Fri, 19 Jun 2015 23:20:42 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5JLKglH036876; Fri, 19 Jun 2015 23:20:42 +0200 (CEST) (envelope-from ticso) Date: Fri, 19 Jun 2015 23:20:42 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Bernd Walter , "freebsd-mips@freebsd.org" Subject: Re: TP-Link WDR-4300 - Success!!! Message-ID: <20150619212042.GE34133@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150619210930.GD34133@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Fri, 19 Jun 2015 21:21:06 -0000 On Fri, Jun 19, 2015 at 11:09:30PM +0200, Bernd Walter wrote: > On Fri, Jun 19, 2015 at 10:26:22PM +0200, Bernd Walter wrote: > > On Tue, Jun 16, 2015 at 12:10:13PM -0700, Adrian Chadd wrote: > > > Ok, right. I nthat case it's just 2x2 wifi, and gige ethernet. > > > > > > the config string to put in the build cfg file, fro mopenwrt: > > > > > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma)) > > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma)) > > > > So if I got it right, then all I need to change is the TPLINK_HARDWARE_ID > > from 0x36000001 to 0x43000001, right? > > > > > .. same kernel config should work fine. I'll go update > > > freebsd-wifi-build tonight once I wrap up with work. > > > > git pull didn't show up anything new. > > Nevertheless I'm building with the mentioned change right now. > > It's booting :-) > Next step will be trying to populate an USB-Stick with a > full base root-fs. > Will take some time because of this UFS-byteorder thing > If anyone has a tip to do using an ARM or i386. > Last time I did a NFS-root carambola 2 and copy'ed from > NFS to local stick using this board. Maybe I don't need anything special. newfs and tar are there. Guess it's easiest to use the now running system and extract a tar from raw USB stick onto the target stick. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Fri Jun 19 21:34:23 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 C4C9CC3A for ; Fri, 19 Jun 2015 21:34:23 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery4.ore.mailhop.org (pmta2.delivery4.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id 9F293371 for ; Fri, 19 Jun 2015 21:34:23 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Fri, 19 Jun 2015 21:34:06 +0000 (UTC) Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t5JLYFoi017957; Fri, 19 Jun 2015 15:34:15 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1434749655.1415.105.camel@freebsd.org> Subject: Re: TP-Link WDR-4300 - Success!!! From: Ian Lepore To: ticso@cicely.de Cc: Adrian Chadd , Bernd Walter , "freebsd-mips@freebsd.org" Date: Fri, 19 Jun 2015 15:34:15 -0600 In-Reply-To: <20150619212042.GE34133@cicely7.cicely.de> References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Fri, 19 Jun 2015 21:34:23 -0000 On Fri, 2015-06-19 at 23:20 +0200, Bernd Walter wrote: > On Fri, Jun 19, 2015 at 11:09:30PM +0200, Bernd Walter wrote: > > On Fri, Jun 19, 2015 at 10:26:22PM +0200, Bernd Walter wrote: > > > On Tue, Jun 16, 2015 at 12:10:13PM -0700, Adrian Chadd wrote: > > > > Ok, right. I nthat case it's just 2x2 wifi, and gige ethernet. > > > > > > > > the config string to put in the build cfg file, fro mopenwrt: > > > > > > > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma)) > > > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma)) > > > > > > So if I got it right, then all I need to change is the TPLINK_HARDWARE_ID > > > from 0x36000001 to 0x43000001, right? > > > > > > > .. same kernel config should work fine. I'll go update > > > > freebsd-wifi-build tonight once I wrap up with work. > > > > > > git pull didn't show up anything new. > > > Nevertheless I'm building with the mentioned change right now. > > > > It's booting :-) > > Next step will be trying to populate an USB-Stick with a > > full base root-fs. > > Will take some time because of this UFS-byteorder thing > > If anyone has a tip to do using an ARM or i386. > > Last time I did a NFS-root carambola 2 and copy'ed from > > NFS to local stick using this board. > > Maybe I don't need anything special. > newfs and tar are there. > Guess it's easiest to use the now running system and extract a tar > from raw USB stick onto the target stick. > You can also use nc and tar to transfer a hierarchy... on the receiver nc -l 1200 | tar -xpf - -C / then on the sender tar -cf - -C . | nc -N target_ip 1200 -- Ian From owner-freebsd-mips@FreeBSD.ORG Fri Jun 19 22:59:59 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 E002E8DC; Fri, 19 Jun 2015 22:59:58 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C69EA7F; Fri, 19 Jun 2015 22:59:58 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5JMxb7q071393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 00:59:43 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5JMxYPR035967 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jun 2015 00:59:34 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5JMxYaa037291; Sat, 20 Jun 2015 00:59:34 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5JMxYvR037290; Sat, 20 Jun 2015 00:59:34 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Jun 2015 00:59:34 +0200 From: Bernd Walter To: Ian Lepore Cc: ticso@cicely.de, Adrian Chadd , Bernd Walter , "freebsd-mips@freebsd.org" Subject: Re: TP-Link WDR-4300 - Success!!! Message-ID: <20150619225933.GF34133@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434749655.1415.105.camel@freebsd.org> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Fri, 19 Jun 2015 22:59:59 -0000 On Fri, Jun 19, 2015 at 03:34:15PM -0600, Ian Lepore wrote: > On Fri, 2015-06-19 at 23:20 +0200, Bernd Walter wrote: > > On Fri, Jun 19, 2015 at 11:09:30PM +0200, Bernd Walter wrote: > > > On Fri, Jun 19, 2015 at 10:26:22PM +0200, Bernd Walter wrote: > > > > On Tue, Jun 16, 2015 at 12:10:13PM -0700, Adrian Chadd wrote: > > > > > Ok, right. I nthat case it's just 2x2 wifi, and gige ethernet. > > > > > > > > > > the config string to put in the build cfg file, fro mopenwrt: > > > > > > > > > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma)) > > > > > $(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma)) > > > > > > > > So if I got it right, then all I need to change is the TPLINK_HARDWARE_ID > > > > from 0x36000001 to 0x43000001, right? > > > > > > > > > .. same kernel config should work fine. I'll go update > > > > > freebsd-wifi-build tonight once I wrap up with work. > > > > > > > > git pull didn't show up anything new. > > > > Nevertheless I'm building with the mentioned change right now. > > > > > > It's booting :-) > > > Next step will be trying to populate an USB-Stick with a > > > full base root-fs. > > > Will take some time because of this UFS-byteorder thing > > > If anyone has a tip to do using an ARM or i386. > > > Last time I did a NFS-root carambola 2 and copy'ed from > > > NFS to local stick using this board. > > > > Maybe I don't need anything special. > > newfs and tar are there. > > Guess it's easiest to use the now running system and extract a tar > > from raw USB stick onto the target stick. > > > > You can also use nc and tar to transfer a hierarchy... > > on the receiver > nc -l 1200 | tar -xpf - -C / > > then on the sender > tar -cf - -C . | nc -N target_ip 1200 # which nc -sh: which: not found But now that you say it - inetd is there and could be used on the receiver side instead of nc. A bit crude to start an extracting tar with inetd, but should work. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 13:43:07 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 A6356EEC; Sat, 20 Jun 2015 13:43:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (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 6B5EAF41; Sat, 20 Jun 2015 13:43:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ieqy10 with SMTP id y10so2030791ieq.0; Sat, 20 Jun 2015 06:43:06 -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:cc:content-type; bh=7/ALXo42RvV0SG1cfK9HMEOwyQJoGC9Usu+2ApTl4xA=; b=iX44aM8LIIe1MboTW9KC5OqPXZKl7ZPC/IhEq6lZIjkLlbniN68XNSPi0izouoe/EC xNb4U46WH9DA6d+eAQgGVcwT3GuJF07Iw3AiNT8gXpAfieMt0gfLaT00Q2edux9rlkgs 9Mh2QzX5Xeg1Gz8iv+BDZkZMGaq5VbPhXJg2jjk1dvlC4547SsRmAyGkHvjMl6eniwby 8BB8jBJoLkdv0fwNELn8sWqGUR7SuzlhtwZJTfWzZPKvfovuqVjyD3pKxOeemKy7W06x x/15mSQP488GQtQgpPRDO02V+lmBp3I1ICwQItWj6oIub65zTMsTxtLVRxTAli6pI5Ld FtGw== MIME-Version: 1.0 X-Received: by 10.107.164.70 with SMTP id n67mr28438400ioe.8.1434807786878; Sat, 20 Jun 2015 06:43:06 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 20 Jun 2015 06:43:06 -0700 (PDT) In-Reply-To: <20150619225933.GF34133@cicely7.cicely.de> References: <20150616162654.GB14540@cicely7.cicely.de> <20150616173105.GC14540@cicely7.cicely.de> <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> Date: Sat, 20 Jun 2015 09:43:06 -0400 X-Google-Sender-Auth: JbvaGE0j1brERbULLBZXzxV1o2Y Message-ID: Subject: Re: TP-Link WDR-4300 - Success!!! From: Adrian Chadd To: ticso@cicely.de Cc: Ian Lepore , Bernd Walter , "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: Sat, 20 Jun 2015 13:43:07 -0000 [grrr] ~/path/to/freebsd-wifi-build/bin/build tl-wr4300 fullroot fullfsimage .. oh look, ../img/ now has a fullroot you can dd onto a usb disk! -a From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 14:29:01 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E1C25D6; Sat, 20 Jun 2015 14:29:01 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CCC7FAF5; Sat, 20 Jun 2015 14:29:00 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5KESdac077202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 16:28:44 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5KESXHF044760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jun 2015 16:28:33 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5KESXPC041800; Sat, 20 Jun 2015 16:28:33 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5KESWVN041799; Sat, 20 Jun 2015 16:28:32 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Jun 2015 16:28:30 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Ian Lepore , Bernd Walter , "freebsd-mips@freebsd.org" Subject: Re: TP-Link WDR-4300 - Success!!! Message-ID: <20150620142830.GA41261@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Sat, 20 Jun 2015 14:29:01 -0000 On Sat, Jun 20, 2015 at 09:43:06AM -0400, Adrian Chadd wrote: > [grrr] > > > ~/path/to/freebsd-wifi-build/bin/build tl-wr4300 fullroot fullfsimage > > .. oh look, ../img/ now has a fullroot you can dd onto a usb disk! Oh cool, didn't know. build/bin/filter.pl expected perl in /usr/bin/perl though. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 14:48:41 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0CE82881; Sat, 20 Jun 2015 14:48:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (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 D5EC1F17; Sat, 20 Jun 2015 14:48:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igblr2 with SMTP id lr2so9406376igb.0; Sat, 20 Jun 2015 07:48:40 -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:cc:content-type; bh=e5DnBRqVJ3tbFShR2Q6PBhX+C9zufiHIA8nOT3vSQoE=; b=rArDxG1sjb7ZUhX58DetI0xvUyelwbGzqQSOf0DwFlSopIaioRY6FFfq3QVfxGJVuh fpLt9kUbrLjjEG70gMEibUwt7/aGRYyOszFG6RdzuC53aqpIfC8hYkGfMoDVut1pgchs kSgTK8vIYhbcE+Ctg+Khkia8WAF0BxtH6e1RY8TbK41BxajLUGJFkhJ1aZ9Zf34XGD8K 2xiJ0Pz8igBtVWnlcr43r3Y6qJY1BHFa+xVGehex6lHT3bOFZFf/vuY47dWCLERvjJfl mLRKcOxgV8qmIVaRGvcanyXkvGHOkNxpgi+crTegUX+G1kIfzTB5u/r0xWKFGJpXr3iQ /MKg== MIME-Version: 1.0 X-Received: by 10.107.164.70 with SMTP id n67mr28738625ioe.8.1434811720334; Sat, 20 Jun 2015 07:48:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 20 Jun 2015 07:48:40 -0700 (PDT) In-Reply-To: <20150620142830.GA41261@cicely7.cicely.de> References: <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> Date: Sat, 20 Jun 2015 10:48:40 -0400 X-Google-Sender-Auth: lH9RuP5UqWfBcRy5gBCgttydwQs Message-ID: Subject: Re: TP-Link WDR-4300 - Success!!! From: Adrian Chadd To: ticso@cicely.de Cc: Ian Lepore , Bernd Walter , "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: Sat, 20 Jun 2015 14:48:41 -0000 oops! send a pull request to fix it. -a On 20 June 2015 at 10:28, Bernd Walter wrote: > On Sat, Jun 20, 2015 at 09:43:06AM -0400, Adrian Chadd wrote: >> [grrr] >> >> >> ~/path/to/freebsd-wifi-build/bin/build tl-wr4300 fullroot fullfsimage >> >> .. oh look, ../img/ now has a fullroot you can dd onto a usb disk! > > Oh cool, didn't know. > > build/bin/filter.pl expected perl in /usr/bin/perl though. > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 16:56:08 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 151689C9; Sat, 20 Jun 2015 16:56:08 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6FCA919C; Sat, 20 Jun 2015 16:56:06 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5KGtmKv077999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 18:55:53 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5KGtbWn045904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jun 2015 18:55:37 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5KGtb3B042408; Sat, 20 Jun 2015 18:55:37 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5KGtb7o042407; Sat, 20 Jun 2015 18:55:37 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Jun 2015 18:55:37 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore , hselasky@freebsd.org Subject: also USB problems (was: TP-Link WDR-4300) Message-ID: <20150620165536.GB41261@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Sat, 20 Jun 2015 16:56:08 -0000 Similar to the Carambola 2 and the Dragino the WDR-4300 has problems with umass devices. I can't say if this is just with the 2 Atheros chips, or mips in general, since I don't have any other mips based devices to test, but there is a problem. This was with a noname USB flash device: root@:/ # pkg The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:mips/latest, please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command ugen0.3: at usbus0 (disconnected) umass0: at uhub1, port 2, addr 3 (disconnected) (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0[WRITE(offset=351404032, length=131072)]error = 5 g_vfs_done():da0[WRITE(offset=351535104, length=131072)]error = 5 g_vfs_done():da0[WRITE(offset=351666176, length=131072)]error = 5 g_vfs_done():da0[WRITE(offset=351797248, length=131072)]error = 5 g_vfs_done():da0[WRITE(offset=1945305088, length=7168)]error = 5 g_vfs_done():da0[WRITE(offset=351272960, length=131072)]error = 5 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: < > s/n 10112558007664 detached g_vfs_done():da0[WRITE(offset=1945305088, length=7168)]error = 6 g_vfs_done():da0[READ(offset=61530112, length=8192)]error = 6 g_vfs_done():da0[READ(offset=123035648, length=8192)]error = 6 g_vfs_done():da0[READ(offset=153788416, length=8192)]error = 6 g_vfs_done():da0[READ(offset=184541184, length=8192)]error = 6 g_vfs_done():da0[READ(offset=246046720, length=8192)]error = 6 g_vfs_done():da0[READ(offset=276799488, length=8192)]error = 6 g_vfs_done():da0[WRITE(offset=1945305088, length=8192)]error = 6 g_vfs_done():da0[WRITE(offset=1945313280, length=2048)]error = 6 g_vfs_done():da0[WRITE(offset=3178496, length=8192)]error = 6 g_vfs_done():da0[WRITE(offset=1945313280, length=2048)]error = 6 g_vfs_done():da0[WRITE(offset=3178496, length=8192)]error = 6 g_vfs_done():da0[WRITE(offset=1945313280, length=2048)]error = 6 g_vfs_done():da0[WRITE(offset=3178496, length=8192)]error = 6 (da0:umass-sim0:0:0:0): Periph destroyed vnode_pager_generic_getpages_done: I/O read error 5 vm_fault: pager read error, pid 1158 (pkg-static) Device da0 went missing before all of the data could be written to it; expect data loss. Well Ok, it was an unbranded device. Next I'd tried an Intenso harddrive. It took a bit longer, but same symptoms: root@:~ # pkg install perl5 Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 3 MiB 1.1MB/s 00:03 Processing entries: 100% FreeBSD repository update completed. 15578 packages processed. Updating database digests format: 100% The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: perl5: 5.20.2_4 The process will require 44 MiB more space. 13 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching perl5-5.20.2_4.txz: 100% 13 MiB 1.1MB/s 00:12 Checking integrity... done (0 conflicting) [1/1] Installing perl5-5.20.2_4... [1/1] Extracting perl5-5.20.2_4: 72%(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command uhub1: at uhub0, port 1, addr 2 (disconnected) ugen0.3: at usbus0 (disconnected) umass0: at uhub1, port 2, addr 3 (disconnected) (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0[WRITE(offset=584433664, length=8192)]error = 5 g_vfs_done():da0[WRITE(offset=584466432, length=8192)]error = 5 g_vfs_done():da0[WRITE(offset=594893824, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594894848, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594895872, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594896896, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594897920, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594898944, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594899968, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594900992, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594902016, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594903040, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594904064, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594905088, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594906112, length=1024)]error = 5 g_vfs_done():da0[WRITE(offset=594907136, length=1024)]error = 5 g_vfs_done():da0[READ(offset=110219264, length=16384)]error = 5 g_vfs_done():da0[READ(offset=223870976, length=8192)]error = 5 g_vfs_done():da0[READ(offset=393306112, length=131072)]error = 5 -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 17:21:26 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D65A3EB3; Sat, 20 Jun 2015 17:21:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (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 9B4F49D3; Sat, 20 Jun 2015 17:21:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbqq3 with SMTP id qq3so36909310igb.0; Sat, 20 Jun 2015 10:21:26 -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:cc:content-type; bh=ck8p5+E7tdAkYlKcPmnVcgdTbOPQwj0h8oW50PWUOYM=; b=F+9X+F5Jzi5A2AY74sccRWCt3xXOxZsav/GfiCCPOvpWhhpatjjpIZzr8x6/UPsbPQ HbGsY3V/yzu5Yi7IjWxKM/OfZwhFJzQC527r4crEwnhcGrVe1l6uCry5rmqvWCt10o+0 r95mIUF+U0z6Aaw5LqpCjcOKh+gKkL6hUmogf0PK2z4RkmsefON47FJg+DY6gva1Ffky n0DNkm/yJA5AYZvcVJKeKXoRvxJJ7rcot6XQNfUaxXttBkTo0dY0dcWUxMS7QnEsf2RY Moar64Z9Tr1x94/tM14y65V9OidgDFHPr4GNXX3Ox7RcQrso4BcQR7QEZH9ToomF0UiO 3Fpw== MIME-Version: 1.0 X-Received: by 10.107.155.74 with SMTP id d71mr29227788ioe.29.1434820884958; Sat, 20 Jun 2015 10:21:24 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 20 Jun 2015 10:21:24 -0700 (PDT) In-Reply-To: <20150620165536.GB41261@cicely7.cicely.de> References: <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620165536.GB41261@cicely7.cicely.de> Date: Sat, 20 Jun 2015 13:21:24 -0400 X-Google-Sender-Auth: QGseaPJAstgfYbG2rwqCEnYGSp4 Message-ID: Subject: Re: also USB problems (was: TP-Link WDR-4300) From: Adrian Chadd To: ticso@cicely.de Cc: Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore , Hans Petter Selasky 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: Sat, 20 Jun 2015 17:21:26 -0000 Hi, You typically need an external power supply to drive high current things from these devices. Try connecting them via a powered hub and see what happens. -adrian On 20 June 2015 at 12:55, Bernd Walter wrote: > Similar to the Carambola 2 and the Dragino the WDR-4300 has problems > with umass devices. > I can't say if this is just with the 2 Atheros chips, or mips in > general, since I don't have any other mips based devices to test, > but there is a problem. > > This was with a noname USB flash device: > root@:/ # pkg > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:mips/latest, please wait... > Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done > (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > ugen0.3: at usbus0 (disconnected) > umass0: at uhub1, port 2, addr 3 (disconnected) > (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > g_vfs_done():da0[WRITE(offset=351404032, length=131072)]error = 5 > g_vfs_done():da0[WRITE(offset=351535104, length=131072)]error = 5 > g_vfs_done():da0[WRITE(offset=351666176, length=131072)]error = 5 > g_vfs_done():da0[WRITE(offset=351797248, length=131072)]error = 5 > g_vfs_done():da0[WRITE(offset=1945305088, length=7168)]error = 5 > g_vfs_done():da0[WRITE(offset=351272960, length=131072)]error = 5 > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: < > s/n 10112558007664 detached > g_vfs_done():da0[WRITE(offset=1945305088, length=7168)]error = 6 > g_vfs_done():da0[READ(offset=61530112, length=8192)]error = 6 > g_vfs_done():da0[READ(offset=123035648, length=8192)]error = 6 > g_vfs_done():da0[READ(offset=153788416, length=8192)]error = 6 > g_vfs_done():da0[READ(offset=184541184, length=8192)]error = 6 > g_vfs_done():da0[READ(offset=246046720, length=8192)]error = 6 > g_vfs_done():da0[READ(offset=276799488, length=8192)]error = 6 > g_vfs_done():da0[WRITE(offset=1945305088, length=8192)]error = 6 > g_vfs_done():da0[WRITE(offset=1945313280, length=2048)]error = 6 > g_vfs_done():da0[WRITE(offset=3178496, length=8192)]error = 6 > g_vfs_done():da0[WRITE(offset=1945313280, length=2048)]error = 6 > g_vfs_done():da0[WRITE(offset=3178496, length=8192)]error = 6 > g_vfs_done():da0[WRITE(offset=1945313280, length=2048)]error = 6 > g_vfs_done():da0[WRITE(offset=3178496, length=8192)]error = 6 > (da0:umass-sim0:0:0:0): Periph destroyed > vnode_pager_generic_getpages_done: I/O read error 5 > vm_fault: pager read error, pid 1158 (pkg-static) > Device da0 went missing before all of the data could be written to it; expect data loss. > > Well Ok, it was an unbranded device. > > Next I'd tried an Intenso harddrive. > It took a bit longer, but same symptoms: > root@:~ # pkg install perl5 > Updating FreeBSD repository catalogue... > Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 > Fetching packagesite.txz: 100% 3 MiB 1.1MB/s 00:03 > Processing entries: 100% > FreeBSD repository update completed. 15578 packages processed. > Updating database digests format: 100% > The following 1 package(s) will be affected (of 0 checked): > > New packages to be INSTALLED: > perl5: 5.20.2_4 > > The process will require 44 MiB more space. > 13 MiB to be downloaded. > > Proceed with this action? [y/N]: y > Fetching perl5-5.20.2_4.txz: 100% 13 MiB 1.1MB/s 00:12 > Checking integrity... done (0 conflicting) > [1/1] Installing perl5-5.20.2_4... > [1/1] Extracting perl5-5.20.2_4: 72%(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > uhub1: at uhub0, port 1, addr 2 (disconnected) > ugen0.3: at usbus0 (disconnected) > umass0: at uhub1, port 2, addr 3 (disconnected) > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 0b b9 30 00 00 80 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > g_vfs_done():da0[WRITE(offset=584433664, length=8192)]error = 5 > g_vfs_done():da0[WRITE(offset=584466432, length=8192)]error = 5 > g_vfs_done():da0[WRITE(offset=594893824, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594894848, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594895872, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594896896, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594897920, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594898944, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594899968, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594900992, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594902016, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594903040, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594904064, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594905088, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594906112, length=1024)]error = 5 > g_vfs_done():da0[WRITE(offset=594907136, length=1024)]error = 5 > g_vfs_done():da0[READ(offset=110219264, length=16384)]error = 5 > g_vfs_done():da0[READ(offset=223870976, length=8192)]error = 5 > g_vfs_done():da0[READ(offset=393306112, length=131072)]error = 5 > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 17:21:56 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 029D9EDD; Sat, 20 Jun 2015 17:21:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (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 BBBF8A1E; Sat, 20 Jun 2015 17:21:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igboe5 with SMTP id oe5so36916488igb.1; Sat, 20 Jun 2015 10:21:55 -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:cc:content-type; bh=Glso1qQjltnIVQ660NSI7eOqtwP1Iw28x1ooO0C3g0E=; b=McrwIEBl4A3M+fkX3eHoBLeUAHyvYYLP2TD2KFlNaV45NC6SLbVBSCD7yXnAaUiM0v ITwDWMesv6+ko7Kkc63n1Q7gIVK1bqjyw40VdC39x3xeCgLbthDADYrlGsKlI7XFQaRz /fcWu5anxGny7TplH18Pg6AaPp/WaRFd3kw5m5QLK4tBD2RPBLA/LyqzEVCKVhx5vZWL n2i3hJJO3AT8mapciTMWIrcr0u1jfeGhHVwJ6TgssUAPokQldjT1nWPajmzHFd7ossHK tAXksG2CHrYCl7PJDfdJYackhO0wToMh4KrIe89WQFWGqBZt88hYXuBxWruFjrsjFJuv p2/w== MIME-Version: 1.0 X-Received: by 10.50.79.129 with SMTP id j1mr11779779igx.32.1434820915214; Sat, 20 Jun 2015 10:21:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 20 Jun 2015 10:21:55 -0700 (PDT) In-Reply-To: References: <20150616175831.GD14540@cicely7.cicely.de> <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> Date: Sat, 20 Jun 2015 13:21:55 -0400 X-Google-Sender-Auth: QdMuTslywt-2aOo9PedYLZFrf_Y Message-ID: Subject: Re: TP-Link WDR-4300 - Success!!! From: Adrian Chadd To: ticso@cicely.de Cc: Ian Lepore , Bernd Walter , "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: Sat, 20 Jun 2015 17:21:56 -0000 .. and send me a pull request for the tl-wdr4300 support. I'd like to add it to the wiki and the build repo. :) -a From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 17:43:05 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 DAB29674; Sat, 20 Jun 2015 17:43:05 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 507C9E61; Sat, 20 Jun 2015 17:43:05 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5KHghN1078198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 19:42:50 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5KHgaQ7046247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jun 2015 19:42:37 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5KHgal9042586; Sat, 20 Jun 2015 19:42:36 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5KHgaRm042585; Sat, 20 Jun 2015 19:42:36 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Jun 2015 19:42:36 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Ian Lepore , Bernd Walter , "freebsd-mips@freebsd.org" Subject: Re: TP-Link WDR-4300 - Success!!! Message-ID: <20150620174235.GC41261@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Sat, 20 Jun 2015 17:43:06 -0000 On Sat, Jun 20, 2015 at 01:21:55PM -0400, Adrian Chadd wrote: > .. and send me a pull request for the tl-wdr4300 support. I'd like to > add it to the wiki and the build repo. :) git is not my world, I'm happy that I know how to checkout and update. [235]cicely1# diff -u freebsd-wifi-build/build/cfg/tl-wdr3600 freebsd-wifi-build/build/cfg/tl-wdr4300 --- freebsd-wifi-build/build/cfg/tl-wdr3600 2015-06-19 22:02:31.028035864 +0200 +++ freebsd-wifi-build/build/cfg/tl-wdr4300 2015-06-19 22:22:16.602953942 +0200 @@ -30,7 +30,7 @@ TPLINK_IMG_NAME="FreeBSD" TPLINK_IMG_VERSION="FreeBSD-HEAD" # New-style board config -TPLINK_HARDWARE_ID=0x36000001 +TPLINK_HARDWARE_ID=0x43000001 TPLINK_HARDWARE_VER=1 TPLINK_HARDWARE_FLASHID=8M TPLINK_FIRMWARE_RESERV=0x40000 -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 17:45:16 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1EC896A3; Sat, 20 Jun 2015 17:45:16 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A1FBAE68; Sat, 20 Jun 2015 17:45:15 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5KHjD4e078220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 19:45:13 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5KHjAm5046284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jun 2015 19:45:10 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5KHj9XZ042624; Sat, 20 Jun 2015 19:45:09 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5KHj94x042623; Sat, 20 Jun 2015 19:45:09 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Jun 2015 19:45:09 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore , Hans Petter Selasky Subject: Re: also USB problems (was: TP-Link WDR-4300) Message-ID: <20150620174509.GD41261@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620165536.GB41261@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Sat, 20 Jun 2015 17:45:16 -0000 On Sat, Jun 20, 2015 at 01:21:24PM -0400, Adrian Chadd wrote: > Hi, > > You typically need an external power supply to drive high current > things from these devices. > > Try connecting them via a powered hub and see what happens. Will try, but doubt it will make a difference. The memory stick isn't what I expect to be high current and I already tried a self powered hub with the AR93331 devices. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 18:27:15 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 E1354AF1; Sat, 20 Jun 2015 18:27:14 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E4B79BB; Sat, 20 Jun 2015 18:27:14 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5KIQxWC078415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 20:26:59 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5KIQvWf046555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jun 2015 20:26:57 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5KIQvhi042792; Sat, 20 Jun 2015 20:26:57 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5KIQvZd042791; Sat, 20 Jun 2015 20:26:57 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Jun 2015 20:26:56 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore , Hans Petter Selasky Subject: Re: also USB problems (was: TP-Link WDR-4300) Message-ID: <20150620182656.GE41261@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620165536.GB41261@cicely7.cicely.de> <20150620174509.GD41261@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150620174509.GD41261@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Sat, 20 Jun 2015 18:27:15 -0000 On Sat, Jun 20, 2015 at 07:45:09PM +0200, Bernd Walter wrote: > On Sat, Jun 20, 2015 at 01:21:24PM -0400, Adrian Chadd wrote: > > Hi, > > > > You typically need an external power supply to drive high current > > things from these devices. > > > > Try connecting them via a powered hub and see what happens. > > Will try, but doubt it will make a difference. > The memory stick isn't what I expect to be high current and I already > tried a self powered hub with the AR93331 devices. Same result: root@:~ # pkg install perl The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:mips/latest, please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command ugen0.5: at usbus0 (disconnected) umass0: at uhub2, port 5, addr 5 (disconnected) (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0a 78 00 00 00 80 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0[WRITE(offset=351404032, length=131072)]error = 5 g_vfs_done():da0[WRITE(offset=351535104, length=131072)]error = 5 -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 18:52:39 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 8E183C22; Sat, 20 Jun 2015 18:52:39 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0452BFD2; Sat, 20 Jun 2015 18:52:38 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t5KIqGvs078532 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 20 Jun 2015 20:52:25 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t5KIqBt8046728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jun 2015 20:52:11 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t5KIqB17042884; Sat, 20 Jun 2015 20:52:11 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t5KIqBVU042883; Sat, 20 Jun 2015 20:52:11 +0200 (CEST) (envelope-from ticso) Date: Sat, 20 Jun 2015 20:52:11 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore , Hans Petter Selasky Subject: Re: also USB problems (was: TP-Link WDR-4300) Message-ID: <20150620185211.GF41261@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620165536.GB41261@cicely7.cicely.de> <20150620174509.GD41261@cicely7.cicely.de> <20150620182656.GE41261@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150620182656.GE41261@cicely7.cicely.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de 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: Sat, 20 Jun 2015 18:52:39 -0000 On Sat, Jun 20, 2015 at 08:26:56PM +0200, Bernd Walter wrote: > On Sat, Jun 20, 2015 at 07:45:09PM +0200, Bernd Walter wrote: > > On Sat, Jun 20, 2015 at 01:21:24PM -0400, Adrian Chadd wrote: > > > Hi, > > > > > > You typically need an external power supply to drive high current > > > things from these devices. > > > > > > Try connecting them via a powered hub and see what happens. > > > > Will try, but doubt it will make a difference. > > The memory stick isn't what I expect to be high current and I already > > tried a self powered hub with the AR93331 devices. Different hub, this time an SMSC/Microchip EVB-USB2517 reference design board. Also no difference. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 23:45:48 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 C803A17A; Sat, 20 Jun 2015 23:45:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 855D7A40; Sat, 20 Jun 2015 23:45:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 179951FE023; Sun, 21 Jun 2015 01:45:42 +0200 (CEST) Message-ID: <5585FB59.90805@selasky.org> Date: Sun, 21 Jun 2015 01:46:33 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: ticso@cicely.de, Adrian Chadd CC: Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore Subject: Re: also USB problems References: <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620165536.GB41261@cicely7.cicely.de> <20150620174509.GD41261@cicely7.cicely.de> <20150620182656.GE41261@cicely7.cicely.de> In-Reply-To: <20150620182656.GE41261@cicely7.cicely.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 20 Jun 2015 23:45:48 -0000 On 06/20/15 20:26, Bernd Walter wrote: > g_vfs_done():da0[WRITE(offset=351404032, length=131072)]error = 5 > g_vfs_done():da0[WRITE(offset=351535104, length=131072)]error = 5 Hi, Is the max I/O parameter of 64K respected here? If not, expect throuble. maxio = 64K for all non-superspeed USB devices. If it is set to something else, they will most likely break. --HPS From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 23:47:48 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 96D6A1AB; Sat, 20 Jun 2015 23:47:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50D5BA49; Sat, 20 Jun 2015 23:47:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E86591FE024; Sun, 21 Jun 2015 01:47:44 +0200 (CEST) Message-ID: <5585FBD3.2010808@selasky.org> Date: Sun, 21 Jun 2015 01:48:35 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: ticso@cicely.de, Adrian Chadd CC: Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore Subject: Re: also USB problems References: <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620165536.GB41261@cicely7.cicely.de> <20150620174509.GD41261@cicely7.cicely.de> <20150620182656.GE41261@cicely7.cicely.de> <20150620185211.GF41261@cicely7.cicely.de> In-Reply-To: <20150620185211.GF41261@cicely7.cicely.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 20 Jun 2015 23:47:48 -0000 On 06/20/15 20:52, Bernd Walter wrote: > On Sat, Jun 20, 2015 at 08:26:56PM +0200, Bernd Walter wrote: >> On Sat, Jun 20, 2015 at 07:45:09PM +0200, Bernd Walter wrote: >>> On Sat, Jun 20, 2015 at 01:21:24PM -0400, Adrian Chadd wrote: >>>> Hi, >>>> >>>> You typically need an external power supply to drive high current >>>> things from these devices. >>>> >>>> Try connecting them via a powered hub and see what happens. >>> >>> Will try, but doubt it will make a difference. >>> The memory stick isn't what I expect to be high current and I already >>> tried a self powered hub with the AR93331 devices. > Can you kdb_backtrace() on that request having length above 64K, and see what is causing it? It needs to be split into multiple of maxio sized requests. --HPS From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 23:55:05 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 3EBE71FC; Sat, 20 Jun 2015 23:55:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) (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 03725C4F; Sat, 20 Jun 2015 23:55:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ieqy10 with SMTP id y10so6601611ieq.0; Sat, 20 Jun 2015 16:55:04 -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:cc:content-type; bh=Y6eISW7K++No0T+NyCdU4eInX1NIFUql0NOfDpzIzk0=; b=oQLfKwbcRRTopXUupkvdD5BpA4pEv9ooGnATG89fGvh9n+yAIJvnTpmJpesOOtJsP9 Phy0UfFGShPIqTvJeKGG5ki8vPbNpFzagtuAvpxkUpNYnLouOc2lBwyQXo81g2Ovi2sv c5HT+NvGuuIyvK4NMJM9C8VqtZ9ieeC/p5Ll+v++ZWpbc+prhJ1LGdGpelLTEqeDyaHV Vf2LH6WDLXxmupc8MRPLMsa6uyHx9VxGVl71OEKvIKWnxUdHWfb4JUXRW3n5Kw/JWIi8 XYpUf472a3pMO3LhF85NsBcxnGOuEF7yMf2ZpLv1fzba4q3qq8JwfR1Zv3OdtBMQfOf8 KNZg== MIME-Version: 1.0 X-Received: by 10.107.5.210 with SMTP id 201mr26067048iof.88.1434844504437; Sat, 20 Jun 2015 16:55:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 20 Jun 2015 16:55:04 -0700 (PDT) In-Reply-To: <20150620174235.GC41261@cicely7.cicely.de> References: <20150619202622.GC34133@cicely7.cicely.de> <20150619210930.GD34133@cicely7.cicely.de> <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620174235.GC41261@cicely7.cicely.de> Date: Sat, 20 Jun 2015 19:55:04 -0400 X-Google-Sender-Auth: IVQrK3PYJ7XY_tZDBDRebviWyRw Message-ID: Subject: Re: TP-Link WDR-4300 - Success!!! From: Adrian Chadd To: ticso@cicely.de Cc: Ian Lepore , Bernd Walter , "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: Sat, 20 Jun 2015 23:55:05 -0000 Hi, lol, ok. I can help you with that on irc at some point, it's pretty easy to do. -a On 20 June 2015 at 13:42, Bernd Walter wrote: > On Sat, Jun 20, 2015 at 01:21:55PM -0400, Adrian Chadd wrote: >> .. and send me a pull request for the tl-wdr4300 support. I'd like to >> add it to the wiki and the build repo. :) > > git is not my world, I'm happy that I know how to checkout and update. > > [235]cicely1# diff -u freebsd-wifi-build/build/cfg/tl-wdr3600 freebsd-wifi-build/build/cfg/tl-wdr4300 > --- freebsd-wifi-build/build/cfg/tl-wdr3600 2015-06-19 22:02:31.028035864 +0200 > +++ freebsd-wifi-build/build/cfg/tl-wdr4300 2015-06-19 22:22:16.602953942 +0200 > @@ -30,7 +30,7 @@ > TPLINK_IMG_NAME="FreeBSD" > TPLINK_IMG_VERSION="FreeBSD-HEAD" > # New-style board config > -TPLINK_HARDWARE_ID=0x36000001 > +TPLINK_HARDWARE_ID=0x43000001 > TPLINK_HARDWARE_VER=1 > TPLINK_HARDWARE_FLASHID=8M > TPLINK_FIRMWARE_RESERV=0x40000 > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@FreeBSD.ORG Sat Jun 20 23:55:21 2015 Return-Path: Delivered-To: freebsd-mips@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E2DF223; Sat, 20 Jun 2015 23:55:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (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 33707C52; Sat, 20 Jun 2015 23:55:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbiq7 with SMTP id iq7so34924011igb.1; Sat, 20 Jun 2015 16:55:20 -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:cc:content-type; bh=lciBey+Bn1Ffl5vJRKQgz4NR2k1dlflj42hnR69jdl0=; b=TODHj67msXofkDHEQ8VpEASTSgomsu/0nQgvs0XvwkwZ7X3xW4wtsbHr5hxhUYjIQa RrRlU61Z6ID9LT8TuhIeNFFHayvjUBOjKews4PV5H//epB4AXos6g2tatz3CFrPYfhf9 TgopXn9QlJUDFz2ntXQAxeDvKufQkJ+B8AuT3cYo0wIpkq9u1cF81uLO6OOZ+GvQSfuj gYYMoe65J1GWnjHjoDZzPY2BdYh02Itw9Sn9ZMwtCpSDG4AyObWlMGj12ZAskuMEH7Ql bMldTrBvaTorzeOedAwAChuXHj8FzFrKJ8X2VeZlgdmpSNXPFfz9BLhEz3DZJC+SlKb8 +cOg== MIME-Version: 1.0 X-Received: by 10.107.11.164 with SMTP id 36mr1607112iol.8.1434844520361; Sat, 20 Jun 2015 16:55:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sat, 20 Jun 2015 16:55:20 -0700 (PDT) In-Reply-To: <20150620185211.GF41261@cicely7.cicely.de> References: <20150619212042.GE34133@cicely7.cicely.de> <1434749655.1415.105.camel@freebsd.org> <20150619225933.GF34133@cicely7.cicely.de> <20150620142830.GA41261@cicely7.cicely.de> <20150620165536.GB41261@cicely7.cicely.de> <20150620174509.GD41261@cicely7.cicely.de> <20150620182656.GE41261@cicely7.cicely.de> <20150620185211.GF41261@cicely7.cicely.de> Date: Sat, 20 Jun 2015 19:55:20 -0400 X-Google-Sender-Auth: DWgdtt9mQQOc4iSKNOThZFcNpk0 Message-ID: Subject: Re: also USB problems (was: TP-Link WDR-4300) From: Adrian Chadd To: ticso@cicely.de Cc: Bernd Walter , "freebsd-mips@freebsd.org" , Ian Lepore , Hans Petter Selasky 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: Sat, 20 Jun 2015 23:55:21 -0000 odd, okay. lemme try that tomorrow or monday. -a On 20 June 2015 at 14:52, Bernd Walter wrote: > On Sat, Jun 20, 2015 at 08:26:56PM +0200, Bernd Walter wrote: >> On Sat, Jun 20, 2015 at 07:45:09PM +0200, Bernd Walter wrote: >> > On Sat, Jun 20, 2015 at 01:21:24PM -0400, Adrian Chadd wrote: >> > > Hi, >> > > >> > > You typically need an external power supply to drive high current >> > > things from these devices. >> > > >> > > Try connecting them via a powered hub and see what happens. >> > >> > Will try, but doubt it will make a difference. >> > The memory stick isn't what I expect to be high current and I already >> > tried a self powered hub with the AR93331 devices. > > Different hub, this time an SMSC/Microchip EVB-USB2517 reference design board. > Also no difference. > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.