编译U-boot和内核

前奏准备:

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


转载于:https://www.cnblogs.com/xiaotlili/archive/2011/07/27/2118717.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值