PINE64
Stock Debian on original Pinebook - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook (https://forum.pine64.org/forumdisplay.php?fid=76)
+--- Forum: Linux on Pinebook (https://forum.pine64.org/forumdisplay.php?fid=79)
+--- Thread: Stock Debian on original Pinebook (/showthread.php?tid=14341)



Stock Debian on original Pinebook - moonwalkers - 07-02-2021

In case anyone is still using their original Pinebook - I pulled mine out of storage couple days ago and installed Debian Sid on it. Everything is working fine so far, except Bluetooth, sound, and deep sleep. The only special thing I had to do is build kernel module separately for WiFi.

I used https://d-i.debian.org/daily-images/arm64/daily/netboot/SD-card-images/ to create a Debian installer SD card. Generally installer worked, but letting it do it's own thing hands-off resulted in a system that's not bootable without an SD card. To make it bootable 16MiB free space is required in the beginning of the eMMC (I didn't try using SPI flash). So I partitioned eMMC manually, creating a single ext4 partition that starts at 16MiB mark and takes all of eMMC - I didn't want the hassle with any special partitioning. After that I went through the installation, and in the end installed u-boot-sunxi and ran `u-boot-install-sunxi64 /dev/mmcblk0` (make sure you got the right device number) to install u-boot. One thing to note though is I used u-boot-sunxi from experimental - it seems the version in Unstable is not yet able to boot from ext4 partitions. After that the system boots fine on its own, but doesn't have any WiFi. To get WiFi working I cloned https://github.com/Icenowy/rtl8723cs, installed basic build dependencies (build-essential, linux-headers-arm64), cd to the folder, `make && sudo make install && sudo modprobe 8723cs`. After that I installed the rest of the packages and got a full working system. For KDE Plasma QML not to glitch all the time I had to set QT_XCB_FORCE_SOFTWARE_OPENGL to 1 (I added `QT_XCB_FORCE_SOFTWARE_OPENGL=1` line to /etc/environment).


Stock Debian on 1080P Pinebook - cel - 01-29-2022

Nice! The concatenated installer image booted for me on my 1080P Pinebook. I got online using USB tethering to an Android phone. I also had to partition manually: only a single ext4 partition worked, with the 16MB free at the beginning for u-boot, like you said. The partition table had to be MBR, not GPT.

After installation, before rebooting, chrooted into the target eMMC partition and installed u-boot from the u-boot-sunxi package (version 2022.01+dfsg-1):
TARGET=/usr/lib/u-boot/pinebook u-boot-install-sunxi64 /dev/mmcblk1

I added sections to the wiki pages for Original Pinebook and 1080P Pinebook Software Releases to list this installation option, linking to this thread:
- https://wiki.pine64.org/wiki/Pinebook_Software_Release#Debian_Netboot_Installer
- https://wiki.pine64.org/wiki/1080P_Pinebook_Software_Release#Debian_Netboot_Installer

I wasn't able to build the rtl8723cs driver, as it depends on ipx.h which is no longer in Linux:
https://lkml.kernel.org/netdev/20210813120803.101-1-caihuoqing@baidu.com/