diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -28,6 +28,30 @@ cd build RELEASE=jammy # Doesn't matter for kernel-only ``` +## Extracting Kernel from Built Image + +After the build completes, extract the kernel and related files: + +```bash +# Your built image +IMAGE="output/images/Armbian_*.img" + +# Mount the image locally using loop device +sudo losetup -P /dev/loop0 $IMAGE +sudo mkdir -p /mnt/armbian +sudo mount /dev/loop0p1 /mnt/armbian + +# Backup kernel and boot files to current directory +sudo tar czf armbian-kernel.tar.gz -C /mnt/armbian \ + boot/ \ + lib/modules/ \ + lib/firmware/ + +# Unmount +sudo umount /mnt/armbian +sudo losetup -d /dev/loop0 +``` + ## Notes - The kernel build uses Armbian's build system to generate a compatible kernel for the Odroid C4 |
