Tiny FEL tools for allwinner SOC, support RISC-V D1 chip
Go to file
2022-01-02 14:26:21 +08:00
chips [r528]update r528 some payload 2022-01-02 14:26:21 +08:00
docs [docs]update docs 2022-01-02 12:14:02 +08:00
payloads [r528]update r528 some payload 2022-01-02 14:26:21 +08:00
.gitignore [xfel]update some readme.md 2021-08-04 11:48:31 +08:00
99-xfel.rules Disable autosuspend on FEL devices 2021-12-03 16:50:00 +08:00
fel.c [r528]add r528 support 2021-12-31 17:16:37 +08:00
fel.h [xfel]add chip_detect interface to detect chip 2021-12-31 16:40:44 +08:00
LICENSE [LICENSE]add mit LICENSE and README.md 2021-05-26 13:45:09 +08:00
main.c [xfel]add chip_detect interface to detect chip 2021-12-31 16:40:44 +08:00
Makefile [Makefile]fix makefile error 2021-12-02 09:17:34 +08:00
progress.c [progress]update progress.c 2021-10-28 09:55:11 +08:00
progress.h [progress]update progress 2021-08-06 11:54:25 +08:00
README.md [README.md]update README.md 2021-12-26 12:57:34 +08:00
spinand.c Add spi nand id for GD5F4GQ4RCYIG 2021-12-16 11:59:21 +08:00
spinand.h [xfel]change some tips for splwrite command 2021-12-15 17:54:31 +08:00
spinor.c [xfel]change spi nor and nand detect function, support show chip's name and capacity 2021-11-01 19:33:09 +08:00
spinor.h [xfel]change spi nor and nand detect function, support show chip's name and capacity 2021-11-01 19:33:09 +08:00
x.h add macos support 2021-11-29 14:37:51 +08:00


XFEL

Tiny FEL tools for allwinner SOC.

DocumentationSupport ListsExamplesReleases

How to build

Linux platform

The xfel tools depends on the libusb-1.0 library, you need to install libusb-1.0-0-dev before compile, for example in ubuntu:

sudo apt install libusb-1.0-0-dev

Then just type make at the root directory, you will see a binary program.

cd xfel
make
sudo make install

Window platform

Install some build tools

sudo apt install mingw-w64
sudo apt install autoconf
sudo apt install libtool-bin
git clone https://github.com/libusb/libusb.git
cd libusb
./autogen.sh
./configure --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32/
make
sudo make install

Build xfel source code

cd xfel
CROSS=i686-w64-mingw32- make

For 64-bits windows, you can using x86_64-w64-mingw32- instead of i686-w64-mingw32 above.

Usage

usage:
    xfel version                                        - Show chip version
    xfel hexdump <address> <length>                     - Dumps memory region in hex
    xfel dump <address> <length>                        - Binary memory dump to stdout
    xfel exec <address>                                 - Call function address
    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
    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
    xfel spinor                                         - Detect spi nor flash
    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
    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

License

This software is free software; you can redistribute it and or modify it under the terms of the MIT license. See MIT License for details.