2021-05-26 13:43:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
***
|
|
|
|
# XFEL
|
2021-12-26 12:57:34 +08:00
|
|
|
Tiny FEL tools for allwinner SOC.
|
2021-05-26 13:43:50 +08:00
|
|
|
|
2021-12-25 16:42:26 +08:00
|
|
|
[Documentation](https://xboot.github.io/xfel) —
|
2021-12-26 11:54:16 +08:00
|
|
|
[Support Lists](https://xboot.github.io/xfel#/?id=support-lists) —
|
|
|
|
[Examples](https://xboot.github.io/xfel#/?id=examples) —
|
|
|
|
[Releases](https://github.com/xboot/xfel/releases/)
|
2021-12-25 16:42:26 +08:00
|
|
|
|
2021-08-04 11:48:31 +08:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
```shell
|
2021-05-26 13:43:50 +08:00
|
|
|
usage:
|
2021-12-15 17:54:31 +08:00
|
|
|
xfel version - Show chip version
|
|
|
|
xfel hexdump <address> <length> - Dumps memory region in hex
|
|
|
|
xfel dump <address> <length> - Binary memory dump to stdout
|
|
|
|
xfel read32 <address> - Read 32-bits value from device memory
|
|
|
|
xfel write32 <address> <value> - Write 32-bits value to device memory
|
|
|
|
xfel read <address> <length> <file> - Read memory to file
|
|
|
|
xfel write <address> <file> - Write file to memory
|
2022-06-02 15:11:32 +08:00
|
|
|
xfel exec <address> - Call function address
|
2021-12-15 17:54:31 +08:00
|
|
|
xfel reset - Reset device using watchdog
|
|
|
|
xfel sid - Show sid information
|
|
|
|
xfel jtag - Enable jtag debug
|
|
|
|
xfel ddr [type] - Initial ddr controller with optional type
|
2022-04-29 19:07:39 +08:00
|
|
|
xfel sign <public-key> <private-key> <file> - Generate ecdsa256 signature file for sha256 of sid
|
2021-12-15 17:54:31 +08:00
|
|
|
xfel spinor - Detect spi nor flash
|
2022-01-10 15:50:38 +08:00
|
|
|
xfel spinor erase <address> <length> - Erase spi nor flash
|
2021-12-15 17:54:31 +08:00
|
|
|
xfel spinor read <address> <length> <file> - Read spi nor flash to file
|
|
|
|
xfel spinor write <address> <file> - Write file to spi nor flash
|
|
|
|
xfel spinand - Detect spi nand flash
|
2022-01-10 15:50:38 +08:00
|
|
|
xfel spinand erase <address> <length> - Erase spi nand flash
|
2021-12-15 17:54:31 +08:00
|
|
|
xfel spinand read <address> <length> <file> - Read spi nand flash to file
|
|
|
|
xfel spinand write <address> <file> - Write file to spi nand flash
|
|
|
|
xfel spinand splwrite <split-size> <address> <file> - Write file to spi nand flash with split support
|
2023-05-23 23:13:07 +08:00
|
|
|
xfel extra [...] - The extra commands
|
2021-05-26 13:43:50 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Links
|
|
|
|
|
|
|
|
* [The chinese discussion posts](https://whycan.com/t_6546.html)
|
2021-12-26 11:54:16 +08:00
|
|
|
* [The linux-sunxi community](http://sunxi.org/)
|
2021-05-26 13:43:50 +08:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
2022-01-06 13:59:21 +08:00
|
|
|
MIT License
|
|
|
|
|
|
|
|
Copyright(c) 2007-2022 Jianjun Jiang <8192542@qq.com>
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
2021-05-26 13:43:50 +08:00
|
|
|
|
2022-01-06 13:59:21 +08:00
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
SOFTWARE.
|