linux-odroid-xu3: Rebuild Kernel with KVM?

Discussion about U-Boot and the kernel.

linux-odroid-xu3: Rebuild Kernel with KVM?

Postby Nox997 » Mon Nov 25, 2019 7:19 pm

Hello,

I am fairly new to SBCs and the ARM architecture.
For my odroid-xu4, I would like to add KVM support to the kernel.
In the odroid wiki, it is described how to achieve this: https://wiki.odroid.com/odroid-xu4/application_note/software/kvm
Essentially, it is rebuilding the kernel with
$this->bbcode_second_pass_code('', 'sudo apt update
sudo apt install git
git clone --depth 1 https://github.com/hardkernel/linux -b odroidxu4-4.14.y
cd linux
make odroidxu4_kvm_defconfig
make -j8
sudo make modules_install
sudo cp arch/arm/boot/zImage /media/boot/zImage_kvm
sudo cp arch/arm/boot/dts/exynos5422-odroidxu4-kvm.dtb /media/boot/')

So I have cloned the Arch Linux ARM PKGBUILD repository to build linux-odroid-xu3 with KVM support.

What I am wondering now is - is it really that easy to only include the
$this->bbcode_second_pass_code('', 'make odroidxu4_kvm_defconfig')
in the build() step of the pkgbuild?
i.e.:

$this->bbcode_second_pass_code('', 'build() {
cd "${srcdir}/${_srcname}"

# get kernel version
make prepare

# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
#make nconfig # new CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version

#########################################
#add KVM support:
make odroidxu4_kvm_defconfig
#########################################
# ... or manually edit .config

# Copy back our configuration (use with new kernel version)
#cp ./.config ../${pkgbase}.config

####################
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
####################

#yes "" | make config

# build!
make ${MAKEFLAGS} zImage modules dtbs
}')

Thank you very much in advance for your help!
Nox997
 
Posts: 1
Joined: Mon Nov 25, 2019 7:10 pm

Re: linux-odroid-xu3: Rebuild Kernel with KVM?

Postby moonman » Wed Nov 27, 2019 1:14 am

It is that easy, but you will probably be missing some drivers / modules if you don't edit the config.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 29 guests