Support for newer kernel

Then you need to stay with bsp kernel only.

Afaik, there is only decoding support. Not sure about the status of encoding.

Hello there, @numbqq
Can you recommend a kernel version for VIM3L that has at least two years of support and is also supported by Khadas?

They’re on vacation most likely will reply after CNY holidays.

Khadas have forward ported the NPU drivers onto the mainline codebase; it will be challenging to send them upstream due to the NDA regime around them. Video encoding is something that could probably be tackled too, the IP blocks are relatively simple compared to decoding.

:+1: Thanks for info. Can you recommend which kernel version Khadas or the community should utilise for future development?

5.15

Cause 5.10 might have short lifespan.

IMHO it’s better to rebase regularly against the latest stable kernel than remain on an LTS kernel until you are forced to update. It means “little but often” effort in maintenance rather than the “let’s reinvent the wheel” bigger effort that bumping between LTS kernels can sometimes require.

1 Like

@numbqq and @Frank can you please suggest?

Hi,

I myself am also working on the 4.9 kernel but I do have the same query as it is going to EOL.

Which kernel version should be the next planned by khadas team?

Accordingly, I will plan at my end as well.

Appreciate your help here khadas team.

Thanks

Hello @KD_1993 @rutvij.trivedi

We don’t have plan to upgrade to new kernel from 4.9, but we will keep to improve 5.x mainline kernel.

1 Like

@numbqq Thank you for your response.
I’d want to use the following capabilities with the latest kernel on the Khadas board VIM3L:

  • Bluetooth
  • Audio codec
  • Hardware Video encoding (H264)
  • NPU
  • DSI Display
  • Mipi Camera without ISP

Any information or documents for newer kernel will be greatly appreciated.
Isn’t hardware video encoding a problem with the latest kernel?

Can you please provide release notes for mainline kernel?

  • Bluetooth - Works
  • Audio codec - Works
  • Hardware Video encoding (H264) - Not tested with Ubuntu, but works with LibreELEC, still have many limitations
  • NPU - Works
  • DSI Display - Not work
  • Mipi Camera without ISP - Not work

No hardware encoding support for mainline kernel.

About the mainline kernel support status you can check here:

https://linux-meson.com/hardware.html#support-matrix

Hi @numbqq , thanks for reply, however this replay is going to create major setback for us.
This will create blocker for us.

Having said that, can you guide which kernel version will be helpful here ?

Any thoughts on 4.19 ?

Any help will be greatly appreciated.

Hi, @numbqq,

DSI display and MIPI are primary where my work is focused upon,
Can you tell on its status?

Is it in WIP? Any plans?

See this series for MIPI Linux amlogic - Patchwork

3 Likes

Hi @chewitt,
Appreciate your answer, however, this is not sufficient, I have a product running on VIM3L , I can not tell the customer and investor about holding till WIP.

At least I can opt-out for hardware encoder for time being but
MIPI display, BLE, WIFI, CSI camera, Audio codec are needed, these are the heart of my product.

Being on 4.9 will not provide security patches from kernel once EOL, Security cannot be compromised in the current world, If the above peripherals are running at least on 4.19 even, I may move forward compromising HW encoder (will use SW one ).

So I am in block condition right now, that is where I need to conclude on a kernel version which is having at least the above support.

@numbqq, really appreciate your views as well.

@KD_1993, I found 4.19 on @numbqq’s repo, however, this does not have support for vim3 series.

Can we use 5.10.x here? For major peripherals?
I have seen one discussion here for DSI,

But can’t be sure for DSI on 5.10.x?
Also no clue on CSI on 5.10 yet?

@chewitt,

Do you have any ideas on below?

Are these patch series tested with TS050 latest and can we use custom panels?
Any plans for CSI ?

Also, one suggestion if you can provide, as 4.9 has VIM3l support but 4.19 doesn’t have even a khadas official repo why it may have happened so? any clue?

I know the MIPI patches were originally writen around the TS050 panel (the drivers for it are already upstream as a result). I also know one other Amlogic board vendor who tested them (and shared some changes that were needed). Current status is that Neil needs to send a v3 patch series then chase the other DRM maintainers for acks to get them merged. I have no info on CSI things … it’s not something I have any need for myself so I’m not tracking or trying to initiate development.

8-bit H264 and VP9 work on G12B/SM1 hardware if you use the right ffmpeg sources but 10-bit, 4K and HEVC (which is not upstream yet) will wedge the board and that needs investigation. I’m aware of some work planned (but not yet started) on looking into fixing the VDEC on newer hardware. I’m not aware of anyone working on VENC at this time, but it should be a much more simple driver to write than VDEC so I’d be hopeful that someone tackles it at some point.

1 Like

@chewitt, Okay, thank you for the process view. It cleared many things.

@numbqq, being an expert in khadas team, expecting your views as well, especially on 4.19?
CSI etc .