ubuntu20.04安装sunxi-livesuite
ubuntu20.04安装sunxi-livesuite
下载sunxi-livesuite: git clone https://github.com/linux-sunxi/sunxi-livesuite
加速 git clone https://hub.fastgit.org/linux-sunxi/sunxi-livesuite.git
进入awusb目录,编辑Makefile文件为
obj-m := awusb.o
KERN_DIR ?= /usr/src/linux-headers-$(shell uname -r)/
PWD := $(shell pwd)
all:
make -C $(KERN_DIR) M=$(PWD) modules
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
在awusb.c中添加
#include <linux/sched/signal.h>
执行
make
sudo cp awusb.ko /lib/modules/`uname -r`/kernel/
sudo depmod -a
sudo modprobe awusb
添加编辑 /etc/udev/rules.d/50-awusb.rules
KERNEL=="aw_efex[0-9]*", MODE="0666"
执行
sudo udevadm control --reload-rules
安装libpng12-dev libpng12-0库
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
sudo apt install libpng12-0
sudo apt install libpng12-dev
运行,但只能烧录Android固件,其他固件烧录失败。
参考
1.【全志A33】在Ubuntu下烧录程序
2. ubuntu20.04 安装libpng12-dev libpng12-0