• «
  • 1
  • 2
  • 3
  • »
  • Pages: 1/3     Go
主题 : 今天重新编译成功2.6.31.1内核 复制链接 | 浏览器收藏 | 打印
begin
级别: 新手上路
UID: 4431
精华: 0
发帖: 26
金钱: 195 两
威望: 118 点
综合积分: 52 分
注册时间: 2009-03-14
最后登录: 2012-12-12
楼主  发表于: 2009-11-06 22:35

 今天重新编译成功2.6.31.1内核

[post]首先下载linux.2.6.31.1.tar.bz2,然后解压缩到/opt/FriendlyARM/mini2440/下。
因为该内核已经支持mini2440,故
yagerya@yagerya-desktop:/opt/FriendlyARM/mini2440/linux-2.6.31.1$
yagerya@yagerya-desktop:/opt/FriendlyARM/mini2440/linux-2.6.31.1$
yagerya@yagerya-desktop:/opt/FriendlyARM/mini2440/linux-2.6.31.1$ cp arch/arm/configs/mini2440_defconfig .config

yagerya@yagerya-desktop:/opt/FriendlyARM/mini2440/linux-2.6.31.1$
yagerya@yagerya-desktop:/opt/FriendlyARM/mini2440/linux-2.6.31.1$ make menuconfig
然后保存退出。
yagerya@yagerya-desktop:/opt/FriendlyARM/mini2440/linux-2.6.31.1$ make zImage
这样就出现如下错误:
a[color=#ff0000]rch/arm/mach-s3c2440/built-in.o:(.init.data+0x724): undefined reference to `s3c_device_usb' make: *** [.tmp_vmlinux1] 错误 1
[/color]
查看Kconfig文件:
# arch/arm/mach-s3c2440/Kconfig
#
# Copyright 2007 Simtec Electronics
#
# Licensed under GPLv2

config CPU_S3C2440
        bool
        depends on ARCH_S3C2410
        select CPU_ARM920T
        select S3C2410_CLOCK
        select S3C2410_PM if PM
        select S3C2410_GPIO
        select S3C2440_DMA if S3C2410_DMA
        select CPU_S3C244X
        select CPU_LLSERIAL_S3C2440
        help
          Support for S3C2440 Samsung Mobile CPU based systems.
      .........................................................................................................
        select CPU_S3C2440
        select PM_H1940 if PM
        help
          Say Y here if you are using the HP iPAQ rx3715.

config ARCH_S3C2440
        bool "SMDK2440"
        select CPU_S3C2440
        select MACH_SMDK
        select S3C_DEV_USB_HOST
        help
          Say Y here if you are using the SMDK2440.

config MACH_NEXCODER_2440
        bool "NexVision NEXCODER 2440 Light Board"
        select CPU_S3C2440
        select S3C_DEV_USB_HOST
        help
          Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board


config MACH_AT2440EVB
        bool "Avantech AT2440EVB development board"
        select CPU_S3C2440
        select S3C_DEV_USB_HOST
        help
          Say Y here if you are using the AT2440EVB development board

config MACH_MINI2440
        bool "MINI2440 development board"
        select CPU_S3C2440
        select EEPROM_AT24
        select LEDS_TRIGGER_BACKLIGHT
        select SND_S3C24XX_SOC_S3C24XX_UDA134X
        help
          Say Y here to select support for the MINI2440. Is a 10cm x 10cm board
          available via various sources. It can come with a 3.5" or 7" touch LCD.

endmenu
这样就可发现由于mini2440中没有select S3C_DEV_USB_HOST这一项,故出现上面的错误。


好了,我们vim 修改添加它,保存退出。
重新make zImage,就生成了.
...................................................
  Kernel: arch/arm/boot/zImage is ready
root@yagerya-desktop:/opt/FriendlyARM/mini2440/linux-2.6.31.1# ls
arch     Documentation  init    MAINTAINERS     README          sound       [color=#66ff00]vmlinux[/color]
block    drivers        ipc     Makefile        REPORTING-BUGS  System.map  vmlinux.o
COPYING  firmware       Kbuild  mm              samples         tools
CREDITS  fs             kernel  Module.symvers  scripts         usr
crypto   include        lib     net             security        virt


[/post]
[ 此帖被yagerya在2009-11-09 12:45重新编辑 ]
这个阶段正是我事业的上升期,我怎么能走得开呢?
级别: 精灵王
UID: 3197
精华: 3
发帖: 770
金钱: 6995 两
威望: 5398 点
综合积分: 1600 分
注册时间: 2008-12-30
最后登录: 2010-12-31
1楼  发表于: 2009-11-06 22:44
同庆,顺便看看
学习,不能浮躁!
级别: 新手上路
UID: 10521
精华: 0
发帖: 6
金钱: 40 两
威望: 14 点
综合积分: 12 分
注册时间: 2009-11-06
最后登录: 2010-06-10
2楼  发表于: 2009-11-06 23:08
买男装到 佰圆精品服饰http://jzy23.taobao.com/
级别: 新手上路
UID: 2908
精华: 0
发帖: 28
金钱: 205 两
威望: 80 点
综合积分: 56 分
注册时间: 2008-12-16
最后登录: 2012-07-24
3楼  发表于: 2009-11-07 01:52
????
级别: 圣骑士
UID: 9221
精华: 0
发帖: 376
金钱: 2110 两
威望: 539 点
综合积分: 752 分
注册时间: 2009-09-22
最后登录: 2016-07-04
4楼  发表于: 2009-11-07 08:04
高人呀,写写过程吧!
一起学习,一起进步
级别: 侠客
UID: 9105
精华: 0
发帖: 95
金钱: 755 两
威望: 307 点
综合积分: 190 分
注册时间: 2009-09-17
最后登录: 2017-09-13
5楼  发表于: 2009-11-07 12:31
好了么
级别: 新手上路
UID: 10162
精华: 0
发帖: 47
金钱: 365 两
威望: 151 点
综合积分: 94 分
注册时间: 2009-10-26
最后登录: 2013-09-07
6楼  发表于: 2009-11-07 21:48
这个,好好看看
级别: 新手上路
UID: 10480
精华: 0
发帖: 13
金钱: 105 两
威望: 42 点
综合积分: 26 分
注册时间: 2009-11-05
最后登录: 2012-11-21
7楼  发表于: 2009-11-07 22:56
dddddddddddddddd
级别: 新手上路
UID: 7033
精华: 0
发帖: 18
金钱: 125 两
威望: 61 点
综合积分: 36 分
注册时间: 2009-06-29
最后登录: 2012-06-17
8楼  发表于: 2009-11-08 09:40
这贴也隐藏
级别: 新手上路
UID: 3155
精华: 0
发帖: 3
金钱: 30 两
威望: 25 点
综合积分: 6 分
注册时间: 2008-12-29
最后登录: 2010-03-15
9楼  发表于: 2009-11-08 16:04
恭喜恭喜
  • «
  • 1
  • 2
  • 3
  • »
  • Pages: 1/3     Go