Skip to content

Kenneth-Lee/kernel-test-env-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kernel-test-env-maker

Introduction

Create a temp qemu image for test the lastest linux kernel. Tested on ubuntu 15.04 x86_64

files

config.qemu-x86_64	the kernel config file can be used as the basic config when use qemu-x86_64
format.sh		format the rootfs rootfs.img
genroot.py		all local files to the rootfs
mount.sh		mount the rootfs
README.md		this file
run.sh			start virtual machine with current kernel
umount.sh		umount the rootfs

quick start

put all files to root of kernel source tree

>cp config.qemu-x86_64 .config
>make oldconfig
>make menuconfig 
do your own config
>make

>dd if=/dev/zeor of=rootfs.img seek=<the size you like> bs=1024 count=0
>fdisk rootfs.img
>./format.sh
>mkdir rootfs
>./mount.sh
>./genroot.py
>./umount.sh
>./run.sh

and read the script for all the detail, make your own change.

Appendix

perf dependent lib (in Ubuntu 16.04)

libdwarf-dev libbfd-dev libelf-dev libnuma-dev libunwind-dev zlib1g-dev lblzma-dev ibpfm4-dev libdw-dev libaudit-dev libssl-dev libslang2-dev libgtk2.0-dev libperl-dev binutils-dev libiberty-dev libpython-dev

About

Create a temp qemu image for test the lastest kernel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published