debian12 安装全志 LiveSuit 刷机工具

debian12无法使用PhoenixSuit对全志芯片进行刷机,网上搜索后,发现还可以使用LiveSuit。
记录安装的过程,方便后面的同学使用。

参考全志官方网站:

https://linux-sunxi.org/LiveSuit

一、下载LiveSuit包

git clone https://github.com/linux-sunxi/sunxi-livesuite.git

二、编译usb驱动

sudo apt-get install dkms
cd sunxi-livesuite/
cd awusb/
make

出现报错:

make[1]: Entering directory '/usr/src/linux-headers-6.1.0-26-amd64'
/usr/src/linux-headers-6.1.0-26-common/Makefile:149: =============== ERROR ==============
/usr/src/linux-headers-6.1.0-26-common/Makefile:150: 'SUBDIRS' was removed in Linux 5.3
/usr/src/linux-headers-6.1.0-26-common/Makefile:151: Use 'M=' or 'KBUILD_EXTMOD=' instead
/usr/src/linux-headers-6.1.0-26-common/Makefile:152: ====================================
/usr/src/linux-headers-6.1.0-26-common/Makefile:153: *** ..  Stop.

根据报错,修改Makefile的内容,将其中的"SUBDIRS=“替换为"M=”。
再次make,编译通过。

加载usb驱动:

sudo insmod awusb.ko

三、打开LiveSuit

./LiveSuit.sh
Starting x86-64/LiveSuit.

x86-64/LiveSuit: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

出现libpng12库无法找到的错误,用apt和deb安装都不成功,这里使用源码编译这个libpng12库。

下载源码:

wget -c https://archive.debian.org/debian-security/pool/updates/main/libp/libpng/libpng_1.2.50.orig.tar.xz
tar xf libpng_1.2.50.orig.tar.xz
cd libpng_1.2.50/
./configure
make

编译完成后,可以在libpng_1.2.50/.lib/下找到生成的库文件。
将库文件链接到默认lib路径:

cd /lib/x86_64-linux-gnu
sudo ln -s /home/xxx/xxx/libpng-1.2.50/.libs/libpng12.so.0 .

现在可以成功打开LiveSuit了。

./LiveSuit.sh 
Starting x86-64/LiveSuit.

library file path: /home/xxx/xxx/sunxi-livesuite/x86-64/plgvector.dll
library file path: /home/xxx/xxx/sunxi-livesuite/x86-64/LangPlg.dll
LoadFile 24
Open 274: Language file format is UTF-8
library file path: /home/xxx/xxx/sunxi-livesuite/x86-64/LiveProc.Plg
library file path: /home/xxx/xxx/sunxi-livesuite/x86-64/plgvector.dll
library file path: /home/xxx/xxx/sunxi-livesuite/x86-64/luaeFex.dll
Register./luaBase.dll l_RegAllFun Sucess!
Register./luaeFex.dll l_RegAllFun Sucess!
Register./luadec.dll l_RegAllFun Sucess!
IMAGEWTY
ItemTableSize = 1048576
Closing image now! 

Clos image OK!

在这里插入图片描述
按着fel上电,就可以刷写了。

1、安装PC上的升级工具Livesuite.exe。      2、打开Livesuit      找到升级工具文件双击打开,如下图所示:      3、选择固件      点击上图的“否”关闭用户向导升级,并点击“选择固件”按钮选择后缀名为.img文件,如下图:      4、关闭电源      确保将I130关机(开机状态下,长按电源键8秒钟以上可强制断电关机)      5、按下组合键开始升级      按住I130平板的任意键(除了电源键,推荐音量+)不放开,再通过USB数据线连上电脑,然后快速连续点击电源键5-6次,记住此时千万不能松开开始按住的按键,直到电脑上出现下图界面时,松开所有键开始升级。      (注:如果此时弹出安装驱动程序的对话框,请把路径指向Livesuit安装目录下的UsbDriver文件夹,并按下一步提示完成驱动程序的安装)。      6、选择强制格式化升级      Livesuit提示“是否强制格式化”,点击“是”,则原先安装的APK全部被删除,点击否则原装APK不会删除。      推荐强制格式化,进行彻底更新升级!否则可能更新不彻底而变砖!      7、升级开始      弹出“确定要强制格式化”对话框,选择“是”,升级开始,如下图:      8、升级完成      固件更新过程大约持续3分半钟左右,请耐心等待,直到提示“升级成功”。   
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值