Chinaunix首页 | 论坛 | 博客
  • 博客访问: 389858
  • 博文数量: 165
  • 博客积分: 436
  • 博客等级: 下士
  • 技术积分: 887
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-10 02:49
文章分类

全部博文(165)

文章存档

2012年(95)

2011年(70)

分类:

2011-11-20 18:51:06

原文地址:compile the linux kernel 作者:fireaxe

本文乃fireaxe原创,使用GPL发布,可以自由拷贝,转载。但转载请保持文档的完整性,并注明原作者及原链接,严禁用于任何商业用途。
作者:fireaxe_hq@hotmail.com
博客:fireaxe.blog.chinaunix.net

The first problem is that there was no the file: curses.h, so that I cannot run the command, make menuconfig, to config the kernel. I searhed on the Baidu and find the problem is the lack of libcurses. Run command as below in the termimal:

apt-get install libcurses*-dev

Then I can run the “make menuconfig”.

The second problem is that the target “prepare3” in the top makefile(896) should not run the command, so I delete the it:

 

Original

prepare3: include/config/kernel.release

ifneq ($(KBUILD_SRC),)

       @echo '  Using $(srctree) as source for kernel'

       $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \

              echo "  $(srctree) is not clean, please run 'make mrproper'";\

              echo "  in the '$(srctree)' directory.";\

              /bin/false; \

       fi;

       $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi;

       $(Q)ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm

endif

New

prepare3: include/config/kernel.release

 

The last problem is that the command, “cp ./drivers/video/logo/logo_linux_240320_clut224.ppm ./drivers/video/logo/logo_linux_clut224.ppm”, can not be executed. I should change the first “.” to “..”, as below:

“cp ../drivers/video/logo/logo_linux_240320_clut224.ppm ./drivers/video/logo/logo_linux_clut224.ppm”.

Now, I can finish the compile of the kernel. The next step is to modify the config from the sdk2410 to sdk2440.

Good night.

本文乃fireaxe原创,使用GPL发布,可以自由拷贝,转载。但转载请保持文档的完整性,并注明原作者及原链接,严禁用于任何商业用途。
作者:fireaxe_hq@hotmail.com
博客:fireaxe.blog.chinaunix.net
阅读(857) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~