KERNEL=kernel7
#编译升级
sudo env PATH=$PATH make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/yoola/rootfs modules_install
#备份旧内核
bootDir=/media/yoola/boot
sudo cp $bootDir/$KERNEL.img $bootDir/$KERNEL-backup.img
sudo cp arch/arm/boot/zImage $bootDir/$KERNEL.img
sudo cp arch/arm/boot/dts/*.dtb $bootDir/
sudo cp arch/arm/boot/dts/overlays/*.dtb* $bootDir/overlays/
sudo cp arch/arm/boot/dts/overlays/README $bootDir/overlays/
© 允许规范转载