6PRO-中兴B860AV3.2-M_S905L3-B_4+32G-s905l3-cm211更新内核

第一步,手动下载最新脚本:

wget https://raw.githubusercontent.com/ophub/amlogic-s9xxx-armbian/main/build-armbian/armbian-files/common-files/usr/sbin/armbian-sync -O /usr/sbin/armbian-sync

第二步,给脚本添加执行权限:

chmod +x /usr/sbin/armbian-sync

第三步,执行同步:

armbian-sync

第四步,更新内核:

armbian-update

这一步只是卡在从 GitHub Release 下载内核包,前面的脚本同步、版本探测都正常(6.18.63 → 6.18.65,deb 包,stable 分支)。按 Ctrl+C 中断是安全的,不会破坏现有系统——内核包没下载完就不会进入安装环节。

方案一:用 -c 走 CDN 加速(最快)

ophub 的 armbian-update 内置了 -c 参数指定 GitHub CDN 前缀:

armbian-update -c https://ghfast.top/

镜像失效就换一个试试:https://gh-proxy.com/、https://ghproxy.net/、https://gh.llkk.cc/。注意要带协议头和结尾斜杠。

想一劳永逸,把它写进 /etc/ophub-release,以后直接敲 armbian-update 就自动走加速:

echo 'CDN="https://ghfast.top/"' >> /etc/ophub-release

(具体键名以该文件里已有注释为准,文件里本来就留了 CDN 这一项。)

方案二:手动下载后本地更新(最稳)

受控环境下代理不通时,用这台机器以外能上网的设备下好,再传进盒子:

# 任意能上网的机器,或用加速前缀
wget https://ghfast.top/https://github.com/ophub/kernel/releases/download/kernel_stable/deb-6.18.65.tar.gz
# 传到盒子后
scp deb-6.18.65.tar.gz root@盒子IP:/root/

然后在存放 tar.gz 的目录里执行 armbian-update——脚本发现当前目录有成套内核文件,就会直接用本地包而不去联网下载。

方案三:只换个下载器

如果你本身有代理但 curl 没走,可以先给 shell 挂上再跑:

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890
armbian-update

几个值得先确认的点

这次更新其实可以不急。 6.18.63 → 6.18.65 是小版本迭代,除非你正缺某个修复,否则没下载成功对日常使用毫无影响。

顺手看下空间,deb 包解压加备份会吃掉几百 MB:

df -h / /boot

更新失败有兜底。 你这次参数里是 Backup kernel: yes,旧内核会备份在 /ddbr/backup(保留最近 3 版)。真遇到新内核起不来,进 U-Boot 菜单选旧内核,或恢复备份即可。另外你这里是 amlogic 平台 + mmcblk2,主线 u-boot 选了 no,继续保持原样就好,别顺手开 -m yes。

建议先跑一次 uname -a 确认当前是 6.18.63-ophub,避免重复操作;更新完重启后再看一次版本是否变成 6.18.65。

全部代码:

root@b860:~# chmod +x /usr/sbin/armbian-sync
root@b860:~# armbian-sync
[ INFO ] Armbian PLATFORM: [ amlogic ]
[ STEPS ] Start syncing all service scripts...
[ INFO ] Fetching latest scripts from repository...
[ STEPS ] Syncing system command and service scripts...
[ STEPS ] Syncing software management scripts...
[ STEPS ] Syncing amlogic platform-specific scripts...
[ STEPS ] Syncing Amlogic OpenVFD service scripts...
[ STEPS ] Syncing Amlogic model_database.conf...
[ SUCCESS ] All service scripts synchronized successfully.
root@b860:~# armbian-update
[ STEPS ] Welcome to the Armbian Kernel Update Tool.
[ STEPS ] Checking required dependencies...
[ INFO ] All dependencies are satisfied.

[ STEPS ] Initializing parameters...
[ INFO ] Armbian platform: [ amlogic ]
[ INFO ] Current kernel: [ 6.18.63-ophub ]
[ INFO ] Kernel signature: [ ophub ]
[ INFO ] Kernel download type: [ deb ]
[ INFO ] Kernel download repository: [ ophub/kernel ]
[ INFO ] Kernel tags: [ stable ]
[ INFO ] Specify kernel: [ ]
[ INFO ] Backup kernel: [ yes ]
[ INFO ] Mainline u-boot update: [ no ]
[ INFO ] Running on disk: [ /dev/mmcblk2 ]

[ STEPS ] Searching for kernel packages...
[ INFO ] Network connection to [ github.com ] is available.
[ INFO ] Querying the latest version for [ deb-6.18 ]...
[ INFO ] Target online kernel: [ 6.18.65 ]

[ STEPS ] Downloading kernel package...
[ INFO ] Download URL: [ https://github.com/ophub/kernel/releases/download/kernel_stable/deb-6.18.65.tar.gz ]

armbian系统备份

主要是使用 armbian-ddbr 命令进行备份和恢复