Mainline Kernel Support

Hello Khadas Team,

We have been using kernel from Balbes branch as most of the IO was fully functionaly but now as we have many devices to support, we at Manjaro ARM Project want to start using upstream mainline kernel for Khadas devices.

We are able to use the Mainline upstream kernel with some patches but we still do have some IO not working. I would like to know which patches are needed to make it functional.

What is not working:

  • Audio - ( we have the right configs in kernel but still we’re not able to see asound cards)
  • Fan - (Not sure if the mcu driver is completed or not.)

What I have done so far to make the audio work on upstream kernel.

  • Followed all the audio config of alsa-lib, example: aliases method to point the Card name to a common card like AMLOGIC-HDMI.conf and also tried manual card config then used the sound script to set the right mixer but as the script cannot find any card then it just fails.
    In upstream kernel I am not able to see any card under /proc/asound/ nor in aplay -Ll

VIM3L Concerns
It doesn’t pass Starting kernel ...
Which I assume have some issue reading the kernel from the sd card, I am using Mainline uboot 2020.10 and mainline kernel from upstream source.

Can someone advice on this @numbqq @hyphop or @Gouwa ?

Thank You.

3 Likes

For Fenix, the aound card works. But I haven’t checked latest mainline kernel version yet.

The MCU FAN driver already merged in mainline kernel. So the FAN works.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/thermal/khadas_mcu_fan.c?h=v5.10-rc3

Realy? @hyphop please help to check.

1 Like

VIM3L Concerns
It doesn’t pass Starting kernel …
Which I assume have some issue reading the kernel from the sd card, I am using Mainline uboot 2020.10 and mainline kernel from upstream source.

im not surprised :wink: i will check it soon

1 Like

Any update?
The mainline doesn’t pick the cards in /proc/asounds/ nor in aplay -l
So I don’t think it will be solved by just an asound.state

Please check and let me know when you get time

Will wait for you.

1 Like

i hope - its will be on this week

1 Like

Let me know once you try it.

Thanks.

1 Like

Hello @hyphop and @numbqq
Any update?

1 Like

Hello @hyphop

Please update the status.

1 Like

ok i will try tomorrow - today - will busy with tone board :wink:

2 Likes

Hello @hyphop

I hope your tomorrow comes soon. :wink:

2 Likes

I hope your tomorrow comes soon. :wink:
:wink: :wink: yes must comes soon! - sorry still so busy

1 Like

Hello,

I hope your tomorrow comes soon :wink:

I hope your tomorrow comes soon :wink:

plz ask @frank he must check already - sorry im still busy

Yes i replied in his thread already.

@Spikerguy I’m doing this, and there are no problems with VIM3 at the moment, but there are some problems with VIM3L’s wifi

Hello Khadas Team,

0066-drm-meson-add-YUV422-output-support.patch does not apply yo 5.17 so I ported it to 5.17

Patch here

Next I want to look at shutdown and reboot issue when using bsp uboot.

Did anyone test and debug the issue for incomplete shutdown and reboot?

@hyphop
Please advice.