PINE64
Official Debian images for the Pinebook Pro! - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Official Debian images for the Pinebook Pro! (/showthread.php?tid=9743)

Pages: 1 2


Official Debian images for the Pinebook Pro! - tortwigginum - 04-26-2020

Debian recently added support for the Pinebook Pro and RockPro64, adding to their existing support for the original Pinebook, Rock64, and Pine64 Plus! I haven't gotten the chance to try these yet but these are presumably based on the mainline kernel, given that Debian Unstable is now using Linux 5.5 with all the necessary patches for the RK3399 backported and Mesa 20.0.4. 

Images are being built everyday over at https://d-i.debian.org/daily-images/arm64/daily/netboot/SD-card-images/ where the readme has instructions for how to combine the device-specific partition table and u-boot with the device-independent partition.img.gz that contains the installer such that you can make a bootable SD card with them both.

After being booted, the installer "runs completely in the system's RAM and does not need to load anything from the SD card anymore, so you can delete all existing partitions and use the full card for installing Debian. It is recommended to use the 'guided partitioning' option in the installer to create a proper partition layout on the SD card."

Given that these images purely contain the installer, you'll definitely need an internet connection for it to retrieve the rest of the packages and install a full system. I also believe these don't contain any non-free firmware, so you may need to install over ethernet and then add the non-free repo and install any required firmware afterwards. I'm very interested to see what's currently functional and if there's any unexpected snags or hangups, and I'll definitely update this post with what I figure out after receiving my Pinebook Pro and trying to install this image on it! :)


RE: Official Debian images for the Pinebook Pro! - Der Geist der Maschine - 04-26-2020

(04-26-2020, 02:11 PM)tortwigginum Wrote: Debian recently added support for the Pinebook Pro and RockPro64, adding to their existing support for the original Pinebook, Rock64, and Pine64 Plus! I haven't gotten the chance to try these yet but these are presumably based on the mainline kernel, given that Debian Unstable is now using Linux 5.5 with all the necessary patches for the RK3399 backported and Mesa 20.0.4. 

Images are being built everyday over at https://d-i.debian.org/daily-images/arm64/daily/netboot/SD-card-images/ where the readme has instructions for how to combine the device-specific partition table and u-boot with the device-independent partition.img.gz that contains the installer such that you can make a bootable SD card with them both.

After being booted, the installer "runs completely in the system's RAM and does not need to load anything from the SD card anymore, so you can delete all existing partitions and use the full card for installing Debian. It is recommended to use the 'guided partitioning' option in the installer to create a proper partition layout on the SD card."

Given that these images purely contain the installer, you'll definitely need an internet connection for it to retrieve the rest of the packages and install a full system. I also believe these don't contain any non-free firmware, so you may need to install over ethernet and then add the non-free repo and install any required firmware afterwards. I'm very interested to see what's currently functional and if there's any unexpected snags or hangups, and I'll definitely update this post with what I figure out after receiving my Pinebook Pro and trying to install this image on it! Smile

I wasn't 100% sure from your posting what Debian version is used for these daily images. I loop-back mounted the partition image and found Debian 11 with Kernel 5.5.


RE: Official Debian images for the Pinebook Pro! - wasgurd - 04-27-2020

How to update from the Unofficial Installer? Which packages should I install?


RE: Official Debian images for the Pinebook Pro! - Der Geist der Maschine - 04-27-2020

(04-27-2020, 10:58 AM)wasgurd Wrote: How to update from the Unofficial Installer? Which packages should I install?

After installation, there should be no difference, should there?

If you really want to get the same experience as with the official installer, you probably want to remove Daniel's kernel repro. Then you will then run the 5.5 kernel, though. If I understand tortwigginum, then Debian backported some Pinebook Pro specific patches to their 5.5 kernel. We need a volunteer to try out this kernel Big Grin


RE: Official Debian images for the Pinebook Pro! - kuleszdl - 04-27-2020

Hi folks,

I just tried the installer on my PBP (installing to eMMC) and would like to share my experience with you:

- no graphical display, you have to use the serial console to install the system; this also means you have to use the limited serial console installer
- to use the built-in wifi, you would need to add the required proprietary firmware during installation as it's not included in Debian by policy. Personally, I didn't want it anyways and used a USB to Gigabit LAN Adapter to install the system.
- guided partitioning seems to leave around 245 MiB before the boot partition which seems fine to me. However, unlike in Daniel Thompson's installer no nice GPT scheme is suggested.
- unfortunately, I forgot to check whether the installer supports f2fs ootb meanwhile (but that's not a pbp-specific matter)
- looks like they do NOT have a packaged version of u-boot yet - at least the installer did not offer me the option to install it.
- the installation media uses extlinux.conf instead of the crufty boot.cmd/boot.scr stuff. This was quite useful even for the installation and allowed me to easily change the serial console speed.

- the console speed of the trusted firmware image is "wrong" as it runs at 115200 baud while the rest runs at 1500000.
- I am not sure but it seems that the system did not properly reboot after installation but hangs at "reboot: Restarting system" (but maybe just due to missing bootloader).

Regarding patches, Debian *does* apply some patches to the kernel. However, I looked in their package source and spotted only this one file with non-main rk3399-related patches. It basically adds the dts file from Manjaro to enable support for the PBP:

https://salsa.debian.org/kernel-team/linux/-/blob/sid/debian/patches/features/arm64/arm64-dts-rockchip-Add-initial-support-for-Pinebook-.patch

The good news is that it's likely this patch will not be needed in the near future anymore since the dts file for the pinebookpro was merged upstream two days ago and will be included in the next official mainline kernel release (version 5.7):

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts?h=v5.7-rc3

That's it for now. For next run, I plan to redo the installation using a GPT scheme and install the bootloader later on manually in order to finally boot up the installed system.


RE: Official Debian images for the Pinebook Pro! - kuleszdl - 05-30-2020

I gave this a second try. This time I used "guided partitioning" and selected the option to setup an encrypted LVM. Everything in the installation went nice and smooth, however, the bootloader was not installed during the setup leaving the installed system in an unbootable state.


RE: Official Debian images for the Pinebook Pro! - xmixahlx - 05-30-2020

the pbp dts in 5.7 is NOT the same as in manjaro. it will be a while before using "official debian" makes more sense than danielt's installer. i would, however, build your own kernel as i have documented.


RE: Official Debian images for the Pinebook Pro! - kuleszdl - 07-09-2020

I just tried the current stable version using kernel from unstable. Seems to work fine, except that the sdcard reader seems to have issues - but since it does this as well in Manjaro, I assume my daughterboard may be damaged.

Anyways, it works fine from eMMC, but I can't get the display working. I already put the firmware binary in /lib/firmware but this does not seem to help. It seems to me like the KMS is not working. Any idea what can be done here (apart from using a different kernel of course)?


RE: Official Debian images for the Pinebook Pro! - moonwalkers - 07-09-2020

(07-09-2020, 06:35 PM)kuleszdl Wrote: I just tried the current stable version using kernel from unstable. Seems to work fine, except that the sdcard reader seems to have issues - but since it does this as well in Manjaro, I assume my daughterboard may be damaged.

Anyways, it works fine from eMMC, but I can't get the display working. I already put the firmware binary in /lib/firmware but this does not seem to help. It seems to me like the KMS is not working. Any idea what can be done here (apart from using a different kernel of course)?
I'm afraid this may be due to the 5.7 kernel build in Debian - when I install 5.7 from Debian Sid repos on my otherwise fully working system I get no display on boot-up either, so I have to revert to 5.7 and device tree built from Manjaro git. Perhaps 5.8 will finally work out of the box.


RE: Official Debian images for the Pinebook Pro! - xmixahlx - 07-09-2020

that is unlikely.