<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wikilegacy.armadeus.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=GregoireV</id>
	<title>ArmadeusWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wikilegacy.armadeus.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=GregoireV"/>
	<link rel="alternate" type="text/html" href="http://wikilegacy.armadeus.com/index.php?title=Special:Contributions/GregoireV"/>
	<updated>2026-04-28T01:56:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://wikilegacy.armadeus.com/index.php?title=Target_Software_Installation&amp;diff=2056</id>
		<title>Target Software Installation</title>
		<link rel="alternate" type="text/html" href="http://wikilegacy.armadeus.com/index.php?title=Target_Software_Installation&amp;diff=2056"/>
		<updated>2007-02-04T17:54:31Z</updated>

		<summary type="html">&lt;p&gt;GregoireV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Flash memory partitions===&lt;br /&gt;
{| cellspacing=5 cellpadding=5 border=0 width=100% &lt;br /&gt;
|- style=&amp;quot;background:black; color:white; font-size:16px&amp;quot; &lt;br /&gt;
! width=&amp;quot;66%&amp;quot; | Address range !! type&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|0x10000000 - 0x10040000 ( 256KB )&lt;br /&gt;
| U-Boot&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|0x10040000 - 0x10060000 ( 128KB )&lt;br /&gt;
| U-Boot environment variables&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|0x10060000 - 0x100A0000 ( 256KB )&lt;br /&gt;
| FPGA bitfile&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|0x100A0000 - 0x10220000 ( 1.5MB )&lt;br /&gt;
| Linux kernel image&lt;br /&gt;
|- align=&amp;quot;center&amp;quot;&lt;br /&gt;
|0x10220000 - 0x10800000 ( ~6 MB  )&lt;br /&gt;
| Root filesystem&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configure U-Boot==&lt;br /&gt;
&lt;br /&gt;
There is a set of variables you can customize to your needs.&lt;br /&gt;
The commande &#039;&#039;&#039;printenv&#039;&#039;&#039; show you most of them and their current state.&lt;br /&gt;
Use the command &#039;&#039;&#039;setenv&#039;&#039;&#039; to change one of these variable.&lt;br /&gt;
For instance:&lt;br /&gt;
 setenv ipaddr 192.168.0.3&lt;br /&gt;
Use the command &#039;&#039;&#039;saveenv&#039;&#039;&#039; to save the state of your environment variables in flash memory.&lt;br /&gt;
&lt;br /&gt;
In order to use network features with u-boot you have to set the network environment variables:&lt;br /&gt;
 setenv netmask=255.255.255.0 (default value should be fine in most situations)&lt;br /&gt;
 setenv ipaddr 192.168.0.3 &lt;br /&gt;
 setenv serverip=192.168.0.5 (the IP adresse of your tftp host server to download update files )&lt;br /&gt;
 setenv rootpath &amp;quot;/tftpboot/root&amp;quot; (to boot linux over nfs)&lt;br /&gt;
&lt;br /&gt;
You can use the &#039;&#039;&#039;dhcp&#039;&#039;&#039; command to configure these variable from your dhcp server. Probably you will have to adjust the &#039;&#039;&#039;serverip&#039;&#039;&#039; variable manually.&lt;br /&gt;
&lt;br /&gt;
 BIOS&amp;gt; dhcp&lt;br /&gt;
 dm9000 i/o: 0x15c00000, id: 0x90000a46&lt;br /&gt;
 MAC: 00:0e:32:00:00:01&lt;br /&gt;
 operating at 100M full duplex mode&lt;br /&gt;
 BOOTP broadcast 1&lt;br /&gt;
 DHCP client bound to address 192.168.0.3&lt;br /&gt;
 BIOS&amp;gt;setenv serverip=192.168.0.5&lt;br /&gt;
 BIOS&amp;gt;saveenv&lt;br /&gt;
&lt;br /&gt;
Do not forget to save your changes in flash with &#039;&#039;&#039;saveenv&#039;&#039;&#039; to have them available at power up. In case of troubleshoots you can use the script &#039;&#039;&#039;run flash_reset_env&#039;&#039;&#039; to reset the variables to the factory settings.&lt;br /&gt;
&lt;br /&gt;
===Linux kernel installation===&lt;br /&gt;
&lt;br /&gt;
First check your kernel size is smaller than the armadeus kernel partiiton (ex 1MB) How ??????????????????????????&lt;br /&gt;
Load kernel image with u-boot through network:&lt;br /&gt;
    BIOS&amp;gt; tftpboot 08000000 pathtoyourhostedbuildrootdir/linux-kernel-2.6.12-arm.bin&lt;br /&gt;
or serial line:&lt;br /&gt;
    BIOS&amp;gt; loadb 08000000&lt;br /&gt;
    Ctrl+Altgr+\+c to access kermit command line then...&lt;br /&gt;
    send pathtoyourhostedbuildrootdir/linux-kernel-2.6.12-arm.bin&lt;br /&gt;
    the you can type the c command to reconnect to the terminal&lt;br /&gt;
&lt;br /&gt;
Flash kernel image with:&lt;br /&gt;
    BIOS&amp;gt; run flash_kernel&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&lt;br /&gt;
!!! WARNING!! If the new kernel is too large, this operation can destroy data that is stored behind the kernel (e.g. rootfs) !!!&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
Check that Bytes transferred = 1040676 (fe124 hex) value is less than 0xfffff  ????????????????????????,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Linux rootfs installation===&lt;br /&gt;
Load rootfs image with u-boot through network:&lt;br /&gt;
    BIOS&amp;gt; tftpboot 08000000 pathtoyourhostedbuildrootdir/rootfs.arm_nofpu.jffs2&lt;br /&gt;
or serial line:&lt;br /&gt;
    BIOS&amp;gt; loadb 08000000&lt;br /&gt;
    Ctrl+Altgr+\+c to access kermit command line then...&lt;br /&gt;
    send pathtoyourhostedbuildrootdir/rootfs.arm_nofpu.jffs2&lt;br /&gt;
the you can type the c command to reconnect to the terminal&lt;br /&gt;
&lt;br /&gt;
Flash rootfs image with:&lt;br /&gt;
    BIOS&amp;gt; run flash_rootfs&lt;br /&gt;
&lt;br /&gt;
Now you should be ready to test linux:&lt;br /&gt;
    BIOS&amp;gt; boot&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===FPGA firmware installation===&lt;br /&gt;
&lt;br /&gt;
The FPGA firmwares are in the armadeus/software/firmware tree&lt;br /&gt;
You can make some trials with the armadeus/software/firmware/ps2/ps2_top.bin file&lt;br /&gt;
!!! check your file size is smaller than the firmware partition size (AKA 256KB)&lt;br /&gt;
&lt;br /&gt;
Load FPGA firmware image file with u-boot through network:&lt;br /&gt;
    BIOS&amp;gt; tftpboot 08000000 pathtoyourhostedfirmwaredir/fpgafirmware.bin&lt;br /&gt;
or serial line:&lt;br /&gt;
    BIOS&amp;gt; loadb 08000000&lt;br /&gt;
    Ctrl+Altgr+\+c to access kermit command line then...&lt;br /&gt;
    C-Kermit&amp;gt; send pathtoyourhostedfirmwaredir/fpgafirmware.bin&lt;br /&gt;
then you can type the c command to reconnect to the terminal&lt;br /&gt;
&lt;br /&gt;
Flash firmware image with:&lt;br /&gt;
    BIOS&amp;gt; run flash_firmware&lt;br /&gt;
&lt;br /&gt;
Test your new FPGA firmware:&lt;br /&gt;
    BIOS&amp;gt; fpga load 0 ${firmware_addr} ${firmware_len}&lt;br /&gt;
&lt;br /&gt;
When your are satisfied with your firmware you can make it autoloaded at power up:&lt;br /&gt;
    BIOS&amp;gt; setenv firmware_autoload 1&lt;br /&gt;
    BIOS&amp;gt; saveenv&lt;br /&gt;
&lt;br /&gt;
==Update U-Boot==&lt;br /&gt;
&lt;br /&gt;
There are two steps to update u-boot:&lt;br /&gt;
*1] Load the new u-boot code in RAM&lt;br /&gt;
You can use the following commands to download U-boot.&lt;br /&gt;
With ethernet and a tftpboot server:&lt;br /&gt;
    tftpboot 08000000 /tftpboot_path_to_buildroot/u-boot.bin&lt;br /&gt;
With ethernet and a nfs server:&lt;br /&gt;
    nfs 08000000 host_ip_addr:/nfs_path_to_buildroot/u-boot.bin&lt;br /&gt;
With the kermit and a serial line&lt;br /&gt;
    loadb 08000000&lt;br /&gt;
    &amp;lt;CTRL&amp;gt;&amp;lt;ALT GR&amp;gt;\&lt;br /&gt;
    c&lt;br /&gt;
    send path_to_buildroot/u_boot.bin&lt;br /&gt;
    c&lt;br /&gt;
&lt;br /&gt;
*2] Transfer code from RAM to Flash memory&lt;br /&gt;
There is a simple u-boot command/script to do that:&lt;br /&gt;
    run flash_uboot&lt;br /&gt;
&lt;br /&gt;
advanced information can be found at the [[BootLoader]] wiki page.&lt;/div&gt;</summary>
		<author><name>GregoireV</name></author>
	</entry>
	<entry>
		<id>http://wikilegacy.armadeus.com/index.php?title=Communicate_with_your_board_from_a_Linux_Host_(Basics)&amp;diff=2055</id>
		<title>Communicate with your board from a Linux Host (Basics)</title>
		<link rel="alternate" type="text/html" href="http://wikilegacy.armadeus.com/index.php?title=Communicate_with_your_board_from_a_Linux_Host_(Basics)&amp;diff=2055"/>
		<updated>2007-02-04T16:57:50Z</updated>

		<summary type="html">&lt;p&gt;GregoireV: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==RS232 configuration==&lt;br /&gt;
We suggest you to use Kermit as Terminal emulator for RS232 connection. Minicom was sadly reported to have problems when communicating with U-Boot.&lt;br /&gt;
&lt;br /&gt;
===Kermit installation===  &lt;br /&gt;
* On Ubuntu:&lt;br /&gt;
 apt-get install ckermit&lt;br /&gt;
or use Synaptic graphical package manager.&lt;br /&gt;
&lt;br /&gt;
* On Fedora:&lt;br /&gt;
 rpm -q ckermit&lt;br /&gt;
&lt;br /&gt;
===Kermit configuration===  &lt;br /&gt;
* Edit/Create .kermrc file in your $HOME directory and put it in:&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;
* In this example, we assume that your serial port is ttyS0 (first serial port). Change this to correct value if necessary.&lt;br /&gt;
* If you use an USB&amp;lt;-&amp;gt;Serial converter then serial port would surely be named like that: ttyUSB0&lt;br /&gt;
* If you get an error message such&lt;br /&gt;
 $ kermit -c&lt;br /&gt;
  /dev/ttyS0 &lt;br /&gt;
  ?SET SPEED has no effect without prior SET LINE &lt;br /&gt;
check that you have read/write rights on /dev/ttyS0 (btw. your serial port)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Kermit usage===  &lt;br /&gt;
* To launch it:&lt;br /&gt;
 $ kermit -c&lt;br /&gt;
* To switch from terminal mode to command mode:&lt;br /&gt;
 CTRL + \ + c&lt;br /&gt;
* To switch from command mode to terminal mode:&lt;br /&gt;
 C-Kermit&amp;gt;c&lt;br /&gt;
&lt;br /&gt;
==TFTP server==&lt;br /&gt;
In order to send your image files (U-Boot, Linux zImage, rootfs ...) with higher speed to the armadeus board, you can use a tftp server.&lt;br /&gt;
Once the server started, the files located in the server shared directory (/tftpboot by default) will be accessible from the U-Boot TFTP client.&lt;br /&gt;
&lt;br /&gt;
===TFTP server installation===  &lt;br /&gt;
* On Ubuntu:&lt;br /&gt;
 # apt-get install tftpd&lt;br /&gt;
or use Synaptic&amp;lt;br&amp;gt;&lt;br /&gt;
* On Fedora:&lt;br /&gt;
 # rpm -q tftpd&lt;br /&gt;
&lt;br /&gt;
Then create the directory that will contain all the files that the server will export (you have to be root to do that):&lt;br /&gt;
 # mkdir /tftpboot&lt;br /&gt;
 # chmod 777 /tftpboot&lt;br /&gt;
&lt;br /&gt;
===Server configuration===  &lt;br /&gt;
Edit 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;
 # killall -HUP xinetd&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
* [http://www.columbia.edu/kermit/ Kermit Homepage]&lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>GregoireV</name></author>
	</entry>
</feed>