Skip to content

Commit

Permalink
Workaround: modprobe: FATAL: Module sun4i-drm not found in directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramblurr committed Aug 23, 2023
1 parent 659342e commit 4179f05
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ImageBuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
uses: docker/setup-buildx-action@v2
timeout-minutes: 12

- name: Cache Image
id: cache-image
uses: actions/cache@v3
with:
path: output
key: output

- name: Setup variables
id: vars
run: |
Expand All @@ -42,27 +49,24 @@ jobs:

- name: Rename iso
run: |
mkdir output
ls
mkdir -p output
ls output
mv ./${{ steps.vars.outputs.build-output }} output/${{ steps.vars.outputs.iso-name }}
- name: Cache Image
id: cache-image
uses: actions/cache@v3
with:
path: output
key: output
boot-test:
name: Test Image
runs-on: ubuntu-latest
needs: build-image

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install QEMU and other dependencies
run: |
sudo apt-get update
sudo apt-get install -y qemu-system-aarch64 wget unzip
sudo apt-get install -y qemu-system-aarch64
- name: Load Image Cache
id: cache-image
Expand All @@ -76,7 +80,9 @@ jobs:
TAG_NAME: ${{needs.build-image.outputs.tag-name}}
ISO_NAME: ${{needs.build-image.outputs.iso-name}}
run: |
qemu-system-aarch64 \
ls
ls output
timeout 300 qemu-system-aarch64 \
-machine type=raspi4
-m 2G \
-kernel kernel8.img \
Expand All @@ -101,6 +107,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Load Image Cache
id: cache-image
uses: actions/cache@v3
Expand Down
8 changes: 8 additions & 0 deletions config/generic-aarch64/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64-new-kernel.nix>
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
];
# Workaround: https://github.com/NixOS/nixpkgs/issues/154163
# modprobe: FATAL: Module sun4i-drm not found in directory
nixpkgs.overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // {allowMissing = true;});
})
];
}

0 comments on commit 4179f05

Please sign in to comment.