码迷,mamicode.com
首页 > Web开发 > 详细

Raspberry Pi 2 Raspbian kernel compile and install

时间:2015-09-12 17:43:26      阅读:450      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!