clockworkpi

Could we have kernel patch for v0.5?

Hi,

I would like to have the patch used to compile the kernel used on v0.5.

Can someone send me/ upload it to github?

Best regards

the kernel of gs v0.5 is from @shell

and here is the one used into arch linux port https://github.com/r043v/GameShell-PKGBUILDs/tree/master/linux-gameshell

2 Likes

Thanks!

your code looks very good. I prefer to keep it with separate patches like you did to track the changes. I’ll try to compile it later.

Can you tell me what patches are the bare minimum to get the cpi running?

BR

1 Like

Thanks!

I saw that topic before, but I though that wasn’t the official kernel.
Is it possible to copy it to the official cpi github? I think that this could be better for the community knows that all the important sources are there in one place.

your code looks very good.

thanks, i just adapted the official linux-armv7-rc from arch linux arm https://github.com/archlinuxarm/PKGBUILDs/tree/master/core/linux-armv7-rc

I prefer to keep it with separate patches like you did to track the changes. I’ll try to compile it later.

still a lot of work, some file must be extracted from patch files to real files, also some may not be required anymore,
for upcoming 5.5 branch the backlight driver need to be rewrited to reflect new backlight driver style.

Can you tell me what patches are the bare minimum to get the cpi running?

in reality not any, official arch linux arm kernel could boot the gameshell, patches are required for sound, screen will init lately with official kernel, it will also miss the requirement for backlight, maybe others

take care than clockwork os need uImage, for arch i changed the uboot cmd to load zImage instead, also mounted first partition as real /boot.
arch will also require an initramfs, not on the debian

1 Like

Thermals are not enabled, that could be a nice patch to check the cpu temp

1 Like

some thermal config flags are already enabled in my defconfig, seem miss a few, i’ll try enable them

https://cateee.net/lkddb/web-lkddb/SUN4I_GPADC.html

2 Likes

cat /sys/class/thermal/thermal_zone0/temp

Is empty currently

updated, can now retrieve the temp

[gs@gs ~]$ cat /sys/class/thermal/thermal_zone0/temp
47466

3 Likes

Very nice! I will try adding it to the battery monitor.

I guess people would like to see the temp? I don’t know

1 Like

Could you tell me what you enabled in the kernel to get the readings?

some needs was already enabled, i just added adc & can stuff

3 Likes

Thanks!

It worked.

I enabled:
CONFIG_CAN=y
CONFIG_CAN_SUN4I=y
CONFIG_MFD_SUN4I_GPADC=y
CONFIG_SUN4I_GPADC=y

2 Likes