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--