Chinaunix

标题: 为什么运行内核后显示Can't execute Linux - invalid entry address [打印本页]

作者: tangpujun    时间: 2009-02-17 13:04
标题: 为什么运行内核后显示Can't execute Linux - invalid entry address
为什么会出现下面显示:
RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0x60040000-0x61fc0000: ..........................................
................................................................................
....
... Erase from 0x61fc0000-0x62000000: .
... Program from 0x03fc0000-0x04000000 at 0x61fc0000: .
RedBoot> fis create -b 0x1000000 -l 0x2352cf ramdisk
... Erase from 0x60040000-0x60280000: .........
... Program from 0x01000000-0x012352cf at 0x60040000: .........
... Erase from 0x61fc0000-0x62000000: .
... Program from 0x03fc0000-0x04000000 at 0x61fc0000: .
RedBoot>  fis create -b 0x218000 -l 0x103b8 zImage
... Erase from 0x60280000-0x602c0000: .
... Program from 0x00218000-0x002283b8 at 0x60280000: .
... Erase from 0x61fc0000-0x62000000: .
... Program from 0x03fc0000-0x04000000 at 0x61fc0000: .
RedBoot> exec -r 0x800000 -s 0x600000
Can't execute Linux - invalid entry address
RedBoot>
:em12: 麻烦大家啊,我这里地址该怎么设置啊
作者: tangpujun    时间: 2009-02-17 13:06
我ramdisk大小是29316K,而zImage 为1940K
作者: tangpujun    时间: 2009-02-17 13:08
若我不写入flash,写到ram中,则显示如下信息:
+Ethernet eth0: MAC address 0e:00:00:ea:18:f0
IP: 192.168.1.2/255.255.255.0, Gateway: 192.168.1.90
Default server: 192.168.1.90

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version UNKNOWN - built 09:25:53, Jul 23 2007

Platform: Cirrus Logic EDB9312 Board (ARM920T) Rev A
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x04000000, [0x000430c0-0x03fbd000] available
FLASH: 0x60000000 - 0x62000000, 128 blocks of 0x00040000 bytes each.
RedBoot> load -r -v -b 0x800000 ramdisk
Using default protocol (TFTP)
|
Raw file loaded 0x00800000-0x024a0fff, assumed entry at 0x00800000
RedBoot> load -r -v -b 0x80000 zImage
Using default protocol (TFTP)
/
Raw file loaded 0x00080000-0x00264cfb, assumed entry at 0x00080000
RedBoot> exec -r 0x800000 -s 0xa00000
Using base address 0x00080000 and length 0x001e4cfc
Uncompressing Linux.............................................................
................................................................. done, booting
the kernel.
鍻?


























???孺1C?緧彏铞o圝JJJ嚏

















































(鬓?舞滗滗滗溴O滗O滗滗滗O滗OO滗滗滗滗滗滗滗滗滗
滗滗滗O溴O滗滗滗滗滗滗滗O滗滗滗O滗滗滗OO滗滗O滗
滗滗滗滗滗O滗滗滗滗OO滗OO溴O滗滗滗O滗O滗滗滗O滗滗
滗滗滗O滗滗滗O滗滗滗滗O滗O滗滗O滗滗O滗O邃滗滗O滗O
滗O滗滗邃OO邃O滗滗邃滗邃滗滗滗滗O滗滗滗O滗O滗滗O
溴OO滗滗滗滗滗滗滗滗滗滗O滗滗滗OO邃滗邃滗OO滗O滗OO
滗滗滗滗O滗滗滗滗O滗滗滗O滗滗滗滗O滗滗滗O滗滗
滗滗滗O邃O滗滗O滗滗滗滗滗O滗OO滗O滗滗滗O滗滗滗滗O
滗O滗滗滗滗OO滗滗O滗滗O邃O邃O邃滗O滗滗滗滗滗OO邃滗O
滗滗滗OO滗O滗滗O滗O滗滗O滗OO邃滗O滗滗滗滗O滗O滗滗滗
滗滗滗O滗O滗O滗滗滗滗OO滗滗OO滗滗滗O滗邃滗O滗滗O滗
滗O滗滗滗滗滗O滗滗O滗滗O滗O滗滗O邃O滗滗OO滗滗滗滗O
滗O滗滗O滗滗滗OO滗滗OO滗滗滗滗O滗滗滗滗OO邋OO滗滗滗
滗滗滗滗滗滗滗滗滗滗滗滗滗滗OO邃OO滗滗滗滗滗
滗O滗滗滗滗O滗滗O滗OO滗滗O滗滗滗滗OO滗滗滗滗滗滗
滗滗O滗O滗滗滗滗滗滗滗滗滗滗滗O溴O滗滗OO滗滗O滗
滗滗滗滗滗O滗滗滗滗滗O溴O滗OO滗滗O滗滗滗O滗滗滗
滗O滗滗滗O邃滗滗滗滗滗滗溴滗O滗O滗滗滗OO滗O滗滗
滗滗滗滗O滗滗O邃滗滗滗滗O滗O滗滗O滗滗滗溴滗溴
滗O滗滗滗O滗滗滗O滗O滗滗O滗O滗滗溴O溴O滗滗滗滗O滗
滗O滗滗O滗滗滗滗滗O滗O滗滗O滗滗O滗O邃滗邃溴O滗滗OO
滗滗滗滗O滗O滗溴滗滗滗滗滗O滗滗滗滗滗O滗滗OO滗O
滗滗滗滗OO滗滗O滗O滗滗滗OO滗滗滗O滗O溴O滗滗滗O滗溴O
浇9鴲?灊∪?+Ethernet eth0: MAC address 0e:00:00:ea:18:f0
IP: 192.168.1.2/255.255.255.0, Gateway: 192.168.1.90
Default server: 192.168.1.90

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version UNKNOWN - built 09:25:53, Jul 23 2007

Platform: Cirrus Logic EDB9312 Board (ARM920T) Rev A
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x04000000, [0x000430c0-0x03fbd000] available
FLASH: 0x60000000 - 0x62000000, 128 blocks of 0x00040000 bytes each.
RedBoot> load -r -v -b 0x800000 ramdisk
Using default protocol (TFTP)
|
Raw file loaded 0x00800000-0x024a0fff, assumed entry at 0x00800000
RedBoot> load -r -v -b 0x80000 zImage
Using default protocol (TFTP)
/
Raw file loaded 0x00080000-0x00264cfb, assumed entry at 0x00080000
RedBoot> exec -r 0x800000 -s 0x600000
Using base address 0x00080000 and length 0x001e4cfc
Uncompressing Linux.............................................................
................................................................. done, booting
the kernel.
o让潫鲦鲛9?
作者: T-bagwell    时间: 2009-02-17 18:10
kernel编译的有问题?
作者: tangpujun    时间: 2009-02-17 18:41
不是编译有问题,我那是专门网站下的针对该开发板的内核
作者: bamv2005    时间: 2009-02-18 20:36
是不是串口或波特率问题?
1, 如果"booting the kernel"后面就没东西了可能是串口选的不会. 内核自解压时是直接写的uart寄存器, 所以能显示.
2, 如果"booting the kernel"后面都是乱码, 怀疑是PC机串口终端波特率不正确, 如果bootloader串口波特率比内核串口波特率低, 就会出现乱码. 如果是波特率问题, 内核启动完乱码就不出了, 这是回车应该还是出乱码. 可以在内核启动时把波特率改大些, 57600, 115200等.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2