Allwinner Program

From ElectroDragon
Jump to navigation Jump to search


  • Support either SPI Flash or TF card boot
  • For nano, find file folder Nano_Pub_V4 enter into build folder

CPU Boot Mode and Flash IMG to Target

Allwinner USB device.png
  • Flash software PhoenixSuit
Mode TF Card SD_NAND SPI-Flash Flash Target
PROG Mode No Card NC
  • SPI_CS -> GND
  • Disable Flash
  • Not Necessary if no SPI-Flash mounted
Flash Target
SPI-Flash Boot No Card NC NC Disconnect SPI_CS to flash SPI-Flash (connect SPI_Flash)
SD_NAND Boot No Card -> CS -> GND (Optional? ) SD_NAND->CS to flash SD_NAND (connect SD_NAND)
TF Card Boot Inserted Card NC -> GND (Not Necessary) Insert TF card to flash TF card (connect TF Card)

TF Card: WIN Flash

  • Card in Card reader
  • Use software PhoenixCard or win32disk
  •  ? flash the *.dd suffix file, packed by dd

All: DD Flash

  • flash the *.dd suffix file, packed by dd
  • sudo dd if=源路径 of=/dev/r卷标 bs=1m [‘r’ 会让命令执行加快一点] [‘bs’为一次填充的容量]
  • sudo fdisk -l
  • sudo dd if=/path/to/your-dd-image of=/your/tf-card && sync

  • run commands ./

All in one Configuration "Zero Imager" /dev/sdX: 一键烧录dd镜像,小白专用
//以下为调试时逐个分区调试使用的烧录脚本 /dev/sdX: 一键烧录 /dev/sdX: 对tf卡分区 /dev/sdX: tf卡格式化 /dev/sdX: 烧录uboot /dev/sdX: 烧录第一分区 /dev/sdX: 烧录第二分区 /dev/sdX: 烧录overlay /dev/sdX: 启用swap

Debug Port

  • Debug port only available when have system linux core

For firmware sunivw1p1_linux_evb_uart0.img

  • Debug port UART1: A2-->RX A3-->TX

For LPI:

  • Debug port UART0