Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for reTerminal display and peripherals #30

Closed
aanrudolph2 opened this issue Oct 21, 2023 · 2 comments
Closed

Support for reTerminal display and peripherals #30

aanrudolph2 opened this issue Oct 21, 2023 · 2 comments

Comments

@aanrudolph2
Copy link

aanrudolph2 commented Oct 21, 2023

I'm not sure how to add in additional driver sources here, in this case for a reTerminal display and peripherals (https://wiki.seeedstudio.com/reTerminal/). SeeedStudio provides a DKMS module for Raspberry Pi OS, which suggests this can be added -- see https://github.com/Seeed-Studio/seeed-linux-dtoverlays/.

The benefit is that this is a fully featured device with an accelerometer, light sensor, and buttons that can be utilized in Android OS.

@aanrudolph2 aanrudolph2 changed the title Support for reTerminal display Support for reTerminal display and peripherals Oct 21, 2023
@KonstaT
Copy link
Member

KonstaT commented Oct 25, 2023

I'm not aware of any easy solution for building out-of-tree kernel modules for Android.

Since you can't compile the kernel on the Android device, you need to cross-compile the Android kernel on some other host machine. You could add the specific drivers to the kernel source but you'd probably also need to add relevant Kconfig and Makefile entries. There's kernel build instructions available here.
https://github.com/raspberry-vanilla/android_kernel_manifest

AOSP kernel build environment supports building external modules as that's how hardware support is implemented on devices that use Android GKI (generic kernel image). This is not used on my Raspberry Pi builds. You can check e.g. common-modules directory on the kernel build env and reference other devices that use it. You'd still need to make some adjustments to the driver source and the rpi4 build configuration to use this. Even if you manage to get a module built, getting it loaded is another topic. My kernel builds include all the necessary drivers built into the kernel image itself (no modules are used).

Just by adding a kernel driver for e.g. accelerometer or light sensor doesn't utilize it in Android. You would need to add Android sensor HAL for that purpose. Raspberry Vanilla doesn't include support for such external hardware but you can find the source code for IIO sensor HAL used in my LineageOS/personal AOSP builds here.
https://github.com/lineage-rpi/android_hardware_intel_sensors-iio

Here is some discussion related to adding additional sensor support.
lineage-rpi/android_kernel_brcm_rpi#28
http://disq.us/p/2w873fx

@KonstaT
Copy link
Member

KonstaT commented Nov 24, 2023

Closing as there has been no activity on this issue for a month.

Goal of the Raspberry Vanilla project is to provide support for the built-in hardware on Raspberry Pi.

@KonstaT KonstaT closed this as completed Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants