From owner-freebsd-mips@FreeBSD.ORG Mon May 28 22:52:57 2007 Return-Path: X-Original-To: freebsd-mips@FreeBSD.org Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59F1A16A4C5 for ; Mon, 28 May 2007 22:52:57 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id 2A08713C487 for ; Mon, 28 May 2007 22:52:57 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id AB5F9222F02 for ; Mon, 28 May 2007 18:52:56 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 28 May 2007 18:52:56 -0400 X-Sasl-enc: NdXhl6Mi41UXLRaHnMUeAyCHV+CdxEVX76sijh2TUte0 1180392776 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 2DA431603E for ; Mon, 28 May 2007 18:52:56 -0400 (EDT) Message-ID: <465B5D46.5070001@incunabulum.net> Date: Mon, 28 May 2007 23:52:54 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: OpenEmbedded X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 22:52:57 -0000 I hacked OpenEmbedded last year to get as far as building some things on FreeBSD, however, Linux kernel cross-builds fail. I am cleaning out one of my old development machines, and everything has been living on there, so... Would there be any interest in my uploading these somewhere? In particular I hacked the TRX firmware image tool to build on FreeBSD. This is needed for targetting the Linksys and Asus boxes. Regards, BMS From owner-freebsd-mips@FreeBSD.ORG Thu May 31 15:00:14 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF3F616A41F for ; Thu, 31 May 2007 15:00:14 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id 89BBD13C448 for ; Thu, 31 May 2007 15:00:14 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id F029122ACB8 for ; Thu, 31 May 2007 11:00:13 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 31 May 2007 11:00:13 -0400 X-Sasl-enc: RcGLEhO1Hjr7DokJps9LkwTFGbPFkqlD1WeY8kSJKKPK 1180623613 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 9277820B3E for ; Thu, 31 May 2007 11:00:13 -0400 (EDT) Message-ID: <465EE2FC.7030900@incunabulum.net> Date: Thu, 31 May 2007 16:00:12 +0100 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-mips@freebsd.org Content-Type: multipart/mixed; boundary="------------060305010900050006080406" Subject: [PATCH] build trx firmware tool on FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 15:00:14 -0000 This is a multi-part message in MIME format. --------------060305010900050006080406 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit As requested, here is a patch to build the TRX firmware wrapping tool (for Broadcom 47xx based devices such as the Linksys WRT) on FreeBSD. --------------060305010900050006080406 Content-Type: text/x-patch; name="trx-bsd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="trx-bsd.diff" --- trx.c.orig Sat Feb 11 06:04:31 2006 +++ trx.c Sat Feb 11 06:06:12 2006 @@ -44,6 +44,11 @@ #include #include #include + +#ifdef __FreeBSD__ +#include +#define STORE32_LE(X) htole32(X) +#else #include #include @@ -53,6 +58,7 @@ #define STORE32_LE(X) (X) #else #error unkown endianness! +#endif #endif uint32_t crc32buf(char *buf, size_t len); --------------060305010900050006080406-- From owner-freebsd-mips@FreeBSD.ORG Thu May 31 16:01:55 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DDF6516A400 for ; Thu, 31 May 2007 16:01:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A22D013C44C for ; Thu, 31 May 2007 16:01:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l4VFxPds068394; Thu, 31 May 2007 09:59:25 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 31 May 2007 09:58:28 -0600 (MDT) Message-Id: <20070531.095828.-1877556893.imp@bsdimp.com> To: bms@incunabulum.net From: "M. Warner Losh" In-Reply-To: <465EE2FC.7030900@incunabulum.net> References: <465EE2FC.7030900@incunabulum.net> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 31 May 2007 09:59:30 -0600 (MDT) Cc: freebsd-mips@freebsd.org Subject: Re: [PATCH] build trx firmware tool on FreeBSD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 16:01:55 -0000 In message: <465EE2FC.7030900@incunabulum.net> Bruce M Simpson writes: : As requested, here is a patch to build the TRX firmware wrapping tool : (for Broadcom 47xx based devices such as the Linksys WRT) on FreeBSD. Cool! Have you written up instructions for how to use these tools? Could you point at a web page that has them? Also, do you think this will work for the WTR54GS [sic]? This is the tiny travel version that has a slightly different Broadcom part in it than you've been targeting with the WRT54GS. I have a version 1 model which should have enough memory for this sort of thing... Warner