-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create minimal driver VMs #122
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why delete this file? Shouldn't there still be a buildroot config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I manually created a rootfs for each of the driver VMs because most of the files remain unused by the VM. So buildroot shouldn't be required for driver VMs.
The block driver VM contains:
/dev
/sys
/modules
: Only contains kernel modules required by the block driver./init
: This gets added during the build process usingpackrootfs
The sound driver VM contains:
/dev
/sys
/modules
: Only contains kernel modules required by the block driver./init
: This gets added during the build process usingpackrootfs
/alsa
: config files for alsa/alsactl
/etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the file is missing you need to provide instructions for recreating the root FS, and in particular if there are any GPLd binaries in there how to get the source for them and rebuild them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wom-bat I have updated the readme for the 2 examples (sound driver readme, block driver readme). I just remembered that the sound driver VM requires a buildroot_config
for building a statically linked alsactl
. I've included the steps for reproducing this in the sound driver readme.
Could you summarise what you modified in the Linux kernels? What configuration options did you disable? |
6d4b6b3
to
9522684
Compare
… on qemu and mark the unused imgaes with a .old extension Signed-off-by: Anuraag <[email protected]>
…ad of aarch64-linux-gnu for static linking Signed-off-by: Anuraag <[email protected]>
…rather than copying it to /etc/init.d Signed-off-by: Anuraag <[email protected]>
Signed-off-by: Anuraag <[email protected]>
…mple on qemu and mark the unused imgaes with a .old extension Signed-off-by: Anuraag <[email protected]>
…rch64-linux-gnu for static linking Signed-off-by: Anuraag <[email protected]>
Signed-off-by: Anuraag <[email protected]>
… to prevent it from duplicating the alsa-lib symbols Signed-off-by: Anuraag <[email protected]>
Signed-off-by: Anuraag <[email protected]>
…x kernel image as virtio-snd include config options that are required but were not previously included Signed-off-by: Anuraag <[email protected]>
create a custom init script for the sound driver VM userspace move alsactl init back to the uio sound driver program create a script that performs the initial setup for a driver VM and provides functions that each driver VM can implement Signed-off-by: Anuraag <[email protected]>
…d. This fixes the issue by calling it multiple times until it succeeds. Signed-off-by: Anuraag <[email protected]>
188bec4
to
bc408f3
Compare
…s from virtio-snd and virtio examples Signed-off-by: Anuraag <[email protected]>
Signed-off-by: Anuraag <[email protected]>
Signed-off-by: Anuraag <[email protected]>
…o odroidc4 and delete buildroot_config for the sound driver VM Signed-off-by: Anuraag <[email protected]>
…oard to the odroidc4 and delete buildroot_config for the block driver VM Signed-off-by: Anuraag <[email protected]>
Signed-off-by: Anuraag <[email protected]>
Signed-off-by: Anuraag <[email protected]>
7772979
to
04f95ee
Compare
…root config for sound driver VM, for building alsactl Signed-off-by: Anuraag <[email protected]>
04f95ee
to
511edd4
Compare
@Ivan-Velickovic here's a summary of the updated config:
|
This PR creates minimal linux and initramfs images for the virtio and virtio-snd examples.