[DEV][ROM][UNOFFICIAL] LineageOS 18.1 (Android 11) for Raspberry Pi 4 B

Search This thread

KonstaT

Senior Member
Jan 20, 2016
768
455
KonstaKANG.com
Great thanks, fine with ADB / SSH / serial console.
There he is:
Thanks. That log shows nothing related to the DAC, no errors either.

Actually digging into the drivers after having a look at https://github.com/lineage-rpi/andr.../boot/dts/overlays/hifiberry-digi-overlay.dts shows that CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI alone doesn't do much. The driver your DAC uses is built with CONFIG_SND_RPI_WM8804_SOUNDCARD (https://github.com/lineage-rpi/andr.../arm64/configs/lineageos_rpi4_defconfig#L3809) which is not enabled in my builds. I can have this enabled in future Android 12/13 builds. There's no plans to provide any updates for older Android versions anymore.

What problem did you have compiling the kernel? There's kernel builds instructions here (https://github.com/lineage-rpi/android_kernel_brcm_rpi/issues/10#issuecomment-739346981) if you want to try building a kernel with that driver enabled.
 

kyo-kusanagi

Member
Sep 5, 2022
6
1
Thanks. That log shows nothing related to the DAC, no errors either.

Actually digging into the drivers after having a look at https://github.com/lineage-rpi/andr.../boot/dts/overlays/hifiberry-digi-overlay.dts shows that CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI alone doesn't do much. The driver your DAC uses is built with CONFIG_SND_RPI_WM8804_SOUNDCARD (https://github.com/lineage-rpi/andr.../arm64/configs/lineageos_rpi4_defconfig#L3809) which is not enabled in my builds. I can have this enabled in future Android 12/13 builds. There's no plans to provide any updates for older Android versions anymore.

What problem did you have compiling the kernel? There's kernel builds instructions here (https://github.com/lineage-rpi/android_kernel_brcm_rpi/issues/10#issuecomment-739346981) if you want to try building a kernel with that driver enabled.
OK, for now thanks for all your help. Just for information I also tried your version "lineage-19.1-20220511-UNOFFICIAL-KonstaKANG-rpi4-atv" and it gives me the same problem unfortunately. For the kernel the procedure performed by me is the one in GitHub
The error is here:
android_kernel_brcm_rpi

Thanks KostaKANG, I hope to hear from you
 

KonstaT

Senior Member
Jan 20, 2016
768
455
KonstaKANG.com
OK, for now thanks for all your help. Just for information I also tried your version "lineage-19.1-20220511-UNOFFICIAL-KonstaKANG-rpi4-atv" and it gives me the same problem unfortunately. For the kernel the procedure performed by me is the one in GitHub
The error is here:
android_kernel_brcm_rpi

Thanks KostaKANG, I hope to hear from you
It's not enabled in any of my current kernels. It will be enabled if/when there are any builds released after today.

You have missed the step in the instructions that's tells to modify the firmware path according to where you've saved them.
 
here's my results so far with LOS 18.1 Android TV on Raspberry Pi 4 2GB, on Argon V2 case...
  • Does not boots via PINN LOS 18.1 2021-11-23 without modified startelf files (https://github.com/procount/pinn , https://github.com/procount/pinn-os/blob/master/os/os_lineage.json), had to push these from KANG repo / LOS 19.1 zip archive.
  • Boots with latest lineage-18.1-20220512-UNOFFICIAL-KonstaKANG-rpi4-atv.zip (
  • Can not install Magisk zip in TWRP recovery when installed with PINN.
  • But can install Magisk zip in TWRP recovery when installed without PINN and Magisk works.
  • Also can't reflash LOS image via TWRP recovery when installed with PINN.
  • Suspect issues with backup/restore with PINN but need to test more.
  • OTA updates fail with PINN, both via LOS UI and TWRP recovery.
  • Did not try OTA updates without PINN.
  • Google Apps from MindTheGapps-11.0.0-arm64-20220217_100228.zip (https://androidfilehost.com/?w=files&flid=322935 )worked, though not listed in instructions. We get the great stock AOSP ATV Home launcher, without google crap or filtered/hidden apps.
  • Google Apps from work-in-progress open_gapps-arm64-11.0-tvstock-xxxxxxxx.zip worked as per instructions, but this is bloated, should not be used, you get loads of google crap.
  • 4K resolution did not work for my TV in any of the 2 options (it scales 80% of the screen out of boundaries).
  • Overclock to 2000 MHz ondemand worked.
  • Has issues with left-clicking on certain buttons on certain apps.
  • Back button on Minix Remote does not work always.
  • Back button on right mouse works almost always.
  • Interface is usually super fast until you fill your install with lots of apps.
  • HDMI audio worked perfectly fine.
  • There is no LOS/RPI OS Hardware accelerated video.
  • Stream results without LOS/RPI OS Hardware accelerated video:
    • NewPipe (YouTube) worked, super fast.
    • HBO Max worked, but too slow, even at SD quality.
    • Disney+ worked, but drags a bit. If opened via Streamio with tunneled playback + HW acceleration, it almost does not drag.
    • Amazon Prime Video does not work.
    • Plex stream for Euronews/TED worked, and fast/good.
    • ARTE worked, and fast/good.
    • TED worked, and medium-fast speed.
    • Euronews worked, and fast/good.
    • RTP Play worked, but too slow.
  • Can't install Netflix app. If forcing it into the system apps, complains does not have required components.
  • DRM reports ClearKey CDM 1.2 and Widevine CDM 16.0 (L3, no HD/4K).
  • No problems with Streamio links to other apps.
  • Can't install zips in Magisk, reports "unzip error" (just as in https://github.com/stylemessiah/SQLite3UniversalBinaries/issues/1)
 
Last edited:

KonstaT

Senior Member
Jan 20, 2016
768
455
KonstaKANG.com
here's my results so far with LOS 18.1 Android TV on Raspberry Pi 4 2GB, on Argon V2 case...
  • Does not boots via PINN LOS 18.1 2021-11-23 without modified startelf files (https://github.com/procount/pinn , https://github.com/procount/pinn-os/blob/master/os/os_lineage.json), had to push these from KANG repo / LOS 19.1 zip archive.
  • Boots with latest lineage-18.1-20220512-UNOFFICIAL-KonstaKANG-rpi4-atv.zip (
  • Can not install Magisk zip in TWRP recovery when installed with PINN.
  • But can install Magisk zip in TWRP recovery when installed without PINN and Magisk works.
  • Also can't reflash LOS image via TWRP recovery when installed with PINN.
  • Suspect issues with backup/restore with PINN but need to test more.
  • OTA updates fail with PINN, both via LOS UI and TWRP recovery.
  • Did not try OTA updates without PINN.
  • Google Apps from MindTheGapps-11.0.0-arm64-20220217_100228.zip (https://androidfilehost.com/?w=files&flid=322935 )worked, though not listed in instructions. We get the great stock AOSP ATV Home launcher, without google crap or filtered/hidden apps.
  • Google Apps from work-in-progress open_gapps-arm64-11.0-tvstock-xxxxxxxx.zip worked as per instructions, but this is bloated, should not be used, you get loads of google crap.
  • 4K resolution did not work for my TV in any of the 2 options (it scales 80% of the screen out of boundaries).
  • Overclock to 2000 MHz ondemand worked.
  • Has issues with left-clicking on certain buttons on certain apps.
  • Back button on Minix Remote does not work always.
  • Back button on right mouse works almost always.
  • Interface is usually super fast until you fill your install with lots of apps.
  • HDMI audio worked perfectly fine.
  • There is no LOS/RPI OS Hardware accelerated video.
  • Stream results without LOS/RPI OS Hardware accelerated video:
    • NewPipe (YouTube) worked, super fast.
    • HBO Max worked, but too slow, even at SD quality.
    • Disney+ worked, but drags a bit. If opened via Streamio with tunneled playback + HW acceleration, it almost does not drag.
    • Amazon Prime Video does not work.
    • Plex stream for Euronews/TED worked, and fast/good.
    • ARTE worked, and fast/good.
    • TED worked, and medium-fast speed.
    • Euronews worked, and fast/good.
    • RTP Play worked, but too slow.
  • Can't install Netflix app. If forcing it into the system apps, complains does not have required components.
  • DRM reports ClearKey CDM 1.2 and Widevine CDM 16.0 (L3, no HD/4K).
  • No problems with Streamio links to other apps.
  • Can't install zips in Magisk, reports "unzip error" (just as in https://github.com/stylemessiah/SQLite3UniversalBinaries/issues/1)
Replied at https://forum.xda-developers.com/t/...aspberry-pi-4-b.4356891/page-22#post-87507801 so not much point in repeating the same things here.
 

SerdarARIKAN

New member
Jan 14, 2014
1
0
Hi KonstaT. Thank you for everything.

I have tried almost all versions and versions. But I couldn't find a way to wirelessly my clone DualShock3 Sixaxis gamepads.

First of all, if I install gapps pico, the internal bluetooth was not working. I solved this with the help of gapps-config.txt file. And I tried to install DualShock with the help of SixaxisController1.1.2.apk and SixaxisPairToolSetup-0.3.1.exe, which I provided albeit difficult. But SixaxisController1.1.2 cannot detect the internal bluetooth address no matter what I do. I can view the bluetooth address from the android menus. However, the address I found does not work for me. I think this issue is related to SElinux. I'm sure you're aware of all this.

My question is, is there anything I should know? Is it possible to run my clone DualShock3 Sixaxis gamepads wirelessly with any hacks/tricks or I don't know if it gives a specific LineageOS or an external bluetooth dongle?
 

KonstaT

Senior Member
Jan 20, 2016
768
455
KonstaKANG.com
Hi KonstaT. Thank you for everything.

I have tried almost all versions and versions. But I couldn't find a way to wirelessly my clone DualShock3 Sixaxis gamepads.

First of all, if I install gapps pico, the internal bluetooth was not working. I solved this with the help of gapps-config.txt file. And I tried to install DualShock with the help of SixaxisController1.1.2.apk and SixaxisPairToolSetup-0.3.1.exe, which I provided albeit difficult. But SixaxisController1.1.2 cannot detect the internal bluetooth address no matter what I do. I can view the bluetooth address from the android menus. However, the address I found does not work for me. I think this issue is related to SElinux. I'm sure you're aware of all this.

My question is, is there anything I should know? Is it possible to run my clone DualShock3 Sixaxis gamepads wirelessly with any hacks/tricks or I don't know if it gives a specific LineageOS or an external bluetooth dongle?
I'm not aware of any issues with bluetooth not working in general after installing gapps. There's a known issues with pairing some bluetooth remotes but that's with Android TV gapps (https://github.com/opengapps/opengapps/issues/915). There's also alternative gapps releases. Gapps are not part of my builds in any case.

Impossible for me to say what is the issue without seeing logs (logcat?) or having the hardware to test myself.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Here’s my build of LineageOS 18.1 for Raspberry Pi 4 Model B, Pi 400, and Compute Module 4. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only. Pi 4 model with at least 2GB of RAM is required to run this build.

    Important! This image includes parts that are licensed under non-commercial license (Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International). You may use this build freely in personal/educational/etc use. Commercial use is not allowed with this build! You can contact me by email to discuss creating customized Android builds for commercial purposes.

    Screenshot_20210104-104810_Settings.png


    There is also Android TV version available.

    Screenshot_20210306-163341_Settings.png


    Working:
    • Audio (HDMI, 3.5mm jack, USB microphones, bluetooth speakers/headphones, etc)
    • Audio DAC (using GPIO DACs e.g. Hifiberry DAC+)
    • Bluetooth (and bluetooth tethering)
    • Camera (using official Pi camera modules & UVC USB webcams)
    • GPIO
    • GPS (using external USB modules e.g. U-Blox 7)
    • Ethernet
    • Hardware accelerated graphics (V3D, OpenGL & Vulkan)
    • HDMI display (and HDMI-CEC)
    • I2C
    • IR remotes (using external GPIO IR modules e.g. TSOP4838)
    • RTC (using external GPIO I2C modules e.g. DS3231)
    • Sensors (using external GPIO I2C modules e.g. MPU6050, LSM6DS3, LSM303DLHC, BME280/BMP280, and APDS9930 accelerometer, gyroscope, magnetometer, temperature, pressure, humidity, ambient light, and proximity)
    • Serial console (using external GPIO serial console adapters e.g. PL2303)
    • SPI
    • Touchscreen/multi-touch (USB touchscreens, Waveshare SPI touchscreens)
    • USB (mouse, keyboard, storage, etc)
    • USB-C (ADB, MTP, PTP, USB tethering)
    • Wifi (and wifi tethering)

    Not working:
    • Hardware video decoding & encoding (software decoding & encoding works)

    Issues:
    • Stock camera app is not working - many third party camera apps seem to work
    • SELinux is in permissive mode
    • and more…

    Sources:

    Thanks:
    • Peter Yoon and android-rpi project
    • Roman Stratiienko and GloDroid project
    • AOSP reference board developers (dragonboard, hikey, yukawa)
    • E. Anholt for V3D graphics driver
    • Maxime Ripard for Pi 4 KMS driver
    • Android-x86 project
    • LineageOS team and everyone who has contributed to LineageOS 18.1
    5
    New build.

    -add support for LSM303DLHC accelerometer & magnetometer sensor
    -add separate TWRP flashable su add-on (see FAQ)
    -allow switching display off with power button
    -add support for USB-C (ADB, MTP, PTP, USB-tethering)
    -enable bluetooth tethering
    -add settings option for mouse back button feature
    -update to TWRP 3.5.0_9-0-KonstaKANG
    -update to Mesa 20.3.4
    -update to Linux 5.4.98 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 5 February 2021 (merged)
    4
    How to install:
    1. Follow the official Raspberry Pi instructions for writing the image to the SD card.
    If you’re running a recent build (20220121 or newer) you can also update to newer builds using TWRP flashable OTA packages. OTA updates pushed through the built-in Updater app are stored at /data/lineageos_updates/.
    1. Download lineage-18.1-xxxxxxxx-UNOFFICIAL-KonstaKANG-rpi4-ota.zip and save it to your device’s internal storage or use an external USB drive
    2. Boot to TWRP recovery (see FAQ)
    3. Install lineage-18.1-xxxxxxxx-UNOFFICIAL-KonstaKANG-rpi4-ota.zip from your selected storage
    4. (Flash Magisk/other add-ons you had previously installed)
    5. Boot out of recovery (see FAQ)
    Changes that are backed up and restored flashing OTAs:
    • Device specific settings changed using Settings -> System -> Raspberry Pi settings
    • Manual changes to /boot/resolution.txt and /boot/rc_keymap.txt
    • USB boot configuration in /boot/config.txt
    • GApps
    Changes that are not backed up and restored flashing OTAs:
    • Manual changes to /boot/config.txt (and any other manual changes to /boot partition)
    • Magisk

    FAQ:

    FAQ is getting quite long and difficult to maintain in several different places. You can find the always up-to-date FAQs here:
    https://konstakang.com/devices/rpi4/LineageOS18/
    https://konstakang.com/devices/rpi4/LineageOS18-ATV/
    4
    New builds.


    -add support for Vulkan
    -rework bluetooth (thanks to android-rpi)
    -update to Mesa 21.1.8
    -update to Linux 5.4.152 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 1 October 2021 (merged)

    ---


    -add support for Vulkan
    -rework bluetooth (thanks to android-rpi)
    -switch to new two-panel settings UI (merged)
    -update to Mesa 21.1.8
    -update to Linux 5.4.152 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 1 October 2021 (merged)
    4
    New build.

    -add initial support for HDMI-CEC
    -add built-in VNC server
    -update to Mesa 21.0.2
    -update to Linux 5.4.111 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
    -Android security patch level: 5 April 2021 (merged)