From owner-freebsd-embedded@FreeBSD.ORG Sun Apr 12 00:11:48 2015 Return-Path: Delivered-To: embedded@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 28CDC981; Sun, 12 Apr 2015 00:11:48 +0000 (UTC) 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 02F00B84; Sun, 12 Apr 2015 00:11:47 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so6687907igb.0; Sat, 11 Apr 2015 17:11:47 -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=d1M7k4evNMsU4TGB7b4mpCzbMhrfBUOlg/EjDzSwcmo=; b=V42Rtm4x28vesRUxdnlipkwt/gdGqBPDWwsfAhgRL685/ve9ZOZfnwqYUJWUNG9M4U wys6TDjrtTK87F/TgzNDW3ZBm0S1+E7sDbJYFFXkhM7DVqkEfYVGiL5eUBq5Svd5GpQO QY1wy9XWn1vsvQlivSxDXrF6SaqwunqPhwqi4M9FTH9UMfCC1rPSox/eAegHg09Oxy0i rB7kSFh4NcMfcoX2qJQXZV83bw0j/B0LoqWrTygxpHvBrvz0dU4m0vNoJihDkbcMs/H5 jKJqWQfjujnbV/DPo2xWX4VgRreQiHg+q9r/MDMKzwSa9evedvHg84hvxIgr4fb2ylTM d04g== MIME-Version: 1.0 X-Received: by 10.42.137.202 with SMTP id z10mr11525295ict.37.1428797507346; Sat, 11 Apr 2015 17:11:47 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Sat, 11 Apr 2015 17:11:47 -0700 (PDT) Date: Sat, 11 Apr 2015 17:11:47 -0700 X-Google-Sender-Auth: SxNU6A1b7DU9itycciBBxUrkVug Message-ID: Subject: using libgpio to bitbang LCDs! From: Adrian Chadd To: "freebsd-embedded@freebsd.org" , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2015 00:11:48 -0000 Hi! I just ported an adafruit LCD driver to FreeBSD. This was a pretty trivial task: * convert C++ to C, which was done primarily to not rely on the arduino-isms; * use libgpio to bitbang the SPI bus needed to write to the LCD. It worked third time. First was "oh it runs on 5v power and 3.3v signaling", and I had it hooked up to 3.3. Second was "Oh, I haven't set the pins to be output pins yet." Third time worked - just slowly. However - using libgpio was just pleasant. Get a handle, set the pin config, set the pins high/low. It was pretty damned wonderful. It turns out that to fill the screen with individual pixel writes takes quite a few seconds pinning my AR9331 CPU doing ~ 190,000 syscalls a second. Ian's suggested something sensible - a bulk data ioctl() that can bit bang a series of GPIO pins in the kernel. Ie, one syscall, a big chunk of data with instructions and timings. The other interesting thing would be a kind of bulk pin set/get - ie, instead of doing rmw for one pin at a time, communicate down masks of pins to do together. There are some devices (eg these LCDs) that allow you to treat it as a 6800/8080 MCU and do 8 bit data reads/writes, so being able to do that via the GPIO interface would be nice. The arduino API doesn't do this, so people (and I'm not making this up) will bitshift a byte into different GPIO pin set/get, rather than use an 8 bit port as an 8 bit port. I'll put the code up soon in case anyone wants to start poking these embedded LCDs from FreeBSD. * = Carambola 2 (AR9331) with GPIO pins attached, to an Adafruit SSD1331 96x64 OLED display. From owner-freebsd-embedded@FreeBSD.ORG Sun Apr 12 01:00:59 2015 Return-Path: Delivered-To: embedded@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 73C56F31; Sun, 12 Apr 2015 01:00:59 +0000 (UTC) Received: from st11p00mm-asmtp003.mac.com (st11p00mm-asmtp003.mac.com [17.172.81.2]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A21DEE8; Sun, 12 Apr 2015 01:00:58 +0000 (UTC) Received: from akita.localnet (c-73-162-13-215.hsd1.ca.comcast.net [73.162.13.215]) by st11p00mm-asmtp003.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NMO00CQ05HEDJ00@st11p00mm-asmtp003.mac.com>; Sun, 12 Apr 2015 01:00:52 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-04-12_01:2015-04-10,2015-04-11,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=4 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1504120008 From: Rui Paulo To: freebsd-arch@freebsd.org Subject: Re: using libgpio to bitbang LCDs! Date: Sat, 11 Apr 2015 18:00:46 -0700 Message-id: <7527478.9HOi23WthO@akita> User-Agent: KMail/4.14.3 (FreeBSD/11.0-CURRENT; KDE/4.14.3; amd64; ; ) In-reply-to: References: MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset=us-ascii Cc: "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2015 01:00:59 -0000 On Saturday 11 April 2015 17:11:47 Adrian Chadd wrote: > Hi! > > I just ported an adafruit LCD driver to FreeBSD. This was a pretty trivial > task: > > * convert C++ to C, which was done primarily to not rely on the > arduino-isms; * use libgpio to bitbang the SPI bus needed to write to the > LCD. > > It worked third time. First was "oh it runs on 5v power and 3.3v > signaling", and I had it hooked up to 3.3. Second was "Oh, I haven't > set the pins to be output pins yet." Third time worked - just slowly. > > However - using libgpio was just pleasant. Get a handle, set the pin > config, set the pins high/low. It was pretty damned wonderful. > > It turns out that to fill the screen with individual pixel writes > takes quite a few seconds pinning my AR9331 CPU doing ~ 190,000 > syscalls a second. Ian's suggested something sensible - a bulk data > ioctl() that can bit bang a series of GPIO pins in the kernel. Ie, one > syscall, a big chunk of data with instructions and timings. Since this is an LCD, you probably want a way to export the GPIO bank via mmap with write-combining enabled. It's not really a safe operation as it could hang the GPIO driver, but it could be useful. > The other interesting thing would be a kind of bulk pin set/get - ie, > instead of doing rmw for one pin at a time, communicate down masks of > pins to do together. I think that's sensible and could be done via a separate (new) ioctl. -- Rui Paulo From owner-freebsd-embedded@FreeBSD.ORG Sun Apr 12 06:45:56 2015 Return-Path: Delivered-To: embedded@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 93617CA6; Sun, 12 Apr 2015 06:45:56 +0000 (UTC) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (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 58FA5301; Sun, 12 Apr 2015 06:45:56 +0000 (UTC) Received: by iebrs15 with SMTP id rs15so44535776ieb.3; Sat, 11 Apr 2015 23:45: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:content-type; bh=JRwVvgNvF81fcWRFUigX6ipMIrGM9KaAimL43dHSlpg=; b=AvUodDABkM38n4rmWqR1qLmBTgz2SEwxwzVOjFrAoeOUR+E+LpgziIA8BB8v4wyHJv 8S48OlykCcqOKu78t3ZA9V04ojB5HYlmPBn93GpGzDVJ7bixmph98hskRLCHfc/gAoyL yKVV8VyX3Ek+z3AQkxJgSyjmMM1a1NEk2aRX03a0avERDFyz1zedSIPy2qSBxa67X+PM cPPpus9khrRp+6n1j5s2v2c+RziB3oe7KkwjQrPpelg54TxKyI/9N5PkhlAJbV8VQ7Um Cd6Wwq2Ps/gnAy2mpthBLUou/yw7Kiv0IXX09Z3CmyLiRw/V3y9I3c3bqwTfQyZeExsj 2xSw== MIME-Version: 1.0 X-Received: by 10.107.136.25 with SMTP id k25mr12868628iod.88.1428821155725; Sat, 11 Apr 2015 23:45:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Sat, 11 Apr 2015 23:45:55 -0700 (PDT) In-Reply-To: References: Date: Sat, 11 Apr 2015 23:45:55 -0700 X-Google-Sender-Auth: ekqys6EhShTJJGi-tru3huDPINE Message-ID: Subject: Re: using libgpio to bitbang LCDs! From: Adrian Chadd To: "freebsd-embedded@freebsd.org" , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2015 06:45:56 -0000 Hi, The library source code and a demo program is available here: https://github.com/erikarn/freebsd-liblcd It includes the wiring needed to hook the example OLED board up (http://www.adafruit.com/products/684) to a Carambola 2 evaluation board. Anything you can get 5v and 5 GPIO pins from will work. (Well, as long as there's also libgpio / gpio API support for your device..) -adrian From owner-freebsd-embedded@FreeBSD.ORG Sun Apr 12 08:44:48 2015 Return-Path: Delivered-To: embedded@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 CEA3BA13; Sun, 12 Apr 2015 08:44:48 +0000 (UTC) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 8741C131; Sun, 12 Apr 2015 08:44:48 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YhDVO-0003fZ-Jj; Sun, 12 Apr 2015 11:44:38 +0300 Date: Sun, 12 Apr 2015 11:44:38 +0300 From: Slawa Olhovchenkov To: Adrian Chadd Subject: Re: using libgpio to bitbang LCDs! Message-ID: <20150412084438.GM1394@zxy.spb.ru> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: "freebsd-embedded@freebsd.org" , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2015 08:44:48 -0000 On Sat, Apr 11, 2015 at 05:11:47PM -0700, Adrian Chadd wrote: > Hi! > > I just ported an adafruit LCD driver to FreeBSD. This was a pretty trivial task: > > * convert C++ to C, which was done primarily to not rely on the arduino-isms; > * use libgpio to bitbang the SPI bus needed to write to the LCD. > > It worked third time. First was "oh it runs on 5v power and 3.3v > signaling", and I had it hooked up to 3.3. Second was "Oh, I haven't > set the pins to be output pins yet." Third time worked - just slowly. > > However - using libgpio was just pleasant. Get a handle, set the pin > config, set the pins high/low. It was pretty damned wonderful. > > It turns out that to fill the screen with individual pixel writes > takes quite a few seconds pinning my AR9331 CPU doing ~ 190,000 > syscalls a second. Ian's suggested something sensible - a bulk data > ioctl() that can bit bang a series of GPIO pins in the kernel. Ie, one > syscall, a big chunk of data with instructions and timings. May be best choise is write() or netmap-like interface? From owner-freebsd-embedded@FreeBSD.ORG Sun Apr 12 14:45:42 2015 Return-Path: Delivered-To: embedded@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 153202B0; Sun, 12 Apr 2015 14:45:42 +0000 (UTC) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::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 AF13AA8D; Sun, 12 Apr 2015 14:45:41 +0000 (UTC) Received: by wgyo15 with SMTP id o15so57808806wgy.2; Sun, 12 Apr 2015 07:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8pmKJyeQFOOPvIrWj0XlC/fgNFJbqig+ThhkAv/E9DQ=; b=NoDCsNhIpQ+5T1RExsZk2wsqwMe7Dr5oDM9m4xryKvwgS8pAFrKTGMZJKF27NmZyvw 7ptDFEiGfVAdH3hOySxyq8USnS2lgCnKCV46XWZ/3vlZRiUAUCsi3Drf7G3Y0UBYuJ/0 1D/pNjzNcNVYc1UUlwja2P5QdFZlRbypR5zPlgsBOiInG5DB+kynfRymVlE1i3MVZM9R t9QxhwjhdrKNSzKMXrSTb9VQTE8Q491YYVw9xKZ8rki+A9XqUIIbtEhY47+54WILOaks I7jIMk2R2QH+q2eg89v8Ler13GZdxlDB5gAOOsFKXm9TzYOg0cCPPoO5TP3D9xTKmkHg Sp1Q== MIME-Version: 1.0 X-Received: by 10.180.73.198 with SMTP id n6mr11143159wiv.3.1428849940229; Sun, 12 Apr 2015 07:45:40 -0700 (PDT) Received: by 10.180.195.106 with HTTP; Sun, 12 Apr 2015 07:45:40 -0700 (PDT) In-Reply-To: <7527478.9HOi23WthO@akita> References: <7527478.9HOi23WthO@akita> Date: Sun, 12 Apr 2015 11:45:40 -0300 Message-ID: Subject: Re: using libgpio to bitbang LCDs! From: Luiz Otavio O Souza To: Rui Paulo Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-embedded@freebsd.org" , freebsd-arch@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2015 14:45:42 -0000 On 11 April 2015 at 22:00, Rui Paulo wrote: > On Saturday 11 April 2015 17:11:47 Adrian Chadd wrote: >> Hi! >> >> I just ported an adafruit LCD driver to FreeBSD. This was a pretty trivial >> task: >> >> * convert C++ to C, which was done primarily to not rely on the >> arduino-isms; * use libgpio to bitbang the SPI bus needed to write to the >> LCD. >> >> It worked third time. First was "oh it runs on 5v power and 3.3v >> signaling", and I had it hooked up to 3.3. Second was "Oh, I haven't >> set the pins to be output pins yet." Third time worked - just slowly. >> >> However - using libgpio was just pleasant. Get a handle, set the pin >> config, set the pins high/low. It was pretty damned wonderful. >> >> It turns out that to fill the screen with individual pixel writes >> takes quite a few seconds pinning my AR9331 CPU doing ~ 190,000 >> syscalls a second. Ian's suggested something sensible - a bulk data >> ioctl() that can bit bang a series of GPIO pins in the kernel. Ie, one >> syscall, a big chunk of data with instructions and timings. > > Since this is an LCD, you probably want a way to export the GPIO bank via mmap > with write-combining enabled. It's not really a safe operation as it could > hang the GPIO driver, but it could be useful. > >> The other interesting thing would be a kind of bulk pin set/get - ie, >> instead of doing rmw for one pin at a time, communicate down masks of >> pins to do together. > > I think that's sensible and could be done via a separate (new) ioctl. I've patches for this (bank read and writing), it is pretty simple and should not block other approaches (mmap, bulk transfers, ...). Luiz From owner-freebsd-embedded@FreeBSD.ORG Tue Apr 14 08:04:00 2015 Return-Path: Delivered-To: freebsd-embedded@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 58A60B06 for ; Tue, 14 Apr 2015 08:04:00 +0000 (UTC) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::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 1154C7E5 for ; Tue, 14 Apr 2015 08:04:00 +0000 (UTC) Received: by qkgx75 with SMTP id x75so4425621qkg.1 for ; Tue, 14 Apr 2015 01:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=QZKNP6erv1h9IV6nT7MLnMpX8GWhW1rLRn4k0uPP8Ok=; b=TnrYoPVzrcMyWhdr6WVo73DMdggUxrpjDDy7HjbQsBmB2gl5+m6V49ZYaCj8PRB+5F yzWtDs1ccMdq+fvMiE5GO3t8gGJiNaYQdmvub/1yFcybApqqL8IEXeNySIC+LOuPJviA +2wXT0UUv6wLHSsKgGtpjEjDUkMgvSNF0jgULlkLQ+tkuS8f6P2y+XM+FKYp/OnobM8d +TUv7SAEC/It2uH7qXexxTJ/ugaH8Pt85m+ybWDoFvAB7ykZpcQAjjh7jYGrsVv3RM00 GtpUN3VsW+/gieI7YAAPcPridXLwwdL386trhfEon9ug/CubYjrzwtLHrLOwuWz17wT2 UPug== MIME-Version: 1.0 X-Received: by 10.182.60.197 with SMTP id j5mr15199279obr.85.1428998638864; Tue, 14 Apr 2015 01:03:58 -0700 (PDT) Received: by 10.76.36.67 with HTTP; Tue, 14 Apr 2015 01:03:58 -0700 (PDT) Date: Tue, 14 Apr 2015 01:03:58 -0700 Message-ID: Subject: Crochet Patch Files From: Reza Nikoopour To: "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2015 08:04:00 -0000 Hey guys, I'm trying to make some patch files for Crochet so I can have it build the latest version of U-Boot. I cloned my git repository of U-Boot then I changed the files I needed. After that I ran < git diff > and created three different files containing the patches ( https://github.com/rnikoopour/crochet/tree/Crochet-RPI-UBoot2015/board/RaspberryPi/files). Then I put the files into < boards/RaspberryPI/files >. When I attempt to build it fails on the patch files and I get the following error message in _.uboot.patch.log: Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |diff --git a/Makefile b/Makefile > |index 36a9a28..0f53d64 100644 > |--- a/Makefile > |+++ b/Makefile > -------------------------- > Patching file Makefile using Plan A... > Hunk #1 failed at 666. > 1 out of 1 hunks failed--saving rejects to Makefile.rej > done > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |diff --git a/Makefile b/Makefile > |index 36a9a28..0f53d64 100644 > |--- a/Makefile > |+++ b/Makefile > -------------------------- > Patching file Makefile using Plan A... > Hunk #1 failed at 666. > 1 out of 1 hunks failed--saving rejects to Makefile.rej > done > Would anyone be able to point me in the right direction for generating the patch files? Thanks, Reza