All of lore.kernel.org
 help / color / mirror / Atom feed
* Front camera on pinephone
@ 2024-01-16  8:05 Pavel Machek
  2024-01-16 20:33 ` Martijn Braam
  2024-01-16 21:14 ` Fiona Klute
  0 siblings, 2 replies; 4+ messages in thread
From: Pavel Machek @ 2024-01-16  8:05 UTC (permalink / raw)
  To: fiona.klute, phone-devel, icenowy, martijn, megous, kernel list
  Cc: alain.volmat, sakari.ailus, linux-media

[-- Attachment #1: Type: text/plain, Size: 487 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Front camera on pinephone
  2024-01-16  8:05 Front camera on pinephone Pavel Machek
@ 2024-01-16 20:33 ` Martijn Braam
  2024-01-24 19:05   ` Pavel Machek
  2024-01-16 21:14 ` Fiona Klute
  1 sibling, 1 reply; 4+ messages in thread
From: Martijn Braam @ 2024-01-16 20:33 UTC (permalink / raw)
  To: Pavel Machek, fiona.klute, phone-devel, icenowy, megous, kernel list
  Cc: alain.volmat, sakari.ailus, linux-media

Hello Pavel,

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

[For the pinephone kernel development there's the option of building the 
kernel using envkernel.sh in postmarketOS with 
https://wiki.postmarketos.org/wiki/Compiling_kernels_with_envkernel.sh 
which has some automation for building a kernel and pushing it to a 
connected device. Ethernet and keyboard are replaced by ssh and 
usb-networking in this case]

Greetings,
Martijn

On 1/16/24 09:05, Pavel Machek wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Front camera on pinephone
  2024-01-16  8:05 Front camera on pinephone Pavel Machek
  2024-01-16 20:33 ` Martijn Braam
@ 2024-01-16 21:14 ` Fiona Klute
  1 sibling, 0 replies; 4+ messages in thread
From: Fiona Klute @ 2024-01-16 21:14 UTC (permalink / raw)
  To: Pavel Machek, phone-devel, icenowy, martijn, megous, kernel list
  Cc: alain.volmat, sakari.ailus, linux-media

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/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Front camera on pinephone
  2024-01-16 20:33 ` Martijn Braam
@ 2024-01-24 19:05   ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2024-01-24 19:05 UTC (permalink / raw)
  To: Martijn Braam
  Cc: fiona.klute, phone-devel, icenowy, megous, kernel list,
	alain.volmat, sakari.ailus, linux-media

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-24 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16  8:05 Front camera on pinephone Pavel Machek
2024-01-16 20:33 ` Martijn Braam
2024-01-24 19:05   ` Pavel Machek
2024-01-16 21:14 ` Fiona Klute

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.