gongak47 发表于 2010-1-25 11:29:11

求助:skyeye 1.3.0下 运行u-boot不成功

环境:
ubuntu9
gcc-4.4.1
arm-elf-tools-20040427
arm-linux-tools-3.4.4
u-boot-2009.11

本人新下了skyeye 1.3.0 安装步骤如下:
sudo ./configure --target=arm-elf --prefix=/usr/local
sudo make lib
sudo make
sudo make install_lib
sudo make install
然后在/opt/skyeye/bin 下生成了skyeye程序
随后开始编译u-boot
编译过程如下:
make CROSS_COMPILE=arm-linux- at91rm9200dk_config
make CROSS_COMPILE=arm-linux-
cat skyeye_at91rm.conf
cpu:arm920t
mach: at91rm92

mem_bank: map=M, type=RW, addr=0x0, size=0x010000
mem_bank: map=M, type=RW, addr=0x20000000, size=0x01f00000
mem_bank: map=M, type=RW, addr=0x21f00000, size=0x00100000, file=./u-boot.bin, boot=yes
mem_bank: map=I, type=RW, addr=0xfffa0000, size=0x00060000
#dbct:state=on

然后运行 sudo skyeye -c skyeye_at91rm.conf
界面为:
gongak47@gongak47-desktop:~/u-boot-2009.11$ /opt/skyeye/bin/skyeye -c skyeye_at91rm.conf
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name at91rm92, mach_init addr 0x6a3c880

Loaded RAM   ./u-boot.bin
SKYEYE: use arm920t mmu ops
In SIM_start, Set PC to the address 0x21f00000

(skyeye)run
(running)

为什么程序没有跑起来那?难道是u-boot版本太高了么? 急求高人帮助
ps:刚才下了个u-boot-1.2.0问题仍然存在,run之后就没效果了。。。

[ 本帖最后由 gongak47 于 2010-1-25 11:44 编辑 ]

ksh 发表于 2010-1-27 10:38:51

我用skyeye-1.3.0测试了一下u-boot-2009.11,可以运行。命令如下:

ksh@ksh-server:~/svn/skyeye/testsuite/branches/skyeye-testsuite-1.3.0/u-boot/at91rm9200$ cat skyeye.confarch:arm
cpu:arm920t
mach: at91rm92
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=R, addr=0x00100000, size=0x00010000
mem_bank: map=M, type=RW, addr=0x20000000, size=0x02000000
mem_bank: map=I, type=RW, addr=0xfffa0000, size=0x00060000
uart:mod=term
#dbct:state=on
ksh@ksh-server:~/svn/skyeye/testsuite/branches/skyeye-testsuite-1.3.0/u-boot/at91rm9200$ /opt/skyeye/bin/skyeye -e /opt/testsuite/u-boot-2009.11/u-boot
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modificationor redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: arm                                                         
cpu info: armv4, arm920t, 41009200, ff00fff0, 2                  
In do_mach_option, mach info: name at91rm92, mach_init addr 0x7fd5f1625090

uart_mod:3, desc_in:, desc_out:, converter:
In create_uart_console
SKYEYE: use arm920t mmu ops
exec file "/opt/testsuite/u-boot-2009.11/u-boot"'s format is elf64-x86-64.
load section .text: addr = 0x21f00000size = 0x00014964.
load section .rodata: addr = 0x21f14964size = 0x00004964.
load section .data: addr = 0x21f192c8size = 0x00000c64.
load section .u_boot_cmd: addr = 0x21f19f2csize = 0x00000370.
not load section .bss: addr = 0x21f1a400size = 0x0001c410 .
not load section .debug_line: addr = 0x00000000size = 0x00006362 .
not load section .debug_info: addr = 0x00000000size = 0x000175f8 .
not load section .debug_abbrev: addr = 0x00000000size = 0x00006de8 .
not load section .debug_aranges: addr = 0x00000000size = 0x00000840 .
not load section .debug_frame: addr = 0x00000000size = 0x000031d8 .
not load section .debug_loc: addr = 0x00000000size = 0x0000ff95.
not load section .debug_pubnames: addr = 0x00000000size = 0x00002902 .
not load section .debug_str: addr = 0x00000000size = 0x00004b7c.
not load section .comment: addr = 0x00000000size = 0x0000044a .
not load section .debug_ranges: addr = 0x00000000size = 0x00000f60 .
In SIM_start, Set PC to the address 0x21f00000

(skyeye)run

###########################################################
在串口的输出如下:
Connecting to ksh-server:42934


U-Boot 2009.11 (Jan 27 2010 - 10:17:53)

DRAM:32 MB
Atmel: Flash:0 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
U-Boot> help
?       - alias for 'help'
base    - print or set address offset
bdinfo- print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
cmp   - memory compare
coninfo - print console devices and information

###################################################################
u-boot编译命令如下:

ksh@ksh-server:/opt/testsuite/u-boot-2009.11$ make ARCH=arm at91rm9200dk_config
ksh@ksh-server:/opt/testsuite/u-boot-2009.11$ make ARCH=arm CROSS_COMPILE=arm-linux-
####################################################

另外一个技巧就是:你运行at91rm9200的u-boot,可以先参考我们测试套件中的skyeye.conf和运行的方法比较好一些,因为测试套件中的测试用例都是我们在发布的时候经过测试的,比较可靠。
-------------
Thanks
MK

[ 本帖最后由 ksh 于 2010-1-27 10:44 编辑 ]

lingyb 发表于 2010-2-8 16:12:24

为何我的情况运行到下面就停止了呢,同时还出现一个标题为“uart_instance”,内容为
“Connecting to robert:38905” :
# skyeye -e ../u-boot
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name at91rm92, mach_init addr 0xb6c21c40

uart_mod:3, desc_in:, desc_out:, converter:
In create_uart_console

lingyb 发表于 2010-2-8 16:18:29

为何我的情况运行到下面就停止了呢,同时还出现一个标题为“uart_instance”,内容为
“Connecting to robert:38905”的窗口 :
# skyeye -e ../u-boot
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name at91rm92, mach_init addr 0xb6c21c40

uart_mod:3, desc_in:, desc_out:, converter:
In create_uart_console<=============== skyeye就停在这里了

--------------------------------------------------------------------------------------------------------
我的skyeye和u-boot编译方法和ksh是一样的,不同的是
我用u-boot-2009.08 ,gcc 为
# /opt/eldk4.2/usr/bin/arm-linux-gcc -v
Reading specs from /opt/eldk4.2/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/specs
Target: arm-linux-gnueabi
Configured with: /opt/eldk/build/arm-2008-11-24/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/gcc-4.2.2/configure --target=arm-linux-gnueabi --host=i686-host_pc-linux-gnu --prefix=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi --disable-hosted-libstdcxx --with-headers=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/arm-linux-gnueabi/include --with-local-prefix=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/arm-linux-gnueabi --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++,java --enable-shared --enable-c99 --enable-long-long --without-x
Thread model: posix
gcc version 4.2.2

我编译的是skyeye-1.3.0_rc1,过程如下:./configure; make lib; make; make install ;make install_lib

asiavikin 发表于 2010-2-14 14:14:46

同问uboot-1.2.0在 skyeye1.3.0的启动问题

我出现的情况也和楼上的一样:我使用的是skyeye_testsuite_1.3.0里面带的uboot-1.2.0,smdk2410的。就是想试验一下testsuite里的uboot的运行情况。结果就死在uart_console上了。
# skyeye
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
In do_mach_option, mach info: name s3c2410x, mach_init addr 0x145640

ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1
nandflash: dump ./nand.dump
file size:69206016
uart_mod:3, desc_in:, desc_out:, converter:
In create_uart_console
就停在这里不动了。

asiavikin 发表于 2010-2-14 17:23:33

我用skyeye1.2.4就没有问题

而且不光是testsuite里的uboot-1.2.0,还有自己编译的uboot1.1.6:都能起来。

@localhost u-boot-1.2.0]$ skyeye -e u-boot
big_endian is false.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x806b170
ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1
tapif_init:open: Permission denied
-----------------------------------------------------------
NOTICE: you should be root at first !!!
NOTICE: you should inmod linux kernel net driver tun.o!!!
NOTICE: if you don't make device node, you should do commands:
NOTICE:    mkdir /dev/net; mknod /dev/net/tun c 10 200
NOTICE: now the net simulation function can not support!!!
NOTICE: Please read SkyEye.README and try again!!!
-----------------------------------------------------------
failed to setup_module (name:net, type:cs8900a)
nandflash: dump ./nand.dump
file size:69206016
uart_mod:0, desc_in:, desc_out:, converter:
dbct info: turn on dbct!
SKYEYE: use arm920t mmu ops
Loaded RAM   ./u-boot
dbct translate block use memory 0x03ff82e0 bytes.
exec file "u-boot"'s format is elf32-little.
load section .text: addr = 0x33f80000size = 0x0001d204.
load section .glue_7: addr = 0x33f9d204size = 0x00000000.
load section .glue_7t: addr = 0x33f9d204size = 0x00000000.
load section .rodata: addr = 0x33f9d204size = 0x000009e4.
load section .rodata.str1.4: addr = 0x33f9dbe8size = 0x00006173.
load section .data: addr = 0x33fa3d5csize = 0x00001554.
load section .got.plt: addr = 0x33fa52b0size = 0x0000000c.
load section .got: addr = 0x33fa52bcsize = 0x00000004.
load section .u_boot_cmd: addr = 0x33fa52c0size = 0x00000510.
not load section .bss: addr = 0x33fa57d0size = 0x000057a8 .
not load section .debug_line: addr = 0x00000000size = 0x000090d4 .
not load section .debug_info: addr = 0x00000000size = 0x00020daf .
not load section .debug_abbrev: addr = 0x00000000size = 0x0000703e .
not load section .debug_aranges: addr = 0x00000000size = 0x000009c0 .
not load section .debug_frame: addr = 0x00000000size = 0x00003620 .
not load section .debug_pubnames: addr = 0x00000000size = 0x000023f6 .
not load section .debug_ranges: addr = 0x00000000size = 0x00000b48 .
not load section .debug_str: addr = 0x00000000size = 0x0000594f .
not load section .comment: addr = 0x00000000size = 0x00000534 .
call ARMul_InitSymTable,kernel filename is u-boot.
start addr is set to 0x33f80000 by exec file.
ERROR: s3c2410x_io_write_word(0x4c000000) = 0x00ffffff
ERROR: s3c2410x_io_write_word(0x4c000008) = 0x00028012
ERROR: s3c2410x_io_write_word(0x4c000000) = 0x00ffffff
ERROR: s3c2410x_io_write_word(0x4c000008) = 0x00028012


U-Boot 1.1.6 (Feb 14 2010 - 13:53:40)

DRAM:64 MB
Flash:1 MB
NAND:64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:0
Uboot116>
Uboot116>
Uboot116>
页: [1]
查看完整版本: 求助:skyeye 1.3.0下 运行u-boot不成功