
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://armadeus.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SebastienA</id>
		<title>ArmadeusWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://armadeus.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SebastienA"/>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Special:Contributions/SebastienA"/>
		<updated>2026-04-05T22:12:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=Network_File_System_configuration&amp;diff=9220</id>
		<title>Network File System configuration</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Network_File_System_configuration&amp;diff=9220"/>
				<updated>2010-12-01T16:27:47Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
On this page, you will find usefull informations to configure NFS ([[wikipedia:Network_File_System_(protocol)|Network File System]]) on your Host and your Target.&lt;br /&gt;
&lt;br /&gt;
==NFS server on your development Host==&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
* On Fedora, NFS is part of your distribution so you normally don't need to install it.&lt;br /&gt;
* On Ubuntu/Kubuntu:&lt;br /&gt;
 $ sudo apt-get install nfs-kernel-server&lt;br /&gt;
* On OpenSUSE:&lt;br /&gt;
 $ sudo zypper install yast2-nfs-server&lt;br /&gt;
===Configuration===&lt;br /&gt;
====/etc/exports====&lt;br /&gt;
* You have to declare the directory where you're going to store the files you want to share accross the network. For that you have to modify the ''/etc/exports'' file with (for example):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 # Directory for Armadeus:&lt;br /&gt;
 /local/export     192.168.0.0/255.255.0.0(ro,no_root_squash,sync)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
:In that case your Host will authorize all client from the subnet 192.168.*.* to access ''/local/export'' in '''read only''' mode. If you want read/write access from your APF to your exported dir, then replace ''ro'' with ''rw''.&amp;lt;br&amp;gt;&lt;br /&gt;
* If not existing, create your export directory (for example):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ sudo mkdir -p /local/export&lt;br /&gt;
$ sudo chown -R $USER:$GROUP /local/export/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Restart of NFS server====&lt;br /&gt;
* '''On Fedora:'''&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 # /sbin/service nfs restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Next time you boot, you can check your NFS server status with:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 # /sbin/service nfs status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and if not started then:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 # /sbin/service nfs start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On Ubuntu/Kubuntu:'''&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ sudo /etc/init.d/nfs-kernel-server restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Next time you boot, you can check your NFS server status with:&lt;br /&gt;
System Settings-&amp;gt;System services&lt;br /&gt;
&lt;br /&gt;
* '''On OpenSUSE'''&lt;br /&gt;
 # /etc/init.d/nfsserver restart&lt;br /&gt;
&lt;br /&gt;
==NFS usage on your Armadeus board==&lt;br /&gt;
&lt;br /&gt;
===Mount the NFS partition manually ===&lt;br /&gt;
&lt;br /&gt;
* create a mount point (for example):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # mkdir -p /mnt/host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* mount it (for example):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # mount -t nfs 192.168.0.2:/local/export /mnt/host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If 192.168.0.2 is your Host IP address and ''/local/export'' the name of your Host directory you want to mount.&lt;br /&gt;
&lt;br /&gt;
===Mount the NFS partition automatically at each boot from FLASH===&lt;br /&gt;
&lt;br /&gt;
* be sure to have the latest available software (&amp;gt;=armadeus2.0 or latest GIT)&lt;br /&gt;
* login to your Armadeus board as root&lt;br /&gt;
* open the '''/etc/fstab''' file and add this line:&lt;br /&gt;
 &amp;lt;host-ip&amp;gt;:/&amp;lt;path-to-shared-folder&amp;gt; /mnt/&amp;lt;path-to-mount-folder&amp;gt; nfs hard,intr,rsize=8192,wsize=8192 0 0&lt;br /&gt;
example:&lt;br /&gt;
 192.168.0.2:/local/export /mnt/host nfs hard,intr,rsize=8192,wsize=8192 0 0&lt;br /&gt;
* check your modification:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # mount /mnt/host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* reboot your board&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* and enjoy the result&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 # df&lt;br /&gt;
 # ls /mnt/host&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When you have a problem, verify that the NFS server is running on the host:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ /etc/init.d/nfs-kernel-server status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ /sbin/service nfs status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Boot from NFS===&lt;br /&gt;
* on your Host, expand generated rootfs image to your NFS export dir (for example if your NFS export dir is ''/local/export/'' on your Host):&lt;br /&gt;
&amp;lt;pre class=host&amp;gt;&lt;br /&gt;
 $ make shell_env&lt;br /&gt;
 $ source armadeus_env.sh&lt;br /&gt;
 $ sudo tar xvf $ARMADEUS_ROOTFS_TAR -C /local/export&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* on your target, in U-Boot, check if the ''rootpath'' envt variable is set accordingly:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 BIOS&amp;gt; printenv rootpath&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* if not then set it (here for example ''/local/export''):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 BIOS&amp;gt; setenv rootpath /local/export&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* save it:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 BIOS&amp;gt; saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* then boot with:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
 BIOS&amp;gt; run nfsboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Summary of the required Packages:===&lt;br /&gt;
* portmap (buildroot)&lt;br /&gt;
* nfs (busybox)&lt;br /&gt;
* nfs support (Linux, activated by default in Armadeus configuration)&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting:==&lt;br /&gt;
&lt;br /&gt;
*1] If nfsd and mountd daemon are not running on your Host, then you will get a message like:&lt;br /&gt;
 # mount: RPC: Program not registered&lt;br /&gt;
In that case, restart the NFS service on your Host (see above)&lt;br /&gt;
*2] To successfully mount a NFS drive, portmap daemon should be running on your target, if not system will hang during some minutes when you launch the mount !!&lt;br /&gt;
To check if portmap is running, look at the running processes:&lt;br /&gt;
 # ps faux&lt;br /&gt;
If portmap is not listed, then launch it manually:&lt;br /&gt;
 # /etc/init.d/S14portmap&lt;br /&gt;
&lt;br /&gt;
==NFS Server under Windows==&lt;br /&gt;
For those who want to use the NFS service on Windows, a small and FREE NFS server is available [http://www.freedownloadscenter.com/Utilities/Misc__Utilities/nfsAxe.html here].&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
* http://www.denx.de/wiki/view/DULG/SystemSetup#Section_4.8.&lt;br /&gt;
&lt;br /&gt;
[[Category:Network]]&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=Communicate&amp;diff=9219</id>
		<title>Communicate</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Communicate&amp;diff=9219"/>
				<updated>2010-12-01T16:18:17Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
How-To connect your Armadeus board to your development Host.&lt;br /&gt;
&lt;br /&gt;
==Forewords==&lt;br /&gt;
The default connection uses a simple RS232 Null-Modem cable (with or without USB&amp;lt;-&amp;gt;serial adapter). &amp;lt;br&amp;gt;&lt;br /&gt;
As you will have to transfer some mega bytes of data, the Ethernet link is mandatory.&amp;lt;br&amp;gt;&lt;br /&gt;
In order to use these two media with the APF target a terminal emulator (for RS232 link) and a TFTP server (for Ethernet link) have to be configured.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
At this stage, you should have something looking like that (IP addresses may change):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:BoardConnection.png]]&lt;br /&gt;
&lt;br /&gt;
{{:RS232 Terminal configuration}}&lt;br /&gt;
&lt;br /&gt;
==TFTP server==&lt;br /&gt;
In order to send your image files (U-Boot, Linux, rootfs or FPGA's firmware) at higher speed (than serial port) to your Armadeus board, you can use the Ethernet link and [http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol a TFTP server].&lt;br /&gt;
Once the server configured, the files located in the server shared directory (''/tftpboot'' by default) will be accessible from the U-Boot/Linux TFTP clients.&lt;br /&gt;
&lt;br /&gt;
===TFTP server installation===  &lt;br /&gt;
* On *Ubuntu / Debian:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ sudo apt-get install tftpd xinetd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or use your preferred graphical package manager&lt;br /&gt;
* On Fedora:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ rpm -q tftpd xinetd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* On OpenSUSE 11.3:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
sudo zypper install tftp yast2-tftp-server&lt;br /&gt;
sudo yast2 tftp-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Choose Enable to start the TFTP server. It might be required to open the TFTP port in your firewall.&lt;br /&gt;
For more details see: [http://en.opensuse.org/SDB:YaST_TFTP_Server YaST TFTP Server on OpenSUSE site]&lt;br /&gt;
* Then create the directory (''/tftpboot/'') that will contain all the files that the server will export:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ sudo mkdir /tftpboot&lt;br /&gt;
  [  ] $ sudo chmod 777 /tftpboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Server configuration===  &lt;br /&gt;
* Edit (as root user) or create the configuration file ''/etc/xinetd.d/tftp'' and modify/add it the following lines:&lt;br /&gt;
 # default: off&lt;br /&gt;
 # description: The tftp server serves files using the trivial file transfer&lt;br /&gt;
 #       protocol.  The tftp protocol is often used to boot diskless&lt;br /&gt;
 #       workstations, download configuration files to network-aware printers,&lt;br /&gt;
 #       and to start the installation process for some operating systems.&lt;br /&gt;
 service tftp&lt;br /&gt;
 {&lt;br /&gt;
        socket_type             = dgram&lt;br /&gt;
        protocol                = udp&lt;br /&gt;
        wait                    = yes&lt;br /&gt;
        user                    = root&lt;br /&gt;
        server                  = /usr/sbin/in.tftpd&lt;br /&gt;
        server_args             = -s /tftpboot&lt;br /&gt;
 #       disable                 = yes&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
* Restart xinetd service:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ sudo killall -HUP xinetd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
For more information regarding how-to setup a TFTP server please check one of many Web How-to:&lt;br /&gt;
* [http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch16_:_Telnet,_TFTP,_and_xinetd#TFTP TFTP server quick how-to]&lt;br /&gt;
* [https://linuxlink.timesys.com/docs/linux_tftp Another how-to configure a TFTP Server for Linux]&lt;br /&gt;
* [http://www.webune.com/forums/how-to-install-tftp-server-in-linux.html till another how-to...]&lt;br /&gt;
* [http://doc.ubuntu-fr.org/tftpd ubuntu TFTP server documentation in French]&lt;br /&gt;
&lt;br /&gt;
==== Errata (if you have troubles) ====&lt;br /&gt;
&lt;br /&gt;
It looks like xinetd configuration is not sufficient in some recent versions of this tool. IPv6 is enabled by default and seems to be not compatible with the TFTP protocol. A simple inetd configuration should work for people who have this problem (''connection refused'' in system logs with addresses like ::ffff:192.168.0.100).&lt;br /&gt;
&lt;br /&gt;
* Edit (as root user) - if necessary - the ''/etc/inetd.conf'' file and add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tftp		dgram	udp	wait	nobody	/usr/sbin/tcpd	/usr/sbin/in.tftpd -s /tftpboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install inetd tools&lt;br /&gt;
&lt;br /&gt;
On Ubuntu/Debian&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install inetutils-tools&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the hosts rules: edit (as root user) ''/etc/hosts.allow'' and add the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
in.tftpd: ALL&lt;br /&gt;
tftpd: ALL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart inetd&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/xinetd restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It's done... and should work for most people.&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
* [http://www.columbia.edu/kermit/ Kermit Homepage]&lt;br /&gt;
* [http://www.jls-info.com/julien/linux/ GTKTerm Homepage]&lt;br /&gt;
* [http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch16_:_Telnet,_TFTP,_and_xinetd#TFTP TFTP server quick how-to]&lt;br /&gt;
* [https://linuxlink.timesys.com/docs/linux_tftp Another how-to configure a TFTP Server for Linux]&lt;br /&gt;
* [http://www.webune.com/forums/how-to-install-tftp-server-in-linux.html till another how-to...]&lt;br /&gt;
* [http://doc.ubuntu-fr.org/tftpd ubuntu TFTP server documentation in French]&lt;br /&gt;
* [[Connection_with_U-Boot_under_Windows | configuring RS-232 and TFTP on Windows to communicate with your board]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=Communicate&amp;diff=9218</id>
		<title>Communicate</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Communicate&amp;diff=9218"/>
				<updated>2010-12-01T16:16:03Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
How-To connect your Armadeus board to your development Host.&lt;br /&gt;
&lt;br /&gt;
==Forewords==&lt;br /&gt;
The default connection uses a simple RS232 Null-Modem cable (with or without USB&amp;lt;-&amp;gt;serial adapter). &amp;lt;br&amp;gt;&lt;br /&gt;
As you will have to transfer some mega bytes of data, the Ethernet link is mandatory.&amp;lt;br&amp;gt;&lt;br /&gt;
In order to use these two media with the APF target a terminal emulator (for RS232 link) and a TFTP server (for Ethernet link) have to be configured.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
At this stage, you should have something looking like that (IP addresses may change):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:BoardConnection.png]]&lt;br /&gt;
&lt;br /&gt;
{{:RS232 Terminal configuration}}&lt;br /&gt;
&lt;br /&gt;
==TFTP server==&lt;br /&gt;
In order to send your image files (U-Boot, Linux, rootfs or FPGA's firmware) at higher speed (than serial port) to your Armadeus board, you can use the Ethernet link and [http://en.wikipedia.org/wiki/Trivial_File_Transfer_Protocol a TFTP server].&lt;br /&gt;
Once the server configured, the files located in the server shared directory (''/tftpboot'' by default) will be accessible from the U-Boot/Linux TFTP clients.&lt;br /&gt;
&lt;br /&gt;
===TFTP server installation===  &lt;br /&gt;
* On *Ubuntu / Debian:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ sudo apt-get install tftpd xinetd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or use your preferred graphical package manager&lt;br /&gt;
* On Fedora:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ rpm -q tftpd xinetd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* On OpenSUSE 11.3:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
sudo zypper install tftp yast2-tftp-server&lt;br /&gt;
sudo yast2 tftp-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Choose Enable to start the TFTP server. It might be required to open the TFTP port in your firewall.&lt;br /&gt;
For more details see: [http://en.opensuse.org/SDB:YaST_TFTP_Server]&lt;br /&gt;
* Then create the directory (''/tftpboot/'') that will contain all the files that the server will export:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ sudo mkdir /tftpboot&lt;br /&gt;
  [  ] $ sudo chmod 777 /tftpboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Server configuration===  &lt;br /&gt;
* Edit (as root user) or create the configuration file ''/etc/xinetd.d/tftp'' and modify/add it the following lines:&lt;br /&gt;
 # default: off&lt;br /&gt;
 # description: The tftp server serves files using the trivial file transfer&lt;br /&gt;
 #       protocol.  The tftp protocol is often used to boot diskless&lt;br /&gt;
 #       workstations, download configuration files to network-aware printers,&lt;br /&gt;
 #       and to start the installation process for some operating systems.&lt;br /&gt;
 service tftp&lt;br /&gt;
 {&lt;br /&gt;
        socket_type             = dgram&lt;br /&gt;
        protocol                = udp&lt;br /&gt;
        wait                    = yes&lt;br /&gt;
        user                    = root&lt;br /&gt;
        server                  = /usr/sbin/in.tftpd&lt;br /&gt;
        server_args             = -s /tftpboot&lt;br /&gt;
 #       disable                 = yes&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
* Restart xinetd service:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
  [  ] $ sudo killall -HUP xinetd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
For more information regarding how-to setup a TFTP server please check one of many Web How-to:&lt;br /&gt;
* [http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch16_:_Telnet,_TFTP,_and_xinetd#TFTP TFTP server quick how-to]&lt;br /&gt;
* [https://linuxlink.timesys.com/docs/linux_tftp Another how-to configure a TFTP Server for Linux]&lt;br /&gt;
* [http://www.webune.com/forums/how-to-install-tftp-server-in-linux.html till another how-to...]&lt;br /&gt;
* [http://doc.ubuntu-fr.org/tftpd ubuntu TFTP server documentation in French]&lt;br /&gt;
&lt;br /&gt;
==== Errata (if you have troubles) ====&lt;br /&gt;
&lt;br /&gt;
It looks like xinetd configuration is not sufficient in some recent versions of this tool. IPv6 is enabled by default and seems to be not compatible with the TFTP protocol. A simple inetd configuration should work for people who have this problem (''connection refused'' in system logs with addresses like ::ffff:192.168.0.100).&lt;br /&gt;
&lt;br /&gt;
* Edit (as root user) - if necessary - the ''/etc/inetd.conf'' file and add this line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tftp		dgram	udp	wait	nobody	/usr/sbin/tcpd	/usr/sbin/in.tftpd -s /tftpboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install inetd tools&lt;br /&gt;
&lt;br /&gt;
On Ubuntu/Debian&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install inetutils-tools&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the hosts rules: edit (as root user) ''/etc/hosts.allow'' and add the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
in.tftpd: ALL&lt;br /&gt;
tftpd: ALL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart inetd&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/xinetd restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It's done... and should work for most people.&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
* [http://www.columbia.edu/kermit/ Kermit Homepage]&lt;br /&gt;
* [http://www.jls-info.com/julien/linux/ GTKTerm Homepage]&lt;br /&gt;
* [http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch16_:_Telnet,_TFTP,_and_xinetd#TFTP TFTP server quick how-to]&lt;br /&gt;
* [https://linuxlink.timesys.com/docs/linux_tftp Another how-to configure a TFTP Server for Linux]&lt;br /&gt;
* [http://www.webune.com/forums/how-to-install-tftp-server-in-linux.html till another how-to...]&lt;br /&gt;
* [http://doc.ubuntu-fr.org/tftpd ubuntu TFTP server documentation in French]&lt;br /&gt;
* [[Connection_with_U-Boot_under_Windows | configuring RS-232 and TFTP on Windows to communicate with your board]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=Kermit&amp;diff=9217</id>
		<title>Kermit</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Kermit&amp;diff=9217"/>
				<updated>2010-12-01T16:09:10Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Kermit is a serial line terminal emulator that allows you to take control of your board through the RS232 line. With it you can have access to the U-Boot/Linux console of your APF without needing to connect a keyboard/screen to the board. ([http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/ For more informations on remote console])&lt;br /&gt;
&lt;br /&gt;
==Installation==  &lt;br /&gt;
===On *Ubuntu / Debian===&lt;br /&gt;
 $ sudo apt-get install ckermit&lt;br /&gt;
or use your system's graphical package manager.&lt;br /&gt;
&lt;br /&gt;
===On Fedora===&lt;br /&gt;
 # rpm -q ckermit&lt;br /&gt;
&lt;br /&gt;
===On OpenSUSE 11.3===&lt;br /&gt;
 # sudo zypper addrepo http://download.opensuse.org/repositories/openSUSE:/11.3:/Contrib/standard/ Contrib&lt;br /&gt;
 # zypper install ckermit&lt;br /&gt;
==Configuration==  &lt;br /&gt;
* Edit/Create ''.kermrc'' file in your ''$HOME/'' directory (ex: ''/home/james/.kermrc'') and fill it with:&lt;br /&gt;
 set line /dev/ttyS0&lt;br /&gt;
 set speed 115200&lt;br /&gt;
 set carrier-watch off&lt;br /&gt;
 set handshake none&lt;br /&gt;
 set flow-control none&lt;br /&gt;
 robust&lt;br /&gt;
 set file type bin&lt;br /&gt;
 set file name lit&lt;br /&gt;
 set rec pack 1000&lt;br /&gt;
 set send pack 1000&lt;br /&gt;
 set window 5&lt;br /&gt;
 set transmit linefeed on&lt;br /&gt;
{{:Serial port selection generalities}}&lt;br /&gt;
&lt;br /&gt;
==Usage==  &lt;br /&gt;
* To launch it:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
 $ kermit -c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If you get an error message such:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
  /dev/ttyS0 &lt;br /&gt;
  ?SET SPEED has no effect without prior SET LINE &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then recheck that you have read/write rights on the serial port (Typically on Ubuntu: you are not member of &amp;quot;dialout&amp;quot; group).&lt;br /&gt;
On OpenSUSE 11.3 you may need to be in &amp;quot;dialout&amp;quot; and 'uucp&amp;quot; groups and give the rights to write in /var/lock:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
sudo chmod 777 /var/lock&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To switch from terminal mode to command mode:&lt;br /&gt;
 CTRL + \ then c&lt;br /&gt;
* To switch from command mode to terminal mode:&lt;br /&gt;
 C-Kermit&amp;gt;c then ENTER&lt;br /&gt;
* To quit:&lt;br /&gt;
 Switch in command mode&lt;br /&gt;
 C-Kermit&amp;gt;q then ENTER&lt;br /&gt;
&lt;br /&gt;
== Usefull tips ==&lt;br /&gt;
&lt;br /&gt;
* Download a file via serial in U-Boot :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
BIOS&amp;gt; loadb &amp;lt;Ctrl-\&amp;gt;c&lt;br /&gt;
kermit&amp;gt; send filename&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
* http://www.columbia.edu/kermit/ckermit.html&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=Kermit&amp;diff=9216</id>
		<title>Kermit</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Kermit&amp;diff=9216"/>
				<updated>2010-12-01T16:08:18Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Kermit is a serial line terminal emulator that allows you to take control of your board through the RS232 line. With it you can have access to the U-Boot/Linux console of your APF without needing to connect a keyboard/screen to the board. ([http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/ For more informations on remote console])&lt;br /&gt;
&lt;br /&gt;
==Installation==  &lt;br /&gt;
===On *Ubuntu / Debian===&lt;br /&gt;
 $ sudo apt-get install ckermit&lt;br /&gt;
or use your system's graphical package manager.&lt;br /&gt;
&lt;br /&gt;
===On Fedora===&lt;br /&gt;
 # rpm -q ckermit&lt;br /&gt;
&lt;br /&gt;
===On OnperSUSE 11.3===&lt;br /&gt;
 # sudo zypper addrepo http://download.opensuse.org/repositories/openSUSE:/11.3:/Contrib/standard/ Contrib&lt;br /&gt;
 # zypper install ckermit&lt;br /&gt;
==Configuration==  &lt;br /&gt;
* Edit/Create ''.kermrc'' file in your ''$HOME/'' directory (ex: ''/home/james/.kermrc'') and fill it with:&lt;br /&gt;
 set line /dev/ttyS0&lt;br /&gt;
 set speed 115200&lt;br /&gt;
 set carrier-watch off&lt;br /&gt;
 set handshake none&lt;br /&gt;
 set flow-control none&lt;br /&gt;
 robust&lt;br /&gt;
 set file type bin&lt;br /&gt;
 set file name lit&lt;br /&gt;
 set rec pack 1000&lt;br /&gt;
 set send pack 1000&lt;br /&gt;
 set window 5&lt;br /&gt;
 set transmit linefeed on&lt;br /&gt;
{{:Serial port selection generalities}}&lt;br /&gt;
&lt;br /&gt;
==Usage==  &lt;br /&gt;
* To launch it:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
 $ kermit -c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If you get an error message such:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
  /dev/ttyS0 &lt;br /&gt;
  ?SET SPEED has no effect without prior SET LINE &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then recheck that you have read/write rights on the serial port. (Typically on Ubuntu: you are not member of &amp;quot;dialout&amp;quot; group)&lt;br /&gt;
On OpenSUSE 11.3 you may need to be in &amp;quot;dialout&amp;quot; and 'uucp&amp;quot; groups and give the rights to write in /var/lock&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
sudo chmod 777 /var/lock&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* To switch from terminal mode to command mode:&lt;br /&gt;
 CTRL + \ then c&lt;br /&gt;
* To switch from command mode to terminal mode:&lt;br /&gt;
 C-Kermit&amp;gt;c then ENTER&lt;br /&gt;
* To quit:&lt;br /&gt;
 Switch in command mode&lt;br /&gt;
 C-Kermit&amp;gt;q then ENTER&lt;br /&gt;
&lt;br /&gt;
== Usefull tips ==&lt;br /&gt;
&lt;br /&gt;
* Download a file via serial in U-Boot :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
BIOS&amp;gt; loadb &amp;lt;Ctrl-\&amp;gt;c&lt;br /&gt;
kermit&amp;gt; send filename&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
* http://www.columbia.edu/kermit/ckermit.html&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=Kermit&amp;diff=9215</id>
		<title>Kermit</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=Kermit&amp;diff=9215"/>
				<updated>2010-12-01T16:03:27Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Kermit is a serial line terminal emulator that allows you to take control of your board through the RS232 line. With it you can have access to the U-Boot/Linux console of your APF without needing to connect a keyboard/screen to the board. ([http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/ For more informations on remote console])&lt;br /&gt;
&lt;br /&gt;
==Installation==  &lt;br /&gt;
===On *Ubuntu / Debian===&lt;br /&gt;
 $ sudo apt-get install ckermit&lt;br /&gt;
or use your system's graphical package manager.&lt;br /&gt;
&lt;br /&gt;
===On Fedora===&lt;br /&gt;
 # rpm -q ckermit&lt;br /&gt;
&lt;br /&gt;
===On OnperSUSE 11.3===&lt;br /&gt;
 # sudo zypper addrepo http://download.opensuse.org/repositories/openSUSE:/11.3:/Contrib/standard/ Contrib&lt;br /&gt;
 # zypper install ckermit&lt;br /&gt;
==Configuration==  &lt;br /&gt;
* Edit/Create ''.kermrc'' file in your ''$HOME/'' directory (ex: ''/home/james/.kermrc'') and fill it with:&lt;br /&gt;
 set line /dev/ttyS0&lt;br /&gt;
 set speed 115200&lt;br /&gt;
 set carrier-watch off&lt;br /&gt;
 set handshake none&lt;br /&gt;
 set flow-control none&lt;br /&gt;
 robust&lt;br /&gt;
 set file type bin&lt;br /&gt;
 set file name lit&lt;br /&gt;
 set rec pack 1000&lt;br /&gt;
 set send pack 1000&lt;br /&gt;
 set window 5&lt;br /&gt;
 set transmit linefeed on&lt;br /&gt;
{{:Serial port selection generalities}}&lt;br /&gt;
&lt;br /&gt;
==Usage==  &lt;br /&gt;
* To launch it:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
 $ kermit -c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If you get an error message such:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;gt;&lt;br /&gt;
  /dev/ttyS0 &lt;br /&gt;
  ?SET SPEED has no effect without prior SET LINE &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then recheck that you have read/write rights on the serial port. (Typically on Ubuntu: you are not member of &amp;quot;dialout&amp;quot; group)&lt;br /&gt;
* To switch from terminal mode to command mode:&lt;br /&gt;
 CTRL + \ then c&lt;br /&gt;
* To switch from command mode to terminal mode:&lt;br /&gt;
 C-Kermit&amp;gt;c then ENTER&lt;br /&gt;
* To quit:&lt;br /&gt;
 Switch in command mode&lt;br /&gt;
 C-Kermit&amp;gt;q then ENTER&lt;br /&gt;
&lt;br /&gt;
== Usefull tips ==&lt;br /&gt;
&lt;br /&gt;
* Download a file via serial in U-Boot :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
BIOS&amp;gt; loadb &amp;lt;Ctrl-\&amp;gt;c&lt;br /&gt;
kermit&amp;gt; send filename&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
* http://www.columbia.edu/kermit/ckermit.html&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9214</id>
		<title>LinuxInstall</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9214"/>
				<updated>2010-12-01T16:02:10Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;How-To install Armadeus Software Development Kit (SDK) on Linux systems. This SDK is currently based on the (excellent) [http://buildroot.net/ Buildroot].&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The installation was successfully tested on the following distributions:&lt;br /&gt;
* Debian Sarge (3.1), Etch (4.0) &amp;amp; Lenny (5.0)&lt;br /&gt;
* Fedora Core 3 &amp;amp; 4&lt;br /&gt;
* Fedora 10&lt;br /&gt;
* KUbuntu Edgy Eft (6.10), Gutsy Gibbon (7.10), Hardy Heron (8.04) &amp;amp; Jaunty Jackalope (9.04)&lt;br /&gt;
* Mandriva 2006&lt;br /&gt;
* SuSE 10.1&lt;br /&gt;
* Ubuntu Dapper Drake (6.04), Hardy Heron (8.04),  Intrepid Ibex (8.10) &amp;amp; Lucid Lynx (10.04) (64bits)&lt;br /&gt;
* Xubuntu Edgy Eft (6.10)&lt;br /&gt;
* Red Hat Enterprise 5.2&lt;br /&gt;
* Gentoo 10.0 (32 &amp;amp; 64 bits)&lt;br /&gt;
* OpenSUSE 11.3&lt;br /&gt;
&lt;br /&gt;
'''The installation may fail on:'''&lt;br /&gt;
* Ubuntu Karmic Koala (9.10): tslib fails to build&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Prerequisites for Linux installation==&lt;br /&gt;
{{Note|From here we assume that your Linux system has a ''make'' version '''greater or equal to''' 3.81. To check it: &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ make -v&lt;br /&gt;
GNU Make 3.81&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Depending on your distribution, some additional packages are required.&lt;br /&gt;
&lt;br /&gt;
===Debian/Ubuntu based systems===&lt;br /&gt;
* you can use the following command to get them (assuming your userid is allowed to use sudo (execution of commands as root)):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install build-essential gcc  g++ autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo apt-get install patch subversion texinfo wget git-core&lt;br /&gt;
 sudo apt-get install libncurses5 libncurses5-dev&lt;br /&gt;
 sudo apt-get install zlib1g-dev liblzo2-2 liblzo2-dev&lt;br /&gt;
 sudo apt-get install libacl1 libacl1-dev&lt;br /&gt;
 sudo apt-get install uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add for compiling some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install libglib2.0-dev&lt;br /&gt;
 sudo apt-get install libnetpbm10-dev   (for fbtest)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ubuntu====&lt;br /&gt;
{{Warning|For Ubuntu based systems, the following is now required if your ''/bin/sh'' is '''not''' pointing to ''/bin/bash'':&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ ls -al /bin/sh&lt;br /&gt;
 lrwxrwxrwx 1 root root 4 2007-12-08 18:33 /bin/sh -&amp;gt; dash&lt;br /&gt;
 $ sudo dpkg-reconfigure dash&lt;br /&gt;
     and select no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Indeed dash do not support all the capabilities needed by Buildroot (our build system).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install gcj-jdk &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Debian====&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mandriva based systems=== &lt;br /&gt;
* name of packages are different therefore use the lines hereafter instead (assuming sudo is configured to support root commands):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi gcc  gcc-c++ make autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo urpmi patch subversion texinfo wget git&lt;br /&gt;
 sudo urpmi libncurses5 libncurses-devel&lt;br /&gt;
 sudo urpmi zlib1-devel liblzo2_2 liblzo-devel&lt;br /&gt;
 sudo urpmi libacl1 libacl-devel&lt;br /&gt;
 sudo urpmi uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi libglib2.0-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===RPM-based systems===&lt;br /&gt;
*like RedHat, Fedora, CentOS, the following commands should install all the needed prerequisites (assuming root shell):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 yum install gcc gcc-c++ make autoconf automake libtool bison flex gettext&lt;br /&gt;
 yum install patch subversion texinfo git wget&lt;br /&gt;
 yum install zlib-devel gettext-devel ncurses-devel lzo-devel libacl-devel&lt;br /&gt;
 yum install uuid-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''On Fedora 13 &amp;amp; 14''', as ''uuid-devel'' seems not installed at the right place, you may also need to do the following:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/include&lt;br /&gt;
mkdir uuid&lt;br /&gt;
cp uuid.h uuid&lt;br /&gt;
cd /usr/lib&lt;br /&gt;
ln -s ../../lib64/libuuid.so.1 libuuid.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On Fedora 14''', following operations might be needed:&lt;br /&gt;
** compile make-3.81 from sources (Fedora 14 uses make-3.82 which is too restrictive) and call it explicitly from ''/usr/local/bin/make''&lt;br /&gt;
** install glibc-static to allow insmod.static compilation:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
rpm -ivh glibc-static-2.12.90-15.i686.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Not mandatory but useful to add some extra packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install glib2-devel lzo2-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install java-*-openjdk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On RedHat Enterprise 5.2''' not all packages are available by default. You can get extra packages here: http://download.fedora.redhat.com/pub/epel/5/i386/ (for example missing ''lzo'' and ''lzo-devel'' can be found here).&lt;br /&gt;
* '''On OpenSUSE 11.3''', following operations might be needed:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
sudo zypper install  gcc  gcc-c++ autoconf  automake libtool bison flex make&lt;br /&gt;
sudo zypper install subversion texinfo git-core ncurses-devel&lt;br /&gt;
sudo zypper install libacl-devel&lt;br /&gt;
sudo zypper install libuuid-devel&lt;br /&gt;
sudo zypper install libnetpbm-devel&lt;br /&gt;
sudo zypper install tcpd&lt;br /&gt;
sudo zypper install tcpd-devel&lt;br /&gt;
sudo zypper install java-1_5_0-gcj-compat libgcj-devel&lt;br /&gt;
sudo zypper install lzo-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Get Armadeus software==&lt;br /&gt;
* '''If you are a &amp;quot;careful&amp;quot; user''', then download [https://sourceforge.net/projects/armadeus/files/ the latest stable installation tarball from SourceForge] and detar it wherever you want:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ tar xjvf armadeus-3.3.tar.bz2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''If you want the latest snapshot''', the whole development tree can checked out from the [[GIT]] repository. (SVN repository is no more maintained !!!)&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git clone git://armadeus.git.sourceforge.net/gitroot/armadeus/armadeus armadeus&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* depending on your previous choice, a directory named ''armadeus/'' or ''armadeus-3.3/'' will be created on your hard-disk and will contain all the files you need.&lt;br /&gt;
&lt;br /&gt;
'''Remarks''':&lt;br /&gt;
* '''Do not use spaces''' in the directory name !&lt;br /&gt;
* GIT write/push  accesses are limited to the integrators ([[User:JulienB|JulienB]], [[User:Salocin68|Salocin68]], [[User:Jorasse|Jorasse]], [[User:FabienM|FabienM]])&lt;br /&gt;
&lt;br /&gt;
==Configure SDK options==&lt;br /&gt;
{{Note|If you are new to Armadeus and have troubles compiling armadeus-3.3 using the following instructions, you may find some hints here: [[Armadeus 3.3 Troubleshots]]}}&lt;br /&gt;
*Go to the directory where you put the Armadeus sources:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ cd armadeus/  (or armadeus-3.3/)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The first time you compile an Armadeus distribution you have to specify the target to work with. &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf9328_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This command reloads the default configuration to support an [[APF9328|APF9328 board]] and automatically start a Buildroot's configuration menu. For the [[APF27]] it would be:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf27_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*After some downloads you will get the Buildroot configuration interface:&lt;br /&gt;
&lt;br /&gt;
{{Note|If you ever made changes in the following steps, at any time you can reload the default configuration with '''make apf9328_defconfig''' or '''make apf27_defconfig'''.}}&lt;br /&gt;
&lt;br /&gt;
[[Image:Menuconfig3.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
*If you are not familiar with Buildroot here are some tips:&lt;br /&gt;
*# you can move the highlighted item with the &amp;quot;up&amp;quot;/&amp;quot;down&amp;quot; arrow keys&lt;br /&gt;
*# with the &amp;quot;left&amp;quot;/&amp;quot;right&amp;quot; arrow keys you can choose between &amp;quot;Select&amp;quot;, &amp;quot;Exit&amp;quot; or &amp;quot;Help&amp;quot; buttons&lt;br /&gt;
*# &amp;quot;space&amp;quot;/&amp;quot;enter&amp;quot;:&lt;br /&gt;
*#* selects the currently highlighted item if you are on the &amp;quot;Select&amp;quot; button&lt;br /&gt;
*#* go back in previous menu if you are on &amp;quot;Exit&amp;quot; button&lt;br /&gt;
*#* show you some Help for current item if you are on &amp;quot;Help&amp;quot; button&lt;br /&gt;
*# for more Help about Buildroot commands, select &amp;quot;Help&amp;quot; in the main configuration screen&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target options  ---&amp;gt; &lt;br /&gt;
:[*] Armadeus Device Support  ---&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:you can check and change the quantity of RAM available on your Armadeus board. Default value 16MB is just fine with all [[APF9328]] boards, for [[APF27]] it could be either 64MB or 128MB (2 x 64MB) (in that case be sure to select 2 chips of 64MB instead of 1 chip of 128MB).&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target filesystem options --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:for each type of filesystems to build, you have the option (''also copy the image to...'') to copy the binary file to secondary location like your tftp server folder (for example ''/tftpboot'').&amp;lt;br&amp;gt;&lt;br /&gt;
:Even U-Boot can be copied to a second location (like ''/tftpboot''). You will find the U-Boot options at the end of the list.&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Kernel --&amp;gt;&lt;br /&gt;
:Destination for linux kernel binaries --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:you will find options to copy Linux to a secondary location (like ''/tftpboot'')&lt;br /&gt;
&lt;br /&gt;
* You may decrease the compilation time by increasing the number of parallel jobs running simultaneously on your system (the result is not guaranteed). This option is located in&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build Options ---&amp;gt;&lt;br /&gt;
:(1) Number of jobs to run simultaneously&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* During the toolchain/distribution automatic build, a lot of software archives are downloaded from Internet. The downloaded files are put by default in the ''armadeus/downloads/'' directory. '''If you have several views or plan to build the toolchain several times''', we advise you to put all the downloaded files in ''/local/downloads'' (for example). This is done by configuring Buildroot to use this directory for all your views. Nevertheless, buildroot will be downloaded separately for each build environment you set up.&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build options  ---&amp;gt; &lt;br /&gt;
:(...) Download dir&amp;lt;/pre&amp;gt;&lt;br /&gt;
:[[Image:Build_config_menu_download.png]]&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
:[[Image:Build_config_download.png]]&lt;br /&gt;
&lt;br /&gt;
* After the build, we advise you too to copy all the files in ''downloads/'' on a removable medium, in case you want to install the development tools on several systems.&lt;br /&gt;
&lt;br /&gt;
* Now, Exit the configuration tool and save your configuration&lt;br /&gt;
&lt;br /&gt;
==Launch build==&lt;br /&gt;
 $ make&lt;br /&gt;
The toolchain and the full distribution are automatically built. During this procedure, several files are downloaded from Internet. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Please wait for a while.... it takes at least one hour for the first run!'''&amp;lt;br&amp;gt;&lt;br /&gt;
By default, the downloaded files/tarball are put in the ''armadeus/downloads/'' directory. Please see the previous chapter to know how to optimize that if you plan to build several views.&lt;br /&gt;
&lt;br /&gt;
==Enjoy the result==&lt;br /&gt;
The generated binary files can be found in the subdirectory ''buildroot/binaries/apfXX/'' (where XX is the name of your board):&lt;br /&gt;
&lt;br /&gt;
*''apf9328-u-boot.brec'' (only on [[APF9328]]): BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working (see [[BootLoader]] page)&lt;br /&gt;
*''apfXX-u-boot.bin'': U-Boot image file to be used with U-Boot itself, (see [[BootLoader#Update_U-Boot | updating U-Boot]])&lt;br /&gt;
*''apfXX-linux.bin'': Linux image to use with U-Boot, (see [[Target_Software_Installation#Linux_kernel_installation | updating Linux]])&lt;br /&gt;
*''apfXX-rootfs.arm.jffs2'': JFFS2 filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apf27-rootfs.arm.ubi'' (only on [[APF27]] &amp;amp; [[APF51]]): [[UBIFS|UBI]] filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apfXX-rootfs.arm.tar'': for an NFS/MMC based rootfs, (see [[Network_Configuration#Boot_from_NFS | Booting from NFS]] &amp;amp; [[MultiMediaCard#Booting_from_MMC.2FSD | Booting from a MMC/SD]])&lt;br /&gt;
&lt;br /&gt;
'''Please note the new naming convention of binary files and directories (since Armadeus 3.0)'''&lt;br /&gt;
&lt;br /&gt;
The toolchain and project files share a new naming convention too (YY is ''4t'' for APF9328 and ''5te'' for APF27):&lt;br /&gt;
*''buildroot/build_armvYY'': contains all non configurable user-space tools and staging dir.&lt;br /&gt;
*''buildroot/project_build_armvYY/apfXX'': contains all configurable user-space tools: target filesystem, &amp;lt;b&amp;gt;linux&amp;lt;/b&amp;gt;, busybox and &amp;lt;b&amp;gt;u-boot&amp;lt;/b&amp;gt;...&lt;br /&gt;
*''buildroot/toolchain_build_armvYY'': cross compilation toolchain's build dir. Binaries are in ''buildroot/build_armvYY/staging_dir/usr/bin''.&lt;br /&gt;
&lt;br /&gt;
More information is available in the  [http://buildroot.uclibc.org/buildroot.html buildroot documentation]&lt;br /&gt;
&lt;br /&gt;
* Note: Previous versions of Armadeus SDK stored the generated binary files at different place ''buildroot/binaries/armadeus/'' and file names did not contained any prefix of board name:&lt;br /&gt;
** ''u-boot.brec'' (BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working)&lt;br /&gt;
** ''u-boot.bin'' (U-Boot image file for use with U-Boot itself)&lt;br /&gt;
** ''linux-kernel-2.6.xx-arm.bin'' (Linux image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.jffs2'' (FileSystem/RootFS image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.tar'' (for an NFS/MMC RootFS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==To keep your local copy/repository up-to-date with the armadeus GIT repository==&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will update your working directory to the latest release.&lt;br /&gt;
&lt;br /&gt;
Note: if &amp;quot;git pull&amp;quot; fails because a directory or a file already exists, then do:&lt;br /&gt;
 $ rm -rf &amp;lt;this-directory/file&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&lt;br /&gt;
You can do a:&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
to have the latest features automatically activated.&lt;br /&gt;
&lt;br /&gt;
You have to do a '''make''' to rebuild binary files and then upload the binary files to your target.&lt;br /&gt;
&lt;br /&gt;
Note: if definitively everything goes wrong while it worked before the last update.&lt;br /&gt;
You can apply the following procedure (all your modifications in buildroot will be lost):&lt;br /&gt;
 $ rm -rf buildroot/&lt;br /&gt;
 $ rm Makefile&lt;br /&gt;
 $ git pull&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9213</id>
		<title>LinuxInstall</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9213"/>
				<updated>2010-12-01T16:00:34Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;How-To install Armadeus Software Development Kit (SDK) on Linux systems. This SDK is currently based on the (excellent) [http://buildroot.net/ Buildroot].&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The installation was successfully tested on the following distributions:&lt;br /&gt;
* Debian Sarge (3.1), Etch (4.0) &amp;amp; Lenny (5.0)&lt;br /&gt;
* Fedora Core 3 &amp;amp; 4&lt;br /&gt;
* Fedora 10&lt;br /&gt;
* KUbuntu Edgy Eft (6.10), Gutsy Gibbon (7.10), Hardy Heron (8.04) &amp;amp; Jaunty Jackalope (9.04)&lt;br /&gt;
* Mandriva 2006&lt;br /&gt;
* SuSE 10.1&lt;br /&gt;
* Ubuntu Dapper Drake (6.04), Hardy Heron (8.04),  Intrepid Ibex (8.10) &amp;amp; Lucid Lynx (10.04) (64bits)&lt;br /&gt;
* Xubuntu Edgy Eft (6.10)&lt;br /&gt;
* Red Hat Enterprise 5.2&lt;br /&gt;
* Gentoo 10.0 (32 &amp;amp; 64 bits)&lt;br /&gt;
* OpenSUSE 11.3&lt;br /&gt;
&lt;br /&gt;
'''The installation may fail on:'''&lt;br /&gt;
* Ubuntu Karmic Koala (9.10): tslib fails to build&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Prerequisites for Linux installation==&lt;br /&gt;
{{Note|From here we assume that your Linux system has a ''make'' version '''greater or equal to''' 3.81. To check it: &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ make -v&lt;br /&gt;
GNU Make 3.81&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Depending on your distribution, some additional packages are required.&lt;br /&gt;
&lt;br /&gt;
===Debian/Ubuntu based systems===&lt;br /&gt;
* you can use the following command to get them (assuming your userid is allowed to use sudo (execution of commands as root)):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install build-essential gcc  g++ autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo apt-get install patch subversion texinfo wget git-core&lt;br /&gt;
 sudo apt-get install libncurses5 libncurses5-dev&lt;br /&gt;
 sudo apt-get install zlib1g-dev liblzo2-2 liblzo2-dev&lt;br /&gt;
 sudo apt-get install libacl1 libacl1-dev&lt;br /&gt;
 sudo apt-get install uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add for compiling some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install libglib2.0-dev&lt;br /&gt;
 sudo apt-get install libnetpbm10-dev   (for fbtest)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ubuntu====&lt;br /&gt;
{{Warning|For Ubuntu based systems, the following is now required if your ''/bin/sh'' is '''not''' pointing to ''/bin/bash'':&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ ls -al /bin/sh&lt;br /&gt;
 lrwxrwxrwx 1 root root 4 2007-12-08 18:33 /bin/sh -&amp;gt; dash&lt;br /&gt;
 $ sudo dpkg-reconfigure dash&lt;br /&gt;
     and select no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Indeed dash do not support all the capabilities needed by Buildroot (our build system).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install gcj-jdk &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Debian====&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mandriva based systems=== &lt;br /&gt;
* name of packages are different therefore use the lines hereafter instead (assuming sudo is configured to support root commands):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi gcc  gcc-c++ make autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo urpmi patch subversion texinfo wget git&lt;br /&gt;
 sudo urpmi libncurses5 libncurses-devel&lt;br /&gt;
 sudo urpmi zlib1-devel liblzo2_2 liblzo-devel&lt;br /&gt;
 sudo urpmi libacl1 libacl-devel&lt;br /&gt;
 sudo urpmi uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi libglib2.0-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===RPM-based systems===&lt;br /&gt;
*like RedHat, Fedora, CentOS, the following commands should install all the needed prerequisites (assuming root shell):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 yum install gcc gcc-c++ make autoconf automake libtool bison flex gettext&lt;br /&gt;
 yum install patch subversion texinfo git wget&lt;br /&gt;
 yum install zlib-devel gettext-devel ncurses-devel lzo-devel libacl-devel&lt;br /&gt;
 yum install uuid-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''On Fedora 13 &amp;amp; 14''', as ''uuid-devel'' seems not installed at the right place, you may also need to do the following:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/include&lt;br /&gt;
mkdir uuid&lt;br /&gt;
cp uuid.h uuid&lt;br /&gt;
cd /usr/lib&lt;br /&gt;
ln -s ../../lib64/libuuid.so.1 libuuid.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On Fedora 14''', following operations might be needed:&lt;br /&gt;
** compile make-3.81 from sources (Fedora 14 uses make-3.82 which is too restrictive) and call it explicitly from ''/usr/local/bin/make''&lt;br /&gt;
** install glibc-static to allow insmod.static compilation:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
rpm -ivh glibc-static-2.12.90-15.i686.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Not mandatory but useful to add some extra packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install glib2-devel lzo2-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install java-*-openjdk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On RedHat Enterprise 5.2''' not all packages are available by default. You can get extra packages here: http://download.fedora.redhat.com/pub/epel/5/i386/ (for example missing ''lzo'' and ''lzo-devel'' can be found here).&lt;br /&gt;
* '''On OpenSUSE 11.3''', following operations might be needed:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
sudo zypper install  gcc  gcc-c++ autoconf  automake libtool bison flex make&lt;br /&gt;
sudo zypper install subversion texinfo git-core ncurses-devel&lt;br /&gt;
sudo zypper install libacl-devel&lt;br /&gt;
sudo zypper install libuuid-devel&lt;br /&gt;
sudo zypper install libnetpbm-devel&lt;br /&gt;
sudo zypper install tcpd-32bit&lt;br /&gt;
sudo zypper install java-1_5_0-gcj-compat libgcj-devel&lt;br /&gt;
sudo zypper install lzo-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Get Armadeus software==&lt;br /&gt;
* '''If you are a &amp;quot;careful&amp;quot; user''', then download [https://sourceforge.net/projects/armadeus/files/ the latest stable installation tarball from SourceForge] and detar it wherever you want:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ tar xjvf armadeus-3.3.tar.bz2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''If you want the latest snapshot''', the whole development tree can checked out from the [[GIT]] repository. (SVN repository is no more maintained !!!)&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git clone git://armadeus.git.sourceforge.net/gitroot/armadeus/armadeus armadeus&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* depending on your previous choice, a directory named ''armadeus/'' or ''armadeus-3.3/'' will be created on your hard-disk and will contain all the files you need.&lt;br /&gt;
&lt;br /&gt;
'''Remarks''':&lt;br /&gt;
* '''Do not use spaces''' in the directory name !&lt;br /&gt;
* GIT write/push  accesses are limited to the integrators ([[User:JulienB|JulienB]], [[User:Salocin68|Salocin68]], [[User:Jorasse|Jorasse]], [[User:FabienM|FabienM]])&lt;br /&gt;
&lt;br /&gt;
==Configure SDK options==&lt;br /&gt;
{{Note|If you are new to Armadeus and have troubles compiling armadeus-3.3 using the following instructions, you may find some hints here: [[Armadeus 3.3 Troubleshots]]}}&lt;br /&gt;
*Go to the directory where you put the Armadeus sources:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ cd armadeus/  (or armadeus-3.3/)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The first time you compile an Armadeus distribution you have to specify the target to work with. &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf9328_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This command reloads the default configuration to support an [[APF9328|APF9328 board]] and automatically start a Buildroot's configuration menu. For the [[APF27]] it would be:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf27_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*After some downloads you will get the Buildroot configuration interface:&lt;br /&gt;
&lt;br /&gt;
{{Note|If you ever made changes in the following steps, at any time you can reload the default configuration with '''make apf9328_defconfig''' or '''make apf27_defconfig'''.}}&lt;br /&gt;
&lt;br /&gt;
[[Image:Menuconfig3.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
*If you are not familiar with Buildroot here are some tips:&lt;br /&gt;
*# you can move the highlighted item with the &amp;quot;up&amp;quot;/&amp;quot;down&amp;quot; arrow keys&lt;br /&gt;
*# with the &amp;quot;left&amp;quot;/&amp;quot;right&amp;quot; arrow keys you can choose between &amp;quot;Select&amp;quot;, &amp;quot;Exit&amp;quot; or &amp;quot;Help&amp;quot; buttons&lt;br /&gt;
*# &amp;quot;space&amp;quot;/&amp;quot;enter&amp;quot;:&lt;br /&gt;
*#* selects the currently highlighted item if you are on the &amp;quot;Select&amp;quot; button&lt;br /&gt;
*#* go back in previous menu if you are on &amp;quot;Exit&amp;quot; button&lt;br /&gt;
*#* show you some Help for current item if you are on &amp;quot;Help&amp;quot; button&lt;br /&gt;
*# for more Help about Buildroot commands, select &amp;quot;Help&amp;quot; in the main configuration screen&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target options  ---&amp;gt; &lt;br /&gt;
:[*] Armadeus Device Support  ---&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:you can check and change the quantity of RAM available on your Armadeus board. Default value 16MB is just fine with all [[APF9328]] boards, for [[APF27]] it could be either 64MB or 128MB (2 x 64MB) (in that case be sure to select 2 chips of 64MB instead of 1 chip of 128MB).&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target filesystem options --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:for each type of filesystems to build, you have the option (''also copy the image to...'') to copy the binary file to secondary location like your tftp server folder (for example ''/tftpboot'').&amp;lt;br&amp;gt;&lt;br /&gt;
:Even U-Boot can be copied to a second location (like ''/tftpboot''). You will find the U-Boot options at the end of the list.&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Kernel --&amp;gt;&lt;br /&gt;
:Destination for linux kernel binaries --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:you will find options to copy Linux to a secondary location (like ''/tftpboot'')&lt;br /&gt;
&lt;br /&gt;
* You may decrease the compilation time by increasing the number of parallel jobs running simultaneously on your system (the result is not guaranteed). This option is located in&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build Options ---&amp;gt;&lt;br /&gt;
:(1) Number of jobs to run simultaneously&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* During the toolchain/distribution automatic build, a lot of software archives are downloaded from Internet. The downloaded files are put by default in the ''armadeus/downloads/'' directory. '''If you have several views or plan to build the toolchain several times''', we advise you to put all the downloaded files in ''/local/downloads'' (for example). This is done by configuring Buildroot to use this directory for all your views. Nevertheless, buildroot will be downloaded separately for each build environment you set up.&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build options  ---&amp;gt; &lt;br /&gt;
:(...) Download dir&amp;lt;/pre&amp;gt;&lt;br /&gt;
:[[Image:Build_config_menu_download.png]]&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
:[[Image:Build_config_download.png]]&lt;br /&gt;
&lt;br /&gt;
* After the build, we advise you too to copy all the files in ''downloads/'' on a removable medium, in case you want to install the development tools on several systems.&lt;br /&gt;
&lt;br /&gt;
* Now, Exit the configuration tool and save your configuration&lt;br /&gt;
&lt;br /&gt;
==Launch build==&lt;br /&gt;
 $ make&lt;br /&gt;
The toolchain and the full distribution are automatically built. During this procedure, several files are downloaded from Internet. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Please wait for a while.... it takes at least one hour for the first run!'''&amp;lt;br&amp;gt;&lt;br /&gt;
By default, the downloaded files/tarball are put in the ''armadeus/downloads/'' directory. Please see the previous chapter to know how to optimize that if you plan to build several views.&lt;br /&gt;
&lt;br /&gt;
==Enjoy the result==&lt;br /&gt;
The generated binary files can be found in the subdirectory ''buildroot/binaries/apfXX/'' (where XX is the name of your board):&lt;br /&gt;
&lt;br /&gt;
*''apf9328-u-boot.brec'' (only on [[APF9328]]): BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working (see [[BootLoader]] page)&lt;br /&gt;
*''apfXX-u-boot.bin'': U-Boot image file to be used with U-Boot itself, (see [[BootLoader#Update_U-Boot | updating U-Boot]])&lt;br /&gt;
*''apfXX-linux.bin'': Linux image to use with U-Boot, (see [[Target_Software_Installation#Linux_kernel_installation | updating Linux]])&lt;br /&gt;
*''apfXX-rootfs.arm.jffs2'': JFFS2 filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apf27-rootfs.arm.ubi'' (only on [[APF27]] &amp;amp; [[APF51]]): [[UBIFS|UBI]] filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apfXX-rootfs.arm.tar'': for an NFS/MMC based rootfs, (see [[Network_Configuration#Boot_from_NFS | Booting from NFS]] &amp;amp; [[MultiMediaCard#Booting_from_MMC.2FSD | Booting from a MMC/SD]])&lt;br /&gt;
&lt;br /&gt;
'''Please note the new naming convention of binary files and directories (since Armadeus 3.0)'''&lt;br /&gt;
&lt;br /&gt;
The toolchain and project files share a new naming convention too (YY is ''4t'' for APF9328 and ''5te'' for APF27):&lt;br /&gt;
*''buildroot/build_armvYY'': contains all non configurable user-space tools and staging dir.&lt;br /&gt;
*''buildroot/project_build_armvYY/apfXX'': contains all configurable user-space tools: target filesystem, &amp;lt;b&amp;gt;linux&amp;lt;/b&amp;gt;, busybox and &amp;lt;b&amp;gt;u-boot&amp;lt;/b&amp;gt;...&lt;br /&gt;
*''buildroot/toolchain_build_armvYY'': cross compilation toolchain's build dir. Binaries are in ''buildroot/build_armvYY/staging_dir/usr/bin''.&lt;br /&gt;
&lt;br /&gt;
More information is available in the  [http://buildroot.uclibc.org/buildroot.html buildroot documentation]&lt;br /&gt;
&lt;br /&gt;
* Note: Previous versions of Armadeus SDK stored the generated binary files at different place ''buildroot/binaries/armadeus/'' and file names did not contained any prefix of board name:&lt;br /&gt;
** ''u-boot.brec'' (BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working)&lt;br /&gt;
** ''u-boot.bin'' (U-Boot image file for use with U-Boot itself)&lt;br /&gt;
** ''linux-kernel-2.6.xx-arm.bin'' (Linux image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.jffs2'' (FileSystem/RootFS image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.tar'' (for an NFS/MMC RootFS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==To keep your local copy/repository up-to-date with the armadeus GIT repository==&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will update your working directory to the latest release.&lt;br /&gt;
&lt;br /&gt;
Note: if &amp;quot;git pull&amp;quot; fails because a directory or a file already exists, then do:&lt;br /&gt;
 $ rm -rf &amp;lt;this-directory/file&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&lt;br /&gt;
You can do a:&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
to have the latest features automatically activated.&lt;br /&gt;
&lt;br /&gt;
You have to do a '''make''' to rebuild binary files and then upload the binary files to your target.&lt;br /&gt;
&lt;br /&gt;
Note: if definitively everything goes wrong while it worked before the last update.&lt;br /&gt;
You can apply the following procedure (all your modifications in buildroot will be lost):&lt;br /&gt;
 $ rm -rf buildroot/&lt;br /&gt;
 $ rm Makefile&lt;br /&gt;
 $ git pull&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9212</id>
		<title>LinuxInstall</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9212"/>
				<updated>2010-12-01T15:59:49Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;How-To install Armadeus Software Development Kit (SDK) on Linux systems. This SDK is currently based on the (excellent) [http://buildroot.net/ Buildroot].&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The installation was successfully tested on the following distributions:&lt;br /&gt;
* Debian Sarge (3.1), Etch (4.0) &amp;amp; Lenny (5.0)&lt;br /&gt;
* Fedora Core 3 &amp;amp; 4&lt;br /&gt;
* Fedora 10&lt;br /&gt;
* KUbuntu Edgy Eft (6.10), Gutsy Gibbon (7.10), Hardy Heron (8.04) &amp;amp; Jaunty Jackalope (9.04)&lt;br /&gt;
* Mandriva 2006&lt;br /&gt;
* SuSE 10.1&lt;br /&gt;
* Ubuntu Dapper Drake (6.04), Hardy Heron (8.04),  Intrepid Ibex (8.10) &amp;amp; Lucid Lynx (10.04) (64bits)&lt;br /&gt;
* Xubuntu Edgy Eft (6.10)&lt;br /&gt;
* Red Hat Enterprise 5.2&lt;br /&gt;
* Gentoo 10.0 (32 &amp;amp; 64 bits)&lt;br /&gt;
* OpenSUSE 11.3&lt;br /&gt;
&lt;br /&gt;
'''The installation may fail on:'''&lt;br /&gt;
* Ubuntu Karmic Koala (9.10): tslib fails to build&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Prerequisites for Linux installation==&lt;br /&gt;
{{Note|From here we assume that your Linux system has a ''make'' version '''greater or equal to''' 3.81. To check it: &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ make -v&lt;br /&gt;
GNU Make 3.81&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Depending on your distribution, some additional packages are required.&lt;br /&gt;
&lt;br /&gt;
===Debian/Ubuntu based systems===&lt;br /&gt;
* you can use the following command to get them (assuming your userid is allowed to use sudo (execution of commands as root)):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install build-essential gcc  g++ autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo apt-get install patch subversion texinfo wget git-core&lt;br /&gt;
 sudo apt-get install libncurses5 libncurses5-dev&lt;br /&gt;
 sudo apt-get install zlib1g-dev liblzo2-2 liblzo2-dev&lt;br /&gt;
 sudo apt-get install libacl1 libacl1-dev&lt;br /&gt;
 sudo apt-get install uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add for compiling some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install libglib2.0-dev&lt;br /&gt;
 sudo apt-get install libnetpbm10-dev   (for fbtest)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ubuntu====&lt;br /&gt;
{{Warning|For Ubuntu based systems, the following is now required if your ''/bin/sh'' is '''not''' pointing to ''/bin/bash'':&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ ls -al /bin/sh&lt;br /&gt;
 lrwxrwxrwx 1 root root 4 2007-12-08 18:33 /bin/sh -&amp;gt; dash&lt;br /&gt;
 $ sudo dpkg-reconfigure dash&lt;br /&gt;
     and select no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Indeed dash do not support all the capabilities needed by Buildroot (our build system).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install gcj-jdk &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Debian====&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mandriva based systems=== &lt;br /&gt;
* name of packages are different therefore use the lines hereafter instead (assuming sudo is configured to support root commands):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi gcc  gcc-c++ make autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo urpmi patch subversion texinfo wget git&lt;br /&gt;
 sudo urpmi libncurses5 libncurses-devel&lt;br /&gt;
 sudo urpmi zlib1-devel liblzo2_2 liblzo-devel&lt;br /&gt;
 sudo urpmi libacl1 libacl-devel&lt;br /&gt;
 sudo urpmi uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi libglib2.0-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===RPM-based systems===&lt;br /&gt;
*like RedHat, Fedora, CentOS, the following commands should install all the needed prerequisites (assuming root shell):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 yum install gcc gcc-c++ make autoconf automake libtool bison flex gettext&lt;br /&gt;
 yum install patch subversion texinfo git wget&lt;br /&gt;
 yum install zlib-devel gettext-devel ncurses-devel lzo-devel libacl-devel&lt;br /&gt;
 yum install uuid-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''On Fedora 13 &amp;amp; 14''', as ''uuid-devel'' seems not installed at the right place, you may also need to do the following:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/include&lt;br /&gt;
mkdir uuid&lt;br /&gt;
cp uuid.h uuid&lt;br /&gt;
cd /usr/lib&lt;br /&gt;
ln -s ../../lib64/libuuid.so.1 libuuid.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On Fedora 14''', following operations might be needed:&lt;br /&gt;
** compile make-3.81 from sources (Fedora 14 uses make-3.82 which is too restrictive) and call it explicitly from ''/usr/local/bin/make''&lt;br /&gt;
** install glibc-static to allow insmod.static compilation:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
rpm -ivh glibc-static-2.12.90-15.i686.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Not mandatory but useful to add some extra packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install glib2-devel lzo2-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install java-*-openjdk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On RedHat Enterprise 5.2''' not all packages are available by default. You can get extra packages here: http://download.fedora.redhat.com/pub/epel/5/i386/ (for example missing ''lzo'' and ''lzo-devel'' can be found here).&lt;br /&gt;
* '''On OpenSUSE 11.3''', following operations might be needed:&lt;br /&gt;
sudo zypper install  gcc  gcc-c++ autoconf  automake libtool bison flex make&lt;br /&gt;
sudo zypper install subversion texinfo git-core ncurses-devel&lt;br /&gt;
sudo zypper install libacl-devel&lt;br /&gt;
sudo zypper install libuuid-devel&lt;br /&gt;
sudo zypper install libnetpbm-devel&lt;br /&gt;
sudo zypper install tcpd-32bit&lt;br /&gt;
sudo zypper install java-1_5_0-gcj-compat libgcj-devel&lt;br /&gt;
sudo zypper install lzo-devel&lt;br /&gt;
&lt;br /&gt;
==Get Armadeus software==&lt;br /&gt;
* '''If you are a &amp;quot;careful&amp;quot; user''', then download [https://sourceforge.net/projects/armadeus/files/ the latest stable installation tarball from SourceForge] and detar it wherever you want:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ tar xjvf armadeus-3.3.tar.bz2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''If you want the latest snapshot''', the whole development tree can checked out from the [[GIT]] repository. (SVN repository is no more maintained !!!)&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git clone git://armadeus.git.sourceforge.net/gitroot/armadeus/armadeus armadeus&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* depending on your previous choice, a directory named ''armadeus/'' or ''armadeus-3.3/'' will be created on your hard-disk and will contain all the files you need.&lt;br /&gt;
&lt;br /&gt;
'''Remarks''':&lt;br /&gt;
* '''Do not use spaces''' in the directory name !&lt;br /&gt;
* GIT write/push  accesses are limited to the integrators ([[User:JulienB|JulienB]], [[User:Salocin68|Salocin68]], [[User:Jorasse|Jorasse]], [[User:FabienM|FabienM]])&lt;br /&gt;
&lt;br /&gt;
==Configure SDK options==&lt;br /&gt;
{{Note|If you are new to Armadeus and have troubles compiling armadeus-3.3 using the following instructions, you may find some hints here: [[Armadeus 3.3 Troubleshots]]}}&lt;br /&gt;
*Go to the directory where you put the Armadeus sources:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ cd armadeus/  (or armadeus-3.3/)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The first time you compile an Armadeus distribution you have to specify the target to work with. &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf9328_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This command reloads the default configuration to support an [[APF9328|APF9328 board]] and automatically start a Buildroot's configuration menu. For the [[APF27]] it would be:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf27_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*After some downloads you will get the Buildroot configuration interface:&lt;br /&gt;
&lt;br /&gt;
{{Note|If you ever made changes in the following steps, at any time you can reload the default configuration with '''make apf9328_defconfig''' or '''make apf27_defconfig'''.}}&lt;br /&gt;
&lt;br /&gt;
[[Image:Menuconfig3.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
*If you are not familiar with Buildroot here are some tips:&lt;br /&gt;
*# you can move the highlighted item with the &amp;quot;up&amp;quot;/&amp;quot;down&amp;quot; arrow keys&lt;br /&gt;
*# with the &amp;quot;left&amp;quot;/&amp;quot;right&amp;quot; arrow keys you can choose between &amp;quot;Select&amp;quot;, &amp;quot;Exit&amp;quot; or &amp;quot;Help&amp;quot; buttons&lt;br /&gt;
*# &amp;quot;space&amp;quot;/&amp;quot;enter&amp;quot;:&lt;br /&gt;
*#* selects the currently highlighted item if you are on the &amp;quot;Select&amp;quot; button&lt;br /&gt;
*#* go back in previous menu if you are on &amp;quot;Exit&amp;quot; button&lt;br /&gt;
*#* show you some Help for current item if you are on &amp;quot;Help&amp;quot; button&lt;br /&gt;
*# for more Help about Buildroot commands, select &amp;quot;Help&amp;quot; in the main configuration screen&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target options  ---&amp;gt; &lt;br /&gt;
:[*] Armadeus Device Support  ---&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:you can check and change the quantity of RAM available on your Armadeus board. Default value 16MB is just fine with all [[APF9328]] boards, for [[APF27]] it could be either 64MB or 128MB (2 x 64MB) (in that case be sure to select 2 chips of 64MB instead of 1 chip of 128MB).&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target filesystem options --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:for each type of filesystems to build, you have the option (''also copy the image to...'') to copy the binary file to secondary location like your tftp server folder (for example ''/tftpboot'').&amp;lt;br&amp;gt;&lt;br /&gt;
:Even U-Boot can be copied to a second location (like ''/tftpboot''). You will find the U-Boot options at the end of the list.&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Kernel --&amp;gt;&lt;br /&gt;
:Destination for linux kernel binaries --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:you will find options to copy Linux to a secondary location (like ''/tftpboot'')&lt;br /&gt;
&lt;br /&gt;
* You may decrease the compilation time by increasing the number of parallel jobs running simultaneously on your system (the result is not guaranteed). This option is located in&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build Options ---&amp;gt;&lt;br /&gt;
:(1) Number of jobs to run simultaneously&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* During the toolchain/distribution automatic build, a lot of software archives are downloaded from Internet. The downloaded files are put by default in the ''armadeus/downloads/'' directory. '''If you have several views or plan to build the toolchain several times''', we advise you to put all the downloaded files in ''/local/downloads'' (for example). This is done by configuring Buildroot to use this directory for all your views. Nevertheless, buildroot will be downloaded separately for each build environment you set up.&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build options  ---&amp;gt; &lt;br /&gt;
:(...) Download dir&amp;lt;/pre&amp;gt;&lt;br /&gt;
:[[Image:Build_config_menu_download.png]]&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
:[[Image:Build_config_download.png]]&lt;br /&gt;
&lt;br /&gt;
* After the build, we advise you too to copy all the files in ''downloads/'' on a removable medium, in case you want to install the development tools on several systems.&lt;br /&gt;
&lt;br /&gt;
* Now, Exit the configuration tool and save your configuration&lt;br /&gt;
&lt;br /&gt;
==Launch build==&lt;br /&gt;
 $ make&lt;br /&gt;
The toolchain and the full distribution are automatically built. During this procedure, several files are downloaded from Internet. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Please wait for a while.... it takes at least one hour for the first run!'''&amp;lt;br&amp;gt;&lt;br /&gt;
By default, the downloaded files/tarball are put in the ''armadeus/downloads/'' directory. Please see the previous chapter to know how to optimize that if you plan to build several views.&lt;br /&gt;
&lt;br /&gt;
==Enjoy the result==&lt;br /&gt;
The generated binary files can be found in the subdirectory ''buildroot/binaries/apfXX/'' (where XX is the name of your board):&lt;br /&gt;
&lt;br /&gt;
*''apf9328-u-boot.brec'' (only on [[APF9328]]): BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working (see [[BootLoader]] page)&lt;br /&gt;
*''apfXX-u-boot.bin'': U-Boot image file to be used with U-Boot itself, (see [[BootLoader#Update_U-Boot | updating U-Boot]])&lt;br /&gt;
*''apfXX-linux.bin'': Linux image to use with U-Boot, (see [[Target_Software_Installation#Linux_kernel_installation | updating Linux]])&lt;br /&gt;
*''apfXX-rootfs.arm.jffs2'': JFFS2 filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apf27-rootfs.arm.ubi'' (only on [[APF27]] &amp;amp; [[APF51]]): [[UBIFS|UBI]] filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apfXX-rootfs.arm.tar'': for an NFS/MMC based rootfs, (see [[Network_Configuration#Boot_from_NFS | Booting from NFS]] &amp;amp; [[MultiMediaCard#Booting_from_MMC.2FSD | Booting from a MMC/SD]])&lt;br /&gt;
&lt;br /&gt;
'''Please note the new naming convention of binary files and directories (since Armadeus 3.0)'''&lt;br /&gt;
&lt;br /&gt;
The toolchain and project files share a new naming convention too (YY is ''4t'' for APF9328 and ''5te'' for APF27):&lt;br /&gt;
*''buildroot/build_armvYY'': contains all non configurable user-space tools and staging dir.&lt;br /&gt;
*''buildroot/project_build_armvYY/apfXX'': contains all configurable user-space tools: target filesystem, &amp;lt;b&amp;gt;linux&amp;lt;/b&amp;gt;, busybox and &amp;lt;b&amp;gt;u-boot&amp;lt;/b&amp;gt;...&lt;br /&gt;
*''buildroot/toolchain_build_armvYY'': cross compilation toolchain's build dir. Binaries are in ''buildroot/build_armvYY/staging_dir/usr/bin''.&lt;br /&gt;
&lt;br /&gt;
More information is available in the  [http://buildroot.uclibc.org/buildroot.html buildroot documentation]&lt;br /&gt;
&lt;br /&gt;
* Note: Previous versions of Armadeus SDK stored the generated binary files at different place ''buildroot/binaries/armadeus/'' and file names did not contained any prefix of board name:&lt;br /&gt;
** ''u-boot.brec'' (BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working)&lt;br /&gt;
** ''u-boot.bin'' (U-Boot image file for use with U-Boot itself)&lt;br /&gt;
** ''linux-kernel-2.6.xx-arm.bin'' (Linux image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.jffs2'' (FileSystem/RootFS image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.tar'' (for an NFS/MMC RootFS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==To keep your local copy/repository up-to-date with the armadeus GIT repository==&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will update your working directory to the latest release.&lt;br /&gt;
&lt;br /&gt;
Note: if &amp;quot;git pull&amp;quot; fails because a directory or a file already exists, then do:&lt;br /&gt;
 $ rm -rf &amp;lt;this-directory/file&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&lt;br /&gt;
You can do a:&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
to have the latest features automatically activated.&lt;br /&gt;
&lt;br /&gt;
You have to do a '''make''' to rebuild binary files and then upload the binary files to your target.&lt;br /&gt;
&lt;br /&gt;
Note: if definitively everything goes wrong while it worked before the last update.&lt;br /&gt;
You can apply the following procedure (all your modifications in buildroot will be lost):&lt;br /&gt;
 $ rm -rf buildroot/&lt;br /&gt;
 $ rm Makefile&lt;br /&gt;
 $ git pull&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9211</id>
		<title>LinuxInstall</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9211"/>
				<updated>2010-12-01T15:58:50Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;How-To install Armadeus Software Development Kit (SDK) on Linux systems. This SDK is currently based on the (excellent) [http://buildroot.net/ Buildroot].&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The installation was successfully tested on the following distributions:&lt;br /&gt;
* Debian Sarge (3.1), Etch (4.0) &amp;amp; Lenny (5.0)&lt;br /&gt;
* Fedora Core 3 &amp;amp; 4&lt;br /&gt;
* Fedora 10&lt;br /&gt;
* KUbuntu Edgy Eft (6.10), Gutsy Gibbon (7.10), Hardy Heron (8.04) &amp;amp; Jaunty Jackalope (9.04)&lt;br /&gt;
* Mandriva 2006&lt;br /&gt;
* SuSE 10.1&lt;br /&gt;
* Ubuntu Dapper Drake (6.04), Hardy Heron (8.04),  Intrepid Ibex (8.10) &amp;amp; Lucid Lynx (10.04) (64bits)&lt;br /&gt;
* Xubuntu Edgy Eft (6.10)&lt;br /&gt;
* Red Hat Enterprise 5.2&lt;br /&gt;
* Gentoo 10.0 (32 &amp;amp; 64 bits)&lt;br /&gt;
* OpenSUSE 11.3&lt;br /&gt;
&lt;br /&gt;
'''The installation may fail on:'''&lt;br /&gt;
* Ubuntu Karmic Koala (9.10): tslib fails to build&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Prerequisites for Linux installation==&lt;br /&gt;
{{Note|From here we assume that your Linux system has a ''make'' version '''greater or equal to''' 3.81. To check it: &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ make -v&lt;br /&gt;
GNU Make 3.81&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Depending on your distribution, some additional packages are required.&lt;br /&gt;
&lt;br /&gt;
===Debian/Ubuntu based systems===&lt;br /&gt;
* you can use the following command to get them (assuming your userid is allowed to use sudo (execution of commands as root)):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install build-essential gcc  g++ autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo apt-get install patch subversion texinfo wget git-core&lt;br /&gt;
 sudo apt-get install libncurses5 libncurses5-dev&lt;br /&gt;
 sudo apt-get install zlib1g-dev liblzo2-2 liblzo2-dev&lt;br /&gt;
 sudo apt-get install libacl1 libacl1-dev&lt;br /&gt;
 sudo apt-get install uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add for compiling some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install libglib2.0-dev&lt;br /&gt;
 sudo apt-get install libnetpbm10-dev   (for fbtest)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ubuntu====&lt;br /&gt;
{{Warning|For Ubuntu based systems, the following is now required if your ''/bin/sh'' is '''not''' pointing to ''/bin/bash'':&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ ls -al /bin/sh&lt;br /&gt;
 lrwxrwxrwx 1 root root 4 2007-12-08 18:33 /bin/sh -&amp;gt; dash&lt;br /&gt;
 $ sudo dpkg-reconfigure dash&lt;br /&gt;
     and select no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Indeed dash do not support all the capabilities needed by Buildroot (our build system).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install gcj-jdk &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Debian====&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mandriva based systems=== &lt;br /&gt;
* name of packages are different therefore use the lines hereafter instead (assuming sudo is configured to support root commands):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi gcc  gcc-c++ make autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo urpmi patch subversion texinfo wget git&lt;br /&gt;
 sudo urpmi libncurses5 libncurses-devel&lt;br /&gt;
 sudo urpmi zlib1-devel liblzo2_2 liblzo-devel&lt;br /&gt;
 sudo urpmi libacl1 libacl-devel&lt;br /&gt;
 sudo urpmi uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi libglib2.0-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===RPM-based systems===&lt;br /&gt;
*like RedHat, Fedora, CentOS, the following commands should install all the needed prerequisites (assuming root shell):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 yum install gcc gcc-c++ make autoconf automake libtool bison flex gettext&lt;br /&gt;
 yum install patch subversion texinfo git wget&lt;br /&gt;
 yum install zlib-devel gettext-devel ncurses-devel lzo-devel libacl-devel&lt;br /&gt;
 yum install uuid-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''On Fedora 13 &amp;amp; 14''', as ''uuid-devel'' seems not installed at the right place, you may also need to do the following:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/include&lt;br /&gt;
mkdir uuid&lt;br /&gt;
cp uuid.h uuid&lt;br /&gt;
cd /usr/lib&lt;br /&gt;
ln -s ../../lib64/libuuid.so.1 libuuid.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On Fedora 14''', following operations might be needed:&lt;br /&gt;
** compile make-3.81 from sources (Fedora 14 uses make-3.82 which is too restrictive) and call it explicitly from ''/usr/local/bin/make''&lt;br /&gt;
** install glibc-static to allow insmod.static compilation:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
rpm -ivh glibc-static-2.12.90-15.i686.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Not mandatory but useful to add some extra packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install glib2-devel lzo2-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install java-*-openjdk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On RedHat Enterprise 5.2''' not all packages are available by default. You can get extra packages here: http://download.fedora.redhat.com/pub/epel/5/i386/ (for example missing ''lzo'' and ''lzo-devel'' can be found here).&lt;br /&gt;
* '''On OpenSUSE 11.3''', following operations might be needed:&lt;br /&gt;
sudo zypper install  gcc  gcc-c++ autoconf  automake libtool bison flex make&lt;br /&gt;
sudo zypper install subversion texinfo git-core ncurses-devel&lt;br /&gt;
sudo zypper install libacl-devel&lt;br /&gt;
sudo zypper install libuuid-devel&lt;br /&gt;
sudo zypper install libnetpbm-devel&lt;br /&gt;
sudo zypper install tcpd-32bit&lt;br /&gt;
sudo zypper install java-1_5_0-gcj-compat libgcj-devel&lt;br /&gt;
sudo zypper install lzo-devel&lt;br /&gt;
==Get Armadeus software==&lt;br /&gt;
* '''If you are a &amp;quot;careful&amp;quot; user''', then download [https://sourceforge.net/projects/armadeus/files/ the latest stable installation tarball from SourceForge] and detar it wherever you want:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ tar xjvf armadeus-3.3.tar.bz2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''If you want the latest snapshot''', the whole development tree can checked out from the [[GIT]] repository. (SVN repository is no more maintained !!!)&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git clone git://armadeus.git.sourceforge.net/gitroot/armadeus/armadeus armadeus&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* depending on your previous choice, a directory named ''armadeus/'' or ''armadeus-3.3/'' will be created on your hard-disk and will contain all the files you need.&lt;br /&gt;
&lt;br /&gt;
'''Remarks''':&lt;br /&gt;
* '''Do not use spaces''' in the directory name !&lt;br /&gt;
* GIT write/push  accesses are limited to the integrators ([[User:JulienB|JulienB]], [[User:Salocin68|Salocin68]], [[User:Jorasse|Jorasse]], [[User:FabienM|FabienM]])&lt;br /&gt;
&lt;br /&gt;
==Configure SDK options==&lt;br /&gt;
{{Note|If you are new to Armadeus and have troubles compiling armadeus-3.3 using the following instructions, you may find some hints here: [[Armadeus 3.3 Troubleshots]]}}&lt;br /&gt;
*Go to the directory where you put the Armadeus sources:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ cd armadeus/  (or armadeus-3.3/)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The first time you compile an Armadeus distribution you have to specify the target to work with. &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf9328_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This command reloads the default configuration to support an [[APF9328|APF9328 board]] and automatically start a Buildroot's configuration menu. For the [[APF27]] it would be:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf27_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*After some downloads you will get the Buildroot configuration interface:&lt;br /&gt;
&lt;br /&gt;
{{Note|If you ever made changes in the following steps, at any time you can reload the default configuration with '''make apf9328_defconfig''' or '''make apf27_defconfig'''.}}&lt;br /&gt;
&lt;br /&gt;
[[Image:Menuconfig3.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
*If you are not familiar with Buildroot here are some tips:&lt;br /&gt;
*# you can move the highlighted item with the &amp;quot;up&amp;quot;/&amp;quot;down&amp;quot; arrow keys&lt;br /&gt;
*# with the &amp;quot;left&amp;quot;/&amp;quot;right&amp;quot; arrow keys you can choose between &amp;quot;Select&amp;quot;, &amp;quot;Exit&amp;quot; or &amp;quot;Help&amp;quot; buttons&lt;br /&gt;
*# &amp;quot;space&amp;quot;/&amp;quot;enter&amp;quot;:&lt;br /&gt;
*#* selects the currently highlighted item if you are on the &amp;quot;Select&amp;quot; button&lt;br /&gt;
*#* go back in previous menu if you are on &amp;quot;Exit&amp;quot; button&lt;br /&gt;
*#* show you some Help for current item if you are on &amp;quot;Help&amp;quot; button&lt;br /&gt;
*# for more Help about Buildroot commands, select &amp;quot;Help&amp;quot; in the main configuration screen&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target options  ---&amp;gt; &lt;br /&gt;
:[*] Armadeus Device Support  ---&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:you can check and change the quantity of RAM available on your Armadeus board. Default value 16MB is just fine with all [[APF9328]] boards, for [[APF27]] it could be either 64MB or 128MB (2 x 64MB) (in that case be sure to select 2 chips of 64MB instead of 1 chip of 128MB).&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target filesystem options --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:for each type of filesystems to build, you have the option (''also copy the image to...'') to copy the binary file to secondary location like your tftp server folder (for example ''/tftpboot'').&amp;lt;br&amp;gt;&lt;br /&gt;
:Even U-Boot can be copied to a second location (like ''/tftpboot''). You will find the U-Boot options at the end of the list.&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Kernel --&amp;gt;&lt;br /&gt;
:Destination for linux kernel binaries --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:you will find options to copy Linux to a secondary location (like ''/tftpboot'')&lt;br /&gt;
&lt;br /&gt;
* You may decrease the compilation time by increasing the number of parallel jobs running simultaneously on your system (the result is not guaranteed). This option is located in&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build Options ---&amp;gt;&lt;br /&gt;
:(1) Number of jobs to run simultaneously&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* During the toolchain/distribution automatic build, a lot of software archives are downloaded from Internet. The downloaded files are put by default in the ''armadeus/downloads/'' directory. '''If you have several views or plan to build the toolchain several times''', we advise you to put all the downloaded files in ''/local/downloads'' (for example). This is done by configuring Buildroot to use this directory for all your views. Nevertheless, buildroot will be downloaded separately for each build environment you set up.&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build options  ---&amp;gt; &lt;br /&gt;
:(...) Download dir&amp;lt;/pre&amp;gt;&lt;br /&gt;
:[[Image:Build_config_menu_download.png]]&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
:[[Image:Build_config_download.png]]&lt;br /&gt;
&lt;br /&gt;
* After the build, we advise you too to copy all the files in ''downloads/'' on a removable medium, in case you want to install the development tools on several systems.&lt;br /&gt;
&lt;br /&gt;
* Now, Exit the configuration tool and save your configuration&lt;br /&gt;
&lt;br /&gt;
==Launch build==&lt;br /&gt;
 $ make&lt;br /&gt;
The toolchain and the full distribution are automatically built. During this procedure, several files are downloaded from Internet. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Please wait for a while.... it takes at least one hour for the first run!'''&amp;lt;br&amp;gt;&lt;br /&gt;
By default, the downloaded files/tarball are put in the ''armadeus/downloads/'' directory. Please see the previous chapter to know how to optimize that if you plan to build several views.&lt;br /&gt;
&lt;br /&gt;
==Enjoy the result==&lt;br /&gt;
The generated binary files can be found in the subdirectory ''buildroot/binaries/apfXX/'' (where XX is the name of your board):&lt;br /&gt;
&lt;br /&gt;
*''apf9328-u-boot.brec'' (only on [[APF9328]]): BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working (see [[BootLoader]] page)&lt;br /&gt;
*''apfXX-u-boot.bin'': U-Boot image file to be used with U-Boot itself, (see [[BootLoader#Update_U-Boot | updating U-Boot]])&lt;br /&gt;
*''apfXX-linux.bin'': Linux image to use with U-Boot, (see [[Target_Software_Installation#Linux_kernel_installation | updating Linux]])&lt;br /&gt;
*''apfXX-rootfs.arm.jffs2'': JFFS2 filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apf27-rootfs.arm.ubi'' (only on [[APF27]] &amp;amp; [[APF51]]): [[UBIFS|UBI]] filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apfXX-rootfs.arm.tar'': for an NFS/MMC based rootfs, (see [[Network_Configuration#Boot_from_NFS | Booting from NFS]] &amp;amp; [[MultiMediaCard#Booting_from_MMC.2FSD | Booting from a MMC/SD]])&lt;br /&gt;
&lt;br /&gt;
'''Please note the new naming convention of binary files and directories (since Armadeus 3.0)'''&lt;br /&gt;
&lt;br /&gt;
The toolchain and project files share a new naming convention too (YY is ''4t'' for APF9328 and ''5te'' for APF27):&lt;br /&gt;
*''buildroot/build_armvYY'': contains all non configurable user-space tools and staging dir.&lt;br /&gt;
*''buildroot/project_build_armvYY/apfXX'': contains all configurable user-space tools: target filesystem, &amp;lt;b&amp;gt;linux&amp;lt;/b&amp;gt;, busybox and &amp;lt;b&amp;gt;u-boot&amp;lt;/b&amp;gt;...&lt;br /&gt;
*''buildroot/toolchain_build_armvYY'': cross compilation toolchain's build dir. Binaries are in ''buildroot/build_armvYY/staging_dir/usr/bin''.&lt;br /&gt;
&lt;br /&gt;
More information is available in the  [http://buildroot.uclibc.org/buildroot.html buildroot documentation]&lt;br /&gt;
&lt;br /&gt;
* Note: Previous versions of Armadeus SDK stored the generated binary files at different place ''buildroot/binaries/armadeus/'' and file names did not contained any prefix of board name:&lt;br /&gt;
** ''u-boot.brec'' (BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working)&lt;br /&gt;
** ''u-boot.bin'' (U-Boot image file for use with U-Boot itself)&lt;br /&gt;
** ''linux-kernel-2.6.xx-arm.bin'' (Linux image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.jffs2'' (FileSystem/RootFS image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.tar'' (for an NFS/MMC RootFS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==To keep your local copy/repository up-to-date with the armadeus GIT repository==&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will update your working directory to the latest release.&lt;br /&gt;
&lt;br /&gt;
Note: if &amp;quot;git pull&amp;quot; fails because a directory or a file already exists, then do:&lt;br /&gt;
 $ rm -rf &amp;lt;this-directory/file&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&lt;br /&gt;
You can do a:&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
to have the latest features automatically activated.&lt;br /&gt;
&lt;br /&gt;
You have to do a '''make''' to rebuild binary files and then upload the binary files to your target.&lt;br /&gt;
&lt;br /&gt;
Note: if definitively everything goes wrong while it worked before the last update.&lt;br /&gt;
You can apply the following procedure (all your modifications in buildroot will be lost):&lt;br /&gt;
 $ rm -rf buildroot/&lt;br /&gt;
 $ rm Makefile&lt;br /&gt;
 $ git pull&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	<entry>
		<id>http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9210</id>
		<title>LinuxInstall</title>
		<link rel="alternate" type="text/html" href="http://armadeus.org/wiki/index.php?title=LinuxInstall&amp;diff=9210"/>
				<updated>2010-12-01T15:57:05Z</updated>
		
		<summary type="html">&lt;p&gt;SebastienA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;How-To install Armadeus Software Development Kit (SDK) on Linux systems. This SDK is currently based on the (excellent) [http://buildroot.net/ Buildroot].&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The installation was successfully tested on the following distributions:&lt;br /&gt;
* Debian Sarge (3.1), Etch (4.0) &amp;amp; Lenny (5.0)&lt;br /&gt;
* Fedora Core 3 &amp;amp; 4&lt;br /&gt;
* Fedora 10&lt;br /&gt;
* KUbuntu Edgy Eft (6.10), Gutsy Gibbon (7.10), Hardy Heron (8.04) &amp;amp; Jaunty Jackalope (9.04)&lt;br /&gt;
* Mandriva 2006&lt;br /&gt;
* SuSE 10.1&lt;br /&gt;
* Ubuntu Dapper Drake (6.04), Hardy Heron (8.04),  Intrepid Ibex (8.10) &amp;amp; Lucid Lynx (10.04) (64bits)&lt;br /&gt;
* Xubuntu Edgy Eft (6.10)&lt;br /&gt;
* Red Hat Enterprise 5.2&lt;br /&gt;
* Gentoo 10.0 (32 &amp;amp; 64 bits)&lt;br /&gt;
* OpenSUSE 11.3&lt;br /&gt;
&lt;br /&gt;
'''The installation may fail on:'''&lt;br /&gt;
* Ubuntu Karmic Koala (9.10): tslib fails to build&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Prerequisites for Linux installation==&lt;br /&gt;
{{Note|From here we assume that your Linux system has a ''make'' version '''greater or equal to''' 3.81. To check it: &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ make -v&lt;br /&gt;
GNU Make 3.81&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Depending on your distribution, some additional packages are required.&lt;br /&gt;
&lt;br /&gt;
===Debian/Ubuntu based systems===&lt;br /&gt;
* you can use the following command to get them (assuming your userid is allowed to use sudo (execution of commands as root)):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install build-essential gcc  g++ autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo apt-get install patch subversion texinfo wget git-core&lt;br /&gt;
 sudo apt-get install libncurses5 libncurses5-dev&lt;br /&gt;
 sudo apt-get install zlib1g-dev liblzo2-2 liblzo2-dev&lt;br /&gt;
 sudo apt-get install libacl1 libacl1-dev&lt;br /&gt;
 sudo apt-get install uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add for compiling some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install libglib2.0-dev&lt;br /&gt;
 sudo apt-get install libnetpbm10-dev   (for fbtest)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Ubuntu====&lt;br /&gt;
{{Warning|For Ubuntu based systems, the following is now required if your ''/bin/sh'' is '''not''' pointing to ''/bin/bash'':&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ ls -al /bin/sh&lt;br /&gt;
 lrwxrwxrwx 1 root root 4 2007-12-08 18:33 /bin/sh -&amp;gt; dash&lt;br /&gt;
 $ sudo dpkg-reconfigure dash&lt;br /&gt;
     and select no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Indeed dash do not support all the capabilities needed by Buildroot (our build system).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install gcj-jdk &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Debian====&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo apt-get install java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mandriva based systems=== &lt;br /&gt;
* name of packages are different therefore use the lines hereafter instead (assuming sudo is configured to support root commands):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi gcc  gcc-c++ make autoconf  automake libtool bison flex gettext &lt;br /&gt;
 sudo urpmi patch subversion texinfo wget git&lt;br /&gt;
 sudo urpmi libncurses5 libncurses-devel&lt;br /&gt;
 sudo urpmi zlib1-devel liblzo2_2 liblzo-devel&lt;br /&gt;
 sudo urpmi libacl1 libacl-devel&lt;br /&gt;
 sudo urpmi uuid-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Not mandatory but useful to add some Buildroot packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi libglib2.0-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 sudo urpmi java-gcj-compat-dev &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===RPM-based systems===&lt;br /&gt;
*like RedHat, Fedora, CentOS, the following commands should install all the needed prerequisites (assuming root shell):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 yum install gcc gcc-c++ make autoconf automake libtool bison flex gettext&lt;br /&gt;
 yum install patch subversion texinfo git wget&lt;br /&gt;
 yum install zlib-devel gettext-devel ncurses-devel lzo-devel libacl-devel&lt;br /&gt;
 yum install uuid-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''On Fedora 13 &amp;amp; 14''', as ''uuid-devel'' seems not installed at the right place, you may also need to do the following:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
cd /usr/include&lt;br /&gt;
mkdir uuid&lt;br /&gt;
cp uuid.h uuid&lt;br /&gt;
cd /usr/lib&lt;br /&gt;
ln -s ../../lib64/libuuid.so.1 libuuid.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On Fedora 14''', following operations might be needed:&lt;br /&gt;
** compile make-3.81 from sources (Fedora 14 uses make-3.82 which is too restrictive) and call it explicitly from ''/usr/local/bin/make''&lt;br /&gt;
** install glibc-static to allow insmod.static compilation:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
rpm -ivh glibc-static-2.12.90-15.i686.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Not mandatory but useful to add some extra packages:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install glib2-devel lzo2-devel&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To compile java jamvm and gnu-classpath:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
yum install java-*-openjdk&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''On RedHat Enterprise 5.2''' not all packages are available by default. You can get extra packages here: http://download.fedora.redhat.com/pub/epel/5/i386/ (for example missing ''lzo'' and ''lzo-devel'' can be found here).&lt;br /&gt;
* '''On OpenSUSE 11.3''', following operations might be needed:&lt;br /&gt;
&lt;br /&gt;
==Get Armadeus software==&lt;br /&gt;
* '''If you are a &amp;quot;careful&amp;quot; user''', then download [https://sourceforge.net/projects/armadeus/files/ the latest stable installation tarball from SourceForge] and detar it wherever you want:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ tar xjvf armadeus-3.3.tar.bz2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''If you want the latest snapshot''', the whole development tree can checked out from the [[GIT]] repository. (SVN repository is no more maintained !!!)&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git clone git://armadeus.git.sourceforge.net/gitroot/armadeus/armadeus armadeus&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* depending on your previous choice, a directory named ''armadeus/'' or ''armadeus-3.3/'' will be created on your hard-disk and will contain all the files you need.&lt;br /&gt;
&lt;br /&gt;
'''Remarks''':&lt;br /&gt;
* '''Do not use spaces''' in the directory name !&lt;br /&gt;
* GIT write/push  accesses are limited to the integrators ([[User:JulienB|JulienB]], [[User:Salocin68|Salocin68]], [[User:Jorasse|Jorasse]], [[User:FabienM|FabienM]])&lt;br /&gt;
&lt;br /&gt;
==Configure SDK options==&lt;br /&gt;
{{Note|If you are new to Armadeus and have troubles compiling armadeus-3.3 using the following instructions, you may find some hints here: [[Armadeus 3.3 Troubleshots]]}}&lt;br /&gt;
*Go to the directory where you put the Armadeus sources:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ cd armadeus/  (or armadeus-3.3/)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The first time you compile an Armadeus distribution you have to specify the target to work with. &lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf9328_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This command reloads the default configuration to support an [[APF9328|APF9328 board]] and automatically start a Buildroot's configuration menu. For the [[APF27]] it would be:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make apf27_defconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*After some downloads you will get the Buildroot configuration interface:&lt;br /&gt;
&lt;br /&gt;
{{Note|If you ever made changes in the following steps, at any time you can reload the default configuration with '''make apf9328_defconfig''' or '''make apf27_defconfig'''.}}&lt;br /&gt;
&lt;br /&gt;
[[Image:Menuconfig3.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
*If you are not familiar with Buildroot here are some tips:&lt;br /&gt;
*# you can move the highlighted item with the &amp;quot;up&amp;quot;/&amp;quot;down&amp;quot; arrow keys&lt;br /&gt;
*# with the &amp;quot;left&amp;quot;/&amp;quot;right&amp;quot; arrow keys you can choose between &amp;quot;Select&amp;quot;, &amp;quot;Exit&amp;quot; or &amp;quot;Help&amp;quot; buttons&lt;br /&gt;
*# &amp;quot;space&amp;quot;/&amp;quot;enter&amp;quot;:&lt;br /&gt;
*#* selects the currently highlighted item if you are on the &amp;quot;Select&amp;quot; button&lt;br /&gt;
*#* go back in previous menu if you are on &amp;quot;Exit&amp;quot; button&lt;br /&gt;
*#* show you some Help for current item if you are on &amp;quot;Help&amp;quot; button&lt;br /&gt;
*# for more Help about Buildroot commands, select &amp;quot;Help&amp;quot; in the main configuration screen&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target options  ---&amp;gt; &lt;br /&gt;
:[*] Armadeus Device Support  ---&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
:you can check and change the quantity of RAM available on your Armadeus board. Default value 16MB is just fine with all [[APF9328]] boards, for [[APF27]] it could be either 64MB or 128MB (2 x 64MB) (in that case be sure to select 2 chips of 64MB instead of 1 chip of 128MB).&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Target filesystem options --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:for each type of filesystems to build, you have the option (''also copy the image to...'') to copy the binary file to secondary location like your tftp server folder (for example ''/tftpboot'').&amp;lt;br&amp;gt;&lt;br /&gt;
:Even U-Boot can be copied to a second location (like ''/tftpboot''). You will find the U-Boot options at the end of the list.&lt;br /&gt;
&lt;br /&gt;
*In menu:&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Kernel --&amp;gt;&lt;br /&gt;
:Destination for linux kernel binaries --&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
:you will find options to copy Linux to a secondary location (like ''/tftpboot'')&lt;br /&gt;
&lt;br /&gt;
* You may decrease the compilation time by increasing the number of parallel jobs running simultaneously on your system (the result is not guaranteed). This option is located in&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build Options ---&amp;gt;&lt;br /&gt;
:(1) Number of jobs to run simultaneously&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* During the toolchain/distribution automatic build, a lot of software archives are downloaded from Internet. The downloaded files are put by default in the ''armadeus/downloads/'' directory. '''If you have several views or plan to build the toolchain several times''', we advise you to put all the downloaded files in ''/local/downloads'' (for example). This is done by configuring Buildroot to use this directory for all your views. Nevertheless, buildroot will be downloaded separately for each build environment you set up.&lt;br /&gt;
:&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;Build options  ---&amp;gt; &lt;br /&gt;
:(...) Download dir&amp;lt;/pre&amp;gt;&lt;br /&gt;
:[[Image:Build_config_menu_download.png]]&amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
:[[Image:Build_config_download.png]]&lt;br /&gt;
&lt;br /&gt;
* After the build, we advise you too to copy all the files in ''downloads/'' on a removable medium, in case you want to install the development tools on several systems.&lt;br /&gt;
&lt;br /&gt;
* Now, Exit the configuration tool and save your configuration&lt;br /&gt;
&lt;br /&gt;
==Launch build==&lt;br /&gt;
 $ make&lt;br /&gt;
The toolchain and the full distribution are automatically built. During this procedure, several files are downloaded from Internet. &amp;lt;br&amp;gt;&lt;br /&gt;
'''Please wait for a while.... it takes at least one hour for the first run!'''&amp;lt;br&amp;gt;&lt;br /&gt;
By default, the downloaded files/tarball are put in the ''armadeus/downloads/'' directory. Please see the previous chapter to know how to optimize that if you plan to build several views.&lt;br /&gt;
&lt;br /&gt;
==Enjoy the result==&lt;br /&gt;
The generated binary files can be found in the subdirectory ''buildroot/binaries/apfXX/'' (where XX is the name of your board):&lt;br /&gt;
&lt;br /&gt;
*''apf9328-u-boot.brec'' (only on [[APF9328]]): BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working (see [[BootLoader]] page)&lt;br /&gt;
*''apfXX-u-boot.bin'': U-Boot image file to be used with U-Boot itself, (see [[BootLoader#Update_U-Boot | updating U-Boot]])&lt;br /&gt;
*''apfXX-linux.bin'': Linux image to use with U-Boot, (see [[Target_Software_Installation#Linux_kernel_installation | updating Linux]])&lt;br /&gt;
*''apfXX-rootfs.arm.jffs2'': JFFS2 filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apf27-rootfs.arm.ubi'' (only on [[APF27]] &amp;amp; [[APF51]]): [[UBIFS|UBI]] filesystem/rootfs image to use with U-Boot, (see [[Target_Software_Installation#Linux_rootfs_installation | updating rootfs]])&lt;br /&gt;
*''apfXX-rootfs.arm.tar'': for an NFS/MMC based rootfs, (see [[Network_Configuration#Boot_from_NFS | Booting from NFS]] &amp;amp; [[MultiMediaCard#Booting_from_MMC.2FSD | Booting from a MMC/SD]])&lt;br /&gt;
&lt;br /&gt;
'''Please note the new naming convention of binary files and directories (since Armadeus 3.0)'''&lt;br /&gt;
&lt;br /&gt;
The toolchain and project files share a new naming convention too (YY is ''4t'' for APF9328 and ''5te'' for APF27):&lt;br /&gt;
*''buildroot/build_armvYY'': contains all non configurable user-space tools and staging dir.&lt;br /&gt;
*''buildroot/project_build_armvYY/apfXX'': contains all configurable user-space tools: target filesystem, &amp;lt;b&amp;gt;linux&amp;lt;/b&amp;gt;, busybox and &amp;lt;b&amp;gt;u-boot&amp;lt;/b&amp;gt;...&lt;br /&gt;
*''buildroot/toolchain_build_armvYY'': cross compilation toolchain's build dir. Binaries are in ''buildroot/build_armvYY/staging_dir/usr/bin''.&lt;br /&gt;
&lt;br /&gt;
More information is available in the  [http://buildroot.uclibc.org/buildroot.html buildroot documentation]&lt;br /&gt;
&lt;br /&gt;
* Note: Previous versions of Armadeus SDK stored the generated binary files at different place ''buildroot/binaries/armadeus/'' and file names did not contained any prefix of board name:&lt;br /&gt;
** ''u-boot.brec'' (BRecord image that can be used with the bootstrap, if U-Boot is not installed or not working)&lt;br /&gt;
** ''u-boot.bin'' (U-Boot image file for use with U-Boot itself)&lt;br /&gt;
** ''linux-kernel-2.6.xx-arm.bin'' (Linux image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.jffs2'' (FileSystem/RootFS image to use with U-Boot)&lt;br /&gt;
** ''rootfs.arm.tar'' (for an NFS/MMC RootFS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==To keep your local copy/repository up-to-date with the armadeus GIT repository==&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will update your working directory to the latest release.&lt;br /&gt;
&lt;br /&gt;
Note: if &amp;quot;git pull&amp;quot; fails because a directory or a file already exists, then do:&lt;br /&gt;
 $ rm -rf &amp;lt;this-directory/file&amp;gt;&lt;br /&gt;
 $ git pull&lt;br /&gt;
&lt;br /&gt;
You can do a:&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
to have the latest features automatically activated.&lt;br /&gt;
&lt;br /&gt;
You have to do a '''make''' to rebuild binary files and then upload the binary files to your target.&lt;br /&gt;
&lt;br /&gt;
Note: if definitively everything goes wrong while it worked before the last update.&lt;br /&gt;
You can apply the following procedure (all your modifications in buildroot will be lost):&lt;br /&gt;
 $ rm -rf buildroot/&lt;br /&gt;
 $ rm Makefile&lt;br /&gt;
 $ git pull&lt;br /&gt;
 $ make apfXX_defconfig&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SebastienA</name></author>	</entry>

	</feed>