pinebook pro tools
#1
pbp-tools: pinebook pro tools
https://github.com/xmixahlx/pbp-tools

tools for system management, hardware acceleration, and wayland environment for the pinebook pro.

desktop:
pbp-install-desktop

system:
pbp-install-ap6256-firmware
pbp-install-postinstall
pbp-install-boot

hwaccel:
pbp-install-alacritty
pbp-install-ffmpeg
pbp-install-gstreamer
pbp-install-jellyfin-kodi
pbp-install-kodi
pbp-install-kodi-inputstream-adaptive
pbp-install-kodi-p8-platform
pbp-install-kodi-platform
pbp-install-libva
pbp-install-libva-utils
pbp-install-libva-v4l2-request
pbp-install-linux
pbp-install-mesa

media:
pbp-install-libcamera
pbp-install-libudfread
pbp-install-pipewire

misc:
pbp-install-fontawesome
pbp-install-libinput
pbp-install-xdg-desktop-portal

wayland:
pbp-install-dmenu-wayland
pbp-install-sway
pbp-install-waybar
pbp-install-wdisplays
pbp-install-wlogout
pbp-install-xdg-desktop-portal-wlr

info:
pbp-info-cpupower
pbp-info-nvme
pbp-info-upower

config:
pbp-config-cpupower
pbp-config-danielt-installer-conversion
pbp-config-nvme-ps
pbp-config-system
pbp-config-systemd

reset:
pbp-reset-emmc
pbp-reset-wireless

notes:
* system management tools borrow manjaro configurations for mainline kernel and mrfixit2001 boot images.
* many scripts have variable override via commandline (ffmpeg, kodi, linux, etc.).
* recommended core hwaccel setup includes, in build order: linux, mesa, ffmpeg, and kodi.
* libudfread is an optional kodi dependency.
* kodi addons include kodi-platform, kodi-p8-platform, jellyfin-kodi and kodi-inputstream-adaptive.
* libva, libva-utils, and libva-v4l2-request are VAAPI related packages that have some use, but are currently less useful due to an ffmpeg bug.
* gstreamer includes v4l2codecs from upstream and VAAPI is enabled, so depends on VAAPI packages.
* alacritty is a GL(ES) enhanced terminal.
* to use sway, first build the sway suite (wlroots, sway, swaybg, swaylock, and swayidle), then optionally dmenu-wayland, waybar, wdisplays, and wlogout.
* fontawesome is an optional dependency of waybar for fancy icons.
* please feel free to modify and adapt to your own distro, and contribute changes or raise issues.
* REVIEW EACH SCRIPT PRIOR TO USAGE.

discussion:
mainline kernel froum thread
mainline hwaccel forum thread
mesa forum thread
kodi forum thread
sway forum thread
danielt's unofficial debian installer forum thread


for those that also have an x86_64 system, i started a similar project here: https://github.com/xmixahlx/nix-tools
i'm also staging temporary debian packages at https://github.com/xmixahlx/debian-packages for now - currently just linux 5.7.3 and 5.8-rc packages.
  Reply
#2
So I'm running the latest updated Manjaro right now. Are these scripts to install additional stuff? Should I run them all? Or just if/when I have problems with this or that?
  Reply
#3
designed for use on a debian-based system, with some dependencies on danielt's unofficial debian installer (pbp-update-systempartitions).

manjaro users can ignore the update scripts, and resolve their own dependencies for the build scripts. (the manjaro arm folks have indicated they will make their own packages based on these eventually.)

i've attempted to include the script dependencies in the scripts: ffmpeg-v4l2request depends on linux-hwaccel, kodi depends on linux-hwaccel and ffmpeg, etc.

will add debian dependencies shortly.
  Reply
#4
added jellyfin-kodi build script
  Reply
#5
Are you accepting pull requests?

Sanity checking partition sizes/offsets before applying the systempartitions update would be useful.

Alternately, since they're writing to defined offsets in the filesystem, not anything partition specific, just blow the images out at the correct offsets.

Something like this should work more generally, regardless of partition formats (from the script here: https://gitlab.manjaro.org/manjaro-arm/p...sp.install

dd if=idbloader.img of=/dev/mmcblkX seek=64 conv=notrunc
dd if=uboot.img of=/dev/mmcblkX seek=16384 conv=notrunc
dd if=trust.img of=/dev/mmcblkX seek=24576 conv=notrunc
  Reply
#6
roger that. for debian (unofficial) these are actually partition specific. each file writes to a separate partition. i'm not sure how other distros handle this, and tbh others (manjaro, kali) have had serious uboot problems, so i am inclined to keep it this way, but am happy to be convinced otherwise.

also, happy to accept pull requests. to be honest: i am not a *real* developer and am new to git, so if you are a wizard, please help. Smile
  Reply
#7
Love the new crossbuild script!
  Reply
#8
glad it is working well for you!

lots of updates. consolidation, standardizing, and added wayland bits in the git repo.

dependencies are next. if you are on other distros and can help provide those, that would be excellent.
  Reply
#9
merged linux and linux-crossbuild scripts. cleaned up linux/resources/. added gstreamer script.

i.e. to build 5.7.3 using crossbuild:
CROSSBUILD=yes LINUXPATCH=5.7.3 ./pbp-build-linux

5.8-rc1 doesn't yet have hwaccel patches, but you can build with:
LINUXBASE=5.8 LINUXPATCH=5.8-rc1 HWACCELREL=none ./pbp-build-linux

if you have your own kernel config place in upstream and add KERNELCONFIG=myconfig


gstreamer builds the whole suite using gst-build, including gst-plugins-bad that provides v4l2codecs and a functional h264 v4l2 decoder (i have issues with vp8, although it is supposed to be working.) see for more info:
https://gitlab.freedesktop.org/gstreamer...uests/1141
  Reply
#10
I am trying to understand how hw video accel things work in general. For me it's one big mess to be honest Smile

So maybe I will ask a question - what should I do to enable hw video accel on Firefox or Chromium ?

Thanks for your work @xmixahlx.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  An unofficial Fedora Installer for Pinebook Pro aptupdate 5 700 Yesterday, 05:58 AM
Last Post: stoelpi
  Pinebook pro crashing when put to sleep?? [Manjaro] edward 9 209 10-29-2020, 11:05 PM
Last Post: wdt
  Development Environment on the Pinebook Pro mynameiscalvin 46 10,227 10-25-2020, 05:15 PM
Last Post: belfastraven
Question Help: Pinebook Pro will not enter sleep [Manjaro 20.04] EverythingIsInput 41 6,959 10-22-2020, 09:10 PM
Last Post: MeLikeyTacos
  A true mainline Linux Kernel for the Pinebook Pro tsys 151 43,690 10-22-2020, 01:00 AM
Last Post: mara
  An unofficial Debian Installer for Pinebook Pro danielt 405 86,955 10-19-2020, 10:02 AM
Last Post: wdt
  Pinebook Pro Sleep/Resume bug: The (Kinda sorta) Good, The Bad, and the (Very) Ugly. feoh 12 1,461 09-30-2020, 09:01 AM
Last Post: feoh
  Kali Linux for Pinebook Pro Luke 85 22,955 09-29-2020, 08:12 AM
Last Post: josmo
  HW Acceleration for 2d/3d on pinebook pro ljones 6 2,464 09-19-2020, 09:54 AM
Last Post: xmixahlx
  Gentoo on Pinebook Pro RELEASE jannik2099 42 17,589 09-18-2020, 11:06 PM
Last Post: rjraymond

Forum Jump:


Users browsing this thread: 6 Guest(s)