Difference between revisions of "Build Environment Ubuntu 8.10"

From Gumstix User Wiki
Jump to: navigation, search
(www.1.dshs.wa.gov childcare providers http://hdezou.xhost.ro/wa.gov-dshs.html wa.gov dshsj bbs.xhostar.com sandraimg http://hdezou.xhost.ro/bt-com-billing-payments.html bt com billing paymentsst. loui)
(Undo)
Line 1: Line 1:
www.1.dshs.wa.gov childcare providers http://hdezou.xhost.ro/wa.gov-dshs.html wa.gov dshsj bbs.xhostar.com sandraimg http://hdezou.xhost.ro/bt-com-billing-payments.html bt com billing paymentsst. louis post dispatch http://hdezou.xhost.ro/britax-child-safety-inc.html britax child safety incchildcare employment st. louis http://hdezou.xhost.ro/child-super-models.comn.html child super models.comnwa.gov dshs http://hdezou.xhost.ro/james-l.-child-mid-ohio.html james l. child mid ohiowww.cpcc.medical billing http://hdezou.xhost.ro/florida-wind-incentives.org.html florida wind incentives.orgy100.7 whyi florida http://hdezou.xhost.ro/myflorida.com-accessfl.html myflorida.com accessflmyflorida.com access http://hdezou.xhost.ro/remote.ahch.org.html remote.ahch.orgremote email access mn.rr.com http://hdezou.xhost.ro/st.-louis-mardi-gras.html st. louis mardi graswww.myfloridacom http://hdezou.xhost.ro/www.efile.com.html www.efile.com
+
This the current set-up for Ubuntu 8.10 with file modifications as described [http://www.nabble.com/Ubuntu-8.10-and-Open-Embeded-td21136352.html on this thread]. gumstix-oe version is 318.
 +
 
 +
== Setup Build Environment ==
 +
1) Get Ubuntu linux 8.10, and install it on your computer; you can install a vmware version of Ubuntu too, but it will be slow during the building process.
 +
 
 +
Reconfigure sh to point to bash, not dash:
 +
 
 +
  sudo dpkg-reconfigure dash
 +
 
 +
Answer no when asked whether you want to install dash as /bin/sh.  
 +
 
 +
2) Install (build-essential, help2man, diffstat, texi2html, texinfo, libncurses5-dev, cvs, gawk, python-dev, python-pysqlite2, python-psyco, ckermit, lrzsz, subversion) by using apt-get. i.e:
 +
sudo apt-get install build-essential help2man diffstat texi2html texinfo libncurses5-dev cvs gawk python-dev python-pysqlite2 python-psyco ckermit lrzsz subversion
 +
 
 +
3) Download the source from svn, caching the source code
 +
mkdir ~/gumstix
 +
cd ~/gumstix
 +
<nowiki>svn co https://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe</nowiki>
 +
cat gumstix-oe/extras/profile >> ~/.bashrc
 +
sudo groupadd oe
 +
sudo usermod -a -G oe YOUR_CURRENT_USERNAME
 +
sudo mkdir /usr/share/sources
 +
sudo chgrp oe /usr/share/sources
 +
sudo chmod 0775 /usr/share/sources
 +
sudo chmod ug+s /usr/share/sources
 +
 
 +
4) Downgrade to gcc-4.1 and g++-4.1 and change the links:
 +
 
 +
sudo aptitude install gcc-4.1 g++-4.1
 +
sudo ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
 +
sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++
 +
 
 +
Check the links are correct using:
 +
 
 +
ls -l /usr/bin/gcc
 +
ls -l /usr/bin/g++
 +
 
 +
5) Log out and log in again.
 +
 
 +
6) Build the basic image, it will fail with an error in dbus:
 +
 
 +
bitbake gumstix-basic-image
 +
 
 +
Edit <code>gumstix/gumstix-oe/tmp/work/i686-linux/dbus-native-1.0.1-r0/dbus-1.0.1/dbus/dbus-sysdeps-unix.c</code>
 +
 
 +
Add this struct,
 +
 
 +
<code><pre>
 +
struct ucred {
 +
  unsigned int pid;
 +
  unsigned int uid;
 +
  unsigned int gid;
 +
};
 +
</pre></code>
 +
 
 +
after the macros.
 +
 
 +
7) Build the basic image, it will fail with an error in sumversion:
 +
 
 +
bitbake gumstix-basic-image
 +
 
 +
Edit <code>gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/scripts/mod/sumversion.c</code>
 +
 
 +
Add this line,
 +
 
 +
  #include <limits.h>
 +
 
 +
after all of the other includes.
 +
 
 +
8) Build the basic image again, this time it should work:
 +
 
 +
bitbake gumstix-basic-image
 +
 
 +
9) If everything builds ok, it could be a good idea to modify the dbus-sysdeps-unix.c and sumversion.c files is their respective packages in /usr/share/sources as otherwise everytime you do a rebuild they will be wiped.
 +
 
 +
[[Category:How_to_-_general]]
 +
[[Category:How_to_-_Ubuntu]]

Revision as of 20:26, 27 September 2009

This the current set-up for Ubuntu 8.10 with file modifications as described on this thread. gumstix-oe version is 318.

Setup Build Environment

1) Get Ubuntu linux 8.10, and install it on your computer; you can install a vmware version of Ubuntu too, but it will be slow during the building process.

Reconfigure sh to point to bash, not dash:

 sudo dpkg-reconfigure dash

Answer no when asked whether you want to install dash as /bin/sh.

2) Install (build-essential, help2man, diffstat, texi2html, texinfo, libncurses5-dev, cvs, gawk, python-dev, python-pysqlite2, python-psyco, ckermit, lrzsz, subversion) by using apt-get. i.e:

sudo apt-get install build-essential help2man diffstat texi2html texinfo libncurses5-dev cvs gawk python-dev python-pysqlite2 python-psyco ckermit lrzsz subversion

3) Download the source from svn, caching the source code

mkdir ~/gumstix 
cd ~/gumstix 
svn co https://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe
cat gumstix-oe/extras/profile >> ~/.bashrc
sudo groupadd oe
sudo usermod -a -G oe YOUR_CURRENT_USERNAME
sudo mkdir /usr/share/sources
sudo chgrp oe /usr/share/sources
sudo chmod 0775 /usr/share/sources
sudo chmod ug+s /usr/share/sources

4) Downgrade to gcc-4.1 and g++-4.1 and change the links:

sudo aptitude install gcc-4.1 g++-4.1
sudo ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
sudo ln -sf /usr/bin/g++-4.1 /usr/bin/g++

Check the links are correct using:

ls -l /usr/bin/gcc
ls -l /usr/bin/g++

5) Log out and log in again.

6) Build the basic image, it will fail with an error in dbus:

bitbake gumstix-basic-image

Edit gumstix/gumstix-oe/tmp/work/i686-linux/dbus-native-1.0.1-r0/dbus-1.0.1/dbus/dbus-sysdeps-unix.c

Add this struct,

struct ucred { 
   unsigned int pid; 
   unsigned int uid; 
   unsigned int gid; 
};

after the macros.

7) Build the basic image, it will fail with an error in sumversion:

bitbake gumstix-basic-image

Edit gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/scripts/mod/sumversion.c

Add this line,

 #include <limits.h> 

after all of the other includes.

8) Build the basic image again, this time it should work:

bitbake gumstix-basic-image

9) If everything builds ok, it could be a good idea to modify the dbus-sysdeps-unix.c and sumversion.c files is their respective packages in /usr/share/sources as otherwise everytime you do a rebuild they will be wiped.