-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Kernel build to use Debos recipe (#135)
* Update kernel config to apply changes rather than full configuration * Add chroot kernel build recipe and update kernel packages Deprecate cross-compiled kernel patches * Update base images --------- Co-authored-by: Daniel McKnight <daniel@neon.ai>
- Loading branch information
1 parent
31f3b4a
commit ecf0b56
Showing
9 changed files
with
95 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
a6d01ca6981b96ebfb274d0b34b9ebc2 opi5_base.tar.gz | ||
885ba774079d865c45e134be184e2511 rpi4_base.tar.gz | ||
f4555d8e206ccc61906f3b340283e279 rpi4_base.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CONFIG_LOCALVERSION "-gecko" | ||
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE y | ||
CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE n | ||
CONFIG_MEDIA_SUPPORT y | ||
CONFIG_MEDIA_SUPPORT_FILTER n | ||
CONFIG_SQUASHFS y | ||
CONFIG_SQUASHFS_XZ y | ||
CONFIG_SQUASHFS_4K_DEVBLK_SIZE y | ||
CONFIG_OVERLAY_FS y | ||
CONFIG_HEADERS_INSTALL y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CONFIG_LOCALVERSION "-gecko" | ||
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE y | ||
CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE n | ||
CONFIG_MEDIA_SUPPORT y | ||
CONFIG_MEDIA_SUPPORT_FILTER n | ||
CONFIG_SQUASHFS y | ||
CONFIG_SQUASHFS_XZ y | ||
CONFIG_SQUASHFS_4K_DEVBLK_SIZE y | ||
CONFIG_OVERLAY_FS y | ||
CONFIG_HEADERS_INSTALL y |
Binary file modified
BIN
+44.4 KB
(100%)
overlays/02-rpi4/var/tmp/linux-headers-6.1.77-gecko+_6.1.77-gecko+-1_arm64.deb
100644 → 100755
Binary file not shown.
Binary file modified
BIN
+51.3 KB
(100%)
overlays/02-rpi4/var/tmp/linux-image-6.1.77-gecko+_6.1.77-gecko+-1_arm64.deb
100644 → 100755
Binary file not shown.
Binary file modified
BIN
-348 Bytes
(100%)
overlays/02-rpi4/var/tmp/linux-libc-dev_6.1.77-gecko+-1_arm64.deb
100644 → 100755
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{{ $kernel := "rpi-6.6.y" }} | ||
|
||
architecture: arm64 | ||
actions: | ||
- action: debootstrap | ||
suite: bookworm | ||
components: | ||
- main | ||
mirror: https://deb.debian.org/debian | ||
variant: minbase | ||
- action: apt | ||
chroot: true | ||
description: Install Build Dependencies | ||
packages: | ||
- git-core | ||
- bc | ||
- bison | ||
- flex | ||
- libssl-dev | ||
- make | ||
- libc6-dev | ||
- libncurses5-dev | ||
- binutils | ||
- build-essential | ||
- rsync | ||
- kmod | ||
- cpio | ||
- lsb-release | ||
- gcc | ||
- zstd | ||
- debhelper | ||
|
||
- action: overlay | ||
description: Overlay Configuration | ||
source: ../overlays/00-build-kernel | ||
destination: / | ||
- action: run | ||
chroot: true | ||
description: Clone Kernel | ||
command: git clone --depth=1 https://github.com/raspberrypi/linux -b {{ $kernel }} /var/linux | ||
|
||
- action: run | ||
chroot: true | ||
description: Configure Kernel | ||
command: | | ||
cd /var/linux || exit 10 | ||
export KERNEL=kernel8 | ||
make ARCH=arm64 bcm2711_defconfig | ||
while read line; do | ||
echo "${line}" | ||
./scripts/config --set-val ${line} | ||
done < "/var/config-overlay-{{ $kernel }}" | ||
- action: run | ||
chroot: true | ||
description: Build Kernel | ||
command: | | ||
cd /var/linux || exit 10 | ||
make -j16 ARCH=arm64 deb-pkg && echo "made kernel" || echo "kernel make failed" | ||
- action: run | ||
description: Copy output patch to host | ||
chroot: false | ||
command: | | ||
mv "${ROOTDIR}/var/linux"*.deb "/image_build/overlays/02-rpi4/var/tmp/" | ||
chmod 777 "/image_build/overlays/02-rpi4/var/tmp/"*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters