LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-18-2022, 03:22 PM   #1
marietto2008
LQ Newbie
 
Registered: May 2020
Posts: 23

Rep: Reputation: Disabled
Trying to enable KVM on my Samsung Chromebook ARM "SNOW" model XE303C12


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 ?

Last edited by marietto2008; 08-18-2022 at 03:24 PM.
 
  


Reply

Tags
arm, armel, chromebook, kernel, kvm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need Linux kernel .uimg for ARM Chromebook xe303c12 but can't compile myself. ericgreenwood123 Linux - Laptop and Netbook 3 08-28-2019 05:36 AM
video sound on arm linux running xe303c12 slackartist Slackware - ARM 7 11-16-2016 04:38 AM
Is there a live image linux for samsung xe303c12 serafim Linux - Laptop and Netbook 13 09-01-2016 02:28 AM
"Let it Snow, Let it Snow" .. and the Google That Cried "Wolf" sundialsvcs General 7 02-11-2014 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration