前奏准备:
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