# Could we have kernel patch for v0.5?

**URL:** <https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198>\
**Category:** Firmware and Apps\
**Created:** [January 23, 2020, 4:32pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198 "2020-01-23T16:32:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Manoel](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Joao\_Manoel](https://forum.clockworkpi.com/u/Joao_Manoel)\
**Post date:** [January 23, 2020, 4:32pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/1 "2020-01-23T16:32:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [January 23, 2020, 5:07pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/2 "2020-01-23T17:07:19Z")

</div>

the kernel of gs v0.5 is from @shell

> [@GameShell OS update to kernel 5.3.6(With source code)](https://forum.clockworkpi.com/t/gameshell-os-update-to-kernel-5-3-6-with-source-code/4729):
>
> [DOWNLOAD](https://pan.hanwangsoft.com/f/1e53d74d30a64f159269/?dl=1)[SOURCE](https://pan.hanwangsoft.com/f/3c468065bee14a93a68b/?dl=1) USAGE:Plug your GameShell sdcard into your PC,on Windows you will see a driver with label " boot " in your File Manager, download and copy uImage into it,overwrite the one which already exists( DO A BACKUP BEFORE THIS ).If Windows ask you to format or repair your driver when you plug your sdcard,ignore it! NOTE:I don’t test on other versions of GameShell OS except v0.4.

---

<div class="post-metadata">

**Author:** ![r043v](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/r043v/32/672_2.png) [@r043v](https://forum.clockworkpi.com/u/r043v)\
**Post date:** [January 23, 2020, 5:44pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/3 "2020-01-23T17:44:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joao\_Manoel](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Joao\_Manoel](https://forum.clockworkpi.com/u/Joao_Manoel)\
**Post date:** [January 23, 2020, 7:32pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/4 "2020-01-23T19:32:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joao\_Manoel](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Joao\_Manoel](https://forum.clockworkpi.com/u/Joao_Manoel)\
**Post date:** [January 23, 2020, 7:35pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/5 "2020-01-23T19:35:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![r043v](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/r043v/32/672_2.png) [@r043v](https://forum.clockworkpi.com/u/r043v)\
**Post date:** [January 23, 2020, 8:43pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/6 "2020-01-23T20:43:09Z")

</div>

> your code looks very good.

thanks, i just adapted the official linux-armv7-rc from arch linux arm [PKGBUILDs/core/linux-armv7-rc at master · archlinuxarm/PKGBUILDs · GitHub](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

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [January 23, 2020, 9:57pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/7 "2020-01-23T21:57:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![r043v](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/r043v/32/672_2.png) [@r043v](https://forum.clockworkpi.com/u/r043v)\
**Post date:** [January 23, 2020, 10:41pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/8 "2020-01-23T22:41:16Z")

</div>

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](https://cateee.net/lkddb/web-lkddb/SUN4I_GPADC.html)

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [January 23, 2020, 10:56pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/9 "2020-01-23T22:56:06Z")

</div>

> cat /sys/class/thermal/thermal\_zone0/temp

Is empty currently

---

<div class="post-metadata">

**Author:** ![r043v](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/r043v/32/672_2.png) [@r043v](https://forum.clockworkpi.com/u/r043v)\
**Post date:** [January 24, 2020, 12:31am UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/10 "2020-01-24T00:31:58Z")

</div>

updated, can now retrieve the temp

> [gs@gs ~]$ cat /sys/class/thermal/thermal\_zone0/temp  
> 47466

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [January 24, 2020, 8:26am UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/11 "2020-01-24T08:26:22Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![Joao\_Manoel](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Joao\_Manoel](https://forum.clockworkpi.com/u/Joao_Manoel)\
**Post date:** [February 5, 2020, 4:46pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/12 "2020-02-05T16:46:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![r043v](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/r043v/32/672_2.png) [@r043v](https://forum.clockworkpi.com/u/r043v)\
**Post date:** [February 5, 2020, 6:26pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/13 "2020-02-05T18:26:25Z")

</div>

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

> <https://github.com/r043v/GameShell-PKGBUILDs/commit/bebe436d5ced3453f904f0bdcf584cf4f30bf0c0#diff-bd3876b01238cd1f98eff00e97d6307e>

---

<div class="post-metadata">

**Author:** ![Joao\_Manoel](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Joao\_Manoel](https://forum.clockworkpi.com/u/Joao_Manoel)\
**Post date:** [February 5, 2020, 7:25pm UTC](https://forum.clockworkpi.com/t/could-we-have-kernel-patch-for-v0-5/5198/14 "2020-02-05T19:25:04Z")

</div>

Thanks!

It worked.

I enabled:  
CONFIG\_CAN=y  
CONFIG\_CAN\_SUN4I=y  
CONFIG\_MFD\_SUN4I\_GPADC=y  
CONFIG\_SUN4I\_GPADC=y
