标签 PocketChip刷机 下的文章

我的系统 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

QQ图片20211114092729.jpg

1.Ubuntu系统真机(我用的版本18.04)

2.Ubuntu改国内源

备份源

cp /etc/apt/sources.list /etc/apt/sources.list.bak

改源

sudo nano /etc/apt/sources.list

中科大源

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

更新

sudo apt-get update
sudo apt-get upgrade

3.https://github.com/Thore-Krug/Flash-CHIP
建议把需要的文件FQ下载到隐藏文件夹.dl下,Ctrl+h查看隐藏文件
2019-10-18 16-59-27屏幕截图.png

2019-10-15 17-08-48屏幕截图.png

2019-10-15 17-09-12屏幕截图.png

2019-10-15 17-08-29屏幕截图.png

刷完之后发现触摸屏方向是左右上下相反

1、在终端内输入:sudo nano /etc/X11/xorg.conf 将以下添加到最后

Section "InputClass"
Identifier "calibration"
MatchProduct "1c25000.rtp"
Option "Calibration" "3976 191 3823 333"
Option "SwapAxes" "0"
EndSection

ctrl+X 退出
Y保存
回车确认

顺便添加https支持
sudo apt-get install apt-transport-https
安装屏幕校准器
sudo apt-get install xinput-calibrator
这个软件点击校准后会出现1的6行文字,把数字修改保存一下,重启之后会生效,提高触摸准确度

3、最后重启