An unofficial Debian Installer for Pinebook Pro
#88
Regarding the failed firmware load of dptx.  (Direct firmware load for rockchip/dptx.bin failed with error -2)

(01-17-2020, 04:30 AM)danielt Wrote: Anyone with an encrypted rootfs will have problems because the third try will take place during the rootfs decrypt prompt and will also fail.

I think maybe everyone will have problems regardless of encryption.

My system doesn't have any disk encryption and the firmware is present in rootfs (/lib/firmware/rockchip/dptx.bin)
But an initrd is present /boot/initrd.img-5.4.2-2-pinebookpro-arm64 that doesn't contain dptx.bin

It seems the kernel only looks in the initrd (or rootfs appears too late), so regardless whether /lib/firmware/rockchip/dptx.bin is present in the rootfs or whether rootfs is encrpted or not, it won't find/load dptx.bin unless it's in initrd.

In case anyone is interested, this is how I added dptx.bin to the initrd on my bullseye/sid installation.  (disclaimer, there is probably a better way to do this)

First check initrd for dptx

Code:
gzip -dc /boot/initrd.img-5.4.2-2-pinebookpro-arm64  | cpio -t | grep dptx
74917 blocks

If dptx was not shown (like the example above) and you want to add it, then add a hook script to automatically copy it from roots to initrd when initrd is updated 

vi /etc/initramfs-tools/hooks/add-dptx-firmware


Code:
#!/bin/bash
[[ "$1" == prereqs ]] && exit 0
. /usr/share/initramfs-tools/hook-functions
copy_file firmware /lib/firmware/rockchip/dptx.bin


The script has to be executable or it is ignored.

chmod +x /etc/initramfs-tools/hooks/add-dptx-firmware

If you don't have /lib/firmware/rockchip/dptx.bin present in rootfs, install package "firmware-misc-nonfree"

Update initrd and check it contains dptx

Code:
# update-initramfs -u
# gzip -dc  /boot/initrd.img-5.4.2-2-pinebookpro-arm64 | cpio -t | grep dptx
usr/lib/firmware/rockchip/dptx.bin
75115 blocks


Great it's present.  Now reboot.

For me this was necessary so I could use a USB-C to HDMI adapter to connect an external monitor.


Messages In This Thread
RE: An unofficial Debian Installer for Pinebook Pro - by NigelT - 01-18-2020, 01:25 AM
First boot - by JaredT66 - 05-19-2020, 09:49 AM
RE: First boot - by carletes - 05-19-2020, 01:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian on Pinebook Pro u974615 8 441 03-22-2024, 03:57 PM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 1,111 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 1,913 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 1,979 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 86,613 12-08-2023, 11:25 PM
Last Post: tllim
  Boot Order in Pinebook Pro food 8 992 11-23-2023, 07:37 AM
Last Post: KC9UDX
  install debian on pbp jsch 7 3,827 11-22-2023, 04:22 PM
Last Post: TRS-80
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 7,027 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  PineBook Pro seems to go to deep sleep, but doesn't wake up pogo 11 4,924 08-31-2023, 04:20 PM
Last Post: TRS-80
  Would a Pinebook Pro be good for a Linux newbie? cassado10 6 1,322 08-08-2023, 04:58 AM
Last Post: moobythegoldensock

Forum Jump:


Users browsing this thread: 2 Guest(s)