Hello.
I would like to enable KVM on my old but still functional "Samsung Chromebook ARM "SNOW" model XE303C12" because later I want to virtualize FreeBSD with qemu and kvm. After having read this guide :
https://github.com/hexdump0815/image...snow/readme.md
I've dd ed this image to my MMC card :
https://github.com/hexdump0815/image.../tag/220619-01
and yeah,it's working great.
BTW I'm not so experienced at understanding how to recompile the kernel (or is it enough to recompile only the modules related to KVM ?) without asking for some help,but if you want to put me in the right path,I can do it. On your github there seems to be a guide that I can follow :
https://github.com/hexdump0815/linux...ter/readme.cbe
KVM host support was dropped for 32bit arm linux in v5.7 and in qemu v5.1, so the latest kernel I can use would be v5.4 (as latest lts release which still gets updates below v5.7) and the latest possible qemu would be v5.0 ...
https://www.phoronix.com/news/Linux-...32-bit-ARM-KVM
https://patchwork.kernel.org/project...az@kernel.org/
https://qemu.weilnetz.de/doc/5.1/system/deprecated.html
https://lists.gnu.org/archive/html/q.../msg02045.html
According to that,this is what I tried to do :
Code:
# tar -xvzf linux-stable.tar.gz
# cd /home/linux/Desktop/Work/linux-stable
# git checkout origin/linux-5.4.y -b linux-5.4.y
Updating files: 100% (65261/65261), done.
Branch 'linux-5.4.y' set up to track remote branch 'linux-5.4.y' from 'origin'.
Switched to a new branch 'linux-5.4.y'
patch -p1 < /home/linux/Desktop/Work/misc.cbe/patches/snow-v5-4-suspend-fix.patch
patching file drivers/input/keyboard/cros_ec_keyb.c
Hunk #1 succeeded at 630 (offset 4 lines).
patching file drivers/platform/chrome/cros_ec.c
Hunk #1 succeeded at 235 with fuzz 2 (offset 19 lines).
Hunk #2 succeeded at 260 (offset 20 lines).
patch -p1 < /home/linux/Desktop/Work/misc.cbe/patches/exynos5250-mali-complete.patch
patching file drivers/gpu/Makefile
patching file drivers/video/Kconfig
# cd /home/linux/Desktop/Work/misc.cbe
# git clone https://github.com/hexdump0815/kernel-extra-patches.git
# cd /home/linux/Desktop/Work/linux-stable
# patch -p1 < /home/linux/Desktop/Work/misc.cbe/patches/disable-panfrost-gpu-node-v5.4.patch
patching file arch/arm/boot/dts/exynos5250.dtsi
# patch -p1 < /home/linux/Desktop/Work/misc.cbe/patches/disable-usb3.patch
patching file arch/arm/boot/dts/exynos5250-snow-common.dtsi
Hunk #3 succeeded at 622 (offset 5 lines).
Hunk #4 succeeded at 698 (offset 5 lines).
# patch -p1 < /home/linux/Desktop/Work/misc.cbe/patches/fix-arm-errata-766421.patch
patching file arch/arm/Kconfig
Hunk #1 succeeded at 1118 (offset -2 lines).
patching file arch/arm/mach-exynos/Kconfig
Hunk #1 succeeded at 69 with fuzz 2 (offset -1 lines).
patching file arch/arm/mm/proc-v7-2level.S
# patch -p1 < /home/linux/Desktop/Work/misc.cbe/patches/fix-atmel-touchpad.patch
patching file arch/arm/boot/dts/exynos5250-snow-common.dtsi
# export ARCH=arm
# make olddefconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --olddefconfig Kconfig
drivers/video/Kconfig:22: can't open file "drivers/gpu/arm/Kconfig"
make[1]: *** [scripts/kconfig/Makefile:73: olddefconfig] Error 1
make: *** [Makefile:590: olddefconfig] Error 2
Unfortunately
/home/linux/Desktop/Work/linux-stable/drivers/gpu/arm does not exists. Instead,it exists :
/home/linux/Desktop/Work/linux-5.4.210/drivers/gpu/drm and I don't think it's the same. So,what can I do now ?