<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to BuildQuickStart</title><link>https://sourceforge.net/p/teebx/wiki/BuildQuickStart/</link><description>Recent changes to BuildQuickStart</description><atom:link href="https://sourceforge.net/p/teebx/wiki/BuildQuickStart/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 08 Aug 2017 12:34:37 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/teebx/wiki/BuildQuickStart/feed" rel="self" type="application/rss+xml"/><item><title>BuildQuickStart modified by giovanni.v</title><link>https://sourceforge.net/p/teebx/wiki/BuildQuickStart/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -26,15 +26,15 @@
 Stone allow to easy change the most relevant settings, like keyboard layout, network, timezone... using a simple menu driven interface.  
 Sure the first thing you want to change will be the the keyboard layout, so select the first menu item:

-![](http://teebx.googlecode.com/svn/wiki/t2-stone-00.png)
+![T2 stone tool](https://sourceforge.net/p/teebx/code/HEAD/tree/wiki/t2-stone-00.png)

 Now again the first menu item: 

-![](http://teebx.googlecode.com/svn/wiki/t2-stone-01-sysconfig.png)
+![](https://sourceforge.net/p/teebx/code/HEAD/tree/wiki/t2-stone-01-sysconfig.png)

 ...now select your preferred keymap: 

-![](http://teebx.googlecode.com/svn/wiki/t2-stone-02-sysconfig-keymap.png)
+![](https://sourceforge.net/p/teebx/code/HEAD/tree/wiki/t2-stone-02-sysconfig-keymap.png)

 ### Virtual host additional info

@@ -78,13 +78,13 @@

 In the above example we called the new configuration ''"trunk"'' using the -cfg parameter. 

-![](http://teebx.googlecode.com/svn/wiki/start-config-step01.png)
+![](https://sourceforge.net/p/teebx/code/HEAD/tree/wiki/start-config-step01.png)

 Use arrow keys to move between options, the tab key to move between action buttons. 

 Now highlight the current Target Distribution then press enter to select a new target. 

-![](http://teebx.googlecode.com/svn/wiki/start-config-step02.png)
+![](https://sourceforge.net/p/teebx/code/HEAD/tree/wiki/start-config-step02.png)

 Press enter or the space bar to choose a new target and go back to the previous screen. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">giovanni.v</dc:creator><pubDate>Tue, 08 Aug 2017 12:34:37 -0000</pubDate><guid>https://sourceforge.net5440a2454054de8a9acb0d728d46106123685075</guid></item><item><title>BuildQuickStart modified by Anonymous</title><link>https://sourceforge.net/p/teebx/wiki/BuildQuickStart/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="teebx-build-quick-start"&gt;TeeBX Build Quick Start&lt;/h1&gt;
&lt;p&gt;TeeBX is built using a set of scripts to automate both the linux operating system and applications build. This is done using the T2 System Development Environment (&lt;a class="" href="http://www.t2-project.org/" rel="nofollow"&gt;T2 SDE&lt;/a&gt;) hosted on a T2 linux machine. &lt;/p&gt;
&lt;h2 id="get-the-virtual-host"&gt;Get the virtual host&lt;/h2&gt;
&lt;hr/&gt;
&lt;p&gt;For people who don't want to start from scratch by installing a T2 host and all the required software we provide a linux host VMware image based on T2 version 8.0.&lt;br/&gt;
The development system image is hosted on the Sourceforge project BoneOS &lt;em&gt;(&lt;a class="" href="http://sourceforge.net/projects/boneos/"&gt;BoneOS&lt;/a&gt; is a parent project sharing a common base system with TeeBX)&lt;/em&gt;, browse the project files on the &lt;a class="" href="http://sourceforge.net/projects/boneos/files/00-dev-environment/"&gt;dev-environment folder&lt;/a&gt; to download the latest VMware image. &lt;/p&gt;
&lt;p&gt;After downloading the zip archive, uncompress it and then boot the linux virtual host using the VMware player (version 3.1+, free) or workstation (ver. 6+).&lt;br/&gt;
You will need about 4 GB of free disk space to be able to successfully download all the source packages and build the image. &lt;/p&gt;
&lt;h3 id="first-boot"&gt;First boot&lt;/h3&gt;
&lt;p&gt;Out of the box our T2 SDE virtual machine is set up to get it's network IP address via DHCP, the keyboard layout is set to "en-us".&lt;br/&gt;
The root password is set to "boneos" (without quotes). &lt;/p&gt;
&lt;h3 id="customizing-system-settings"&gt;Customizing system settings&lt;/h3&gt;
&lt;p&gt;The fastest way to change system setting is using the T2 linux configuration tool: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev$ stone
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Stone allow to easy change the most relevant settings, like keyboard layout, network, timezone... using a simple menu driven interface.&lt;br/&gt;
Sure the first thing you want to change will be the the keyboard layout, so select the first menu item: &lt;/p&gt;
&lt;p&gt;&lt;img alt="" rel="nofollow" src="http://teebx.googlecode.com/svn/wiki/t2-stone-00.png"/&gt;&lt;/p&gt;
&lt;p&gt;Now again the first menu item: &lt;/p&gt;
&lt;p&gt;&lt;img alt="" rel="nofollow" src="http://teebx.googlecode.com/svn/wiki/t2-stone-01-sysconfig.png"/&gt;&lt;/p&gt;
&lt;p&gt;...now select your preferred keymap: &lt;/p&gt;
&lt;p&gt;&lt;img alt="" rel="nofollow" src="http://teebx.googlecode.com/svn/wiki/t2-stone-02-sysconfig-keymap.png"/&gt;&lt;/p&gt;
&lt;h3 id="virtual-host-additional-info"&gt;Virtual host additional info&lt;/h3&gt;
&lt;p&gt;The VM image has a 32 GB virtual scsi disk with two partitions. The first partition, mounted on / is sized at 1 GB, the second partition sized at 5 GB is mounted on /var. The /var partition will be used to store sources and to build the system image.&lt;br/&gt;
This amount of storage allow to do most of the work without any problem but you must pay attention to keep the system clean. &lt;/p&gt;
&lt;p&gt;The choice to leave a large disk spare unpartitioned was done to be able to keep at reasonable size the development system image for distribution while having an option to resize the second partition if needed. &lt;/p&gt;
&lt;h4 id="host-editors"&gt;Host editors&lt;/h4&gt;
&lt;p&gt;To people who do not like &lt;strong&gt;vi&lt;/strong&gt;: before you try to install a new text editor, a good advice... &lt;strong&gt;nano&lt;/strong&gt; is already available. &lt;/p&gt;
&lt;h2 id="hands-on"&gt;Hands On&lt;/h2&gt;
&lt;hr/&gt;
&lt;p&gt;The basic workflow steps are: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download sources via subversion &lt;/li&gt;
&lt;li&gt;Configure a new build in the source tree &lt;/li&gt;
&lt;li&gt;Start the build &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Remember not to start any of the mentioned steps in the / parttion... you will go out of disk space a few minutes later! &lt;/p&gt;
&lt;h3 id="get-sources"&gt;Get sources&lt;/h3&gt;
&lt;p&gt;Change your working directory: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# cd /var/devel/public/teebx
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Download sources from the subversion repository: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# svn checkout http://teebx.googlecode.com/svn/trunk/ trunk
&lt;/pre&gt;&lt;/div&gt;


&lt;h3 id="configure-a-new-build"&gt;Configure a new build&lt;/h3&gt;
&lt;p&gt;Before starting bulding any image you must create a new configuration using the T2 SDE Config script: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# cd trunk
boneos-dev# ./scripts/Config -cfg trunk
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;In the above example we called the new configuration ''"trunk"'' using the -cfg parameter. &lt;/p&gt;
&lt;p&gt;&lt;img alt="" rel="nofollow" src="http://teebx.googlecode.com/svn/wiki/start-config-step01.png"/&gt;&lt;/p&gt;
&lt;p&gt;Use arrow keys to move between options, the tab key to move between action buttons. &lt;/p&gt;
&lt;p&gt;Now highlight the current Target Distribution then press enter to select a new target. &lt;/p&gt;
&lt;p&gt;&lt;img alt="" rel="nofollow" src="http://teebx.googlecode.com/svn/wiki/start-config-step02.png"/&gt;&lt;/p&gt;
&lt;p&gt;Press enter or the space bar to choose a new target and go back to the previous screen. &lt;/p&gt;
&lt;p&gt;If this is &lt;strong&gt;the first time you use the T2 SDE I suggest you not to change&lt;/strong&gt; the various configuration options.&lt;br/&gt;
&lt;em&gt;Caution&lt;/em&gt;: At the time of writing this document, the glibc target must be considered as experimental, it builds successfully but still shows many problems that need to be resolved - try it only if you want to contribute&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Update:&lt;/em&gt;&lt;/strong&gt; the glibc target got few progress but was deleted, the eglib target may be considered mature and will become the preferred libc variant. &lt;/p&gt;
&lt;p&gt;Use the tab key to highlight the Exit button, then press enter to exit saving your new configuration. &lt;/p&gt;
&lt;h3 id="starting-building"&gt;Starting building&lt;/h3&gt;
&lt;p&gt;Now that you have made a new configuration you're almost ready to run the build script, but please be patient. &lt;/p&gt;
&lt;h4 id="downloading-sources"&gt;Downloading sources&lt;/h4&gt;
&lt;p&gt;The build script is able to download the source files, as needed, during the build process but I strongly suggest you do it before. &lt;/p&gt;
&lt;p&gt;This command will examine the configuration and will download all the required source packages: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# ./scripts/Download -cfg trunk -required
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;We hope everything is going well, but it is possible we may encounter some problems: a few links no longer active, a site temporarily unreachable, a package that has been moved, and so on. &lt;/p&gt;
&lt;p&gt;If there are no problems you can switch to compile your image, else you need to fix any failed download before proceeding. You may fix the problematic download link reviewing the package source or downloading manually the source package into the mirror directory. &lt;/p&gt;
&lt;h4 id="build"&gt;Build!&lt;/h4&gt;
&lt;p&gt;To actually build the image you need to run the T2 SDE Build-Target script passing the configuration name to it: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# ./scripts/Build-Target -cfg trunk
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now it's time to take a break, it will take some time to complete the build (about 1 our on my machine to give you a vague idea). &lt;/p&gt;
&lt;p&gt;When the build will end look into the build subdirectory, you will find a directory whose name consists of &lt;em&gt;teebx-targetname-architecture-optimization-clibrary-configurationname&lt;/em&gt;. Here into a subdirectory called &lt;em&gt;TOOLCHAIN&lt;/em&gt; you will find the just built images: a .img file or a .iso file, or both depending on the target configuration. &lt;/p&gt;
&lt;p&gt;Now You have a complete build, which also mean You also got a working toolchain for this specific configuration. To update/rebuild a single package you don't need to start from scratch again but You simply need to run the Build-Target script appending the -job option, e.g. to rebuild the asterisk package: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# ./scripts/Build-Target trunk -job 1-asterisk11
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Another example, to rebuild the appliance scrips/web interface: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# ./scripts/Build-Target trunk -job 1-appliance
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;That done You nedd to run the build script again to rebuild the image using the new/updated packages: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;boneos-dev# ./scripts/Build-Target trunk
&lt;/pre&gt;&lt;/div&gt;


&lt;h4 id="final-thoughts"&gt;Final thoughts&lt;/h4&gt;
&lt;p&gt;Would be nice to believe that you have not encountered any problems... but in the real world often things are not going this way, so what can you do now? &lt;/p&gt;
&lt;p&gt;The first thing to do is to study the &lt;a class="" href="http://www.t2-project.org/documentation/" rel="nofollow"&gt;T2 SDE documentation&lt;/a&gt;, only after doing this, and maybe if you like to contribute to the project, ask the developers. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 09 Aug 2015 17:37:45 -0000</pubDate><guid>https://sourceforge.net50a7a8767470e455156adceaff2fc183142dcae1</guid></item></channel></rss>