# sunxi-tools
[![License](http://img.shields.io/badge/License-GPL-green.svg)](LICENSE.md)
[![Build Status](https://travis-ci.org/linux-sunxi/sunxi-tools.svg?branch=master)](https://travis-ci.org/linux-sunxi/sunxi-tools)
[![Releases](https://img.shields.io/github/release/linux-sunxi/sunxi-tools.svg)](https://github.com/linux-sunxi/sunxi-tools/releases)
[![Commits](https://img.shields.io/github/commits-since/linux-sunxi/sunxi-tools/v1.4.svg)](https://github.com/linux-sunxi/sunxi-tools/compare/v1.4...master)
Copyright (C) 2012 Alejandro Mery <amery@geeks.cl>
<br>For a full list of contributors, see
[this link](https://github.com/linux-sunxi/sunxi-tools/contributors)
or use the command `git shortlog -se --no-merges`.
Command line utilities to work with devices based on [Allwinner SoC]s:
sun4i, sun5i, ... - that's why the 'x' in the package name.
### sunxi-fexc
`.fex` file (de)compiler
Usage: ./sunxi-fexc [-vq] [-I <infmt>] [-O <outfmt>] [<input> [<output>]]
infmt: fex, bin (default:fex)
outfmt: fex, bin (default:bin)
### bin2fex
compatibility shortcut to call `sunxi-fexc` to decompile a _script.bin_
blob back into `.fex` format used by Allwinner's SDK to configure
the boards.
### fex2bin
compatiblity shortcut to call `sunxi-fexc` to compile a `.fex` file
into the binary form used by the legacy 3.4 kernel ("linux-sunxi").
### sunxi-fel
script interface for USB communication with the FEL handler built in to
the CPU. You usually activate [FEL mode] by pushing the _uboot_ / _recovery_
button at poweron, or by having your device "fail over" to FEL when no other
boot option is available. See http://linux-sunxi.org/FEL/USBBoot for a detailed
usage guide.
When called with no arguments, _sunxi-fel_ will display a short usage summary.
_Note:_ Unless you select a specific device using the `--dev` or `--sid`
options, the tool will access the first Allwinner device (in FEL mode) that it
finds. You can print a list of all FEL devices currently connected/detected
with `./sunxi-fel --list --verbose`.
### fel-gpio
Simple wrapper (script) around `sunxi-pio` and `sunxi-fel`
to allow GPIO manipulations via FEL
### fel-sdboot
ARM native sdcard bootloader forcing the device into FEL mode
### uart0-helloworld-sdboot
ARM native sdcard bootloader, which is only printing a short "hello"
message to the UART0 serial console. Because it relies on runtime
SoC type detection, this single image is bootable on a wide range of
Allwinner devices and can be used for testing. Additionally, it may
serve as a template/example for developing simple bare metal code
(LED blinking and other similar GPIO related things).
### sunxi-pio
Manipulate PIO registers/dumps
### sunxi-nand-part
Tool for manipulating Allwinner NAND partition tables
### sunxi-nand-image-builder
Tool used to create raw NAND images (including boot0 images)
### jtag-loop.sunxi
ARM native boot helper to force the SD port into JTAG and then stop,
to ease debugging of bootloaders.
### sunxi-bootinfo
Dump information from Allwinner boot files (_boot0_ / _boot1_)
--type=sd include SD boot info
--type=nand include NAND boot info (not implemented)
### phoenix_info
gives information about a phoenix image created by the
phoenixcard utility and optionally extracts the embedded boot
code & firmware file from their hidden partitions.
### sunxi-meminfo
Tool for reading DRAM settings from registers. Compiled as a
static binary for use on android and other OSes.
To build this, get a toolchain and run:
make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-meminfo
### sunxi-script_extractor
A simple tool, which can be executed on a rooted Android device
to dump the _script.bin_ blob from RAM via reading _/dev/mem_.
To build this, get a toolchain and run:
make CROSS_COMPILE=arm-linux-gnueabihf- sunxi-script_extractor
---
## Building
Compilation requires the development version of *libusb-1.0* (include header
and library) to be installed for `sunxi-fel`. Unless you explicitly pass
*LIBUSB_CFLAGS* and *LIBUSB_LIBS* to the make utility, `pkg-config` is also
needed.
Available build targets:
* `make tools`
builds tools that are useful on the host. This is what most people will want,
and our default target (when simply using `make`).
* `make target-tools`
builds tools that are intended for the target (Allwinner SoC), using a
cross-compiler. The Makefile will try to auto-detect a suitable toolchain
prefix, and falls back to `arm-none-eabi-` otherwise.
If needed, you may override this by explicitly setting *CROSS_COMPILE*.
<br>_Hint:_ When compiling 'natively' on the target platform you may
simply use an empty toolchain prefix here (`make target-tools CROSS_COMPILE=`
or `make all CROSS_COMPILE=`).
* `make all`
builds both *tools* and *target-tools*.
* `make install-tools`
builds *tools* and then copies/installs them to a filesystem location. The
destination is affected by settings for `DESTDIR`, `PREFIX` and possibly
`BINDIR`. For details, please refer to the *Makefile*.
You may use `make install` as a shortcut for this.
* `make install-target-tools`
builds *target-tools* and then copies/installs them to a filesystem location
selected by `DESTDIR`, `PREFIX` and possibly `BINDIR` - see `make install-tools`
above.
* `make install-all`
builds and installs both *tools* and *target-tools*.
* `make misc`
builds miscellaneous (host) utilities that are not part of our 'standard' suite.
Currently this means `phoenix_info` and `sunxi-nand-image-builder`.
* `make install-misc`
builds *misc* and installs the resulting binaries.
## License
This software is licensed under the terms of GPLv2+ as defined by the
Free Software Foundation, details can be read in the [LICENSE.md](LICENSE.md)
file.
[allwinner soc]: http://linux-sunxi.org/Allwinner_SoC_Family
[fel mode]: http://linux-sunxi.org/FEL
没有合适的资源?快使用搜索试试~ 我知道了~
V3Siar版本r和GCC版本裸机
共464个文件
c:108个
h:96个
o:42个
需积分: 5 0 下载量 107 浏览量
2024-03-19
06:07:13
上传
评论
收藏 187.42MB ZIP 举报
温馨提示
V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机V3Siar版本r和GCC版本裸机
资源推荐
资源详情
资源评论
收起资源包目录
V3Siar版本r和GCC版本裸机 (464个子文件)
os_cpu_a_vfp-d32.asm 27KB
os_cpu_a_vfp-d16.asm 27KB
os_cpu_a_vfp-d32.asm 27KB
os_cpu_a_vfp-d16.asm 27KB
os_cpu_a_vfp-none.asm 25KB
os_cpu_a_vfp-none.asm 25KB
os_cpu_a.asm 14KB
cpu_a.asm 13KB
cpu_a.asm 13KB
os_cpu_a.asm 13KB
cpu_a.asm 13KB
os_cpu_a.asm 12KB
cpu_a.asm 11KB
cpu_a.asm 10KB
objdump_to_h.awk 698B
v3s.Debug.cspy.bat 2KB
bin2fex 10B
v3s.pbd.browse 939KB
lib_str.c 200KB
os_core.c 131KB
os_task.c 121KB
lib_mem.c 119KB
cpu_core.c 117KB
os_flag.c 63KB
os_mutex.c 48KB
os_tmr.c 47KB
os_q.c 44KB
os_sem.c 43KB
fel.c 42KB
fel_lib.c 32KB
cpu_c.c 31KB
cpu_c.c 31KB
cpu_c.c 31KB
cpu_c.c 31KB
os_cpu_c.c 28KB
nand-image-builder.c 28KB
os_tick.c 28KB
os_time.c 25KB
lib_ascii.c 23KB
uart.c 23KB
os_pend_multi.c 22KB
dram.c 22KB
os_dbg.c 21KB
os_cpu_c.c 21KB
os_cpu_c.c 21KB
os_cpu_c.c 21KB
sys-dram.c 20KB
os_stat.c 20KB
meminfo.c 19KB
os_int.c 18KB
sdhci-v3s.c 17KB
os_mem.c 17KB
uart0-helloworld-sdboot.c 17KB
os_cpu_c.c 15KB
os_cpu_c.c 15KB
os_cpu_c.c 15KB
os_cpu_c.c 15KB
dma.c 15KB
fb-v3s.c 15KB
irq_gic400.c 14KB
os_msg.c 14KB
v3s_system.c 13KB
os_mon.c 13KB
fel-spiflash.c 13KB
os_cfg_app.c 13KB
bootinfo.c 12KB
main.c 12KB
lib_math.c 12KB
xprintf.c 12KB
cache_v7.c 11KB
script_bin.c 10KB
pio.c 9KB
system.c 9KB
soc_info.c 9KB
script_fex.c 9KB
gpio-v3s.c 8KB
nand-part.c 8KB
uart-16550.c 8KB
i2c-v3s.c 8KB
fexc.c 7KB
spi-v3s.c 7KB
clk-v3s-pll.c 7KB
os_prio.c 7KB
key-v3s-lradc.c 6KB
irq-gic400.c 6KB
ts-ns2009.c 6KB
pwm-v3s.c 6KB
user_lib.c 6KB
script_uboot.c 6KB
script.c 6KB
gmeter-axdl345.c 6KB
sys-spinor.c 5KB
fel-remotefunc-spi-data-transfer.c 5KB
irq-v3s-gpio.c 5KB
compass-hmc5883l.c 5KB
cache_cp15.c 5KB
ce-v3s-timer.c 5KB
cmd-cpuinfo.c 5KB
progress.c 5KB
phoenix_info.c 4KB
共 464 条
- 1
- 2
- 3
- 4
- 5
资源评论
�大师兄�
- 粉丝: 0
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功