Category:Linux Programming

From ElectroDragon
Jump to navigation Jump to search

SD Card Flash: Windows

Flash firmware by Win32DiskManger

Flash firmware zero lichee pi.gif
  • unzip and choose dd file
  • flash by win32diskmanager directly
  • see the GIF animation on right


TF Card: WIN Flash

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


SD Card Flash: Linux DD CMD

  • Use DD Commands

Basic Usage

  • 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

Detail Method

  • 先编译出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解压到该分区根目录


Bash warp write

  • run commands ./write_all.sh

All in one Configuration "Zero Imager"

write_dd.sh /dev/sdX: 一键烧录dd镜像,小白专用
//以下为调试时逐个分区调试使用的烧录脚本
write_all.sh /dev/sdX: 一键烧录
write_partion.sh /dev/sdX: 对tf卡分区
write_mkfs.sh /dev/sdX: tf卡格式化
write_boot.sh /dev/sdX: 烧录uboot
write_p1.sh /dev/sdX: 烧录第一分区
write_p2.sh /dev/sdX: 烧录第二分区
write_overlay.sh /dev/sdX: 烧录overlay
write_swap.sh /dev/sdX: 启用swap

Subcategories

This category has only the following subcategory.