Closed DanilinSA closed 6 months ago
Which Linux distribution are you using?
Distributor ID: Ubuntu Description: Ubuntu 23.10 Release: 23.10
Possible different behavior on different distributions? What system is recommended for assembly?
Distributor ID: Ubuntu Description: Ubuntu 23.10 Release: 23.10
Possible different behavior on different distributions? What system is recommended for assembly?
The scripts are tested on Ubuntu 22.04.2 LTS
Logs sudo ./mkrootfs.sh :
anilin@TestPC:~/LonganPi-3H-SDK$ sudo ./mkrootfs.sh
[sudo] пароль для danilin:
mkdir: невозможно создать каталог «build»: Файл существует
+ genrootfs
+ echo '
deb https://mirrors.bfsu.edu.cn/debian/ testing main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian/ testing-updates main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian/ testing-backports main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian-security/ testing-security main contrib non-free non-free-firmware
'
+ mmdebstrap unstable sid '--aptopt=Dir::Etc::Trusted "/usr/share/keyrings/debian-archive-keyring.gpg"' --architectures=arm64 -v -d '--include=ca-certificates locales dosfstools binutils file tree sudo bash-completion memtester openssh-server wireless-regdb wpasupplicant systemd-timesyncd usbutils parted systemd-sysv iperf3 stress-ng avahi-daemon tmux screen i2c-tools net-tools ethtool ckermit lrzsz minicom picocom btop neofetch iotop htop bmon e2fsprogs nvi tcpdump alsa-utils squashfs-tools evtest bluez bluez-hcidump bluez-tools btscanner bluez-alsa-utils device-tree-compiler debian-archive-keyring connman-gtk chromium linux-cpupower task-xfce-desktop xfce4-terminal xfce4-screenshooter pulseaudio-module-bluetooth blueman fonts-noto-core fonts-noto-cjk fonts-noto-mono fonts-noto-ui-core tango-icon-theme'
I: 2461 4829 automatically chosen mode: root
D: 2461 4960 Native architecture (outside): amd64
D: 2461 4961 Native architecture (inside): arm64
D: 2461 4963 Foreign architectures (inside):
I: 2461 5110 arm64 cannot be executed natively, but transparently using qemu-user binfmt emulation
D: 2461 4158 suite unstable with keyring /usr/share/keyrings/debian-archive-keyring.gpg
..............................................................................
Creating group 'polkitd' with GID 991.
Creating user 'polkitd' (User for polkitd) with UID 991 and GID 991.
Running in chroot, ignoring request.
invoke-rc.d: policy-rc.d denied execution of reload.
start-stop-daemon: unable to stat /usr/libexec/polkitd (No such file or directory)
Setting up blueman (2.3.5-3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/blueman-mechanism.service → /usr/lib/systemd/system/blueman-mechanism.service.
Processing triggers for ca-certificates (20240203) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for libgdk-pixbuf-2.0-0:arm64 (2.42.10+dfsg-3+b1) ...
I: 2502 3116 cleaning package lists and apt cache...
D: 2502 818 run_progress: exec apt-get --option Dir::Etc::SourceList=/dev/null --option Dir::Etc::SourceParts=/dev/null update -oDebug::pkgProblemResolver=true -oDebug::pkgDepCache::Marker=1 -oDebug::pkgDepCache::AutoInstall=1 -oAPT::Status-Fd=${FD} -oDpkg::Use-Pty=false
Reading package lists...
D: 2502 818 run_progress: exec apt-get clean -oDebug::pkgProblemResolver=true -oDebug::pkgDepCache::Marker=1 -oDebug::pkgDepCache::AutoInstall=1 -oAPT::Status-Fd=${FD} -oDpkg::Use-Pty=false
D: 2502 3230 deleting files in /run: connman
D: 2502 3230 deleting files in /run: adduser
D: 2502 3230 deleting files in /run: runit
D: 2502 3230 deleting files in /run: user
D: 2502 3230 deleting files in /run: log
D: 2502 3230 deleting files in /run: sudo
D: 2502 3230 deleting files in /run: shm
D: 2502 3230 deleting files in /run: dbus
D: 2502 3230 deleting files in /run: screen
D: 2502 3230 deleting files in /run: systemd
D: 2502 3230 deleting files in /run: sendsigs.omit.d
D: 2503 3656 listener: finished reading command
D: 2503 3663 listener: received message: adios
D: 2461 6058 finish to listen for hooks
I: 2461 6245 success in 1022.5439 seconds
+ cd overlay
+ for i in *
+ tar --append --file=../build/rootfs.tar boot
+ for i in *
+ tar --append --file=../build/rootfs.tar etc
+ for i in *
+ tar --append --file=../build/rootfs.tar opt
+ for i in *
+ tar --append --file=../build/rootfs.tar usr
+ cd ..
danilin@TestPC:~/LonganPi-3H-SDK$
Contents "rootfs.tar" :
Try this:
sudo apt install qemu-user-static binfmt-support systemd-container dpkg-cross
Everything worked correctly when replaced:
genrootfs() {
echo "
deb https://mirrors.bfsu.edu.cn/debian/ testing main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian/ testing-updates main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian/ testing-backports main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian-security/ testing-security main contrib non-free non-free-firmware
" | $MMDEBSTRAP unstable ./build/rootfs.tar \
--aptopt='Dir::Etc::Trusted "/usr/share/keyrings/debian-archive-keyring.gpg"' --architectures=arm64 -v -d \
--include="ca-certificates locales dosfstools binutils file \
tree sudo bash-completion memtester openssh-server wireless-regdb \
wpasupplicant systemd-timesyncd usbutils parted systemd-sysv \
iperf3 stress-ng avahi-daemon tmux screen i2c-tools net-tools \
ethtool ckermit lrzsz minicom picocom btop neofetch iotop htop \
bmon e2fsprogs nvi tcpdump alsa-utils squashfs-tools evtest \
bluez bluez-hcidump bluez-tools btscanner bluez-alsa-utils \
device-tree-compiler debian-archive-keyring connman-gtk chromium\
linux-cpupower task-xfce-desktop xfce4-terminal xfce4-screenshooter \
pulseaudio-module-bluetooth blueman fonts-noto-core fonts-noto-cjk \
fonts-noto-mono fonts-noto-ui-core tango-icon-theme"
}
The last script fix is broken. All downloaded system files are placed in the "sid" directory. And they don’t go into rootfs.tar.
Log: