转载地址:http://blog.chinaunix.net/uid-20902140-id-1831979.html
解压了好长时间,解压出来的目录好大阿
30,823 items, totalling 333.5 MB
3万多文件,300多MB。比起kernel-2.6.13大多了。
make uImage之后,371.3 MB
1。
看看readme,gcc,make什么的版本ok不?
lzd@lzd-laptop:~$ udevinfo -V
udevinfo, version 117
lzd@lzd-laptop:~$ make --version
GNU Make 3.81
lzd@lzd-laptop:~$ ld -v
GNU ld (GNU Binutils for Ubuntu) 2.18.0.20080103
lzd@lzd-laptop:~$ depmod -V
module-init-tools 3.3-pre11
lzd@lzd-laptop:~$ showmount --version
showmount for 1.1.2
lzd@lzd-laptop:~$ arm-linux-gcc -v
gcc version 3.4.1
lzd@lzd-laptop:~$ arm-linux-ld -v
GNU ld version 2.15
lzd@lzd-laptop:~$
没有问题,可以放心的使用。
2。
修改Makefile,到顶层Makefile的183行。交叉编译给arm用的内核。
#ARCH ?= $(SUBARCH)
#CROSS_COMPILE ?=
ARCH ?= arm
CROSS_COMPILE ?= /usr/local/arm/3.4.1/bin/arm-linux-
3。
配置linux内核
Configuration
-------------
To set the default configuration, use `make smdk2440_defconfig` which
will configure the common features of this board, or use
`make s3c2410_config` (写错了,nnd。)to include support for all s3c2410/s3c2440 machines
上面是/document/arm/下的SMDK2440.txt文件的内容。可是
lzd@lzd-laptop:~/linux-2.6.31$ make smdk2440_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/arm/configs/smdk2440_defconfig"!
***
make[1]: *** [smdk2440_defconfig] Error 1
make: *** [smdk2440_defconfig] Error 2
lzd@lzd-laptop:~/linux-2.6.31$
A generic S3C2410 configuration is provided, and can be used as the
default by `make s3c2410_defconfig`. This configuration has support
for all the machines, and the commonly used features on them.
根本就没有所谓的smdk2440_defconfig配置,文件,只能 make s3c2410_defconfig,这样就把 arch/arm/configs/smdk2410_defconfig
拷贝到了当前目录下的.config了。
make s3c2410_defconfig
make menuconfig
make uImage
编译了10多分钟就ok
生成uimage,bootm后,还是乱码