<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.gumstix.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cheshirekow</id>
		<title>Gumstix User Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.gumstix.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cheshirekow"/>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php/Special:Contributions/Cheshirekow"/>
		<updated>2026-05-17T23:24:46Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.25.3</generator>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Ubuntu_9.10&amp;diff=3999</id>
		<title>Ubuntu 9.10</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Ubuntu_9.10&amp;diff=3999"/>
				<updated>2009-11-13T18:45:04Z</updated>
		
		<summary type="html">&lt;p&gt;Cheshirekow: moved Ubuntu 9.10 to Build Environment Ubuntu 9.10:&amp;amp;#32;Following previous naming conventions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Build Environment Ubuntu 9.10]]&lt;/div&gt;</summary>
		<author><name>Cheshirekow</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Build_Environment_Ubuntu_9.10&amp;diff=3998</id>
		<title>Build Environment Ubuntu 9.10</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Build_Environment_Ubuntu_9.10&amp;diff=3998"/>
				<updated>2009-11-13T18:45:03Z</updated>
		
		<summary type="html">&lt;p&gt;Cheshirekow: moved Ubuntu 9.10 to Build Environment Ubuntu 9.10:&amp;amp;#32;Following previous naming conventions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;Build Environment Ubuntu 9.10 (Karmic Koala)&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Despite the assertion on [[Build_Environment_Ubuntu_9.04]], I was unable to&lt;br /&gt;
build the basic gumstix image using the svn trunk. It seems the trunk uses&lt;br /&gt;
some deprecated features of gcc. I would suggest trying to change symbolic &lt;br /&gt;
links for gcc, g++, etc to point to  version 4.1 instead of 4.4. If that works,&lt;br /&gt;
then all is good. As an alternative, what you can do is install an older &lt;br /&gt;
version of Ubuntu that is known to work in a &lt;br /&gt;
[http://en.wikipedia.org/wiki/Chroot chroot]. Any program that&lt;br /&gt;
is run in the chroot cannot &amp;quot;see&amp;quot; the real root file system, so all of the&lt;br /&gt;
build tools it find will be the ones installed in that chroot directory. This&lt;br /&gt;
HOWTO describes how to setup the build system with such a method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Install debootstrap chroot&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first thing we need to do is install the chroot program that we'll be using.&lt;br /&gt;
You can install these programs with the following two commands&lt;br /&gt;
&lt;br /&gt;
        sudo apt-get install dchroot&lt;br /&gt;
        sudo apt-get install debootstrap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Create a Chroot Directory for Older Distro&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to create a new directory that will act as the root for the older&lt;br /&gt;
distribution's file system. Do this with the following command&lt;br /&gt;
&lt;br /&gt;
        sudo mkdir /var/chroot&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Edit Configuration&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now edit the configuration file for the chroot program. The file is found&lt;br /&gt;
in /etc/schroot/schroot.conf, so open it with the following commands&lt;br /&gt;
&lt;br /&gt;
        cd /etc/schroot&lt;br /&gt;
        sudo gedit schroot.conf&lt;br /&gt;
&lt;br /&gt;
Since the build tools from the Gutsy distribution are known to work, I opted&lt;br /&gt;
to install that distribution in my chroot. So add the following lines to the&lt;br /&gt;
end of schroot.conf, replacing &amp;quot;YourUserName&amp;quot; with your actual user name&lt;br /&gt;
&lt;br /&gt;
        [gutsy]&lt;br /&gt;
        description=Ubuntu 7.10 (Gutsy Gibbon)&lt;br /&gt;
        location=/var/chroot&lt;br /&gt;
        priority=3&lt;br /&gt;
        users=YourUserName&lt;br /&gt;
        groups=sbuild&lt;br /&gt;
        root-groups=root&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install Gutsy &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to install the older distribution into this chroot. Do this with &lt;br /&gt;
the following command&lt;br /&gt;
&lt;br /&gt;
        sudo debootstrap --variant=buildd --arch i386 gutsy /var/chroot/ http://old-releases.ubuntu.com/ubuntu&lt;br /&gt;
&lt;br /&gt;
If you would like to use a different distribution, just change &amp;quot;gutsy&amp;quot; to &lt;br /&gt;
whichever distribution you want. Note you may have to use archives.ubuntu.com&lt;br /&gt;
if the distribution isn't that old.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Login to Gutsy &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No login to the chroot-ed distribution with&lt;br /&gt;
&lt;br /&gt;
        sudo chroot /var/chroot&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install Dependencies &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Below is a list of all the dependencies I had to install in order to get &lt;br /&gt;
bitbake to make the gumstix-basic-image. wget and groff weren't reported&lt;br /&gt;
by bitbake as required packages but I encountered build errors if they weren't&lt;br /&gt;
present. &lt;br /&gt;
&lt;br /&gt;
        apt-get install help2man &lt;br /&gt;
        apt-get install diffstat &lt;br /&gt;
        apt-get install texi2html &lt;br /&gt;
        apt-get install cvs &lt;br /&gt;
        apt-get install subversion &lt;br /&gt;
        apt-get install bzip2 &lt;br /&gt;
        apt-get install gawk&lt;br /&gt;
        apt-get install texinfo         # makeinfo command&lt;br /&gt;
        apt-get install wget&lt;br /&gt;
        apt-get install groff           # nroff command (item 1059)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Download Build Files &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can download the build environment from gumstix. First create a&lt;br /&gt;
directory to download them into. Note that we're still in the chroot-ed&lt;br /&gt;
environment so when we say &amp;quot;/home/YourUserName&amp;quot; it will actually be installed &lt;br /&gt;
in &amp;quot;/var/chroot/home/YourUserName&amp;quot;. As always, replace &amp;quot;YourUserName&amp;quot; with &lt;br /&gt;
your actual user name.&lt;br /&gt;
&lt;br /&gt;
        mkdir /home/YourUserName&lt;br /&gt;
        cd /home/YourUserName&lt;br /&gt;
        mkdir gumstix&lt;br /&gt;
        cd gumstix&lt;br /&gt;
&lt;br /&gt;
Then we can download the environment from subversion&lt;br /&gt;
&lt;br /&gt;
        svn co https://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Make a &amp;quot;new&amp;quot; user &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can't run bitbake as root so we need to create a user in this chroot. I &lt;br /&gt;
suggest using the same user name that you use in your &amp;quot;real&amp;quot; system.&lt;br /&gt;
&lt;br /&gt;
        useradd  YourUserName&lt;br /&gt;
        passwd  YourUserName&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Edit extras/profile &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you installed into a directory other than ~/gumstix/gumstix-oe then you'll&lt;br /&gt;
need to edit a line in extras/profile to point to the right directory&lt;br /&gt;
&lt;br /&gt;
        gedit gumstix-oe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Setup the Environment &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To setup the environment so that the bitbake install script can find everything&lt;br /&gt;
correctly we need to execute the profile script&lt;br /&gt;
&lt;br /&gt;
        . /home/YourUserName/gumstix/gumstix-oe/extras/profile&lt;br /&gt;
or&lt;br /&gt;
        source /home/YourUserName/gumstix/gumstix-oe/extras/profile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install the Included Bitbake &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can install bitbake with the setup script. &lt;br /&gt;
&lt;br /&gt;
        cd /home/YourUserName/gumstix/gumstix-oe/bitbake&lt;br /&gt;
        ./setup.py install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Create Source Code Cache &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to create the &amp;quot;global&amp;quot; source code cache for the chroot system. Start&lt;br /&gt;
by creating a group called &amp;quot;oe&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        sudo groupadd oe&lt;br /&gt;
&lt;br /&gt;
Then add yourself to it&lt;br /&gt;
&lt;br /&gt;
        sudo usermod -a -G oe YourUserName&lt;br /&gt;
&lt;br /&gt;
Then create the directory for caching source code&lt;br /&gt;
&lt;br /&gt;
        sudo mkdir /usr/share/sources&lt;br /&gt;
        sudo chgrp oe /usr/share/sources&lt;br /&gt;
        sudo chmod 0775 /usr/share/sources&lt;br /&gt;
        sudo chmod ug+s /usr/share/sources&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Login &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can't run bitbake as root so let's login&lt;br /&gt;
&lt;br /&gt;
        su - YourUserName&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Setup Build Environment &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to setup the build environment again by executing the profile script.&lt;br /&gt;
&lt;br /&gt;
        cd gumstix/gumstix-oe&lt;br /&gt;
        . extras/profile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Edit auto.conf &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If building for something older than verdex, we need to edit the auto.conf &lt;br /&gt;
file.&lt;br /&gt;
&lt;br /&gt;
        gedit conf/auto.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Build Basic Image &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And now we're ready to build the basic image. &lt;br /&gt;
&lt;br /&gt;
        bitbake gumstix-basic-image&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Cheshirekow</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Build_Environment_Ubuntu_9.10&amp;diff=3997</id>
		<title>Build Environment Ubuntu 9.10</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Build_Environment_Ubuntu_9.10&amp;diff=3997"/>
				<updated>2009-11-13T18:44:19Z</updated>
		
		<summary type="html">&lt;p&gt;Cheshirekow: Added to category How_to_-_Ubuntu&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;Build Environment Ubuntu 9.10 (Karmic Koala)&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Despite the assertion on [[Build_Environment_Ubuntu_9.04]], I was unable to&lt;br /&gt;
build the basic gumstix image using the svn trunk. It seems the trunk uses&lt;br /&gt;
some deprecated features of gcc. I would suggest trying to change symbolic &lt;br /&gt;
links for gcc, g++, etc to point to  version 4.1 instead of 4.4. If that works,&lt;br /&gt;
then all is good. As an alternative, what you can do is install an older &lt;br /&gt;
version of Ubuntu that is known to work in a &lt;br /&gt;
[http://en.wikipedia.org/wiki/Chroot chroot]. Any program that&lt;br /&gt;
is run in the chroot cannot &amp;quot;see&amp;quot; the real root file system, so all of the&lt;br /&gt;
build tools it find will be the ones installed in that chroot directory. This&lt;br /&gt;
HOWTO describes how to setup the build system with such a method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Install debootstrap chroot&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first thing we need to do is install the chroot program that we'll be using.&lt;br /&gt;
You can install these programs with the following two commands&lt;br /&gt;
&lt;br /&gt;
        sudo apt-get install dchroot&lt;br /&gt;
        sudo apt-get install debootstrap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Create a Chroot Directory for Older Distro&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to create a new directory that will act as the root for the older&lt;br /&gt;
distribution's file system. Do this with the following command&lt;br /&gt;
&lt;br /&gt;
        sudo mkdir /var/chroot&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Edit Configuration&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now edit the configuration file for the chroot program. The file is found&lt;br /&gt;
in /etc/schroot/schroot.conf, so open it with the following commands&lt;br /&gt;
&lt;br /&gt;
        cd /etc/schroot&lt;br /&gt;
        sudo gedit schroot.conf&lt;br /&gt;
&lt;br /&gt;
Since the build tools from the Gutsy distribution are known to work, I opted&lt;br /&gt;
to install that distribution in my chroot. So add the following lines to the&lt;br /&gt;
end of schroot.conf, replacing &amp;quot;YourUserName&amp;quot; with your actual user name&lt;br /&gt;
&lt;br /&gt;
        [gutsy]&lt;br /&gt;
        description=Ubuntu 7.10 (Gutsy Gibbon)&lt;br /&gt;
        location=/var/chroot&lt;br /&gt;
        priority=3&lt;br /&gt;
        users=YourUserName&lt;br /&gt;
        groups=sbuild&lt;br /&gt;
        root-groups=root&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install Gutsy &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to install the older distribution into this chroot. Do this with &lt;br /&gt;
the following command&lt;br /&gt;
&lt;br /&gt;
        sudo debootstrap --variant=buildd --arch i386 gutsy /var/chroot/ http://old-releases.ubuntu.com/ubuntu&lt;br /&gt;
&lt;br /&gt;
If you would like to use a different distribution, just change &amp;quot;gutsy&amp;quot; to &lt;br /&gt;
whichever distribution you want. Note you may have to use archives.ubuntu.com&lt;br /&gt;
if the distribution isn't that old.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Login to Gutsy &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No login to the chroot-ed distribution with&lt;br /&gt;
&lt;br /&gt;
        sudo chroot /var/chroot&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install Dependencies &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Below is a list of all the dependencies I had to install in order to get &lt;br /&gt;
bitbake to make the gumstix-basic-image. wget and groff weren't reported&lt;br /&gt;
by bitbake as required packages but I encountered build errors if they weren't&lt;br /&gt;
present. &lt;br /&gt;
&lt;br /&gt;
        apt-get install help2man &lt;br /&gt;
        apt-get install diffstat &lt;br /&gt;
        apt-get install texi2html &lt;br /&gt;
        apt-get install cvs &lt;br /&gt;
        apt-get install subversion &lt;br /&gt;
        apt-get install bzip2 &lt;br /&gt;
        apt-get install gawk&lt;br /&gt;
        apt-get install texinfo         # makeinfo command&lt;br /&gt;
        apt-get install wget&lt;br /&gt;
        apt-get install groff           # nroff command (item 1059)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Download Build Files &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can download the build environment from gumstix. First create a&lt;br /&gt;
directory to download them into. Note that we're still in the chroot-ed&lt;br /&gt;
environment so when we say &amp;quot;/home/YourUserName&amp;quot; it will actually be installed &lt;br /&gt;
in &amp;quot;/var/chroot/home/YourUserName&amp;quot;. As always, replace &amp;quot;YourUserName&amp;quot; with &lt;br /&gt;
your actual user name.&lt;br /&gt;
&lt;br /&gt;
        mkdir /home/YourUserName&lt;br /&gt;
        cd /home/YourUserName&lt;br /&gt;
        mkdir gumstix&lt;br /&gt;
        cd gumstix&lt;br /&gt;
&lt;br /&gt;
Then we can download the environment from subversion&lt;br /&gt;
&lt;br /&gt;
        svn co https://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Make a &amp;quot;new&amp;quot; user &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can't run bitbake as root so we need to create a user in this chroot. I &lt;br /&gt;
suggest using the same user name that you use in your &amp;quot;real&amp;quot; system.&lt;br /&gt;
&lt;br /&gt;
        useradd  YourUserName&lt;br /&gt;
        passwd  YourUserName&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Edit extras/profile &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you installed into a directory other than ~/gumstix/gumstix-oe then you'll&lt;br /&gt;
need to edit a line in extras/profile to point to the right directory&lt;br /&gt;
&lt;br /&gt;
        gedit gumstix-oe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Setup the Environment &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To setup the environment so that the bitbake install script can find everything&lt;br /&gt;
correctly we need to execute the profile script&lt;br /&gt;
&lt;br /&gt;
        . /home/YourUserName/gumstix/gumstix-oe/extras/profile&lt;br /&gt;
or&lt;br /&gt;
        source /home/YourUserName/gumstix/gumstix-oe/extras/profile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install the Included Bitbake &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can install bitbake with the setup script. &lt;br /&gt;
&lt;br /&gt;
        cd /home/YourUserName/gumstix/gumstix-oe/bitbake&lt;br /&gt;
        ./setup.py install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Create Source Code Cache &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to create the &amp;quot;global&amp;quot; source code cache for the chroot system. Start&lt;br /&gt;
by creating a group called &amp;quot;oe&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        sudo groupadd oe&lt;br /&gt;
&lt;br /&gt;
Then add yourself to it&lt;br /&gt;
&lt;br /&gt;
        sudo usermod -a -G oe YourUserName&lt;br /&gt;
&lt;br /&gt;
Then create the directory for caching source code&lt;br /&gt;
&lt;br /&gt;
        sudo mkdir /usr/share/sources&lt;br /&gt;
        sudo chgrp oe /usr/share/sources&lt;br /&gt;
        sudo chmod 0775 /usr/share/sources&lt;br /&gt;
        sudo chmod ug+s /usr/share/sources&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Login &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can't run bitbake as root so let's login&lt;br /&gt;
&lt;br /&gt;
        su - YourUserName&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Setup Build Environment &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to setup the build environment again by executing the profile script.&lt;br /&gt;
&lt;br /&gt;
        cd gumstix/gumstix-oe&lt;br /&gt;
        . extras/profile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Edit auto.conf &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If building for something older than verdex, we need to edit the auto.conf &lt;br /&gt;
file.&lt;br /&gt;
&lt;br /&gt;
        gedit conf/auto.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Build Basic Image &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And now we're ready to build the basic image. &lt;br /&gt;
&lt;br /&gt;
        bitbake gumstix-basic-image&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Cheshirekow</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Build_Environment_Ubuntu_9.10&amp;diff=3996</id>
		<title>Build Environment Ubuntu 9.10</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Build_Environment_Ubuntu_9.10&amp;diff=3996"/>
				<updated>2009-11-13T18:39:32Z</updated>
		
		<summary type="html">&lt;p&gt;Cheshirekow: Added new page on chrooting Ubuntu 7.10 on Ubuntu 9.10&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;Build Environment Ubuntu 9.10 (Karmic Koala)&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Despite the assertion on [[Build_Environment_Ubuntu_9.04]], I was unable to&lt;br /&gt;
build the basic gumstix image using the svn trunk. It seems the trunk uses&lt;br /&gt;
some deprecated features of gcc. I would suggest trying to change symbolic &lt;br /&gt;
links for gcc, g++, etc to point to  version 4.1 instead of 4.4. If that works,&lt;br /&gt;
then all is good. As an alternative, what you can do is install an older &lt;br /&gt;
version of Ubuntu that is known to work in a &lt;br /&gt;
[http://en.wikipedia.org/wiki/Chroot chroot]. Any program that&lt;br /&gt;
is run in the chroot cannot &amp;quot;see&amp;quot; the real root file system, so all of the&lt;br /&gt;
build tools it find will be the ones installed in that chroot directory. This&lt;br /&gt;
HOWTO describes how to setup the build system with such a method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Install debootstrap chroot&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first thing we need to do is install the chroot program that we'll be using.&lt;br /&gt;
You can install these programs with the following two commands&lt;br /&gt;
&lt;br /&gt;
        sudo apt-get install dchroot&lt;br /&gt;
        sudo apt-get install debootstrap&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Create a Chroot Directory for Older Distro&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to create a new directory that will act as the root for the older&lt;br /&gt;
distribution's file system. Do this with the following command&lt;br /&gt;
&lt;br /&gt;
        sudo mkdir /var/chroot&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Edit Configuration&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now edit the configuration file for the chroot program. The file is found&lt;br /&gt;
in /etc/schroot/schroot.conf, so open it with the following commands&lt;br /&gt;
&lt;br /&gt;
        cd /etc/schroot&lt;br /&gt;
        sudo gedit schroot.conf&lt;br /&gt;
&lt;br /&gt;
Since the build tools from the Gutsy distribution are known to work, I opted&lt;br /&gt;
to install that distribution in my chroot. So add the following lines to the&lt;br /&gt;
end of schroot.conf, replacing &amp;quot;YourUserName&amp;quot; with your actual user name&lt;br /&gt;
&lt;br /&gt;
        [gutsy]&lt;br /&gt;
        description=Ubuntu 7.10 (Gutsy Gibbon)&lt;br /&gt;
        location=/var/chroot&lt;br /&gt;
        priority=3&lt;br /&gt;
        users=YourUserName&lt;br /&gt;
        groups=sbuild&lt;br /&gt;
        root-groups=root&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install Gutsy &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we need to install the older distribution into this chroot. Do this with &lt;br /&gt;
the following command&lt;br /&gt;
&lt;br /&gt;
        sudo debootstrap --variant=buildd --arch i386 gutsy /var/chroot/ http://old-releases.ubuntu.com/ubuntu&lt;br /&gt;
&lt;br /&gt;
If you would like to use a different distribution, just change &amp;quot;gutsy&amp;quot; to &lt;br /&gt;
whichever distribution you want. Note you may have to use archives.ubuntu.com&lt;br /&gt;
if the distribution isn't that old.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Login to Gutsy &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No login to the chroot-ed distribution with&lt;br /&gt;
&lt;br /&gt;
        sudo chroot /var/chroot&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install Dependencies &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Below is a list of all the dependencies I had to install in order to get &lt;br /&gt;
bitbake to make the gumstix-basic-image. wget and groff weren't reported&lt;br /&gt;
by bitbake as required packages but I encountered build errors if they weren't&lt;br /&gt;
present. &lt;br /&gt;
&lt;br /&gt;
        apt-get install help2man &lt;br /&gt;
        apt-get install diffstat &lt;br /&gt;
        apt-get install texi2html &lt;br /&gt;
        apt-get install cvs &lt;br /&gt;
        apt-get install subversion &lt;br /&gt;
        apt-get install bzip2 &lt;br /&gt;
        apt-get install gawk&lt;br /&gt;
        apt-get install texinfo         # makeinfo command&lt;br /&gt;
        apt-get install wget&lt;br /&gt;
        apt-get install groff           # nroff command (item 1059)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Download Build Files &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can download the build environment from gumstix. First create a&lt;br /&gt;
directory to download them into. Note that we're still in the chroot-ed&lt;br /&gt;
environment so when we say &amp;quot;/home/YourUserName&amp;quot; it will actually be installed &lt;br /&gt;
in &amp;quot;/var/chroot/home/YourUserName&amp;quot;. As always, replace &amp;quot;YourUserName&amp;quot; with &lt;br /&gt;
your actual user name.&lt;br /&gt;
&lt;br /&gt;
        mkdir /home/YourUserName&lt;br /&gt;
        cd /home/YourUserName&lt;br /&gt;
        mkdir gumstix&lt;br /&gt;
        cd gumstix&lt;br /&gt;
&lt;br /&gt;
Then we can download the environment from subversion&lt;br /&gt;
&lt;br /&gt;
        svn co https://gumstix.svn.sourceforge.net/svnroot/gumstix/trunk gumstix-oe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Make a &amp;quot;new&amp;quot; user &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can't run bitbake as root so we need to create a user in this chroot. I &lt;br /&gt;
suggest using the same user name that you use in your &amp;quot;real&amp;quot; system.&lt;br /&gt;
&lt;br /&gt;
        useradd  YourUserName&lt;br /&gt;
        passwd  YourUserName&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Edit extras/profile &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you installed into a directory other than ~/gumstix/gumstix-oe then you'll&lt;br /&gt;
need to edit a line in extras/profile to point to the right directory&lt;br /&gt;
&lt;br /&gt;
        gedit gumstix-oe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Setup the Environment &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To setup the environment so that the bitbake install script can find everything&lt;br /&gt;
correctly we need to execute the profile script&lt;br /&gt;
&lt;br /&gt;
        . /home/YourUserName/gumstix/gumstix-oe/extras/profile&lt;br /&gt;
or&lt;br /&gt;
        source /home/YourUserName/gumstix/gumstix-oe/extras/profile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Install the Included Bitbake &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we can install bitbake with the setup script. &lt;br /&gt;
&lt;br /&gt;
        cd /home/YourUserName/gumstix/gumstix-oe/bitbake&lt;br /&gt;
        ./setup.py install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Create Source Code Cache &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to create the &amp;quot;global&amp;quot; source code cache for the chroot system. Start&lt;br /&gt;
by creating a group called &amp;quot;oe&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        sudo groupadd oe&lt;br /&gt;
&lt;br /&gt;
Then add yourself to it&lt;br /&gt;
&lt;br /&gt;
        sudo usermod -a -G oe YourUserName&lt;br /&gt;
&lt;br /&gt;
Then create the directory for caching source code&lt;br /&gt;
&lt;br /&gt;
        sudo mkdir /usr/share/sources&lt;br /&gt;
        sudo chgrp oe /usr/share/sources&lt;br /&gt;
        sudo chmod 0775 /usr/share/sources&lt;br /&gt;
        sudo chmod ug+s /usr/share/sources&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Login &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can't run bitbake as root so let's login&lt;br /&gt;
&lt;br /&gt;
        su - YourUserName&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Setup Build Environment &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We need to setup the build environment again by executing the profile script.&lt;br /&gt;
&lt;br /&gt;
        cd gumstix/gumstix-oe&lt;br /&gt;
        . extras/profile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Edit auto.conf &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If building for something older than verdex, we need to edit the auto.conf &lt;br /&gt;
file.&lt;br /&gt;
&lt;br /&gt;
        gedit conf/auto.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; Build Basic Image &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And now we're ready to build the basic image. &lt;br /&gt;
&lt;br /&gt;
        bitbake gumstix-basic-image&lt;/div&gt;</summary>
		<author><name>Cheshirekow</name></author>	</entry>

	</feed>