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

Search This thread

KonstaT

Senior Member
Jan 20, 2016
723
438
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
723
438
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    For some reason I cannot get my Google TV remote to pair on my RPi 4.
    When I start searching for accessories, the Google TV remote is detected but when I click on it to pair, after a few seconds it says 'Couldn't pair'.

    Already did a factory reset on the remote but no success.
    Remote still works with my Google TV dongle.

    Any ideas on how I can fix/troubleshoot this?
    Same problem, but found a workaround to make pairing work after a "minimal" custom install of tvmini OpenGApps.
    Please see my post in OpenGApps Github issue 915
    1
    Great thanks, fine with ADB / SSH / serial console.
    There he is:
  • 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)