Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Fixed: Black Screen after switching kernel

Featured Replies

 

Hiya peoples,

 

Finally figured out what caused my black screen after updating :D

 

After installing a new kernel (via apt)  the '/boot/dtb' symlink is not updated, and fails to boot properly.

lrwxrwxrwx 1 root root       31 Oct  7 11:38 dtb -> dtb-6.11.2-edge-rockchip-rk3588
lrwxrwxrwx 1 root root       38 Oct  7 08:49 Image -> vmlinuz-6.11.2-current-rockchip-rk3588
lrwxrwxrwx 1 root root       38 Oct  7 08:49 uInitrd -> uInitrd-6.11.2-current-rockchip-rk3588

 

So I wrote a systemd service that:

1. Runs before shutdown/reboot

2. Changes into the /boot directory

3. Reads the version from the dtb symlink

4. Reads the version from the Image symlink

5. Compares the versions

6. And if they do NOT match, creates a new dtb symlink that matches the Image symlink version.

 

[Unit]
Description=match dtb symlink with kernel version
DefaultDependencies=no
Before=shutdown.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'set -x;cd /boot;dtb=$(readlink dtb|sed 's,^dtb-,,');vmlinuz=$(readlink Image|sed 's,vmlinuz-,,');[ "$dtb" = "$vmlinuz" ] || ln -sf dtb-$vmlinuz dtb'
TimeoutStartSec=0

[Install]
WantedBy=shutdown.target


To use this:

1. sudo nano /etc/systemd/system/dtb-match-kernel.service and paste in the text above.

2. sudo systemd enable dtb-match-kernel.service

 

You can check the journal if it works with:

3. journalctl -u dtb-match-kernel.service

 

or the /boot directory

lrwxrwxrwx 1 root root       31 Oct  7 11:39 dtb -> dtb-6.11.2-current-rockchip-rk3588
lrwxrwxrwx 1 root root       38 Oct  7 08:49 Image -> vmlinuz-6.11.2-current-rockchip-rk3588
lrwxrwxrwx 1 root root       38 Oct  7 08:49 uInitrd -> uInitrd-6.11.2-current-rockchip-rk3588

 

Dantes

Edited by Dantes

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.