How matu6968/libre-gxdl works
libre-gxdl is a Python command-line downloader and flash-management tool for NationalChip GX devices. The principal workflow is to select a board-compatible bootloader, connect over serial, and issue commands to read or write device storage; flash transfers can also use TFTP or a USB drive attached to the device. The README documents partition, OTP, flash-management, configuration, and comparison capabilities. The sampled implementation is one large module, so feature nodes share its exact path; unsampled command-dispatch details are not inferred.
Main entry points: libre_gxdl.py CLI and dispatcher · loaders Board bootloaders
Components 16
Device session
- CLI and dispatcher
libre_gxdl.py - Serial boot upload
libre_gxdl.py - Board bootloaders
loaders
Partition transfers
- Serial partitions
libre_gxdl.py - TFTP partitions
libre_gxdl.py - USB partitions
libre_gxdl.py
Memory operations
- Flash management
libre_gxdl.py - GX OTP
libre_gxdl.py - SPI Flash OTP
libre_gxdl.py
Command utilities
- Config commands
libre_gxdl.py - File comparison
libre_gxdl.py
Other components
- Operator
- GX device
- Host files
- PC TFTP peer
- Attached USB drive
Connections 24
- Operator → CLI and dispatcher: runs commands
README.md - CLI and dispatcher → Serial boot upload: selects boot
README.md - Serial boot upload → Board bootloaders: loads image
README.md - Serial boot upload → GX device: boots over serial
README.md - CLI and dispatcher → Serial partitions: invokes dump/down
README.md - Serial partitions → GX device: transfers serial data
README.md - Serial partitions → Host files: reads or writes files
README.md - CLI and dispatcher → TFTP partitions: invokes netdump/netdown
README.md - TFTP partitions → GX device: transfers partitions
README.md - TFTP partitions → PC TFTP peer: exchanges TFTP data
README.md - TFTP partitions → Host files: reads or writes files
README.md - CLI and dispatcher → USB partitions: invokes usbdump/usbdown
README.md - USB partitions → GX device: transfers partitions
README.md - USB partitions → Attached USB drive: reads or writes
README.md - CLI and dispatcher → Flash management: invokes flash commands
README.md - Flash management → GX device: manages flash
README.md - CLI and dispatcher → GX OTP: invokes gx_otp
README.md - GX OTP → GX device: reads or writes OTP
README.md - CLI and dispatcher → SPI Flash OTP: invokes sflash_otp
README.md - SPI Flash OTP → GX device: manages flash OTP
README.md - CLI and dispatcher → Config commands: invokes config loading
README.md - Config commands → GX device: sends configured commands
README.md - CLI and dispatcher → File comparison: invokes comparison
README.md - File comparison → Host files: compares files
README.md