sunxi-fel 的相关命令

2024-09-07 22:12
文章标签 命令 相关 sunxi fel

本文主要是介绍sunxi-fel 的相关命令,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

文章目录

  • 简介
  • 常用命令说明
    • 获取flash的相关信息
    • 列出所有的FEL设备
    • 显示BROM信息
    • 烧写程序到内存
    • 烧写程序到flash

简介

这个命令是全志芯片的烧写程序。有很多写法。
例如 : F1C100S 、F1C200S
这个命令有很多隐藏的相关问题(这里不讨论)

常用命令说明

获取flash的相关信息

$ ./sunxi-fel.exe -p spiflash-info
Manufacturer: Winbond (EFh), model: 40h, size: 33554432 bytes.

意思是 连接了 32MB 的FLASH,至于是NAND还是NOR。
flash的类型可能对板子有很大的影响。

这是一个 f1c200s开发板(使用了128MB NAND flash)的返回。(应该坏了)
$ ./sunxi-fel.exe -p spiflash-info
Manufacturer: Unknown (00h), model: C8h, size: 131072 bytes.

列出所有的FEL设备

$ ./sunxi-fel.exe -l
USB device 001:006   Allwinner F1C100s

显示BROM信息

这是F1C100S里面的信息

$ ./sunxi-fel.exe ver
AWUSBFEX soc=00001663(F1C100s) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000

烧写程序到内存

这种方式,板子重启程序就没了。
将程序写到内存中并运行。
有好几中方法

./sunxi-fel.exe uboot ./uboot-with-spl-usb.bin 

这里运行uboot对应的bin之后,进入uboot模式,然后就可以执行对应的uboot命令了。

烧写程序到flash

这种方式,板子重启之后程序还在。

./sunxi-fel.exe -p spiflash-write 0x0 "u-boot-sunxi-with-spl.bin"
./sunxi-fel.exe -p spiflash-write 0x6000 "spl-separated.bin"
./sunxi-fel.exe -p spiflash-write 0x400000 "logo.bin"

解释:-p 是为了显示程序进度
0x0 是程序写入的地址
正常情况下写一个bin就好了,有的情况会写两个。写到0地址的负责引导,写到其他地址的是实际的程序。

全部命令
补充:

sunxi-fel.exe [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 SPLIf file additionally contains a main U-Boot binary(u-boot-sunxi-with-spl.bin), this command also transfers thatto memory (default address from image), but won't execute it.uboot file-with-spl             like "spl", but actually starts U-BootU-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 hexdump address length             Binary memory dumpexe[cute] address               Call function addressreset64 address                 RMR request for AArch64 warm bootmemmove dest source size        Copy <size> bytes within device memoryreadl address                   Read 32-bit value from device memorywritel address value            Write 32-bit value to device memoryread address length file        Write memory contents into filewrite address file              Store file contents into memorywrite-with-progress addr file   "write" with progress barwrite-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 statusmulti[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 outputver[sion]                       Show BROM versionsid                             Retrieve and output 128-bit SID keyclear address length            Clear memoryfill address length value       Fill memoryspiflash-info                   Retrieves basic informationspiflash-read addr length file  Write SPI flash contents into filespiflash-write addr file        Store file contents into SPI flash

这篇关于sunxi-fel 的相关命令的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1146299

相关文章

Redis的Zset类型及相关命令详细讲解

《Redis的Zset类型及相关命令详细讲解》:本文主要介绍Redis的Zset类型及相关命令的相关资料,有序集合Zset是一种Redis数据结构,它类似于集合Set,但每个元素都有一个关联的分数... 目录Zset简介ZADDZCARDZCOUNTZRANGEZREVRANGEZRANGEBYSCOREZ

Linux使用fdisk进行磁盘的相关操作

《Linux使用fdisk进行磁盘的相关操作》fdisk命令是Linux中用于管理磁盘分区的强大文本实用程序,这篇文章主要为大家详细介绍了如何使用fdisk进行磁盘的相关操作,需要的可以了解下... 目录简介基本语法示例用法列出所有分区查看指定磁盘的区分管理指定的磁盘进入交互式模式创建一个新的分区删除一个存

Linux使用dd命令来复制和转换数据的操作方法

《Linux使用dd命令来复制和转换数据的操作方法》Linux中的dd命令是一个功能强大的数据复制和转换实用程序,它以较低级别运行,通常用于创建可启动的USB驱动器、克隆磁盘和生成随机数据等任务,本文... 目录简介功能和能力语法常用选项示例用法基础用法创建可启动www.chinasem.cn的 USB 驱动

关于Maven生命周期相关命令演示

《关于Maven生命周期相关命令演示》Maven的生命周期分为Clean、Default和Site三个主要阶段,每个阶段包含多个关键步骤,如清理、编译、测试、打包等,通过执行相应的Maven命令,可以... 目录1. Maven 生命周期概述1.1 Clean Lifecycle1.2 Default Li

numpy求解线性代数相关问题

《numpy求解线性代数相关问题》本文主要介绍了numpy求解线性代数相关问题,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧... 在numpy中有numpy.array类型和numpy.mat类型,前者是数组类型,后者是矩阵类型。数组

windows系统下shutdown重启关机命令超详细教程

《windows系统下shutdown重启关机命令超详细教程》shutdown命令是一个强大的工具,允许你通过命令行快速完成关机、重启或注销操作,本文将为你详细解析shutdown命令的使用方法,并提... 目录一、shutdown 命令简介二、shutdown 命令的基本用法三、远程关机与重启四、实际应用

Linux使用nohup命令在后台运行脚本

《Linux使用nohup命令在后台运行脚本》在Linux或类Unix系统中,后台运行脚本是一项非常实用的技能,尤其适用于需要长时间运行的任务或服务,本文我们来看看如何使用nohup命令在后台... 目录nohup 命令简介基本用法输出重定向& 符号的作用后台进程的特点注意事项实际应用场景长时间运行的任务服

Redis的Hash类型及相关命令小结

《Redis的Hash类型及相关命令小结》edisHash是一种数据结构,用于存储字段和值的映射关系,本文就来介绍一下Redis的Hash类型及相关命令小结,具有一定的参考价值,感兴趣的可以了解一下... 目录HSETHGETHEXISTSHDELHKEYSHVALSHGETALLHMGETHLENHSET

如何使用 Bash 脚本中的time命令来统计命令执行时间(中英双语)

《如何使用Bash脚本中的time命令来统计命令执行时间(中英双语)》本文介绍了如何在Bash脚本中使用`time`命令来测量命令执行时间,包括`real`、`user`和`sys`三个时间指标,... 使用 Bash 脚本中的 time 命令来统计命令执行时间在日常的开发和运维过程中,性能监控和优化是不

python中的与时间相关的模块应用场景分析

《python中的与时间相关的模块应用场景分析》本文介绍了Python中与时间相关的几个重要模块:`time`、`datetime`、`calendar`、`timeit`、`pytz`和`dateu... 目录1. time 模块2. datetime 模块3. calendar 模块4. timeit