Chinaunix首页 | 论坛 | 博客
  • 博客访问: 918215
  • 博文数量: 132
  • 博客积分: 9976
  • 博客等级: 中将
  • 技术积分: 1781
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-30 20:40
文章分类

全部博文(132)

文章存档

2013年(1)

2011年(1)

2010年(15)

2009年(77)

2008年(36)

2007年(2)

我的朋友

分类: LINUX

2010-03-22 15:32:12

rm -f lib/lib.a; arm_v5t_le-ar rcs lib/lib.a lib/argv_split.o lib/cmdline.o lib/ctype.o lib/dec_and_lock.o lib/decompress.o lib/decompress_inflate.o lib/dump_stack.o lib/extable.o lib/flex_array.o lib/idr.o lib/int_sqrt.o lib/ioremap.o lib/irq_regs.o lib/is_single_threaded.o lib/klist.o lib/kobject.o lib/kobject_uevent.o lib/kref.o lib/plist.o lib/prio_heap.o lib/prio_tree.o lib/proportions.o lib/radix-tree.o lib/ratelimit.o lib/rbtree.o lib/reciprocal_div.o lib/rwsem-spinlock.o lib/sha1.o lib/show_mem.o lib/string.o lib/vsprintf.o
  arm_v5t_le-ld -EL  -r -o vmlinux.o arch/arm/kernel/head.o arch/arm/kernel/init_task.o  init/built-in.o --start-group  usr/built-in.o  arch/arm/kernel/built-in.o  arch/arm/mm/built-in.o  arch/arm/common/built-in.o  arch/arm/mach-davinci/built-in.o  arch/arm/nwfpe/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o  block/built-in.o  arch/arm/lib/lib.a  lib/lib.a  arch/arm/lib/built-in.o  lib/built-in.o  drivers/built-in.o  sound/built-in.o  firmware/built-in.o  net/built-in.o --end-group
make -f /home/cjash/learn/kernel/tmp/linux-2.6.32.7/scripts/Makefile.modpost vmlinux.o
  scripts/mod/modpost -m  -o /home/cjash/learn/kernel/tmp/linux-2.6.32.7/Module.symvers    -S  -c vmlinux.o
echo 'cmd_vmlinux.o := arm_v5t_le-ld -EL  -r -o vmlinux.o arch/arm/kernel/head.o arch/arm/kernel/init_task.o  init/built-in.o --start-group  usr/built-in.o  arch/arm/kernel/built-in.o  arch/arm/mm/built-in.o  arch/arm/common/built-in.o  arch/arm/mach-davinci/built-in.o  arch/arm/nwfpe/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o  block/built-in.o  arch/arm/lib/lib.a  lib/lib.a  arch/arm/lib/built-in.o  lib/built-in.o  drivers/built-in.o  sound/built-in.o  firmware/built-in.o  net/built-in.o --end-group ' > ./.vmlinux.o.cmd
  set -e; if [ ! -r .version ]; then rm -f .version; echo 1 >.version; else mv .version .old_version; expr 0$(cat .old_version) + 1 >.version; fi; make -f scripts/Makefile.build obj=init
/bin/sh /home/cjash/learn/kernel/tmp/linux-2.6.32.7/scripts/mkcompile_h include/linux/compile.h \
"arm" "" "y" "arm_v5t_le-gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -marm -funwind-tables  -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi  -msoft-float -Uarm   -fomit-frame-pointer -Wdeclaration-after-statement    "
  UPD     include/linux/compile.h
  arm_v5t_le-gcc -Wp,-MD,init/.version.o.d  -nostdinc -isystem /home/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/include -Iinclude  -I/home/cjash/learn/kernel/tmp/linux-2.6.32.7/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-davinci/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -marm -funwind-tables -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -fomit-frame-pointer -Wdeclaration-after-statement   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(version)"  -D"KBUILD_MODNAME=KBUILD_STR(version)"  -c -o init/.tmp_version.o init/version.c
   arm_v5t_le-ld -EL    -r -o init/built-in.o init/main.o init/version.o init/mounts.o init/initramfs.o init/calibrate.o
  arm_v5t_le-ld -EL  -p --no-undefined -X  -o .tmp_vmlinux1 -T arch/arm/kernel/vmlinux.lds arch/arm/kernel/head.o arch/arm/kernel/init_task.o  init/built-in.o --start-group  usr/built-in.o  arch/arm/kernel/built-in.o  arch/arm/mm/built-in.o  arch/arm/common/built-in.o  arch/arm/mach-davinci/built-in.o  arch/arm/nwfpe/built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o  crypto/built-in.o  block/built-in.o  arch/arm/lib/lib.a  lib/lib.a  arch/arm/lib/built-in.o  lib/built-in.o  drivers/built-in.o  sound/built-in.o  firmware/built-in.o  net/built-in.o --end-group
arm_v5t_le-ld: no machine record defined
arm_v5t_le-ld: no machine record defined
arch/arm/mach-davinci/built-in.o(.text+0x260): In function `davinci_watchdog_reset':
mux.c: undefined reference to `davinci_wdt_device'

答案:
==============================================================
from:

problem crosscompiling 2.6.17 for arm ep3xx

View: New views
5 Messages — Rating Filter:    

Click to flag
 this post

by tat Aug 19, 2006; 05:57am :: Rate this Message: - Use ratings to moderate ()

| | | |

I'm trying to compile a 2.6.17 kernel image for a arm ts7250 ( ep3xx) board.

I get following errror at the end of the build from the linker

  LD      init/built-in.o
  LD      .tmp_vmlinux1
armv4t-crosstool-linux-gnueabi-ld: no machine record defined
make: *** [.tmp_vmlinux1] Error 1


Any idea what this error means ? Or how to solve it...

Here is what i use to compile it

gcc      g++    libc    gdb
4.1.1 4.1.1 2.4 6.4
  __          __
_/  |______ _/  |_
\   __\__  \\   __\
 |  |  / __ \|  |
 |__| (____  /__|
           \/


--
For unsubscribe information see


Click to flag this post

by Lennert Buytenhek Aug 19, 2006; 06:31am :: Rate this Message: - Use ratings to moderate ()

| | | |

On Fri, Aug 18, 2006 at 01:57:08PM -0700, wrote:

> I'm trying to compile a 2.6.17 kernel image for a arm ts7250 ( ep3xx) board.
>
> I get following errror at the end of the build from the linker
>
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> armv4t-crosstool-linux-gnueabi-ld: no machine record defined
> make: *** [.tmp_vmlinux1] Error 1
>
> Any idea what this error means ? Or how to solve it...
... []

You didn't turn on CONFIG_MACH_TS72XX, most likely.

Please try again using ep93xx_defconfig.


cheers,
Lennert

--
For unsubscribe information see


Click to flag this post

by tat Aug 19, 2006; 08:24am :: Rate this Message: - Use ratings to moderate ()

| | | |




> On Fri, Aug 18, 2006 at 01:57:08PM -0700, wrote:
>
>> I'm trying to compile a 2.6.17 kernel image for a arm ts7250 ( ep3xx)
>> board.
>>
>> I get following errror at the end of the build from the linker
>>
>>   LD      init/built-in.o
>>   LD      .tmp_vmlinux1
>> armv4t-crosstool-linux-gnueabi-ld: no machine record defined
>> make: *** [.tmp_vmlinux1] Error 1
>>
>> Any idea what this error means ? Or how to solve it...
>
> You didn't turn on CONFIG_MACH_TS72XX, most likely.
>
... []
Thanks, thats what it was, but now i get

  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/arm/mach-ep93xx/built-in.o: In function
`ts72xx_init_machine':ts72xx.c:(.init.text+0x1b4): undefined reference to
`physmap_configure'
make: *** [.tmp_vmlinux1] Error 1

Sorry for bodering, but i have absolutleie no clue what that means and
what i'm missing here.


> Please try again using ep93xx_defconfig.
I don't really underastand ehat you are refering to, is this a .config
option ??



thanks tat
>
>
> cheers,
> Lennert
>


  __          __
_/  |______ _/  |_
\   __\__  \\   __\
 |  |  / __ \|  |
 |__| (____  /__|
           \/


================================================================
from:


标题: S3c2410 Linux2.6编译内核,"no machine record defined"出现错误!


make menuconfig时选择了最少的选项,但是编译到最后都是出现"no machine record defined",不知道该如何解决,是什么原因? 谢谢!

我也在往2410板上移植2.6内核
在arch/arm/configs/下面有个默认的配置文件smdk2410_defconfig, 这个肯定能编译过去.
另外你用的是什么版本的编译器, 2.6内核好像得用3.4.1的GCC才能编译通过.

我编译能通过, 但是在MTD驱动上遇到问题...


现在编译可以通过了,是没有选上一个选项。这么多编译的选项,选择的时候确实蛮麻烦的


今遇同问题,发现此帖,绝倒
System Type-->S3C24XX Implementations 中选择需要的型号,似乎就OK了

================================================================
from: http://blog.chinaunix.net/u1/43047/showart_1117116.html
[转]no machine record defined


 

no machine record defined

編核心時,遇到下面這個問題

arm-9tdmi-linux-gnu-ld: no machine record defined


在 google 查到的都是說將arch/arm/kernel/vmlinux.lds的最後兩行(如下),給註解起來,但都沒說是為了什麼
ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")


後來自 己到 arch/arm/kernel/vmlinux.lds 裡看的時候,才發現別有洞天。原來那兩行的上頭寫著
/*
* These must never be empty
* If you have to comment these two assert statements out, your
* binutils is too old (for other reasons as well)
*/
ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")


查 了一下所使用的 binutils 版本是 2.15,與 HOST 上的 2.17 比起來確實有點舊了。
所以暫時方向先重新弄一版 crosstool 吧 :)

 原文地址 http://gaznjang.blogspot.com/2008/01/no-machine-record-defined.html

================================================================
我修改
System Type -->
    TI DaVinci Implementations  ---> 
      相关的选项, 问题解决。



================================================================



阅读(2496) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~