Khadas VIM1S/VIM4 support (Amlogic 5.4 vendor kernel)
Description
Attachments
Checklist
hideActivity
Ricardo Pardini August 19, 2023 at 10:08 AM
Thank you – that makes sense.
I’ve added the modprobe config to our bsp-cli package.
Images for testing ( ) are here

Nick Xie August 18, 2023 at 1:32 AMEdited
>is testing with an “old” VIM4 model though, and running into panics. From what i can tell it’s related to “ISP” firmware, any ideas?
Yes, I know this issue, it is caused by the isp module load sequence, you can change the sequence to fix this issue, please check : https://github.com/khadas/fenix/blob/master/archives/filesystem/special/VIM4/etc/modprobe.d/isp.conf
Ricardo Pardini August 10, 2023 at 7:06 PM
all good with the “new” VIM4.
I’ve added a patch so we can check if the correct DTB is being loaded: https://github.com/armbian/build/blob/main/patch/kernel/archive/meson-s4t7-5.4/board_vim4_model_name_difference_between_kvim4_and_kvim4n.patch
is testing with an “old” VIM4 model though, and running into panics. From what i can tell it’s related to “ISP” firmware, any ideas?
Attached complete UART bootlog. Notice how the DTB is correctly picked up, and I’m using the exact same cmdline as the Fenix images.
Same build/image works 100% with the VIM4N.
Ricardo Pardini August 9, 2023 at 9:10 AM
Public PR is sent, and is helping a lot there:
Ricardo Pardini August 8, 2023 at 9:03 AM
Bingo – turns out I have the “new” version, and I was forcing the use of the “old” DTB. (Both DTBs have the same “model” though, that fooled me when inspecting Khadas’s fenix image).
Seems like everything works with the correct DTB.
I’ll adapt our extlinux stuff to use dtb autodetected by uboot just like you do (FDTDIR, not FDT) so we can have a single image for both boards.
Thank you very much
Adding support for the “new era” Amlogic devices S4 and T7 families.
Namely the VIM1S and VIM4.
Using the Amlogic 5.4 vendor kernel.