Skip to content

Instantly share code, notes, and snippets.

@devyn
Last active February 21, 2021 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devyn/09cfc2a41f0e6c4ebabaa54e151e23ae to your computer and use it in GitHub Desktop.
Save devyn/09cfc2a41f0e6c4ebabaa54e151e23ae to your computer and use it in GitHub Desktop.

See gist about kernel options

Compiling kernel:

export ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
make -j32
make -j32 INSTALL_MOD_PATH=system_out modules_install

Copy arch/arm64/boot/Image.gz to /boot and /media/boot

Copy modules in system_out to /

Generate uInitrd:

update-initramfs -c -k $version
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d /boot/initrd.img-$version /boot/uInitrd-$version
cp /boot/uInitrd-$version /media/boot/uInitrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment