Skip to content

shvit/server-fw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TFTP firmware server

Intro

This TFTP firmware server wonderful used in embedded firmware development.
When you have many firmware snapshots for complex testing (regression, functional, etc).
You don't operate file names or directories of firmware, no, now only its md5 sums.

Futures

  • get file by md5 sum in *.md5 files
  • one root server directory for server upload (and download)
  • can set many serach directory for server download

Plans for future

  • using Firebird SQL server as main firmware storage

Requirements

  • Ubuntu 18.04 LTE (newer not tested)

Other GNU Linux distros not tested, sorry

  • Clang or GCC as last stable version (using C++17)

For install clang:

sudo apt-get update
sudo apt-get install llvm clang clang-tools
  • OpenSSL library
sudo apt-get install libssl-dev

How build and use

  1. Get sources

Get stable version

mkdir server-fw
git clone https://github.com/shvit/server-fw.git -b master server-fw

Get unstable develop version, but with latest futures (see at HISTORY file)

mkdir server-fw
git clone https://github.com/shvit/server-fw.git -b develop server-fw
  1. Make binary file (you can skip this and go to 3)
cd server-fw
make release

Type "bin/server-fw -h" for server settings in help information

  1. Disable any listening 69 port other executables
sudo netstat -lup|grep "69\|tftp"
  1. Install firmware tftp server

make install
By default, make root server directory /mnt/tftp and one search directory /mnt/backup
mkdir -p /mnt/tftp
mkdir -p /mnt/backup

  1. Copy firmware files to directory /mnt/tftp or /mnt/backup and make *.md5 files

File in search directory /mnt/backup can place in separate nested directory or with unique file names
For each file in search directory make *.md5 file:

md5sum file > file.md5

Profit!

Uninstall

For uninstall server-fw

make uninstall

License

GNU general public license version 3.
See LICENSE file in root directory.

Author

Vitaliy Shirinkin, Russia, 2019-2021
e-mail: vitaliy.shirinkin@gmail.com

History

See HISTORY file in root directory.

About

TFTP firmware server. Can do recursive search files by md5 checksum (in *.md5 files)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published