ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

大佬,能否编译微加云的?

yu13740000 opened this issue · comments

大佬,找遍全网,微加云armbian除了f大的就没有了,f大的所有armbian升级dietpi时出错,提示没有可用的软件包linux-imge-current-arm-64,有的还会提示空间不够,不知道哪里的问题。n1用你的armbian升级dietpi正常。希望大佬给微加云也编译一个armbian吧!

commented

vplus Armbian(beta) 下载地址(找文件名称里带 allwinner_vplus 字样的文件):
https://github.com/ophub/amlogic-s9xxx-armbian/releases

我学习了下f大在他OpenWrt仓库里的打包方法,复制了他仓库里的u-boot等资源进行rebuild,但是我没这个设备,无法测试。

我在网上查看了一些关于vplus的刷机方法的介绍,这个设备原生系统不支持U盘启动,但是刷过f大的Armbian或者OpenWrt的盒子,已经自动替换了u-boot,支持USB启动Armbian和OpenWrt了。

  1. 这个Armbian镜像文件里也添加了这个u-boot,所以如果你之前已经刷过他的armbian或者openwrt系统,就可以直接从USB启动这个镜像(略过1-5步,直接看6)。如果之前没刷过,目前盒子里还是原版系统,你先把这个Armbian刷入U盘,等原来的系统启动后,把写有这个Armbian的U盘插入usb接口,就会自动挂在到/mnt/sda2,输入命令查看下U盘的挂载路径:
    lsblk

  2. 根据实际挂载路径修改下面的命令,进入u-boot目录

cd /mnt/sda2/usr/lib/u-boot
ls
  1. 会看到 u-boot-sunxi-with-spl.bin 文件,手动写入u-boot到当前盒子,替换了u-boot,以后就支持U盘启动了:
    先删除分区和bootloader:
    dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=16

  2. 再写入bootloader:
    dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk1 bs=1024 seek=8

  3. 完成以后,支持usb启动的uboot已经刷入。输入命令重启:
    reboot

  4. 使用安装命令把armbian写入emmc:
    armbian-install

  5. 把下面命令截图给我看看

lsblk
df -hT
blkid

测试了一下,两个固件都不能u盘启动,我猜想你可能是拿的f大微加云的openwrt里面的u-boot,然后我把你U盘下的文件全删了,复制了f大armbian56+里面的文件,启动了。另外微加云原始原件不是安卓,是op。

login as: root
root@192.168.30.241's password:
__     __     _
\ \   / / __ | |_   _ ___
 \ \ / / '_ \| | | | / __|
  \ V /| |_) | | |_| \__ \
   \_/ | .__/|_|\__,_|___/
       |_|
Welcome to Armbian 23.02.0-trunk Jammy with Linux 5.10.26-flippy-56+

System load:   13%              Up time:       3 min
Memory usage:  11% of 980M      IP:            192.168.30.241
CPU temp:      37°C             Usage of /:    69% of 2.4G
storage/:      36% of 252M
RX today:      10.6 KiB

Last login: Sat Feb 25 09:45:32 2023 from 192.168.30.234
root@armbian:~# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda            8:0    1 57.3G  0 disk
├─sda1         8:1    1  255M  0 part /boot
└─sda2         8:2    1  2.5G  0 part /var/log.hdd
                                      /
mmcblk0      179:0    0  7.3G  0 disk
├─mmcblk0p1  179:1    0  160M  0 part
├─mmcblk0p2  179:2    0  720M  0 part
├─mmcblk0p3  179:3    0  720M  0 part
└─mmcblk0p4  179:4    0  5.7G  0 part
mmcblk0boot0 179:32   0    4M  1 disk
mmcblk0boot1 179:64   0    4M  1 disk
root@armbian:~# df -hT
Filesystem     Type   Size  Used Avail Use% Mounted on
tmpfs          tmpfs   99M  5.6M   93M   6% /run
/dev/sda2      ext4   2.4G  1.7G  767M  69% /
tmpfs          tmpfs  491M     0  491M   0% /dev/shm
tmpfs          tmpfs  5.0M     0  5.0M   0% /run/lock
tmpfs          tmpfs  491M  4.0K  491M   1% /tmp
/dev/sda1      vfat   252M   91M  161M  36% /boot
armbian-ramlog tmpfs   50M  1.1M   49M   3% /var/log
tmpfs          tmpfs   99M     0   99M   0% /run/user/0
root@armbian:~# blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL_FATBOOT="EMMC_BOOT" LABEL="EMMC_BOOT" UUID="E5FC-B93D" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="dd8ee066-01"
/dev/mmcblk0p2: LABEL="EMMC_ROOTFS1" UUID="c999cc06-5a0c-40d5-abb1-a40e8742b767" UUID_SUB="1d835446-cfb6-4c9a-8a10-d5f00a82ef69" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="dd8ee066-02"
/dev/mmcblk0p3: LABEL="EMMC_ROOTFS2" UUID="203ef8db-a5dc-4a5f-a5f7-48b47176a038" UUID_SUB="ce2ee3c2-d391-4c44-8373-d4400a424d74" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="dd8ee066-03"
/dev/mmcblk0p4: LABEL="EMMC_SHARED" UUID="c2a7e29c-2be5-4ec9-8a80-f0249f1e1c55" UUID_SUB="d5f191bb-4c26-46fa-90a7-c7ed09563f2f" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="dd8ee066-04"
/dev/sda2: LABEL="ROOTFS" UUID="3a9fa81b-6d47-4432-8049-89fcb12d609a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="9e657864-02"
/dev/sda1: LABEL_FATBOOT="BOOT" LABEL="BOOT" UUID="AED9-D0A9" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="9e657864-01"
root@armbian:~#

commented

你说的是不是你在电脑上双击打开/boot里面的文件,你都删了,换f大的armbian的/boot里面的文件?

我昨天也发现他的armbian和op不同,在他仓库里最新的打包op的配置里面少了一些文件,我问他原因还没回信息。我一会改一下用56版armbian的/boot文件,你再试一试。

这个设备,你以前是怎么写入emmc呢?使用的root下的脚本?还是从U盘中dd写入?

U盘写完,点脑打开U盘,看到的文件,全删了,然后把f大U盘看到的全复制过来,能启动,但是启动的时候会出现两个ip会来回跳动一下。
一 微加云接在路由下,准备一个能正常启动的armbian u盘,启动进入armbian,在主路由下找到微加云网址,
用MobaXterm_CHS把镜像上传到armbian的/opt目录
二 清空emmc

  1. dd if=/dev/zero of=/dev/mmcblk0 bs=1M skip=16 && sync
  2. dd if=/dev/zero of=/dev/mmcblk0 bs=512 count=1 && sync
    三 刷入
    cd /opt
    dd if=openwrt_h6_vplus_R23.01.01_k6.1.2-flippy-80+.img of=/dev/mmcblk0 bs=1M
    sync
    halt
    关机后拔掉u盘,重新开机即可启动op系统
    ===========================================================================================
    微加云接在路由下
    一 准备一个能正常启动的armbian u盘,启动进入armbian,把镜像上传到armbian的/opt目录
    二 清空emmc
    mkfs.ext4 /dev/mmcblk0
    全格,不能断电
    三 刷入
    cd /opt
    dd if=openwrt_h6_vplus_R22.4.1_k5.4.188-flippy-71+o.img of=/dev/mmcblk0 bs=1M
    sync
    halt
    关机后拔掉u盘,重新开机即可启动op系统

==========================================================================================正常我们写入op用第二种清空,armbian还么写过,f大的新的可能有脚本,但是我们都一直格式化后dd进去。这么做的原因是最起初有个c大最先完成的op固件的uboot和现在的f大的uboot可能不一样,不格式化,刷第二人的会有点小问题,大部分是刷f大的启动困难,从F大的刷成c大的就没问题,c大的u-boot更强,但是c大退隐江湖,好几年不更新,他说电脑里的东西没了。

另外请编译Debian的,我需要debian,好多平台只认Debian。

login as: root
root@192.168.30.118's password:
__     __     _
\ \   / / __ | |_   _ ___
 \ \ / / '_ \| | | | / __|
  \ V /| |_) | | |_| \__ \
   \_/ | .__/|_|\__,_|___/
       |_|
Welcome to Armbian 23.02.0-trunk Jammy with Linux 5.10.26-flippy-56+

System load:   25%              Up time:       3 min
Memory usage:  11% of 980M      IP:            192.168.30.118
CPU temp:      36°C             Usage of /:    70% of 2.4G
storage/:      36% of 252M
RX today:

[ General system configuration (beta): armbian-config ]

Last login: Sat Feb 25 10:17:23 2023 from 192.168.30.234
armbian:~:# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy
armbian:~:#

commented

一会我换一下/boot里面的文件重新生成一下。我刚才又学习了一下f大的op打包脚本和更新固件的脚本,他现在做的可能只针对你上面的方法使用,从armbian里面dd写入op至emmc,不再支持从U盘启动op了,我一会添加上原来56版支持U盘启动的cmd

链接: https://pan.baidu.com/s/1Scz6Y85ToFSGBDB2pOYYfw?pwd=kuz9 提取码: kuz9

这个是c大的经典固件,就是很老,但是boot很好,你看看有没有用。

commented

https://github.com/unifreq/openwrt_packit/tree/master/files/vplus

f大持续更新过3个u-boot,咱们先测试最新版u-boot

commented

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_02.24.2231

先测试刷入U盘,能不能从U盘启动
启动后先测试下更新内核的脚本是否工作正常: armbian-update -k 6.1.12
再测试写入emmc功能(用安装脚本,不是dd): armbian-install

更新内核和写入emmc的这2步操作,发下你的执行日志。

mv -f ${DIR_INSTALL}/boot-emmc.scr ${DIR_INSTALL}/boot.scr
mv -f ${DIR_INSTALL}/boot-emmc.cmd ${DIR_INSTALL}/boot.cmd

我看网上一些帖子都是几年前的,说这个设备没有救砖系统和救砖工具?现在是什么情况了?

新固件可以启动了,刷的6.1.13,我先U盘上折腾看看U盘上升级dietpi,暂时不写emmc。
微加云有一套救砖方案,有私密QQ群,当时第一批人买了后组建了群,由C大F大领头历经很久,出了破解方案,固件和方案没有网上公开,抵制奸商涨价,群里的都会救砖,只是微加云救砖比较麻烦,需要焊接OTG和adb线。

commented

U盘默认空间只有2.5G,先用armbian-tf命令,把U盘中的剩余可用空间启用了。不然的话在U盘中安装更多软件会因为空间不足而导致失败。

测试更新内核和写入emmc操作时贴一下日志,我确认一下操作执行情况。

root@armbian:~# nano /home/dietpi-installer.sh
root@armbian:~# chmod +x /home/dietpi-installer.sh
root@armbian:~# cd /home
root@armbian:/home# ./dietpi-installer.sh
mount: /tmp: mount point not mounted or bad option.
removed '/etc/apt/apt.conf.d/71-armbian-no-recommends'
removed '/etc/apt/apt.conf.d/02-armbian-compress-indexes'
removed '/etc/apt/apt.conf.d/02-armbian-periodic'
removed '/etc/apt/apt.conf.d/02-armbian-postupdate'
removed '/etc/apt/apt.conf.d/81-armbian-no-languages'
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://security.debian.org bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 http://security.debian.org bullseye-security/main arm64 Packages [224 kB]
Get:6 http://security.debian.org bullseye-security/main armhf Packages [224 kB]
Get:7 http://deb.debian.org/debian bullseye/main armhf Packages [7945 kB]
Get:8 http://deb.debian.org/debian bullseye/main arm64 Packages [8072 kB]
Get:9 http://deb.debian.org/debian bullseye/main armhf Contents (deb) [9306 kB]
Get:10 http://deb.debian.org/debian bullseye/main all Contents (deb) [31.1 MB]
Get:11 http://deb.debian.org/debian bullseye/main arm64 Contents (deb) [9832 kB]
Get:12 http://deb.debian.org/debian bullseye/contrib arm64 Packages [41.0 kB]
Get:13 http://deb.debian.org/debian bullseye/contrib armhf Packages [40.2 kB]
Get:14 http://deb.debian.org/debian bullseye/contrib armhf Contents (deb) [29.2 kB]
Get:15 http://deb.debian.org/debian bullseye/contrib arm64 Contents (deb) [29.6 kB]
Get:16 http://deb.debian.org/debian bullseye/contrib all Contents (deb) [57.3 kB]
Get:17 http://deb.debian.org/debian bullseye/non-free armhf Packages [56.3 kB]
Get:18 http://deb.debian.org/debian bullseye/non-free arm64 Packages [73.0 kB]
Get:19 http://deb.debian.org/debian bullseye/non-free armhf Contents (deb) [13.5 kB]
Get:20 http://deb.debian.org/debian bullseye/non-free arm64 Contents (deb) [37.4 kB]
Get:21 http://deb.debian.org/debian bullseye/non-free all Contents (deb) [888 kB]
Get:22 http://deb.debian.org/debian bullseye-updates/main armhf Packages [12.0 kB]
Get:23 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [12.0 kB]
Get:24 http://deb.debian.org/debian bullseye-updates/main all Contents (deb) [25.0 kB]
Get:25 http://deb.debian.org/debian bullseye-updates/main arm64 Contents (deb) [42.8 kB]
Get:26 http://deb.debian.org/debian bullseye-updates/main armhf Contents (deb) [45.0 kB]
Get:27 http://deb.debian.org/debian bullseye-backports/main armhf Packages [393 kB]
Get:28 http://deb.debian.org/debian bullseye-backports/main arm64 Packages [397 kB]
Get:29 http://deb.debian.org/debian bullseye-backports/main all Contents (deb) [5137 kB]
Get:30 http://deb.debian.org/debian bullseye-backports/main arm64 Contents (deb) [1630 kB]
Get:31 http://deb.debian.org/debian bullseye-backports/main armhf Contents (deb) [1832 kB]
Get:32 http://deb.debian.org/debian bullseye-backports/contrib armhf Packages [4388 B]
Get:33 http://deb.debian.org/debian bullseye-backports/contrib arm64 Packages [4896 B]
Get:34 http://deb.debian.org/debian bullseye-backports/contrib arm64 Contents (deb) [16.4 kB]
Get:35 http://deb.debian.org/debian bullseye-backports/contrib all Contents (deb) [20.1 kB]
Get:36 http://deb.debian.org/debian bullseye-backports/contrib armhf Contents (deb) [16.3 kB]
Get:37 http://deb.debian.org/debian bullseye-backports/non-free armhf Packages [9060 B]
Get:38 http://deb.debian.org/debian bullseye-backports/non-free arm64 Packages [9868 B]
Get:39 http://deb.debian.org/debian bullseye-backports/non-free arm64 Contents (deb) [5710 B]
Get:40 http://deb.debian.org/debian bullseye-backports/non-free armhf Contents (deb) [3663 B]
Get:41 http://deb.debian.org/debian bullseye-backports/non-free all Contents (deb) [57.9 kB]
Fetched 77.9 MB in 20s (3885 kB/s)
Reading package lists... Done
[ INFO ] Selected Git branch: MichaIng/master
[ INFO ] DietPi-PREP | Detected distribution version: Bullseye (ID: 6)
[ INFO ] DietPi-PREP | Detected target CPU architecture: aarch64 (ID: 3)

 DietPi-PREP
─────────────────────────────────────────────────────
 Step: [0] Detecting existing DietPi system

[ INFO ] DietPi-PREP | No DietPi system found, skipping old instance uninstall...

 DietPi-PREP
─────────────────────────────────────────────────────
 Step: [1] Target system inputs

[ INFO ] DietPi-PREP | Entered image creator: yu13740000
[ INFO ] DietPi-PREP | Entered pre-image info: Debian
[ INFO ] DietPi-PREP | Selected hardware model ID: 27
[ INFO ] DietPi-PREP | Marking WiFi as NOT required
[ INFO ] DietPi-PREP | Selected Debian version: bullseye (ID: 6)

 DietPi-PREP
─────────────────────────────────────────────────────
 Step: [2] Downloading and installing DietPi source code

[  OK  ] DietPi-PREP | Downloading source code
[  OK  ] DietPi-PREP | Unpacking source code
[  OK  ] DietPi-PREP | Removing unused files
[  OK  ] DietPi-PREP | Hardening source code mode
[ INFO ] DietPi-PREP | Moving kernel and boot configuration to /boot
[  OK  ] DietPi-PREP | mv DietPi-master/dietpi.txt /boot/
[  OK  ] DietPi-PREP | mv DietPi-master/README.md /boot/dietpi-README.md
[  OK  ] DietPi-PREP | mv DietPi-master/LICENSE /boot/dietpi-LICENSE.txt
[  OK  ] DietPi-PREP | Copy DietPi scripts to /boot/dietpi
[  OK  ] DietPi-PREP | Copy DietPi system files in place
[  OK  ] DietPi-PREP | Clean download location
[ INFO ] DietPi-PREP | Storing DietPi version info:
[  OK  ] DietPi-PREP | Desired setting in /boot/dietpi.txt was already set: DEV_GITBRANCH=master
[  OK  ] DietPi-PREP | Desired setting in /boot/dietpi.txt was already set: DEV_GITOWNER=MichaIng
[ INFO ] DietPi-PREP | Applying DietPi live patches to fix known bugs in this version
[  OK  ] DietPi-PREP | Added setting G_LIVE_PATCH_STATUS[0]='not applicable' to end of file /boot/dietpi/.version
[ INFO ] DietPi-PREP | Applying live patch 1
[  OK  ] DietPi-PREP | Added setting G_LIVE_PATCH_STATUS[1]='applied' to end of file /boot/dietpi/.version
[ INFO ] DietPi-PREP | Applying live patch 2
[  OK  ] DietPi-PREP | Added setting G_LIVE_PATCH_STATUS[2]='applied' to end of file /boot/dietpi/.version
[  OK  ] DietPi-PREP | cp /boot/dietpi/.version /var/lib/dietpi/.dietpi_image_version
[  OK  ] DietPi-PREP | systemctl daemon-reload

 DietPi-PREP
─────────────────────────────────────────────────────
 Step: [3] APT configuration

[ INFO ] DietPi-PREP | Setting APT sources.list: bullseye 6
[  OK  ] DietPi-PREP | /boot/dietpi/func/dietpi-set_software apt-mirror default
[  OK  ] DietPi-PREP | mkdir -p /run/dietpi /var/tmp/dietpi/logs
[ INFO ] DietPi-PREP | APT update, please wait...
Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease
Get:3 https://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Get:5 https://deb.debian.org/debian-security bullseye-security/main arm64 Packages [224 kB]
Get:6 https://deb.debian.org/debian-security bullseye-security/main armhf Packages [224 kB]
Fetched 497 kB in 2s (217 kB/s)
Reading package lists...
[  OK  ] DietPi-PREP | APT update
[ INFO ] DietPi-PREP | Marking all packages as auto-installed first, to allow effective autoremove afterwards
[  OK  ] DietPi-PREP | apt-mark auto adduser alsa-utils apt apt-file apt-utils aptitude aptitude-common armbian-bsp-cli-odroidn2 armbian-config armbian-firmware armbian-plymouth-theme armbian-zsh autoconf automake autotools-dev avahi-autoipd base-files base-passwd bash bash-completion bc bind9-dnsutils bind9-host bind9-libs binutils binutils-aarch64-linux-gnu binutils-common bison bridge-utils bsdextrautils bsdutils btrfs-progs build-essential bzip2 ca-certificates chrony command-not-found console-setup console-setup-linux coreutils cpio cpp cpp-10 cpufrequtils cracklib-runtime crda cron curl dash dbus dbus-user-session dctrl-tools debconf debconf-utils debian-archive-keyring debianutils device-tree-compiler dialog diffutils dirmngr distro-info-data dkms dmsetup dnsutils dosfstools dpkg dpkg-dev e2fsprogs ethtool evtest expect f2fs-tools f3 fake-hwclock fbset fdisk figlet file findutils flex fontconfig fontconfig-config fonts-cantarell fonts-dejavu-core fping fuse g++ g++-10 gcc gcc-10 gcc-10-base gcc-9-base gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git git-man gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv gpiod grep groff-base gzip haveged hdparm hostapd hostname hping3 html2text htop i2c-tools ifenslave ifupdown init init-system-helpers initramfs-tools initramfs-tools-core iotop iozone3 iperf3 iproute2 iptables iputils-arping iputils-ping isc-dhcp-client iso-codes iw jq kbd keyboard-configuration keyutils klibc-utils kmod less libacl1 libapparmor1 libapt-pkg-perl libapt-pkg6.0 libargon2-1 libasan6 libasound2 libasound2-data libassuan0 libatomic1 libatopology2 libattr1 libaudit-common libaudit1 libbinutils libblkid1 libbluetooth3 libboost-iostreams1.74.0 libbpf0 libbrotli1 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libcaca0 libcairo2 libcap-ng0 libcap2 libcap2-bin libcbor0 libcc1-0 libcom-err2 libcpufreq0 libcrack2 libcrypt-dev libcrypt1 libcryptsetup12 libctf-nobfd0 libctf0 libcurl3-gnutls libcurl4 libcwidget4 libdaemon0 libdatrie1 libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdigest-sha-perl libdns-export1110 libdpkg-perl libdrm-common libdrm2 libedit2 libelf1 liberror-perl libestr0 libevent-2.1-7 libexpat1 libexporter-tiny-perl libext2fs2 libfastjson4 libfdisk1 libfdt1 libffi7 libfftw3-single3 libfido2-1 libfile-fnmatch-perl libfontconfig1 libfreetype6 libfribidi0 libfstrm0 libfuse2 libgcc-10-dev libgcc-s1 libgcrypt20 libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libgmp10 libgnutls30 libgomp1 libgpg-error0 libgpiod2 libgpm2 libgraphite2-3 libgssapi-krb5-2 libharfbuzz0b libhavege2 libhogweed6 libi2c0 libicu67 libidn2-0 libiniparser1 libip4tc2 libip6tc2 libiperf0 libisc-export1105 libisl23 libitm1 libiw30 libjansson4 libjq1 libjson-c5 libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2 liblist-moreutils-perl liblist-moreutils-xs-perl liblmdb0 liblocale-gettext-perl liblognorm5 liblsan0 liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmaxminddb0 libmd0 libmm-glib0 libmnl0 libmount1 libmpc3 libmpdec3 libmpfr6 libncurses6 libncursesw6 libndp0 libnetfilter-conntrack3 libnetplan0 libnettle8 libnewt0.52 libnfnetlink0 libnfsidmap2 libnftnl11 libnghttp2-14 libnl-3-200 libnl-3-dev libnl-genl-3-200 libnl-genl-3-dev libnl-route-3-200 libnm0 libnpth0 libnsl-dev libnsl2 libnss-myhostname libntfs-3g883 libonig5 libp11-kit0 libpackagekit-glib2-18 libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libparted2 libpcap0.8 libpci3 libpcre2-8-0 libpcre3 libpcsclite1 libperl5.32 libpipeline1 libpixman-1-0 libpkcs11-helper1 libplymouth5 libpng16-16 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpopt0 libproc-processtable-perl libprocps8 libprotobuf-c1 libpsl5 libpython3-stdlib libpython3.9-minimal libpython3.9-stdlib libqrencode4 libreadline8 libregexp-assemble-perl librtmp1 libsamplerate0 libsasl2-2 libsasl2-modules-db libsctp1 libseccomp2 libselinux1 libsemanage-common libsemanage1 libsensors-config libsensors5 libsepol1 libsigc++-2.0-0v5 libsigsegv2 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh2-1 libssl-dev libssl1.1 libstdc++-10-dev libstdc++6 libsysfs2 libsystemd0 libtasn1-6 libtcl8.6 libteamdctl0 libthai-data libthai0 libtinfo6 libtirpc-common libtirpc-dev libtirpc3 libtsan0 libubsan1 libuchardet0 libudev1 libunistring2 libusb-1.0-0 libutempter0 libuuid1 libuv1 libwrap0 libwrap0-dev libx11-6 libx11-data libxapian30 libxau6 libxcb-render0 libxcb-shm0 libxcb1 libxdmcp6 libxext6 libxml2 libxrender1 libxtables12 libxxhash0 libyaml-0-2 libzstd1 linux-base linux-libc-dev locales login logrotate logsave lsb-base lsb-release lsof m4 make man-db mawk mc mc-data media-types mmc-utils mount mtd-utils nano ncurses-base ncurses-bin ncurses-term net-tools netbase netcat-openbsd netplan.io network-manager network-manager-openvpn networkd-dispatcher nfs-common nocache ntfs-3g openssh-client openssh-server openssh-sftp-server openssl openvpn parted passwd patch pci.ids pciutils perl perl-base perl-modules-5.32 pinentry-curses plymouth plymouth-label plymouth-themes policykit-1 procps psmisc pv python-apt-common python3 python3-apt python3-dbus python3-distro-info python3-distutils python3-gi python3-lib2to3 python3-minimal python3-netifaces python3-pycurl python3-software-properties python3-yaml python3.9 python3.9-minimal qrencode readline-common resolvconf rfkill rpcbind rsync rsyslog runit-helper screen sed sensible-utils smartmontools software-properties-common stress sudo sunxi-tools sysfsutils sysstat systemd systemd-sysv sysvinit-utils tar tcl-expect tcl8.6 tmux toilet toilet-fonts tzdata u-boot-tools ucf udev unattended-upgrades unicode-data unzip usbutils util-linux vim vim-common vim-runtime vlan vnstat wget whiptail wireguard-tools wireless-regdb wireless-tools wpasupplicant xkb-data xxd xz-utils zip zlib1g zsh zsh-common
[  OK  ] DietPi-PREP | mkdir -p /etc/kernel/postinst.d /etc/kernel/postrm.d /etc/initramfs/post-update.d
[  OK  ] DietPi-PREP | chmod +x /etc/initramfs/post-update.d/99-dietpi-uboot
[  OK  ] DietPi-PREP | chmod +x /etc/kernel/postinst.d/dietpi-initramfs_cleanup
[  OK  ] DietPi-PREP | ln -sf /etc/kernel/postinst.d/dietpi-initramfs_cleanup /etc/kernel/postrm.d/dietpi-initramfs_cleanup
[  OK  ] DietPi-PREP | rmdir --ignore-fail-on-non-empty /etc/kernel/preinst.d
[  OK  ] DietPi-PREP | eval curl -sSfL 'https://apt.armbian.com/armbian.key' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-armbian.gpg --yes
[  OK  ] DietPi-PREP | rm /etc/apt/trusted.gpg
[FAILED] DietPi-PREP | rm /etc/apt/sources.list.d/*
[FAILED] DietPi-PREP | rm /etc/apt/sources.list.d/*
[FAILED] DietPi-PREP | rm /etc/apt/sources.list.d/*

---------------------------------------------------------------------
- DietPi has encountered an error                                   -
- Please create a ticket: https://github.com/MichaIng/DietPi/issues -
- Copy and paste only the BLUE lines below into the ticket          -
---------------------------------------------------------------------
#### Details:
- Date           | Sat Feb 25 12:52:57 CST 2023
- DietPi version | v8.14.2 (MichaIng/master)
- Image creator  |
- Pre-image      |
- Hardware       |  (ID=27)
- Kernel version | `Linux armbian 5.15.95-flippy-82+o #212 SMP PREEMPT Thu Feb 23 21:20:57 CST 2023 aarch64 GNU/Linux`
- Distro         | bullseye (ID=6,RASPBIAN=0)
- Command        | `rm /etc/apt/sources.list.d/*`
- Exit code      | 1
- Software title | DietPi-PREP
#### Steps to reproduce:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:

rm: cannot remove '/etc/apt/sources.list.d/*': No such file or directory

---------------------------------------------------------------------
[FAILED] DietPi-PREP | Unable to continue, DietPi-PREP will now terminate.

root@armbian:/home#

rm: cannot remove '/etc/apt/sources.list.d/*': No such file or directory
两个版本的armbian都会提示这个错误

commented

这个目录下默认没文件。这是一些软件源自己安装源时存放的路径。

我记得哪一个armbian好像有,我如法添加了armbian.list(内容deb https://apt.armbian.com/ bullseye main)和zerotier.list(内容deb http://download.zerotier.com/debian/bullseye bullseye main)但是提示啥秘钥不对,前些天折腾n1的升级dietpi好像这两文件没报错。


┌─────────────────────────────────────────────────┤ DietPi-PREP ├──────────────────────────────────────────────────┐
│ APT update                                                                                                       │
│  - Command: apt-get -y -eany update                                                                              │
│  - Exit code: 100                                                                                                │
│  - DietPi version: v8.14.2 (MichaIng/master) | HW_MODEL: 27 | HW_ARCH: 3 | DISTRO: 6                             │
│  - Error log:                                                                                                    │
│ Get:1 http://download.zerotier.com/debian/bullseye bullseye InRelease [36.9 kB]                                  │
│ Hit:2 https://deb.debian.org/debian bullseye InRelease                                                           │
│ Hit:3 https://deb.debian.org/debian bullseye-updates InRelease                                                   │
│ Hit:4 https://deb.debian.org/debian-security bullseye-security InRelease                                         │
│ Hit:5 https://deb.debian.org/debian bullseye-backports InRelease                                                 │
│ Get:6 https://sg-mirror.bret.dk/armbian/apt bullseye InRelease [53.3 kB]                                         │
│ Err:1 http://download.zerotier.com/debian/bullseye bullseye InRelease                                            │
│   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY               │
│ 1657198823E52A61                                                                                                 │
│ Reading package lists...                                                                                         │
│ W: GPG error: http://download.zerotier.com/debian/bullseye bullseye InRelease: The following signatures couldn't │
│ be verified because the public key is not available: NO_PUBKEY 1657198823E52A61                                  │
│ E: The repository 'http://download.zerotier.com/debian/bullseye bullseye InRelease' is not signed.               │
│                                                                                                                  │
│                       Retry          : Re-run the last command that failed                                       │
│                       DietPi-Config  : Edit network, APT/NTP mirror settings etc                                 │
│                       Open subshell  : Open a subshell to investigate or solve the issue                         │
│                       Send report    : Uploads bugreport containing system info to DietPi                        │
│                                      ●─ Devs only ──────────────────────────────────────●                        │
│                       Change command : Adjust and rerun the command                                              │
│                                                                                                                  │
│                                                                                                                  │
│                                 <Ok>                                     <Exit>                                  │
│                                                                                                                  │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
root@armbian:~#  lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
root@armbian:~# apt update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://security.debian.org bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 http://deb.debian.org/debian bullseye/main armhf Packages [10.8 MB]
Get:6 http://deb.debian.org/debian bullseye/main arm64 Packages [10.9 MB]
Get:7 http://deb.debian.org/debian bullseye/main all Contents (deb) [31.1 MB]
Get:8 http://deb.debian.org/debian bullseye/main armhf Contents (deb) [9,306 kB]
Get:9 http://deb.debian.org/debian bullseye/main arm64 Contents (deb) [9,832 kB]
Get:10 http://deb.debian.org/debian bullseye/contrib arm64 Packages [49.0 kB]
Get:11 http://deb.debian.org/debian bullseye/contrib armhf Packages [47.8 kB]
Get:12 http://deb.debian.org/debian bullseye/contrib arm64 Contents (deb) [29.6 kB]
Get:13 http://deb.debian.org/debian bullseye/contrib all Contents (deb) [57.3 kB]
Get:14 http://deb.debian.org/debian bullseye/contrib armhf Contents (deb) [29.2 kB]
Get:15 http://deb.debian.org/debian bullseye/non-free arm64 Packages [88.2 kB]
Get:16 http://deb.debian.org/debian bullseye/non-free armhf Packages [67.3 kB]
Get:17 http://deb.debian.org/debian bullseye/non-free armhf Contents (deb) [13.5 kB]
Get:18 http://deb.debian.org/debian bullseye/non-free all Contents (deb) [888 kB]
Get:19 http://deb.debian.org/debian bullseye/non-free arm64 Contents (deb) [37.4 kB]
Reading package lists... Done
E: Release file for http://security.debian.org/dists/bullseye-security/InRelease is not valid yet (invalid for another 2d 12h 17min 59s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 2d 14h 57min 8s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bullseye-backports/InRelease is not valid yet (invalid for another 2d 14h 57min 7s). Updates for this repository will not be applied.
root@armbian:~# sudo date 022514542023.30
Sat 25 Feb 2023 02:54:30 PM CST
root@armbian:~# apt update
Get:1 http://security.debian.org bullseye-security InRelease [48.4 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 http://security.debian.org bullseye-security/main arm64 Packages [284 kB]
Get:6 http://security.debian.org bullseye-security/main armhf Packages [284 kB]
Get:7 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [12.0 kB]
Get:8 http://deb.debian.org/debian bullseye-updates/main armhf Packages [12.0 kB]
Get:9 http://deb.debian.org/debian bullseye-updates/main arm64 Contents (deb) [42.8 kB]
Get:10 http://deb.debian.org/debian bullseye-updates/main all Contents (deb) [25.0 kB]
Get:11 http://deb.debian.org/debian bullseye-updates/main armhf Contents (deb) [45.0 kB]
Get:12 http://deb.debian.org/debian bullseye-backports/main armhf Packages [393 kB]
Get:13 http://deb.debian.org/debian bullseye-backports/main arm64 Packages [397 kB]
Get:14 http://deb.debian.org/debian bullseye-backports/main armhf Contents (deb) [1,832 kB]
Get:15 http://deb.debian.org/debian bullseye-backports/main all Contents (deb) [5,137 kB]
Get:16 http://deb.debian.org/debian bullseye-backports/main arm64 Contents (deb) [1,630 kB]
Get:17 http://deb.debian.org/debian bullseye-backports/contrib arm64 Packages [4,896 B]
Get:18 http://deb.debian.org/debian bullseye-backports/contrib armhf Packages [4,388 B]
Get:19 http://deb.debian.org/debian bullseye-backports/contrib armhf Contents (deb) [16.3 kB]
Get:20 http://deb.debian.org/debian bullseye-backports/contrib all Contents (deb) [20.1 kB]
Get:21 http://deb.debian.org/debian bullseye-backports/contrib arm64 Contents (deb) [16.4 kB]
Get:22 http://deb.debian.org/debian bullseye-backports/non-free arm64 Packages [9,868 B]
Get:23 http://deb.debian.org/debian bullseye-backports/non-free armhf Packages [9,060 B]
Get:24 http://deb.debian.org/debian bullseye-backports/non-free arm64 Contents (deb) [5,710 B]
Get:25 http://deb.debian.org/debian bullseye-backports/non-free all Contents (deb) [57.9 kB]
Get:26 http://deb.debian.org/debian bullseye-backports/non-free armhf Contents (deb) [3,663 B]
Fetched 10.2 MB in 5s (2,217 kB/s)
Reading package lists... Done
Building dependency tree... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@armbian:~# apt list --upgradable
Listing... Done
git-man/stable-security,stable-security 1:2.30.2-1+deb11u2 all [upgradable from: 1:2.30.2-1+deb11u1]
git/stable-security 1:2.30.2-1+deb11u2 arm64 [upgradable from: 1:2.30.2-1+deb11u1]
libgnutls30/stable-security 3.7.1-5+deb11u3 arm64 [upgradable from: 3.7.1-5+deb11u2]
root@armbian:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  git git-man libgnutls30
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,513 kB of archives.
After this operation, 16.4 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org bullseye-security/main arm64 libgnutls30 arm64 3.7.1-5+deb11u3 [1,262 kB]
Get:2 http://security.debian.org bullseye-security/main arm64 git-man all 1:2.30.2-1+deb11u2 [1,828 kB]
Get:3 http://security.debian.org bullseye-security/main arm64 git arm64 1:2.30.2-1+deb11u2 [5,423 kB]
Fetched 8,513 kB in 3s (2,833 kB/s)
(Reading database ... 37432 files and directories currently installed.)
Preparing to unpack .../libgnutls30_3.7.1-5+deb11u3_arm64.deb ...
Unpacking libgnutls30:arm64 (3.7.1-5+deb11u3) over (3.7.1-5+deb11u2) ...
Setting up libgnutls30:arm64 (3.7.1-5+deb11u3) ...
(Reading database ... 37432 files and directories currently installed.)
Preparing to unpack .../git-man_1%3a2.30.2-1+deb11u2_all.deb ...
Unpacking git-man (1:2.30.2-1+deb11u2) over (1:2.30.2-1+deb11u1) ...
Preparing to unpack .../git_1%3a2.30.2-1+deb11u2_arm64.deb ...
Unpacking git (1:2.30.2-1+deb11u2) over (1:2.30.2-1+deb11u1) ...
Setting up git-man (1:2.30.2-1+deb11u2) ...
Setting up git (1:2.30.2-1+deb11u2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
root@armbian:~#
你是要看这个日记吗?
commented

如何安装dietpi 我这网络不行老是下载不了

好的梯子才行,然后电脑ping 9.9.9.9正常,一般就可以

commented

刚解决网络问题,现在走条中
图片

成功,把zerotier.list这个第三方源地址换成了Debian官方的,然后脚本运行错误,自动换了,再也不提示出错了。直至升级完成dietpi

commented

什么都没改,直接解决网络问题就已经安装成功。

commented

@yu13740000
有没有DIETPI相关的教程,我是看“数码视讯Q5刷Armbian+写进EMMC+安装DietPi+squeezelite”( http://www2.erji.net/forum.php?mod=viewthread&tid=2283866&extra=&page=2 )这篇文章安装的

commented

在USB上先测试下更新内核的脚本是否工作正常: armbian-update -k 6.1.12
再测试写入emmc功能(用安装脚本,不是dd): armbian-install
这2步的日志详情也发一下

commented

@Yxini 你有数码视讯Q5盒子?这个设备使用的dtb和u-boot是哪个?

cat /boot/uEnv.txt
ls -l /boot/u-boot*
commented

我用的是魔百和的CM311-1A

@ophub 这会儿微加云U盘上的armbian已经升级成了dietpi了,正在测试dietpi,稍后测试。

Welcome to ARMBIAN!

Documentation: https://docs.armbian.com | Community: https://forum.armbian.com

IP address: 192.168.30.197

Create root password: **********
Repeat root password: **********

Choose default system command shell:

1) bash
2) zsh

Shell: BASH

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your first name): ^C
Disabling user account creation procedure

root@armbian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
root@armbian:~# armbian-update -k 6.1.12
[ STEPS ] Welcome to the kernel update tool.
[ STEPS ] Start checking dependencies...
[ INFO ] Start installing the necessary dependencies.
Get:1 http://security.debian.org bullseye-security InRelease [48.4 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 http://deb.debian.org/debian bullseye/main armhf Packages [10.8 MB]
Get:6 http://deb.debian.org/debian bullseye/main arm64 Packages [10.9 MB]
Get:7 http://deb.debian.org/debian bullseye/main arm64 Contents (deb) [9,832 kB]
Get:8 http://deb.debian.org/debian bullseye/main all Contents (deb) [31.1 MB]
Get:9 http://deb.debian.org/debian bullseye/main armhf Contents (deb) [9,306 kB]
Get:10 http://deb.debian.org/debian bullseye/contrib arm64 Packages [49.0 kB]
Get:11 http://deb.debian.org/debian bullseye/contrib armhf Packages [47.8 kB]
Get:12 http://deb.debian.org/debian bullseye/contrib armhf Contents (deb) [29.2 kB]
Get:13 http://deb.debian.org/debian bullseye/contrib all Contents (deb) [57.3 kB]
Get:14 http://deb.debian.org/debian bullseye/contrib arm64 Contents (deb) [29.6 kB]
Get:15 http://deb.debian.org/debian bullseye/non-free armhf Packages [67.3 kB]
Get:16 http://deb.debian.org/debian bullseye/non-free arm64 Packages [88.2 kB]
Get:17 http://deb.debian.org/debian bullseye/non-free all Contents (deb) [888 kB]
Get:18 http://deb.debian.org/debian bullseye/non-free armhf Contents (deb) [13.5 kB]
Get:19 http://deb.debian.org/debian bullseye/non-free arm64 Contents (deb) [37.4 kB]
Reading package lists... Done
E: Release file for http://security.debian.org/dists/bullseye-security/InRelease is not valid yet (invalid for another 2d 12h 13min 21s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 2d 20h 50min 47s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bullseye-backports/InRelease is not valid yet (invalid for another 2d 20h 50min 47s). Updates for this repository will not be applied.
Reading package lists... Done
Building dependency tree... Done
coreutils is already the newest version (8.32-4).
tar is already the newest version (1.34+dfsg-1).
bsdextrautils is already the newest version (2.36.1-8+deb11u1).
The following additional packages will be installed:
  libapr1 libaprutil1 libserf-1-1 libsvn1 libutf8proc2
Suggested packages:
  db5.3-util libapache2-mod-svn subversion-tools
The following NEW packages will be installed:
  libapr1 libaprutil1 libserf-1-1 libsvn1 libutf8proc2 subversion
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,593 kB of archives.
After this operation, 10.3 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 libapr1 arm64 1.7.0-6+deb11u1 [98.8 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 libaprutil1 arm64 1.6.1-5 [89.6 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 libserf-1-1 arm64 1.3.9-10 [52.6 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 libutf8proc2 arm64 2.5.0-1 [54.2 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 libsvn1 arm64 1.14.1-3+deb11u1 [1,320 kB]
Get:6 http://deb.debian.org/debian bullseye/main arm64 subversion arm64 1.14.1-3+deb11u1 [978 kB]
Fetched 2,593 kB in 1s (2,261 kB/s)
Selecting previously unselected package libapr1:arm64.
(Reading database ... 37432 files and directories currently installed.)
Preparing to unpack .../0-libapr1_1.7.0-6+deb11u1_arm64.deb ...
Unpacking libapr1:arm64 (1.7.0-6+deb11u1) ...
Selecting previously unselected package libaprutil1:arm64.
Preparing to unpack .../1-libaprutil1_1.6.1-5_arm64.deb ...
Unpacking libaprutil1:arm64 (1.6.1-5) ...
Selecting previously unselected package libserf-1-1:arm64.
Preparing to unpack .../2-libserf-1-1_1.3.9-10_arm64.deb ...
Unpacking libserf-1-1:arm64 (1.3.9-10) ...
Selecting previously unselected package libutf8proc2:arm64.
Preparing to unpack .../3-libutf8proc2_2.5.0-1_arm64.deb ...
Unpacking libutf8proc2:arm64 (2.5.0-1) ...
Selecting previously unselected package libsvn1:arm64.
Preparing to unpack .../4-libsvn1_1.14.1-3+deb11u1_arm64.deb ...
Unpacking libsvn1:arm64 (1.14.1-3+deb11u1) ...
Selecting previously unselected package subversion.
Preparing to unpack .../5-subversion_1.14.1-3+deb11u1_arm64.deb ...
Unpacking subversion (1.14.1-3+deb11u1) ...
Setting up libutf8proc2:arm64 (2.5.0-1) ...
Setting up libapr1:arm64 (1.7.0-6+deb11u1) ...
Setting up libaprutil1:arm64 (1.6.1-5) ...
Setting up libserf-1-1:arm64 (1.3.9-10) ...
Setting up libsvn1:arm64 (1.14.1-3+deb11u1) ...
Setting up subversion (1.14.1-3+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
Processing triggers for man-db (2.9.4-2) ...

[ STEPS ] Start initializing the environment...
[ INFO ] Armbian PLATFORM: [ allwinner ]
[ INFO ] Kernel branch: [ stable ]
[ INFO ] Kernel download directory: [ stable ]
[ INFO ] Kernel name: [ 6.1.12 ]

[ STEPS ] Start downloading kernel...
[ INFO ] Start downloading the kernel from [ https://github.com/ophub/kernel/tree/main/pub/stable/6.1.12 ]
[ INFO ] Download the kernel files to the temporary directory: [ /tmp/tmp.svotIGfBPE ]
A    /tmp/tmp.svotIGfBPE
A    /tmp/tmp.svotIGfBPE/boot-6.1.12-flippy-82+.tar.gz
A    /tmp/tmp.svotIGfBPE/dtb-allwinner-6.1.12-flippy-82+.tar.gz
A    /tmp/tmp.svotIGfBPE/dtb-amlogic-6.1.12-flippy-82+.tar.gz
A    /tmp/tmp.svotIGfBPE/dtb-rockchip-6.1.12-flippy-82+.tar.gz
A    /tmp/tmp.svotIGfBPE/header-6.1.12-flippy-82+.tar.gz
A    /tmp/tmp.svotIGfBPE/modules-6.1.12-flippy-82+.tar.gz
A    /tmp/tmp.svotIGfBPE/sha256sums
Exported revision 775.

[ STEPS ] Start checking the kernel...
[ INFO ] Kernel name: [ 6.1.12-flippy-82+ ]
[ INFO ] Enable sha256sum checking...
[ INFO ] (1/4) [ boot-6.1.12-flippy-82+.tar.gz ] file sha256sum check same.
[ INFO ] (2/4) [ dtb-allwinner-6.1.12-flippy-82+.tar.gz ] file sha256sum check same.
[ INFO ] (3/4) [ header-6.1.12-flippy-82+.tar.gz ] file sha256sum check same.
[ INFO ] (4/4) [ modules-6.1.12-flippy-82+.tar.gz ] file sha256sum check same.

[ STEPS ] Start backing up the current kernel...
[ INFO ] (1/4) The [ boot-6.1.13-flippy-82+.tar.gz ] backup successful.
[ INFO ] (2/4) The [ dtb-allwinner-6.1.13-flippy-82+.tar.gz ] backup successful.
[ INFO ] (3/4) The [ header-6.1.13-flippy-82+.tar.gz ] backup successful.
[ INFO ] (4/4) The [ modules-6.1.13-flippy-82+.tar.gz ] backup successful.
[ INFO ] The [ sha256sums ] file has been generated.
[ INFO ] The current kernel backup path: [ /ddbr/backup/6.1.13 ]. It can be deleted if it is not needed.

[ STEPS ] Start unpacking the kernel...
[ INFO ] (1/4) Unpacking [ boot-6.1.12-flippy-82+.tar.gz ] done.
[ INFO ] (2/4) Unpacking [ dtb-allwinner-6.1.12-flippy-82+.tar.gz ] done.
[ INFO ] (3/4) Unpacking [ header-6.1.12-flippy-82+.tar.gz ] done.
[ INFO ] (4/4) Unpacking [ modules-6.1.12-flippy-82+.tar.gz ] done.

[ SUCCESS ] Successfully updated, automatic restarting...


6.1.13更新到6.1.12哈哈

commented

更新完美,再测试下写入emmc: armbian-install

commented

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-files/platform-files/allwinner/rootfs/usr/sbin/armbian-install

固件里自带了,在 ls /usr/sbin/armbian-install 看看。

这个固件和之前f大习惯在/root下有个安装文件不同,这个是放在 /usr/sbin 里了,所以任意位置都可以直接敲命令: armbian-install

群友测试完毕,可以正常写进emmc,插armbianU盘,也能从U盘启动,大佬辛苦了,感谢!
看看群里其他人再验证一下。

SWYES11{PY%%(Y{Y$1PFRBE
这台微加云升级过2g内存,64g闪存。

UNRVSDVESK3{_D 3O@RDFCF
这是U盘启动的

大佬再看看f大的openwrt微加云固件,最近的几个新固件,led是会变色的,看看能不能移植到armbian

commented

感谢测试反馈,感谢f大开发的u-boot等资源,rgb在f大的仓库里有开源脚本,perl我不会改,你问问你们群友们谁会调试perl移植一个。

https://github.com/unifreq/openwrt_packit/tree/master/files/rgb

刚刚f大指导,armbian下rgb灯成功。大佬下一个编译可以加进去。
一、https://github.com/unifreq/openwrt_packit/tree/master/files/rgb/usr/bin/ 下的rgb文件放到 /usr/bin/ 下,权限0755
二、etc/rc.local添加(exit 0前添加)
rgb --RedName=RED --GreenName=GREEN --BlueName=BLUE &

commented

这句命令,你从etc/rc.local里删除,添加到 /etc/custom_service/start_service.sh 里面,重启试一试,作用是一样的。我添加到这个文件统一管理自定义启动脚本服务。这个灯点亮了是什么样子呢?常亮的还是呼吸灯呢?来个照片欣赏一下。

# For vplus led
rgb  --RedName=RED  --GreenName=GREEN --BlueName=BLUE  2>/dev/null
#!/bin/bash
#========================================================================================
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
#
# This file is a part of the Rebuild Armbian
# https://github.com/ophub/amlogic-s9xxx-armbian
#
# Function: Customize the startup script, adding content as needed.
# Dependent script: /etc/rc.local
# File path: /etc/custom_service/start_service.sh
#
#========================================================================================

# Set the release check file
ophub_release_file="/etc/ophub-release"
[[ -f "${ophub_release_file}" ]] && FDT_FILE="$(cat ${ophub_release_file} | grep -oE 'meson.*dtb')" || FDT_FILE=""

# Add custom enabled alias extension load module.
# For Tencent Aurora 3Pro (s905x3-b) box [ /etc/modprobe.d/blacklist.conf : blacklist btmtksdio ]
[[ "${FDT_FILE}" == "meson-sm1-skyworth-lb2004-a4091.dtb" ]] && modprobe btmtksdio 2>/dev/null

# Restart ssh service
[[ -d "/var/run/sshd" ]] || mkdir -p -m0755 /var/run/sshd 2>/dev/null
[[ -f "/etc/init.d/ssh" ]] && sleep 5 && /etc/init.d/ssh restart 2>/dev/null

# Add custom log
echo "[$(date +"%Y.%m.%d.%H%M")] Hello World..." >/tmp/ophub_start_service.log

# For vplus led
rgb  --RedName=RED  --GreenName=GREEN --BlueName=BLUE  & 2>/dev/null

armbian升级dietpi后etc/rc.local文件没有了,按你的方法添加到 /etc/custom_service/start_service.sh 里面,好像没工作, /usr/bin/ 下的rgb文件还在。
(这个灯的效果是变色,因为设定的时间比较简单,只是几种颜色来回变色,没有像鼠标那样的无缝呼吸灯效果,要么大佬你优化一下能无缝过度颜色:))

commented

你在终端里直接执行这个命令看看能点亮不:
rgb --RedName=RED --GreenName=GREEN --BlueName=BLUE

root@DietPi:~# rgb  --RedName=RED  --GreenName=GREEN --BlueName=BLUE
Can't locate threads.pm in @INC (you may need to install the threads module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/aarch64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/bin/rgb line 4.
BEGIN failed--compilation aborted at /usr/bin/rgb line 4.
root@DietPi:~#

升级dietpi被他把Debian精简很多东西了,dietpi强调的是精简流畅

commented

Snip20230226_1

在自定义启动服务的日志里也可以看到各种自定义服务的启动情况。

9850957 rgb 服务我添加好了,vplus会自动启用,启动成功后日志里会多一条led启动的情况反馈:
The LED of Vplus is enabled successfully.

好的,大佬给力。按理说章鱼星球也可以变色。

commented

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_02.26.0413

我打包了个添加了rgb的vplus,你可以usb刷个armbian测试下。正常的话应该在usb的armbian系统启动成功时自动点亮led。

测试了rgb可以!

commented

好的👌完美。

f大在章鱼星球的dtb里已经添加了led支持了,可以用:#584

章鱼星球还有一只山寨版的,f大也支持了: #253

Amlogic 里也有一批 led 屏幕显示支持,f大在频道里分享了,但没添加到他的op里面,我搬运了一份:
https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/documents/led_screen_display_control.md

image
image
请教一下音乐系统moode,也是基于armbian打造的,这个固件使用的原版armbian固件移植的moode,晶晨,全志,瑞芯微全支持,dtb下与三个文件夹,我微加云下用f大的dtb替换,启动不了,后来把f大56+的boot全替换了这个固件的boot,能正常起动,就是插的usb声卡不认。
这会儿在章鱼上测试,尝试你刚才的#584里面的章鱼dtb,添加到这个固件,不能启动,红灯,然后换公版dtb文件:meson-gxm-q200.dtb,章鱼能正常启动使用,usb声卡正常。
那么要想使用微加云或者章鱼的dtb添加进去,能正常启动的话,还需要修改啥必要文件,整体复制boot的文件,应该不妥吧。就像微加云替换boot后,usb声卡不认,是不是因为全换的关系。

commented

#1000

如何解决 bullseye 的声音问题

这个方法等会儿试试,另外一个论坛也找到一个查找声卡的命令和加入强制启动的语句。
主要是dtb怎么能完美适配,直接添加微加云的dtb,微加云不能启动,整体删除boot的文件,替换f大56+的boot全部文件,就能启动。
章鱼也是这个问题,用章鱼的专用dtb和修改uEnv.txt,无效,不能启动,当然章鱼有个公版dtb能启动。

我不知道除了dtb和uEnv.txt两处,还需要修改或者添加哪些文件。

commented

启动就是写在镜像文件里的 bootloader 和 /boot 下的 u-boot.cmd u-boot.src uEnv.txt 按设定的顺序执行。

再次尝试微加云,只换 /boot 下的 u-boot.cmd u-boot.src uEnv.txt 不能启动,然后全部删除替换你的armbian下的boot,也不能启动,全换f大56+的boot,能启动,无声卡。因为U盘插2.0启动,声卡插usb3.0,然后U盘插usb3.0不能启动,找了个usb-hub,U盘和声卡都插hub上,能启动,也是无声卡,没招了。
3.0插了一个U盘,里面放了一首歌,电脑smba共享能看到这首歌,应该3.0口没问题,只是声卡不认,可能还是dtb启动不行。

commented

你复制 uEnv.txt 时要修改这个文件里的 UUID,要改成你当前盒子里的 blkid 看到的rootfs的UUID,不然启动不了,找不到rootfs分区。

或者你换成lable

image
昨天编译的彩灯固件有问题,昨天看了是有rgb灯,没测试,今天刷了进不去,重启后ip变了进去还是启动不了。

commented

你说的启动不了的意思,是led灯点不亮?还是Armbian系统无法启动呢?你的屏幕截图这个是要稍等1分钟,系统还没彻底加载完。

cat /etc/custom_service/start_service.sh
cat /tmp/ophub_start_service.log
ls -l /usr/bin/rgb

# 直接敲命令是什么结果呢?
rgb --RedName=RED --GreenName=GREEN --BlueName=BLUE

就是等不来,一直卡在这里,没法用,rgb灯是正常的,老的可以

commented

8b90319

rgb 启动指令少了一个 & 符号,你加上就可以执行完成了。不然一直挂着。

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_02.27.1941

我给vplus换了一下/boot,改成armbianEnv.txt 了,你USB刷一个试试能不能正常从U盘启动。

这个新的固件,启动不了,灯粉红色,IP地址有,但是打不开。
image

另外请教一下,我升级了dietpi后rgb不能用了,只是粉色,能不能改灯的颜色,比如改成冰蓝色。

commented

这个脚本里有个性化指定参数的颜色,你根据脚本试试。
你的意思是armbian启动后从路由器看到IP了,但是无法ssh登录?
https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_02.27.1941
你下今早上的这个,我早上发现了rgb命令少了 & 符,刚从新打包了下,这个会拖住进程不往下面走。

好的,我试试。
关于灯的颜色修改,是这样的,在armbian固件的基础上升级成dietpi,由于dietpi这个系统会把armbian删除精简到很小,所以rgb这个脚本是不能运行的,缺少太多依赖,都是被dietpi删除了,所以dietpi状态下就是原始粉色的灯,我的意思单独修改这个粉色变成其他颜色,单色就行,我不想为了rgb再去安装依赖,怕破坏dietpi的数播系统,影响听音乐的效果。

发现问题了,这两固件,写盘完了win下是打不开U盘的,提示需要格式化,写前面的那个正常的固件写完就能打开boot,来回测试写了两次,都是一样。

commented

之前的boot是fat32格式,使用uEnv.txt配置信息,电脑可以直接当u盘打开看到boot目录下的东西。
现在这个boot是ext4 格式,所以不让打开boot。使用armbianEnv.txt文件配置信息。

commented

有显示器能看看界面显示什么吗?

你改了就没法用了,ssh进不去,正常的显示主机名,一般就能进去。微加云没显示器接口。

还是恢复原来的fat32吧,能打开boot,可以折腾替换,你这封死没玩头了。

commented

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-files/platform-files/allwinner/bootfs/vplus/boot.cmd

只要这个文件对了,就可以了,boot.src是使用这个文件生成的。
改成armbianEnv.txt是为了和其他Allwinner对齐,省的维护2种方案。
boot下也没什么要替换的,你打开他替换什么呢?

怎么改,进不去ssh,win下打不开U盘。

commented

稍等2分钟就好了,我找到无法启动的原因了,忘了给添加boot添加Image了,正在打包你再试试。

还是不行

还是恢复原来的吧,rgb自己加算了

commented

路由器有地址没?

你别折腾ext4了,你换了这个,就好像哪里不兼容,没法用

稍等,在折腾章鱼,章鱼的最好也换成Debian的,我在测试ubuntu看看能不能升级成dietpi,好像dietpi官往哪里看到永不支持ubuntu的

ubuntu不支持,麻烦章鱼也编译一个Debian的

image
微加的还是不行

commented

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_02.28.0839

我修复了一下,你下载这个链接里的USB试试

不能用
image

912的有没有编译Debian的?

commented

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_03.01.0815

换了fat32格式,再试试这个

s912的也有,在releases里

启动不了,灯也不亮。

另外s912我的要的是Debian的,Ubuntu没法用,网上armbian好像大部分都是Debian的,f大的也是Debian,你为啥偏爱Ubuntu?

commented

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_03.01.0150

找bullseye就是debian,jammy是ubuntu,两个都是同时构建,我都爱

看了第一个最新的,没往下面看,原来的分开的,明白了,大佬辛苦了!

image
大佬s922x的启动不了,还是用的f大的56+全部换了boot能启动

commented

这是什么盒子,我的gtk-pro(s922x)可以用

阿里云会议盒子,用56+boot可以启动

commented

链接: https://pan.baidu.com/s/1Scz6Y85ToFSGBDB2pOYYfw?pwd=kuz9 提取码: kuz9

这个是c大的经典固件,就是很老,但是boot很好,你看看有没有用。

这个再分享一下

commented

Snip20230303_1

Snip20230303_3

Snip20230303_4

Snip20230303_6

还是之前的uEnv.txt方案,使用的f大的相关启动文件。
安装命令:armbian-install
更新内核命令:armbian-update

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_jammy_03.02.2228

commented

Snip20230303_8

Snip20230303_10

Snip20230303_11

Snip20230303_12

Snip20230303_13

采用armbianEnv.txt的方案也测试了没问题。使用了f大的u-boot
安装命令:armbian-install
更新内核命令:armbian-update