Skip to content

Instantly share code, notes, and snippets.

@KunYi
Created December 16, 2020 08:38
Show Gist options
  • Save KunYi/84b8d7efe54a5ae8a66f72d4aba3604b to your computer and use it in GitHub Desktop.
Save KunYi/84b8d7efe54a5ae8a66f72d4aba3604b to your computer and use it in GitHub Desktop.
imx8mm kernel update with external module install
#!/bin/bash
if [ -d /media/kunyi/rootfs ] ; then
cd /home/kunyi/srgmx8mm/linux-srgmx8/
sudo -H cp ./arch/arm64/boot/Image.gz /media/kunyi/rootfs/boot -vf
sudo -H cp ./arch/arm64/boot/dts/freescale/srg-mx8mm.dtb /media/kunyi/rootfs/boot -vf
sudo -H make modules_install INSTALL_MOD_PATH=/media/kunyi/rootfs
cd /home/kunyi/srgmx8mm/xr_usb_serial_common_lnx-3.6-and-newer-pak
sudo -H make -C /home/kunyi/srgmx8mm/linux-srgmx8 M=$PWD modules_install INSTALL_MOD_PATH=/media/kunyi/rootfs
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment