DrAtomic / ez_build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

simple script to setup linux, qemu, busybox, and u-boot for virtualization

Features

allows sharing a file between the host machine and the virtual environment via the "platdriver" folder. can hack on uboot as well as linux kernel modules

Usage

./setup.sh
./run_qemu.sh

this will clone everything into the current directory from there to start hacking on the kernel/u-boot or whatever source the environment

source .env

to test out the changes to the system they need to either be built into the rootfs or put into the platdriver folder

Platform Driver Example

there is an example kernel module in platdriver, it reads from a device tree. to use this driver,

cd platdriver
make
make dtc
cd ..
./merge_dtb.sh
./run_qemu.sh

once in the qemu session

insmod host_share/platdriver.ko

it should show the print statements in the kernel driver. updating the device tree requires qemu to be restarted.

About

License:GNU General Public License v2.0


Languages

Language:Shell 74.9%Language:C 21.2%Language:Makefile 3.9%