Rebuild VyOS kernel Step

From VyOS Wiki
Jump to: navigation, search

Rebuild VyOS kernel Step

VyOS 1.1.x

First clone build-iso.

git clone git://
cd build-iso

Update submodule. $branch is branch name (eg. helium)

Available flavors.

  • amd64-vyos
  • amd64-vyos-virt
  • 586-vyos
  • 586-vyos-virt

git submodule update --init pkgs/linux-image
cd pkgs/linux-image
git checkout $branch

Execute to generate control file. and ignore last error.

./debian/bin/ $flavor

make[1]: *** [debian/control-real] Error 1
make[1]: Leaving directory `/home/arch/build-iso/pkgs/linux-image'
make: *** [debian/control] Error 2

Make sure you have required tools installed

apt-get install devscripts kernel-package bc

Finally, execute make

cd ../../ # Top directory in build-iso.
make linux-image

VyOS 1.2.x

Please use the steps below when working with VyOS 1.2.x.

Clone the repository

shell> git clone

Initialize submodule

shell> cd vyos-build
shell> git submodule update --init packages/vyos-kernel

Checkout current branch

shell> cd packages/vyos-kernel
shell> git checkout current

Load VyOS Kernel configuration

shell> make x86_64_vyos_defconfig

Compile the Kernel

shell> LOCALVERSION="" make-kpkg --rootcmd fakeroot --initrd --append_to_version -amd64-vyos --revision=4.4.95-1+vyos1+current1 kernel_source kernel_debug kernel_headers kernel_manual kernel_doc kernel_image