Skip to content
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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Commits on Sep 22, 2024

  1. create a minimal linux kernel image and rootfs for the virtio example…

    … on qemu and mark the unused imgaes with a .old extension
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    7479a8e View commit details
    Browse the repository at this point in the history
  2. 4867a7c set the target flag for userlevel cc aarch64-linux-musl inste…

    …ad of aarch64-linux-gnu for static linking
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    7d7d7ac View commit details
    Browse the repository at this point in the history
  3. add a new option to packrootfs that saves a file to the root as init …

    …rather than copying it to /etc/init.d
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    206f58d View commit details
    Browse the repository at this point in the history
  4. add perl as a dependency to nix.shell for shasum

    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    fcfc705 View commit details
    Browse the repository at this point in the history
  5. create a minimal linux kernel image and rootfs for the virtio-snd exa…

    …mple on qemu and mark the unused imgaes with a .old extension
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    c80e8a2 View commit details
    Browse the repository at this point in the history
  6. set the target flag for userlevel cc aarch64-linux-musl instead of aa…

    …rch64-linux-gnu for static linking
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    d9f3e61 View commit details
    Browse the repository at this point in the history
  7. update nix.shell to build a static library for alsa-lib

    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    2931105 View commit details
    Browse the repository at this point in the history
  8. compile the uio sound driver and link it with the alsa-lib separately…

    … to prevent it from duplicating the alsa-lib symbols
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    b9e82ec View commit details
    Browse the repository at this point in the history
  9. use capacity instead of size

    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    50e3800 View commit details
    Browse the repository at this point in the history
  10. update the linux kernel image for the virtio example to use same linu…

    …x kernel image as virtio-snd
    
    include config options that are required but were not previously included
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    2e9557d View commit details
    Browse the repository at this point in the history
  11. create a custom init script for the block driver VM userspace

    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]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    ccaa83f View commit details
    Browse the repository at this point in the history
  12. alsactl init was being called before the sound device node was create…

    …d. This fixes the issue by calling it multiple times until it succeeds.
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    6713b0b View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. remove old linux, linux_config, buildroot_config and init script file…

    …s from virtio-snd and virtio examples
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    8b8941c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    97a0929 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30d15dd View commit details
    Browse the repository at this point in the history
  4. copy the linux, linux_config and rootfs.cpio.gz from the qemu board t…

    …o odroidc4 and delete buildroot_config for the sound driver VM
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    240a5e8 View commit details
    Browse the repository at this point in the history
  5. copy the linux, linux_config and rootfs.cpio.gz files from the qemu b…

    …oard to the odroidc4 and delete buildroot_config for the block driver VM
    
    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    ef1afd1 View commit details
    Browse the repository at this point in the history
  6. comments + minor fix

    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    5dff2fe View commit details
    Browse the repository at this point in the history
  7. document the process for creating a minimal driver VM

    Signed-off-by: Anuraag <[email protected]>
    Anuraag-Ganesh authored and boinkaput committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    35e4f70 View commit details
    Browse the repository at this point in the history
  8. updated instructions for creating a minimal rootfs and included build…

    …root config for sound driver VM, for building alsactl
    
    Signed-off-by: Anuraag <[email protected]>
    boinkaput committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    511edd4 View commit details
    Browse the repository at this point in the history