# OsTools **Repository Path**: woniu-dev/OsTools ## Basic Information - **Project Name**: OsTools - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-03 - **Last Updated**: 2024-12-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OsTools ## Usage ``` Usage: OsTools [] All commands: conf Config gpio GPIO rtc Read or write rtc acpi Read ACPI or Reboot spi Read or write spi flash pci Read PCI Bus ht Read HT mps Read or write MPS spd Read SPD -h, --help show this help message and exit -v, --version show version ``` ## spi example ``` $ OsTools spi -h Usage: OsTools spi -h, --help show this help message and exit Options: -r, --read read ls7a spi from address -u, --update update ls3a spi flash -d, --dump dump the ls3a spi flash -g, --gmac update gmac flash -t, --tcm read ls7a tcm from address -s, update smbios ls3a spi flash Arguments: -f, --file= file path to read/write -a, --address= Pci's spi control address(e.g. 1fe001f0) -i, --id= Mac id -m, --mac= Mac address(e.g. 00:11:22:33:44:55) -c, --count= read count ``` Update the Firmware from file: ``` sudo ./OsTools spi -u -f LS3A50007A.fd ``` Dump the current Firmware to file: ``` sudo ./OsTools spi -d -f LS3A50007A.dump.fd ```