- Introduction
- Features
- Requirements
- Installation
- Usage
- Interactive Menu System
- Device Monitoring
- Command-line Options
- Troubleshooting
- Contributing
- License
The FujiNet Firmware Uploader is a Python script designed to simplify the process of downloading and flashing firmware updates for FujiNet devices. It automates the retrieval of firmware releases from the official FujiNet GitHub repository, allows users to select specific versions through an interactive menu system, handles the flashing process using esptool.py
, and provides device monitoring capabilities after flashing.
- Fetches the latest firmware releases from the FujiNet GitHub repository
- Interactive menu system for selecting firmware versions and files
- Automatic detection of USB ports for macOS and Linux systems
- Downloads and extracts firmware files
- Flashes firmware and filesystem images to FujiNet devices
- Monitors device output after flashing
- Supports automatic selection of the latest firmware version
- Python 3.6 or higher
pip
(Python package installer)- Internet connection for downloading firmware releases
- FujiNet device connected via USB
-
Clone or download this script to your local machine.
-
Install the required Python packages:
pip install requests
-
Ensure you have
esptool.py
installed:pip install esptool
-
Install
platformio
for the monitoring feature:pip install platformio
-
Connect your FujiNet device to your computer via USB.
-
Run the script:
python fujinet_firmware_uploader.py
-
Follow the on-screen prompts to select and flash the firmware.
-
After flashing, the script will automatically start monitoring the device output.
The script provides an interactive menu system to guide you through the firmware selection and flashing process:
-
Release Selection: The script will present a list of available firmware releases fetched from the FujiNet GitHub repository. You can choose a specific release by entering its corresponding number.
-
File Selection: If a release contains multiple firmware files (e.g., for different FujiNet variants), you'll be presented with a menu to choose the appropriate file.
-
Confirmation: The script will display the selected release and file information for confirmation before proceeding with the download and flashing process.
This menu system ensures that you have full control over which firmware version is installed on your FujiNet device.
After successfully flashing the firmware, the script automatically enters a monitoring mode:
- The script uses the
platformio
tool to establish a serial connection with the FujiNet device. - It displays the device's output in real-time, allowing you to see the boot process and any diagnostic information.
- This monitoring feature is crucial for verifying that the firmware was installed correctly and that the device is functioning as expected.
- To exit the monitoring mode, you can typically use the key combination
Ctrl+C
.
The monitoring feature provides immediate feedback on the success of the firmware update and can be helpful for troubleshooting if any issues arise.
-
-l
or--latest
: Automatically select and flash the latest firmware version, bypassing the interactive menus.Example:
python fujinet_firmware_uploader.py --latest
Please note: this option is not complete, it will select the first release and the first zip from that release it finds. Do not use it at this time.
- If you encounter a "Missing module" error, install the required module using pip as instructed by the error message.
- Ensure only one FujiNet device is connected when flashing.
- If flashing fails, check the USB connection and try again.
- Make sure you have the necessary permissions to access the USB port on your system.
- If the device doesn't appear to boot after flashing, try power cycling the FujiNet device.
- During monitoring, if you don't see any output, ensure that the baud rate (default: 460800) matches your FujiNet device's configuration.
Contributions to improve the FujiNet Firmware Uploader are welcome. Please submit pull requests or open issues on the project's GitHub repository.
This is licensed under the Serious License