打印

HelloWorld on Skyeye,新手请进!

很不错的初学例子,可惜是非操作系统下的,能否给个uclinux下的application的hello world的例子,这样会经典的很啊!
爱我别走

TOP

请问哪儿有下载呀?
发一个给我吧
beidoumxch@163.com

TOP

好贴

TOP

我安装的是cygwin,为什么不出GDB的信息,而是如下的信息,如我想在cygwin上面使用gdb那么请问如何做,谢谢

[rurality@QingYangOS /arm/src/hello_skyeye]$skyeye -e hello
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x4117d0
log_info: Error logon value 2
log_info: log is off.
log_info:log file is ./sk1.log, fd is 0x100f02b4
log_info: log start clock 0
log_info: log end clock 200000
SKYEYE: use arm7100 mmu ops
exec file "hello"'s format is elf32-little.
load section .text: addr = 0x01000000  size = 0x00000044.
load section .rodata.str1.4: addr = 0x01000044  size = 0x0000000c.
load section .data: addr = 0x01002000  size = 0x00001000.
not load section .comment: addr = 0x00000000  size = 0x00000012 .
not load section .debug_abbrev: addr = 0x00000000  size = 0x00000078 .
not load section .debug_info: addr = 0x00000000  size = 0x000000c2 .
not load section .debug_line: addr = 0x00000000  size = 0x00000075 .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0000001c .
not load section .debug_aranges: addr = 0x00000000  size = 0x00000040 .
not load section .debug_frame: addr = 0x00000000  size = 0x00000020 .
not load section .debug_str: addr = 0x00000000  size = 0x0000004d .
start addr is set to 0x01000000 by exec file.
helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld
helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld
helloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworldhelloworld
N 12 :p 1000038,i 1afffffb,R fffd0fff,100004e,1000047,6c,0,0,0,0,0,0,0,0,0,10020
00,1000010,1000040,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 13 :p 100002c,i e4d23001,R fffd0fff,100004e,1000047,6c,0,0,0,0,0,0,0,0,0,10020
00,1000010,1000034,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 14 :p 1000030,i e1520001,R fffd0fff,100004e,1000048,6c,0,0,0,0,0,0,0,0,0,10020
00,1000010,1000038,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 15 :p 1000034,i e5003fe3,R fffd0fff,100004e,1000048,6c,0,0,0,0,0,0,0,0,0,10020
00,1000010,100003c,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 16 :p 1000038,i 1afffffb,R fffd0fff,100004e,1000048,6c,0,0,0,0,0,0,0,0,0,10020
00,1000010,1000040,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 17 :p 100002c,i e4d23001,R fffd0fff,100004e,1000048,6c,0,0,0,0,0,0,0,0,0,10020
00,1000010,1000034,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 18 :p 1000030,i e1520001,R fffd0fff,100004e,1000049,6f,0,0,0,0,0,0,0,0,0,10020
00,1000010,1000038,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 19 :p 1000034,i e5003fe3,R fffd0fff,100004e,1000049,6f,0,0,0,0,0,0,0,0,0,10020
00,1000010,100003c,C d2,S 0,0,0,0,0,0,0,M 12,B 2,E 0,I 0,P 0,T 0,L 0,D 0,
N 1a :p 1000038,i 1afffffb,R fffd0fff,100004e,1000049,6f,0,0,0,0,0,0,0,0,0,10020
开源嵌入式操作系统
www.qingyangos.org

TOP

只能用arm-elf-gdb进行远程调试,或者用skyeye比较老的版本。

TOP

用arm-linux-xx3.3.2工具编译,还是出现楼上的错误:
arm-linux-ld -p -X -Thello.lds  start.o hello.o -o hello
arm-linux-ld: hello:没有足够的空间保存程序头,试用 -N 进行连接
arm-linux-ld: final link failed: 错误的值
并且 hello.lds和Start.S中的错误都已经改过来了啊.
初学者,不知道怎么回事?

TOP

你好
我使用的是1.2-RC8,结果在中途停止了,不知道是水木原因
zjz@19216811:~/SoftWare/Hello4Skyeye> skyeye hello
SKYEYE: If you have ELF kernel file, please use -e option to indicate your ELF f ormat kernel filename
SKYEYE: If you only have kernel binary image, you should put the filename of ker nel binary image in skyeye.conf file
Non-option argument hello
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x805a020
log_info: log is off.
log_info:log file is ./sk1.log, fd is 0x80b1228
log_info: log start clock 0
log_info: log end clock 200000
SKYEYE: use arm7100 mmu ops
在以后就什么也没有了,是我的安装有问题,还是其他的原因呢?
二十来岁,一人来高;啥也不会,吃饱就睡!

TOP

That is very clear, you should read the message:
SKYEYE: If you have ELF kernel file, please use -e option to indicate your ELF f ormat kernel filename
SKYEYE: If you only have kernel binary image, you should put the filename of ker nel binary image in skyeye.conf file

TOP

能说的具体点么?第一次使用Skyeye,真是不太明白
二十来岁,一人来高;啥也不会,吃饱就睡!

TOP

明白啥意思了,谢谢提示,同时感谢搂主提供一个这么好的例子,终于在Linux环境下成功运行Skyeye了
二十来岁,一人来高;啥也不会,吃饱就睡!

TOP

我也碰到了楼上的问题了,到现在也不明白为什么?

TOP

run  "skyeye -h" to see the help message

TOP

我make的时候怎么是只有下面一句:
make: nothing to be done for 'all'.
之后就没了,什么意思啊.

TOP

你先make clean一下。在运行 make

TOP

可否给我也发一份

你好,能给我也发送一份hello4skyeye吗?
d.c-1982@163.com非常感谢!

TOP