From wookey@wookware.org Sat Feb 20 10:43:11 2010
Received: from dream ([213.165.225.113] helo=dream.aleph1.co.uk)
	by stoneboat.aleph1.co.uk with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <wookey@wookware.org>) id 1Nimnh-0001BQ-E4
	for balloon@balloonboard.org; Sat, 20 Feb 2010 10:43:11 +0000
Received: from wookey by dream.aleph1.co.uk with local (Exim 4.69)
	(envelope-from <wookey@wookware.org>) id 1NimxZ-0000gm-4z
	for balloon@balloonboard.org; Sat, 20 Feb 2010 10:53:17 +0000
Date: Sat, 20 Feb 2010 10:53:17 +0000
From: Wookey <wookey@wookware.org>
To: balloon@balloonboard.org
Message-ID: <20100220105315.GV24190@dream.aleph1.co.uk>
Mail-Followup-To: balloon@balloonboard.org
References: <201002171102.26525.manningc2@actrix.gen.nz>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201002171102.26525.manningc2@actrix.gen.nz>
Organization: Aleph One Ltd
User-Agent: Mutt/1.5.18 (2008-05-17)
X-SA-Exim-Connect-IP: 213.165.225.113
X-SA-Exim-Mail-From: wookey@wookware.org
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=4.5 tests=AWL,BAYES_00 autolearn=no
	version=3.2.5
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Subject: Re: [Balloon] Most recent known good for FPGA
X-BeenThere: balloon@balloonboard.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: Balloon List <balloon.balloonboard.org>
List-Unsubscribe: <http://balloonboard.org/mailman/options/balloon>,
	<mailto:balloon-request@balloonboard.org?subject=unsubscribe>
List-Archive: <http://balloonboard.org/lurker/list/balloon.html>
List-Post: <mailto:balloon@balloonboard.org>
List-Help: <mailto:balloon-request@balloonboard.org?subject=help>
List-Subscribe: <http://balloonboard.org/mailman/listinfo/balloon>,
	<mailto:balloon-request@balloonboard.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Feb 2010 10:43:11 -0000

+++ Charles Manning [2010-02-17 11:02 +1300]:
> It seems that the FPGA balloon gets a bit less attention than the CLPD version 
> and Wookey warned me off trying the latest a few days back. I tried something 
> older but that fails to build.
> 
> What's the most recent version of svn that:
> * Supports FPGA.
> * Has an FPGA binary file so there is no need to play with Xilinx tools
> * Builds, boots and does healthy things?

It's taken a while to work out the answer to this question, but I
think I've found it.

The old FPGA stuff that was actually released:
http://balloonboard.org/files/balloon3/distro/test-v0.3/
is old-arm, rather than eabi.
It corresponds to svn r260 
I tried going back and rebuilding this, but it doesn't work, and only
knows how to build old arm ABI binaries anyway.

So I moved on to just before the VLIO changes. : r839 which only
requires one patch to build: to build with a vaguely recent version of
glibc installed you need to either add the patch below to the initrd
quilt series (copy it into initrd/patches and add getline.patch to the
end of the series file) or let it build until it barfs, with a
'getline redefined' whinge then apply the patch manually. Index:
buildroot/build_arm/linux-2.6.20.4/scripts/unifdef.c
===================================================================
--- buildroot.orig/build_arm/linux-2.6.20.4/scripts/unifdef.c
2010-02-20 01:18:40.000000000 +0000 +++
buildroot/build_arm/linux-2.6.20.4/scripts/unifdef.c 2010-02-20
01:19:01.000000000 +0000 @@ -206,7 +206,7 @@ static void error(const
char *); static int findsym(const char *); static void
flushline(bool); -static Linetype getline(void); +static Linetype
get_line(void); static Linetype ifeval(const char **); static void
ignoreoff(void); static void ignoreon(void); @@ -512,7 +512,7 @@
 
 	for (;;) {
 		linenum++;
-		lineval = getline();
+		lineval = get_line();
 		trans_table[ifstate[depth]][lineval]();
 		debug("process %s -> %s depth %d",
 		    linetype_name[lineval],
@@ -526,7 +526,7 @@
  * help from skipcomment().
  */
 static Linetype
-getline(void)
+get_line(void)
 {
 	const char *cp;
 	int cursym;



If you want to avoid the downloads for both debian and emdebian
rootfs's then edit rootfs/Makefile and set 
SUBDIRS = emdebian (or debian) so you only get one.

There is another minor blip: 'make dist' gives an error on the last
file it was going to copy anyway - that doesn't matter, it's the cpld
xsvf file only).

Then you should be able to upload with 
cd ../distro
utils/bbl --bootldr --fpga --installer
To upload bootloader, fpga image and nor-kernel/initrd

That should be sufficient to set you on your way whilst we get to the
bottom of the HEAD/FPGA issue. 

'It works for me' :-)
Feel free to grumble if you find other issues.

Wookey
-- 
Principal hats:  iEndian - Balloonboard - Toby Churchill - Emdebian
http://wookware.org/


