siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.29k stars 506 forks source link

Support Khadas VIM3 #2909

Open hdelatorre opened 3 years ago

hdelatorre commented 3 years ago

https://www.khadas.com/vim3

andrewrynhard commented 3 years ago

Wow this thing looks nice :+1: . Will look into this.

andrewrynhard commented 3 years ago

@hdelatorre I haven't had success building u-boot for amlogic boards in the past. Our CI uses native compiling environments and the Amlogic docs are for cross compiling. Their Makefile makes this assumption unfortunately. If you have any ideas, happy to hear them.

https://github.com/u-boot/u-boot/blob/896cc5aa4a8fc0c28036b9615a37f0034addad44/doc/board/amlogic/khadas-vim3.rst

andrewrynhard commented 3 years ago

Actually, let me try without cross compiling. Will let you know.

andrewrynhard commented 3 years ago

Yep, so the cross compiling is not an issue, but we run into another problem here.

#55 21.43 In file included from ../include/linux/compiler.h:54,
#55 21.43                  from ../include/part_efi.h:16,
#55 21.43                  from ../include/part.h:278,
#55 21.43                  from ../include/common.h:80:
#55 21.43 ../include/linux/compiler-gcc.h:114:1: fatal error: linux/compiler-gcc10.h: No such file or directory
#55 21.43   114 | #include gcc_header(__GNUC__)
#55 21.43       | ^~~~~
#55 21.43 compilation terminated.
#55 21.44 make[3]: *** [../scripts/Makefile.autoconf:64: include/autoconf.mk] Error 1
#55 21.45 make[2]: *** [../Makefile:475: silentoldconfig] Error 1
#55 21.45 make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
#55 21.45 make: *** [Makefile:147: sub-make] Error 2

I believe u-boot landed support for gcc10 relatively recently. The Khadas u-boot branch did not backport this.

MAHDTech commented 4 months ago

Anyone get Talos to work om the VIM3?

frezbo commented 4 months ago

Anyone get Talos to work om the VIM3?

please take a look at this: https://github.com/siderolabs/overlays/

could be easier now with overlays