Skip to content

redstar9451/learn-kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comment linux kernel code

learn linux kernel with qemu simulator

how to use

./download.sh
make busybox
make vexpress_kernel
./qemu-kernel.sh

qemu options you can speicify:

  • -S hold in the first instruction

how to debug with gdb

waiting for composing

about making rootfs

  • how many ways to identify a rootfs ?

how to use tap netdevice in qemu

-net tap,vlan=0,name=tap0

sudo apt install uml-utilities bridge-utils
sudo brctl addbr br0
sudo brctl stp br0 on
sudo brctl addif br0 ens33
sudo ifconfig ens33 10.1.1.1
sudo dhclient br0

sudo tunctl -t tap0 -u redstar

sudo ifconfig tap0 promisc up
sudo ifconfig tap0 10.1.1.2


sudo brctl delif br0 ens33
sudo brctl delif br0 tap0
sudo tunctl -d tap0
sudo ifconfig br0 down
sudo brctl delbr br0

About

learn linux kernel, read source code, debug with gdb & qemu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published