编译U-boot和内核
2011-07-27 18:55
99 查看
前奏准备:
1.安装apt $ apt-get install openjdk-6-jdk
2.安装git $apt-get install git
3.$git init
安装marvell交叉编译gcc,设置环境变量
4.$ export PATH=/opt/arm-marvell-linux-gnueabi/bin:$PATH
$ export CROSS_COMPILE=arm-marvell-linux-gnueabi-
5.$ cd gplugd-uboot
$ make distclean
$ make gplugd_config
$ make all
6.$ ls u-boot*
u-boot
u-boot.bin
u-boot.map
u-boot.srec
where
• u-boot.bin is a raw binary image file
• u-boot is an image file in ELF binary format
• u-boot.srec is an image file in Motorola S-Record format
内核编译:
$ cd gplugd-linux-2.6
$ export PATH=/opt/arm-marvell-linux-gnueabi/bin:$PATH
$ export CROSS_COMPILE=arm-marvell-linux-gnueabi-
$ export ARCH=arm
Use the following commands to clean, configure, and build the Linux kernel:
$ make mrproper
$ make gplugd_defconfig
$ make all
To let make display more detailed messages during the build, add the “V=1” option to the make command as shown
below:
$ make V=1 all
If the build is successful, the resulting kernel image file, zImage, will be in arch/arm/boot subdirectory in the source file
tree:
$ ls arch/arm/boot/zImage
arch/arm/boot/zImage
1.安装apt $ apt-get install openjdk-6-jdk
2.安装git $apt-get install git
3.$git init
安装marvell交叉编译gcc,设置环境变量
4.$ export PATH=/opt/arm-marvell-linux-gnueabi/bin:$PATH
$ export CROSS_COMPILE=arm-marvell-linux-gnueabi-
5.$ cd gplugd-uboot
$ make distclean
$ make gplugd_config
$ make all
6.$ ls u-boot*
u-boot
u-boot.bin
u-boot.map
u-boot.srec
where
• u-boot.bin is a raw binary image file
• u-boot is an image file in ELF binary format
• u-boot.srec is an image file in Motorola S-Record format
内核编译:
$ cd gplugd-linux-2.6
$ export PATH=/opt/arm-marvell-linux-gnueabi/bin:$PATH
$ export CROSS_COMPILE=arm-marvell-linux-gnueabi-
$ export ARCH=arm
Use the following commands to clean, configure, and build the Linux kernel:
$ make mrproper
$ make gplugd_defconfig
$ make all
To let make display more detailed messages during the build, add the “V=1” option to the make command as shown
below:
$ make V=1 all
If the build is successful, the resulting kernel image file, zImage, will be in arch/arm/boot subdirectory in the source file
tree:
$ ls arch/arm/boot/zImage
arch/arm/boot/zImage
相关文章推荐
- <2012 12 06> FL2440开发板的U-boot-2010.09版本移植(十一)U-boot引导内核设置、编译linux内核、编译文件系统、加载...
- 编译内核提示mkimage command not found – U-Boot images will not be built
- ubuntu16.04编译内核出现 "mkimage" command not found - U-Boot images will not be built
- 编译内核错误:"mkimage" command not found - U-Boot images will not be built解决办法
- 【Android 系统开发】 编译 Android文件系统 u-boot 内核 并烧写到 OK-6410A 开发板上
- 编译内核提示mkimage command not found – U-Boot images will not be built
- 编译内核提示mkimage command not found – U-Boot images will not be built
- [7]_编译内核错误提示2:recipe for target 'kernel/timeconst.h' failed 和 "mkimage" command not found - U-Boot
- 编译内核,修改arch/arm/boot/Make…
- uboot的编译及配置浅析 和 uboot启动,内核启动详细讲解
- 【Android 系统开发】 编译 Android文件系统 u-boot 内核 并烧写到 OK-6410A 开发板上
- 从头搭建imx6ull开发环境(uboot、内核编译及烧入、mfgtools详细使用方法)
- 从头搭建imx6ul开发环境(uboot、内核编译及烧入、mfgtools详细使用方法)
- linux 解决Ubuntu编译内核uImage出现问题“mkimage” command not found - U-Boot images will not be built问题
- 【Android 系统开发】 编译 Android文件系统 u-boot 内核 并烧写到 OK-6410A 开发板上
- 4、mini2440 uboot 和 linux 内核的编译
- 编译内核提示mkimage command not found – U-Boot images will not be built
- 解决Ubuntu编译内核uImage出现问题“mkimage” command not found - U-Boot images will not be built问题
- 编译内核提示mkimage command not found – U-Boot images will not be built
- 编译内核 mkimage" command not found - U-Boot images will not be buil