Sunxi-fel

From ElectroDragon
Revision as of 04:40, 19 January 2020 by Chao (talk | contribs) (Created page with "== Hardware == * Hardware use USB Port * '''Make sure use correct branch for board chips.''' * '''Remove perpherials like LCDs, camera, etc to avoid interferences, use high...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hardware

  • Hardware use USB Port
  • Make sure use correct branch for board chips.
  • Remove perpherials like LCDs, camera, etc to avoid interferences, use high quality USB cable


Compile

Sunxi fel flash USB.png

For Zero do

For nano do

  • 进入工具目录执行 make && sudo make install
  • plug use device: Onda (unverified) V972 tablet in flashing mode [02B3]
  • Make sure no TF card or SPI flash
sudo sunxi-fel version              #查看连接的cpu信息
AWUSBFEX soc=00001681(V3s) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000

Use

sudo sunxi-fel spiflash-info        #显示flash信息
Manufacturer: Unknown (C2h), model: 20h, size: 33554432 bytes.

? Linux 16M SPI Flash (fei Mode )

  • 先编译出u-boot, Linux, dtb 文件, 用buildroot编译出根文件系统.
  • 烧录TF卡,打开gparted, 删除TF卡所有分区
  • 将uboot写入到sd卡8k偏移处。
sudo dd if=u-boot-sunxi-with-spl_480800.bin of=/dev/sdb bs=1024 seek=8
  • 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
  • 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
  • short connect Pin 1 and PIN4, then boot up board via USB power
  • sudo sunxi-fel -p spiflash-write 0 Your-Flash-BIN


Reference