Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

IFAEControl/gfa-deploy-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7cd1af8 · Jul 23, 2021

History

39 Commits
Oct 5, 2018
Nov 20, 2018
Nov 28, 2018
Dec 13, 2018
Mar 21, 2019
Mar 28, 2019
Apr 11, 2019
Apr 23, 2019
Jul 3, 2020
Oct 20, 2020
Oct 20, 2020
Nov 2, 2020
Nov 5, 2020
Nov 5, 2020
Jul 23, 2021
Nov 5, 2020
Oct 29, 2020
Oct 27, 2020
Jul 23, 2021

Repository files navigation

How to

Client side

To install client components check that you have python installed and also the virtualenv package. In ubuntu and debian this package it's called python3.6-venv.

To install client components of a release use the next script:

utils/deploy_client.sh <dir>

where dir is the directory where the python virtual environment will be created. Example usage: utils/deploy_client.sh /tmp

This script will install all the libraries and dependencies. To activate this virtual environment execute source <dir>/gfa_venv/bin/activate

Server side

Copy tar file with the firmware to the remote system: scp <release>/*.tar root@<ip>:/tmp/yocto.tar

Then, once we get a shell in the remote system we should copy the firmware files to the appropriate place.

If we are using an SD card then we will use the next script:

mount /dev/mmcblk0p1 /mnt
/bin/rm -f /mnt/*
tar --no-same-owner -xvf /tmp/yocto.tar -C /mnt/
umount /mnt

If we are using the QSPI flash memory (if there are some error fix it before rebooting):

tar --no-same-owner -xvf /tmp/yocto.tar -C /tmp/
cd /tmp
flashcp -v boot.bin /dev/mtd0
flashcp -v uImage /dev/mtd1
flashcp -v devicetree.dtb /dev/mtd2
flashcp -v uramdisk /dev/mtd5

Once copied the system must be rebooted: reboot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages