-
Notifications
You must be signed in to change notification settings - Fork 0
Manual way
Welcome to the pielectricseagles-usb-update-desktop wiki!
Prerequisite:
- USB stick with FAT32 format
- Any software of receiving checksum of file
- Having files for our drone application
- Any text editor
To do:
- Create folder
encrypted_update
- Open folder
encrypted_update
and create folderupdate
in insideencrypted_update
directory - Copy your files to
encrypted_update/update
directory - Add/Copy your three different scripts to
encrypted_update
directory (should be before installation, after installation and during installation scripts) - Add your JSON file
update.json
inencrypted_update
directory. You must correct copy/paste checksum after getting checksum file via software. Write each filename and destination path to install each file. You must exact name files that matches name of files inencrypted_update/update
directory - Compress the folder
encrypted_update
with password. This compressed folder must be named encrypted_update.7z. Please record your password, because you will add this password to JSON filestart_update.json
according instruction. - Add your JSON file
start_update.json
outside nearestencrypted_update
directory. - Copy two files of
start_update.json
and encrypted_update.7z to USB drive
Required scripts:
This script should show like (FOR update.json
)
{
"update": [
{
"location_file": "config.ini",
"checksum": "1bc8083fe988bf49f998ac548276987e49488677",
"version": "1.0.0",
"install_path": "/etc/pielectricseagles/config"
},
{
"location_file": "pielectricseagles",
"checksum": "9acdd06040c744a731fa25a22ccee3b801ab8a38",
"version": "1.0.1",
"install_path": "/usr/bin/pielectricseagles"
}
]
}
Where:
"location_file"
is location filename for directory encrypted_update/update
"checksum"
is checksum files for directory encrypted_update/update
"version"
is setting version
"install_path"
is destination path to install this file to Raspberry Pi Zero device
This script should show like (FOR start_update.json
)
{
"update": {
"file_name": "encrypted_update.zip",
"checksum": "ef83d6fd532561bbb4bae070fdfb5f64ea813ecb",
"vendor_id": "0781",
"product_id": "5567"
}
}
Where:
"file_name"
is name of file compressed 7z folder (usually we write: "encrypted_update.7z")
"checksum"
is checksum of encrypted_update.7z
"vendor_id"
is first of four character password of compress 7z folder (e.g. 1234)
"product_id"
is fifth of four character password of compress 7z folder (e.g. 5678)