Re: Front camera on pinephone

From: Fiona Klute
Date: Tue Jan 16 2024 - 17:23:23 EST


Am 16.01.24 um 09:05 schrieb Pavel Machek:
[If you have hints how to set-up pinephone for kernel development,
that would be welcome. Currently I have mobian with rather old 6.1
kernel on it, and lack of keyboard/ethernet makes things tricky.]

So far I'm mostly using "pmbootstrap build --src" [1], which essentially
builds the pmOS kernel package but replaces the source with the tree I
point at. I keep thinking I should try envkernel.sh [2], which is
supposed to set up cross-compiling with the usual make flow. Maybe
that'd work with bindeb-pkg?

I don't know how well an unpatched mainline kernel would run, I'm
currently using megi's 6.7 tree [3] plus the pmOS patches as the basis
for my rtw88_8723cs development [4] (if you look at the history, it's
v6.7 -> orangepi-6.7 -> pmos-6.7 -> rtw88_8723cs). I know megi's kernel
has some DTS patches but haven't looked too deeply into the changes,
maybe some could be upstreamed together with the camera part.

Regards,
Fiona

[1] https://wiki.postmarketos.org/wiki/Pmbootstrap#Building_packages
[2] https://wiki.postmarketos.org/wiki/Compiling_kernels_with_envkernel.sh
[3] https://xff.cz/git/linux/log/?h=orange-pi-6.7
[4] https://github.com/airtower-luna/linux/commits/rtw88_8723cs/