ubuntu(树莓派3)升级的方式

1,下载内核源码
git clone –depth=1 https://github.com/raspberrypi/linux

2、安装依赖
sudo apt-get install bc

3、树莓派1的配置
cd linux
KERNEL=kernel
make bcmrpi_defconfig
树莓派2、3的配置
cd linux
KERNEL=kernel7
make bcm2709_defconfig

4、编译
make zImage modules dtbs
sudo make modules_install
sudo cp arch/arm/boot/dts/*.dtb /boot/
sudo cp arch/arm/boot/dts/overlays/.dtb /boot/overlays/
sudo cp arch/arm/boot/dts/overlays/README /boot/overlays/
sudo scripts/mkknlimg arch/arm/boot/zImage /boot/$KERNEL.img

5、重启即可

你可能感兴趣的:(树莓派,ubuntu)