General feedback

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
MichaIng
Site Admin
Posts: 2425
Joined: Sat Nov 18, 2017 6:21 pm

Re: General feedback

Post by MichaIng »

If you have a chance, could you take a picture (from mobile phone e.g.) from the screen when boot stuck?

Jep and errors from the update would be good.

I did some research and it seems that initramfs-tools are not required for uboot-based Pine64 devices, same on RPi.

You could try:

Code: Select all

apt purge initramfs-tools
Carefully watch which other packages it wants to remove. If there is a linux kernel package removed, cancel, otherwise it should be save.
But this would only help if your error is indeed related to this package and not some other bootloader related trigger created the initramfs.
Cinos
Posts: 13
Joined: Thu Jan 17, 2019 4:58 pm

Re: General feedback

Post by Cinos »

indeed it fails on initramfs:

Setting up systemd-sysv (232-25+deb9u8) ...
Setting up libtiff5:arm64 (4.0.8-2+deb9u4) ...
Setting up linux-dtb-dev-sunxi64 (5.70) ...
Setting up libssl1.0.2:arm64 (1.0.2q-1~deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up udev (232-25+deb9u8) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
Setting up firefox-esr (60.4.0esr-1~deb9u1) ...
Setting up libssl1.1:arm64 (1.1.0j-1~deb9u1) ...
Setting up openssl (1.1.0j-1~deb9u1) ...
Processing triggers for dbus (1.10.26-0+deb9u1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up libpolkit-gobject-1-0:arm64 (0.105-18+deb9u1) ...
Setting up libpam-systemd:arm64 (232-25+deb9u8) ...
Setting up libpolkit-agent-1-0:arm64 (0.105-18+deb9u1) ...
Setting up libpolkit-backend-1-0:arm64 (0.105-18+deb9u1) ...
Setting up policykit-1 (0.105-18+deb9u1) ...
Removed /run/systemd/system/polkit.service.
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.20.0-sunxi64
/etc/initramfs/post-update.d//99-uboot: 3: .: Can't open /etc/armbian-release
run-parts: /etc/initramfs/post-update.d//99-uboot exited with return code 2
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)


root@DietPi:~# dpkg -l | grep linux
ii console-setup-linux 1.164 all Linux specific part of console-setup
ii libselinux1:arm64 2.6-3+b3 arm64 SELinux runtime shared libraries
ii linux-base 4.5 all Linux image base package
ii linux-dtb-dev-sunxi64 5.70 arm64 Linux DTB, version 4.20.0-sunxi64
ii linux-image-dev-sunxi64 5.70 arm64 Linux kernel, version 4.20.0-sunxi64
ii linux-stretch-root-dev-pinebook-a64 5.67 arm64 Armbian tweaks for stretch on pinebook-a64 (dev branch)
ii linux-u-boot-pinebook-a64-dev 5.67 arm64 Uboot loader 2018.11-rc3
ii util-linux 2.29.2-1+deb9u1 arm64 miscellaneous system utilities

I'll reboot and post a photographic of the result.
Cinos
Posts: 13
Joined: Thu Jan 17, 2019 4:58 pm

Re: General feedback

Post by Cinos »

Image
User avatar
MichaIng
Site Admin
Posts: 2425
Joined: Sat Nov 18, 2017 6:21 pm

Re: General feedback

Post by MichaIng »

@Cinos
Thanks for this. I think I found the issue:

Currently not sure, but it seems to our image is build on top of an ARMbian base image.

Code: Select all

update-initramfs: Generating /boot/initrd.img-4.20.0-sunxi64
/etc/initramfs/post-update.d//99-uboot: 3: .: Can't open /etc/armbian-release
run-parts: /etc/initramfs/post-update.d//99-uboot exited with return code 2
ARMbian seems to have placed a custom post-update trigger that searches for /etc/armbian-release, which is not present on the DietPi image. Failing that, the created initramfs seems to be not placed into /boot, while the old was already removed.

Please check ls -Al /etc/initramfs/post-update.d/ and sub directory content. Not sure if some part of the path is hidden in the log, otherwise:

Code: Select all

cat /etc/initramfs/post-update.d/99-uboot
Please paste the content of this.

I will raise an issue on GitHub about this: https://github.com/Fourdee/DietPi/issues/2429

@Fourdee
Do I remember right, that the Pinebook image was the first after long time based on ARMbian again? We really have to take care their custom system adjustments. Sadly they do not add any hint via file name. For this reason the aim to name all our config files dietpi-* to make it easy to identify what's from the base image, what from APT packages and what from us :).
User avatar
MichaIng
Site Admin
Posts: 2425
Joined: Sat Nov 18, 2017 6:21 pm

Re: General feedback

Post by MichaIng »

@Cinos
Ah lol Fourdee already implemented a fix for this issue some days ago: https://github.com/Fourdee/DietPi/commi ... 8b02eb6414

Code: Select all

cat << _EOF_ > /etc/armbian-release
# PLEASE DO NOT EDIT THIS FILE
BOARD=pinebook-a64
BOARD_NAME="Pinebook A64"
BOARDFAMILY=sun50iw1
VERSION=5.67
LINUXFAMILY=sunxi64
BRANCH=next
ARCH=arm64
IMAGE_TYPE=stable
BOARD_TYPE=conf
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
_EOF_
But I still believe there is a more native/elegant version by removing the APT trigger from ARMbian. However the above at least is proven to solve the APT upgrade issue.
User avatar
WarHawk
Posts: 636
Joined: Thu Jul 20, 2017 8:55 am

Re: General feedback

Post by WarHawk »

Daggum, I want to get me one of those now to mess around with...too bad there isn't a way to expand the RAM...
Post Reply