全志-sunxi-fel安装和使用

11 篇文章 0 订阅

介绍

https://blog.csdn.net/techping/article/details/62055714

安装sunxi-fel

 

git clone -b f1c100s-spiflash https://github.com/Icenowy/sunxi-tools.git

cd sunxi-tools

make && sudo make install

make会包很多错误,libusb zlib之类的

sudo apt install pkg-config

sudo apt install pkgconf

sudo apt-get install zlib1g-dev

sudo apt-get install libusb-1.0-0-dev

参考文章

  • 解决Ubuntu下make error:fatal error: zlib.h: No such file or directory

https://blog.csdn.net/weixin_42108004/article/details/84890597

  • sunxi-tools工具的使用(for f1c100s)

https://blog.csdn.net/u012577474/article/details/103346601

 

用法

Usage: ./sunxi-fel [options] command arguments... [command...]
    -h, --help            Print this usage summary and exit
    -v, --verbose            Verbose logging
    -p, --progress            "write" transfers show a progress bar
    -l, --list            Enumerate all (USB) FEL devices and exit
    -d, --dev bus:devnum        Use specific USB bus and device number
        --sid SID            Select device by SID key (exact match)

    spl file            Load and execute U-Boot SPL
        If file additionally contains a main U-Boot binary
        (u-boot-sunxi-with-spl.bin), this command also transfers that
        to memory (default address from image), but won't execute it.

    uboot file-with-spl        like "spl", but actually starts U-Boot
        U-Boot execution will take place when the fel utility exits.
        This allows combining "uboot" with further "write" commands
        (to transfer other files needed for the boot).

    hex[dump] address length    Dumps memory region in hex
    dump address length        Binary memory dump
    exe[cute] address        Call function address
    reset64 address            RMR request for AArch64 warm boot
    memmove dest source size    Copy <size> bytes within device memory
    readl address            Read 32-bit value from device memory
    writel address value        Write 32-bit value to device memory
    read address length file    Write memory contents into file
    write address file        Store file contents into memory
    write-with-progress addr file    "write" with progress bar
    write-with-gauge addr file    Output progress for "dialog --gauge"
    write-with-xgauge addr file    Extended gauge output (updates prompt)
    multi[write] # addr file ...    "write-with-progress" multiple files,
                    sharing a common progress status
    multi[write]-with-gauge ...    like their "write-with-*" counterpart,
    multi[write]-with-xgauge ...      but following the 'multi' syntax:
                      <#> addr file [addr file [...]]
    echo-gauge "some text"        Update prompt/caption for gauge output
    ver[sion]            Show BROM version
    sid                Retrieve and output 128-bit SID key
    clear address length        Clear memory
    fill address length value    Fill memory

    spiflash-info            Retrieves basic information
    spiflash-read addr length file    Write SPI flash contents into file
    spiflash-write addr file    Store file contents into SPI flash
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值