Post

linux driver: Prepare environment by virtual machine

linux driver: Prepare environment by virtual machine

Johannes has provided the serial tutorial for linux driver development.
It mainly base on “raspberry Pi 3”. However, I don’t have that device so that I adopt the virtual machine way.
You don’t need the physical board and can demo those project just with notebook.

Commands

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Create virtual machine (ubuntu-24.04)
$ limactl create --name ubuntu-24.04 --cpu 1 --memory 1 /opt/homebrew/share/lima/templates/ubuntu-24.04.yaml

# Run virtual machine and enter terminal TUI
$ limactl start ubuntu-24.04
$ limactl shell ubuntu-24.04

# Download "Linux Driver Tutorial" repository
$ cd ~
$ git clone https://github.com/Johannes4Linux/Linux_Driver_Tutorial.git
$ cd Linux_Driver_Tutorial/

# Install required packages
$ sudo apt install make
$ sudo apt install build-essential
This post is licensed under CC BY 4.0 by the author.