This repository contains a Embedded System group project.
The goal of the project is to create a software for the Armadeus board that receives messages, crypt them, convert them to morse, and send them through GPIOs.
- gcc version: 4.8.4
- g++ version: 4.8.4
> git clone https://github.com/pblottiere/armadeus.git
> cd armadeus
> make apf28_defconfig
# make sure you have g++
> make all
Note: the make
command needs to download files, so it might not work on the school connection because of the proxy
-
Install and create the folder for exchanging tftp files
# install tftp > sudo apt-get install tftpd xinetd # create the folder for exchange > sudo mkdir /tftpboot > sudo chmod 777 /tftpboot
-
Edit or create the configuration file /etc/xinetd.d/tftp and modify/add it the following lines:
# default: off # description: The tftp server serves files using the trivial file transfer # protocol. The tftp protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process for some operating systems. service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot # disable = yes }
-
Restart xinetd service
> sudo killall -HUP xinetd
- Connect to the board using
minicom
- Reset the board (button RESET)
- Cancel the boot by pressing any key...
> setenv ipaddr <ip found with dhcp>
> setenv serverip <PC/host ip> # 172.20.5.2 works well
> saveenv
Restart
Copy the images to tftp and
> cp buildroot/output/images/* /tftpboot
> run update_kernel
> run update_rootfs
How to reset everything
BIOS> run update_uboot
BIOS> reset
BIOS> run flash_reset_env
...
BIOS> run update_kernel
BIOS> run update_rootfs
Use arm-linux-gcc
in (armadeus/buildroot/output/host/usr/bin/
) to compile and generate the binary of your code for the armadeus