I've been working on building Bering-uClibc from scratch for a WRAP embedded board. 
Here is my step-by-step cheat-sheet on how to do it. Caveat: I'm not an expert and 
this may not be right and probably won't work for you anyway. I'm posting it in the 
hope that it will guide others in the right direction. Please, please correct any 
mistakes!
        Thorsten

How to build Bering-uclibc from sources using buildtool
=======================================================
This how-to was put together on a 'vanilla' RedHat
Enterprise Linux 3.0 server.

# Fetch the whole shebang
# connect to sourceforge CVS
setenv CVSROOT :pserver:[EMAIL PROTECTED]:2401/cvsroot/leaf
cvs login
# [empty password]

# show modules database
cvs co -c

# fetch bering uClibc sources
cvs co bering-uclibc_source

#
# Install some required stuff that probably ain't there...
#

# install Config::General
perl -MCPAN -e 'install Config::General'

# install libCVS (note that 'make test' may report errors,
# so either ignore or don't run it, implications unknown but
# other report same problems)
# fetch from http://libcvs.cvshome.org
wget https://libcvs.cvshome.org/files/documents/842/386/VCS-LibCVS-1.0001.tar.gz
# build it:
./Makefile.PL
make
make install

# comment out lrpstat (it requires java) which appears to be
# a pain to install (needs multiple versions to succeed):
# in conf/global.cfg search for java and
# comment-out the whole package (7-8 lines)

#
# Fetch all sources and build
#

./buildtool.pl source
# if you get an error, just repeat the command,
# chances are it's a fetch that failed
# (sourceforge refuses connections sometimes, it seems)

# apply custom patches
# in linux subdir
wget -O kbc_option_2420.patch 
'http://cvs.sourceforge.net/viewcvs.py/*checkout*/leaf/devel/etitl/kernel/kbc_option_2420.patch?rev=1.1'
(cd linux; patch -p1 <../kbc_option_2420.patch)

# build all
./buildtool.pl build

# if it dies building syslinux
mkdir staging/usr/sbin/
./buildtool.pl build

#
# Create the majority of packages
#
for i in `cd build; echo *`; do ./buildpacket.pl --package $i --packager [EMAIL 
PROTECTED]; done

# get initrd.lrp, root.lrp packages
# note that to boot off CF we need initrd_ide_cd.lrp (rename on CF)
# from <http://leaf.sourceforge.net/mod.php?mod=userpage&menu=91017&page_id=51>

# enable getty on ttyS0
# unpack the etc.lrp
tar --same-owner -xpzf etc.lrp
mv etc.lrp etc-orig.lrp
# edit etc/inittab and switch things around at the end of the file
tar czf etc.lrp etc var

#
# Create image for CF card on WinXP where syslinux doesn't work...
# On a linux box:
dd if=/dev/zero of=img200MB bs=1k count=200000
/sbin/mkfs.msdos img200MB 
syslinux img200MB 
# Copy to windows box and use PhysDiskWrite

# copy initrd.lrp, root.lrp, etc.lrp, and other lrps to the CF card

--- Thorsten 10/3/2004



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to