Skip to content

Latest commit

 

History

History
123 lines (87 loc) · 3.1 KB

Documentation.md

File metadata and controls

123 lines (87 loc) · 3.1 KB

TP-Armadeus-CryptoMorse

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.

How to compile the armadeus BSP

  • 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

(Optional) Python Dev

Tutorial

Communicating with board using TFTP

Installing TFTP

Tutorial

  1. 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
  2. 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
    }
    
  3. Restart xinetd service

    > sudo killall -HUP xinetd

Connect to the board

Configure minicom

Tutorial

Access BIOS

  1. Connect to the board using minicom
  2. Reset the board (button RESET)
  3. Cancel the boot by pressing any key...

Configure IP addresses

> setenv ipaddr <ip found with dhcp>
> setenv serverip <PC/host ip>	# 172.20.5.2 works well
> saveenv

Restart

Flashing the kernel

Tutorial

Copy the images to tftp and

> cp buildroot/output/images/* /tftpboot
> run update_kernel
> run update_rootfs

Troubleshooting

How to reset everything

BIOS> run update_uboot
BIOS> reset
BIOS> run flash_reset_env
...
BIOS> run update_kernel
BIOS> run update_rootfs

Sending a binary to the board

Tutorial

Use arm-linux-gcc in (armadeus/buildroot/output/host/usr/bin/) to compile and generate the binary of your code for the armadeus

Using autotools to compile the project

Tutorial