Giter VIP home page Giter VIP logo

lk-tester-maker's Introduction

kernel-test-env-maker

Introduction

Create a temp qemu image for test the lastest linux kernel. Tested on ubuntu 16.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/zero 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

lk-tester-maker's People

Contributors

nekin2017 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.