2024-01-16 08:06:17

by Pavel Machek

[permalink] [raw]
Subject: Front camera on pinephone

Hi!

In 6.8-rc0, driver for gc2145 (front camera on pinephone) was merged,
but we don't have corresponding dts entries. Does anyone have setup
where they can fix it easily?

[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.]

Best regards,
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.


Attachments:
(No filename) (487.00 B)
signature.asc (201.00 B)
Download all attachments

2024-01-16 22:47:29

by Fiona Klute

[permalink] [raw]
Subject: Re: Front camera on pinephone

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/


2024-01-24 19:06:40

by Pavel Machek

[permalink] [raw]
Subject: Re: Front camera on pinephone

Hi!

> Isn't this simply the case of picking the gc2145 bits from Megis tree?
>
> https://megous.com/git/linux/tree/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi?h=orange-pi-5.10#n410

Well, that, adjusting dts bits to the new driver, testing and
submitting the patch. And it looks someone did the work and patches
are floating around. GOod :-).

I'm fighting with kexec crashing as soon as I pass dtb. Do I need to
modify the dtb somehow?

Best regards,
Pavel