ZXV10-B860AV2.1刷Armbian

阅读量: searchstar 2023-02-23 20:35:40
Categories: Tags:

机器信息:

ZXV10-B860AV2.1
CPU: S905L 4核
RAM: 1G
eMMC: 8G

主要思路:先刷一个带root而且可以安装sd卡应用的Android系统,然后从SD卡安装reboot to libreELEC,通过它启动到U盘里的Armbian,然后在Armbian的shell里把Armbian刷到eMMC里。

网上教程很多,这里主要提一些坑点。一些文件从哪来的不记得了,这里只给文件名。

挑选Android镜像

对镜像的要求:带root,可以安装sd卡应用。但是有些系统不能通过reboot to libreELEC 启动到U盘,只能一个一个去试。

这个是我最终成功的镜像名称:20191218-R3300L-Q7-6.0-root-twrp-Milton

其他尝试失败的镜像:

来自这篇博客:ZTE B860AV2.1 折腾 Armbian

卡7%

可以启动。但是没有root。

可以启动,有root,可以从U盘安装应用。但是无法通过reboot to libreELEC启动到U盘。

刷系统各个步骤的先后顺序

先点击开始,再短接C125,再上电。

Armbian镜像

主要参考这篇博客:ZTE B860AV2.1 折腾 Armbian

我用的镜像:Armbian_20.10-buster-b860-5.9.0.img

先刷到U盘里,然后进行一些配置:

cp u-boot-s905x-s912 u-boot.ext
wget https://blog.huggy.moe/attachment/2022/15/meson-gxl-s905x-p212.dtb

然后在extlinux/extlinux.conf里:

FDT /meson-gxl-s905x-p212.dtb

虽然进系统之后sudo有问题,但是可以修。

修复网络问题

默认的DNS设置有问题:

$ cat /etc/resolv.conf
nameserver 1.0.0.1

我们可以强制更新这个文件:https://serverfault.com/questions/690559/how-do-i-force-networkmanager-to-update-etc-resolv-conf

nmcli connection up eth0

然后DNS设置就正常了:

$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1
nameserver fe80::1%eth0

升级Debian 10到Debian 11

/etc/apt/sources.list:

deb http://mirrors.tuna.tsinghua.edu.cn/debian bullseye main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

/etc/apt/sources.list.d/armbian.list:

deb http://apt.armbian.com bullseye main bullseye-utils bullseye-desktop
# https://linuxize.com/post/how-to-upgrade-debian-10-to-debian-11/
apt update
apt full-upgrade

修复sudo

chmod +s /usr/bin/sudo
chown root:root -R /etc/sudoers.d/
chmod 700 -R /var/lib/sudo/lectured/