chip刷debian11(一)
我的系统 Ubuntu 20.04.3 LTS
下载文件
文件1 https://macromorgan.s3.amazonaws.com/ntc-chip-mainline/flash_tool.tar.bz2
文件2 https://macromorgan.s3.amazonaws.com/ntc-chip-mainline/rootchipbasicuniversal.ubi
sudo apt install libusb-1.0-0-dev libz-dev libfdt-dev
git clone https://github.com/linux-sunxi/sunxi-tools.git
cd sunxi-tools
make
解压文件1 将sunxi-tools make后的 /home/xuefei/flash_tool/sunxi-fel 拷贝到 解压后的文件1文件夹里
修改flash_toshiba.sh 为
#!/bin/bash
echo "Loading Temporary SPL"
./sunxi-fel spl sunxi-spl.bin
echo "Loading U-Boot"
./sunxi-fel write 0x4a000000 u-boot-dtb.bin
echo "Loading Permanent SPL"
./sunxi-fel write 0x43000000 spl-400000-4000-500.bin
echo "Loading Flash Script"
./sunxi-fel write 0x44300000 ubootflash.scr
echo "Uploading mini-rootfs"
./sunxi-fel write 0x44400000 rootmin.ubi
echo "Executing U-Boot"
./sunxi-fel exe 0x4a000000
echo "When Device finishes it will shut down automatically. Please take the"
echo "device out of FEL mode, insert USB with root image, and power it back"
echo "on to continue the flashing process."
拷贝文件2到一个FAT32格式的U盘备用
跳线连接GND和FEL,插上USB线
然后 sudo ./flash_toshiba.sh
等灯自动熄灭之后拔掉设备
拔掉跳线,插上U盘,插上USB线
安装串口工具
sudo apt install screen
screen /dev/ttyACM0 115200
root登陆 无密码
mount /dev/sda4 /mnt
我这显示的U盘是sda4
ubiformat /dev/mtd3 -f /mnt/rootchipbasicuniversal.ubi
等两个进度执行完就可以拔掉重新插上
刷好了,无桌面
依然可以串口登陆
screen /dev/ttyACM0 115200