I know Debian Thopson's script creates GPT partition scheme and EFI partition. In my tests custom 5.7 kernel (provided by the script) works fine, however Debian official kernel (+ its configuration in /boot/extlinux/extlinux.conf updated by u-boot-update) does not have DP output. Have I to manually add some kernel arguments? In this case any kernel update will result in missing video output, because new configuration will be generated automatically. Unfortunately, I have no UART cable to see if I have /dev/fb0 device.
Debian Stretch by mrfixit uses MBR partition scheme with FAT32 boot partition. In my attempts I use MBR partition scheme with boot partition ext4 and root btrfs. I install u-boot manually and this may be the reason for failure. There are just too many choices, from which rather few are working. So I try and guess.
My plan is the following (inspired by https://codeberg.org/txt.file/blog/src/b...-debian.md):
1. Prepare Debian Stretch by mrfixit on SD card and use it as live media.
2. Boot from SD and partition eMMC as MBR with the partitions:
#1 (starts at sector 32768) Ext4 512 MB for /boot (I plan to use btrfs for root and u-boot doesn't support it (?))
#2 4G swap
#3 btrfs, all the rest for / (I use NVMe for data)
3. Download from packages.debian.org the package u-boot-rockchip, unarchive it with dpkg -x, update ./usr/bin/u-boot-install-rockchip to point to local u-boot firmware (by changing /usr to ../), then run ./u-boot-install-rockchip /dev/mmcblk2.
4. Download Debian Installer from https://d-i.debian.org/daily-images/arm6...rd-images/ and prepare it as zcat firmware.pinebook-pro-rk3399.img.gz partition.img.gz > netinstall.img. After that write the netinst.img to USB stick.
5. Shutdown Pinebook Pro, eject SD, put USB to USB-3 port (USB-2 is necessary for ethernet, because WiFi is not working during installation (?)) and boot the Pinebook Pro. This image does not always boot. I am not sure if Pinebook Pro loads u-boot from eMMC or from USB stick.
6. Follow installation instructions. Do not repartition the eMMC, do not reformat the partitions, just put mount points. Do not install any bootloader.
7. Just before exiting the installer, enter the command line and execute the following (just copy / paste from document):
mount --rbind /dev /target/dev
mount --rbind /proc /target/proc
mount --rbind /sys /target/sys
chroot /target
wget -O /etc/kernel/postinst.d/zz-sync-dtb https://salsa.debian.org/debian/u-boot-m...z-sync-dtb
chmod u+x,g+x,o+x /etc/kernel/postinst.d/zz-sync-dtb
/etc/kernel/postinst.d/zz-sync-dtb $(uname -r)
apt --install-recommends --install-suggests install u-boot-menu
u-boot-update # this copies ftd to /boot and creates /boot/extlinux/extlinux.conf
After that finish the installation, shutdown the Pinebook Pro and eject USB stick. When starting, Pinebook Pro either does not start or does not have DP output. I have not detected the pattern, because with each new try I do something differently. No success until now.
Debian Stretch by mrfixit uses MBR partition scheme with FAT32 boot partition. In my attempts I use MBR partition scheme with boot partition ext4 and root btrfs. I install u-boot manually and this may be the reason for failure. There are just too many choices, from which rather few are working. So I try and guess.
My plan is the following (inspired by https://codeberg.org/txt.file/blog/src/b...-debian.md):
1. Prepare Debian Stretch by mrfixit on SD card and use it as live media.
2. Boot from SD and partition eMMC as MBR with the partitions:
#1 (starts at sector 32768) Ext4 512 MB for /boot (I plan to use btrfs for root and u-boot doesn't support it (?))
#2 4G swap
#3 btrfs, all the rest for / (I use NVMe for data)
3. Download from packages.debian.org the package u-boot-rockchip, unarchive it with dpkg -x, update ./usr/bin/u-boot-install-rockchip to point to local u-boot firmware (by changing /usr to ../), then run ./u-boot-install-rockchip /dev/mmcblk2.
4. Download Debian Installer from https://d-i.debian.org/daily-images/arm6...rd-images/ and prepare it as zcat firmware.pinebook-pro-rk3399.img.gz partition.img.gz > netinstall.img. After that write the netinst.img to USB stick.
5. Shutdown Pinebook Pro, eject SD, put USB to USB-3 port (USB-2 is necessary for ethernet, because WiFi is not working during installation (?)) and boot the Pinebook Pro. This image does not always boot. I am not sure if Pinebook Pro loads u-boot from eMMC or from USB stick.
6. Follow installation instructions. Do not repartition the eMMC, do not reformat the partitions, just put mount points. Do not install any bootloader.
7. Just before exiting the installer, enter the command line and execute the following (just copy / paste from document):
mount --rbind /dev /target/dev
mount --rbind /proc /target/proc
mount --rbind /sys /target/sys
chroot /target
wget -O /etc/kernel/postinst.d/zz-sync-dtb https://salsa.debian.org/debian/u-boot-m...z-sync-dtb
chmod u+x,g+x,o+x /etc/kernel/postinst.d/zz-sync-dtb
/etc/kernel/postinst.d/zz-sync-dtb $(uname -r)
apt --install-recommends --install-suggests install u-boot-menu
u-boot-update # this copies ftd to /boot and creates /boot/extlinux/extlinux.conf
After that finish the installation, shutdown the Pinebook Pro and eject USB stick. When starting, Pinebook Pro either does not start or does not have DP output. I have not detected the pattern, because with each new try I do something differently. No success until now.