L3.15.52版本内核编译过程 for sabrelite
2017-03-01 09:00
204 查看
一、L3.15.52版本内核编译过程 for sabrelite
1、安装交叉编译工具链
2、A couple of other tools are also needed for compilation of the kernel when building a U-Boot wrapped kernel:
安装工具:
3、编译
4、安装Module
5、设备数的编译(设备树的概念可参考博主相关设备数文档)
二、Ubuntunizing i.MX6 kernels
1、安装交叉编译工具链
~/$ sudo apt-get install gcc-arm-linux-gnueabihf ~/$ arm-linux-gnueabihf-gcc -v Using built-in specs. COLLECT_GCC=arm-linux-gnueabihf-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/lto-wrapper Target: arm-linux-gnueabihf ... gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4)
2、A couple of other tools are also needed for compilation of the kernel when building a U-Boot wrapped kernel:
安装工具:
~/$ sudo apt-get install u-boot-tools lzop
3、编译
~/$ git clone git://github.com/boundarydevices/linux-imx6.git ~/$ cd linux-imx6 ~/linux-imx6$ export ARCH=arm ~/linux-imx6$ export CROSS_COMPILE=arm-linux-gnueabihf- ~/linux-imx6$ export ~/linux-imx6$ git checkout boundary-imx_3.10.17_1.0.2_ga ~/linux-imx6$ make nitrogen6x_defconfig ~/linux-imx6$ make uImage modules -j4
4、安装Module
~/linux-imx6$ make INSTALL_MOD_PATH=~/tmp modules_install ~/linux-imx6$ find ~/tmp/lib/modules -type l -exec rm -f {} ; ~/linux-imx6$ cp -ravf ~/tmp/lib/modules/* /media/myrootfs/lib/modules/
5、设备数的编译(设备树的概念可参考博主相关设备数文档)
~/$ git clone git://github.com/boundarydevices/linux-imx6.git
~/$ cd linux-imx6
~/linux-imx6$ export ARCH=arm
~/linux-imx6$ export CROSS_COMPILE=arm-linux-gnueabihf-
~/linux-imx6$ export LOADADDR=10008000
~/linux-imx6$ git checkout boundary-imx_3.10.17_1.0.2_ga
~/linux-imx6$ make nitrogen6x_defconfig
~/linux-imx6$ make uImage modules dtbs -j4
~/linux-imx6$ cp -fv arch/arm/boot/uImage /media/myboot/
~/linux-imx6$ cp -fv arch/arm/boot/dts/*.dtb /media/myboot/
~/linux-imx6$ make INSTALL_MOD_PATH=~/tmp modules_install ~/linux-imx6$ find ~/tmp/lib/modules -type l -exec rm -f {} ; ~/linux-imx6$ cp -ravf ~/tmp/lib/modules/* /media/myrootfs/lib/modules/
二、Ubuntunizing i.MX6 kernels
The simplest way to use this is similar to our Cross Compiling Kernels post: ~/$ git clone git://github.com/boundarydevices/linux-imx6.git ~/$ cd linux-imx6 ~/linux-imx6$ export ARCH=arm ~/linux-imx6$ export CROSS_COMPILE=arm-linux-gnueabihf- ~/linux-imx6$ export LOADADDR=10008000 ~/linux-imx6$ git checkout boundary-imx_3.10.17_1.0.2_ga ~/linux-imx6$ make nitrogen6x_defconfig ... make code or configuration changes here ~/linux-imx6$ make zImage modules dtbs -j4 ~/linux-imx6$ make -C ubuntunize tarball
相关文章推荐
- HOWTO compile kernel modules for the kernel 2.6: (编译linux2.6版本内核)
- 编译Linux内核过程记录(以内核版本2.6.39.1为例)
- Linux内核编译过程
- 在VMware5.0环境下编译内核(kernel2.6.13)全过程
- 编译Linux 2.6内核for ARM step by step
- (转载)在VMware5.0环境下编译内核(kernel2.6.13)全过程
- 不容易的编译内核过程
- 编译内核全过程(kernel2.6.XX)
- Linux-2.6.25内核编译简单过程
- 不容易的编译内核过程
- qte for arm的编译过程
- 编写、编译、安装、移除一个内核模块的基本过程,不能再简单了的
- linux内核编译时,修改内核版本信息
- Debian 编译内核全过程[转]
- 一个Linux爱好者的2.6.11内核编译过程
- 第四部分 DB2 V7.X 版本SQL存储过程编译配置说明
- 编译内核全过程(kernel2.6.7)(原创)
- Linux 内核编译过程说明 (以PC Linux为例)
- 编译内核全过程(kernel2.6.XX)——今天把内核升上了2.6.10,很顺利,爽呀!
- VMware中Linux内核2.6.14.4编译全过程(终于编译通过了!!!)