Re: [Balloon] Most recent known good for FPGA

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Wookey
Date:  
To: Charles Manning
CC: balloon
New-Topics: [Balloon] balloon HEAD working for FPGA
Subject: Re: [Balloon] Most recent known good for FPGA
+++ Charles Manning [2010-03-03 14:54 +1300]:
> On Saturday 20 February 2010 23:53:17 Wookey wrote:



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



> OK... having another go....


Sorry - missed this mail yesterday.

> My goals are this: Take the FPGA balloon I have here and build things to the
> stage where I can run a shell and basic busybox commands and have enough
> development environment where I can build and run a kernel with a changed
> yaffs for yaffs testing.


> I'm following the instructions on
> www.balloonboard.org/balloonwiki.SoftwareBuilding. I hope that is the right
> songsheet.


yep

> Having tried ToT and r 945 which failed to build completely I take it from the
> above that r 839 is the magic. So let's give that a go.
>
> $ svn update -r 839


yep (for the time being)


> which fell over in a heap because the bit that fetches yaffs2does a wget of
> the tarball and untars (which passes) and then still tries to do a cvs export
> which fails due to the files being in the way.


Ah yes - that is fixed in later revisions of the build system.

> After much building, things fall over where they did last time I tried....
>
> make[2]: Entering directory `/opt/balloon/trunk/rootfs/debian'
> mkdir -p ../../../build/rootfs/debian
> #make arm/armel rootfs with debootstrap
> #note - there should be a way of putting in debs needed by balloon3-config 
> automatically...(dash,lrzsz,)
> #    fakeroot /usr/sbin/debootstrap --verbose --arch 
> armel --include=udev,pcmciautils,ntpdate,dash,avahi-daemon,libdaemon0,libavahi-common3,libavahi-core4,avahi-autoipd,libnss-mdns,libdbus-1-3,dbus,lrzsz 
> \
>     #in order to use fakeroot we have to clean out rootfs first 
> (cd ../../../build/rootfs/debian && rm -rf balloon3-rootfs) 
> fakeroot /usr/sbin/debootstrap --verbose --arch 
> armel --include=udev,pcmciautils,ntpdate,dash,lrzsz,wireless-tools \
>         --foreign lenny ../../../build/rootfs/debian/balloon3-rootfs 
> http://ftp.uk.debian.org/debian/ 
> I: Retrieving Release
> I: Retrieving Packages
> .....
> I: Extracting bsdutils...
> I: Extracting mount...
> I: Extracting util-linux...
> I: Extracting zlib1g...
> #copy balloon-config package into apt cache, ready for 2nd stage
> #hack debootstrap file so that balloon3-config gets configured
> cp 
> balloon3-config_*_all.deb ../../../build/rootfs/debian/balloon3-rootfs/var/cache/apt/archives/
> #sed -i -e 's/$/ 
> balloon3-config/' ../../../build/rootfs/debian/balloon3-rootfs/debootstrap/required
> #fix up rootfs enough to boot it and do 2nd-stage config 
> chmod +x rootfs-config
> fakeroot ./rootfs-config ../../../build/rootfs/debian/balloon3-rootfs 
> balloon3-config/files
> + '[' '' = ../../../build/rootfs/debian/balloon3-rootfs ']'
> + '[' -e ../../../build/rootfs/debian/balloon3-rootfs ']'
> + ROOTFS=../../../build/rootfs/debian/balloon3-rootfs
> + '[' / = ROOTFS ']'
> + '[' '' = balloon3-config/files ']'
> + '[' -d balloon3-config/files ']'
> + CONFIG=balloon3-config/files
> + '[' -e config ']'
> + . config
> ./rootfs-config: line 34: .: config: file not found
> make[2]: *** [../../../build/rootfs/debianstage1root.tgz] Error 1
> make[2]: Leaving directory `/opt/balloon/trunk/rootfs/debian'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/opt/balloon/trunk/rootfs'
> make: *** [all] Error 1

>
> Any hints?


This is the debian rootfs build failing. You don't need a debian
rootfs for your purposes - if you are going to be messing with nand
you probably dson't want anything important in there? Just using the
NOR kernel+initrd is probably sufficient? Which you have already built.

To skip the error, edit rootfs/Makefile and set
> > SUBDIRS = emdebian

so it doesn't try the debian build at all you only get one.

or even SUBDIRS = ""
so it doesn't build either.

You should already have the build/zImageInitrd kernel+initrd that you
need, but doing the above and make; make dist should make a tidy
release ready for a utils/bbl --installer upload

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