首页 > Web开发 > 详细

Raspberry Pi 2 Raspbian kernel compile and install

时间:2015-09-12 17:40:48      阅读:307      评论:0      收藏:0      [点我收藏+]

$ git clone --depth=1 https://github.com/raspberrypi/linux

$ cd linux
$ KERNEL=kernel7
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
$ lsblk

$ mkdir /mnt/fat32
$ mkdir /mnt/ext4
$ sudo mount /dev/sdb1 /mnt/fat32
$ sudo mount /dev/sdb2 /mnt/ext4

$ sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/mnt/ext4 modules_install

$ sudo cp /mnt/fat32/$KERNEL.img /mnt/fat32/$KERNEL-backup.img


$ sudo scripts/mkknlimg arch/arm/boot/zImage /mnt/fat32/$KERNEL.img
$ sudo cp arch/arm/boot/dts/*.dtb /mnt/fat32/
$ sudo cp arch/arm/boot/dts/overlays/*.dtb* /mnt/fat32/overlays/
$ sudo cp arch/arm/boot/dts/overlays/README /mnt/fat32/overlays/
$ sudo umount /mnt/fat32
$ sudo umount /mnt/ext4

Raspberry Pi 2 Raspbian kernel compile and install

原文:http://www.cnblogs.com/tamarind/p/4803203.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!