LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 8896|回复: 15

在debian下安装和使用skyeye的过程

[复制链接]
发表于 2005-5-31 00:31:45 | 显示全部楼层 |阅读模式
在debian下安装和使用skyeye的过程
参考以前的在debian下安装skyeye的帖子实验了一个上午,最后以失败而告终,于是找到了一个简单的方法在debian下安装和使用skyeye,那就是安装skyeye-insight-0.9.4-binary-in-debian3.tar.bz2
http://gro.clinux.org/frs/downlo ... -in-debian3.tar.bz2
详细过程如下:
1,下载skyeye-insight-0.9.4-binary-in-debian3.tar.bz2
http://gro.clinux.org/frs/downlo ... -in-debian3.tar.bz2

2,解压缩到/usr/local

  1. #cp skyeye-insight-0.9.4-binary-in-debian3.tar.bz2 /usr/local
  2. #tar xvfj skyeye-insight-0.9.4-binary-in-debian3.tar.bz2
复制代码

这时在/usr/local下产生一个skyeye-insighe的文件夹,里面的内容为:

  1. #cd skyeye-insighe
  2. #ls
  3. bin  include  info  lib  man  share
复制代码

将skyeye添加到PATH,方法:

  1. #echo "export PATH=$PATH:/usr/local/skyeye-insight/bin">>"~/.bashrc"
  2. #source ~/.bashrc
复制代码

这个时候,运行skyeye将会出现:

  1. #skyeye
  2. ***********************************************************************
  3. ****                                                               ****
  4. ****   SkyEye  Simulator Ver 0.9.2 with  GDB/Insight 5.3 Interface ****
  5. ****                                                               ****
  6. ***********************************************************************
  7. GNU gdb 5.3
  8. Copyright 2002 Free Software Foundation, Inc.
  9. GDB is free software, covered by the GNU General Public License, and you are
  10. welcome to change it and/or distribute copies of it under certain conditions.
  11. Type "show copying" to see the conditions.
  12. There is absolutely no warranty for GDB.  Type "show warranty" for details.
  13. This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
  14. (SkyEye)
复制代码

利用这个在debian下使用skyeye实在是再简单不过了.....下面实验下是否可以使用^_^

3,根据renbagshoes兄弟置顶的帖子,安装完skyeye后应该安装arm-elf交叉编译器,首先下载arm-elf-tools-20030314.sh
ftp://166.111.68.183/pub/embed/uclinux/soft/tools/arm

ftp://166.111.8.229/OS/Embeded
然后:

  1. #chmod a+x arm-elf-tools-20030314.sh
  2. #./arm-elf-tools-20030314.sh
复制代码

实验一下(通过bash的tab补全功能):

  1. #arm-elf-
  2. arm-elf-addr2line   arm-elf-gasp        arm-elf-protoize
  3. arm-elf-ar          arm-elf-gcc         arm-elf-ranlib
  4. arm-elf-as          arm-elf-gdb         arm-elf-readelf
  5. arm-elf-c++         arm-elf-ld          arm-elf-run
  6. arm-elf-c++filt     arm-elf-ld.real     arm-elf-size
  7. arm-elf-elf2flt     arm-elf-nm          arm-elf-strings
  8. arm-elf-flthdr      arm-elf-objcopy     arm-elf-strip
  9. arm-elf-g++         arm-elf-objdump     arm-elf-unprotoize
  10. #arm-elf-
复制代码


4,测试你的arm-elf-gcc编译器

先写一个小程序hello.c
  1. int main(void)
  2. {
  3.     int i;

  4.     for(i = 0; i < 6; i++){

  5.         printf("i = %d  ",i);

  6.         printf("Hello, embedded linux!\n");
  7.     }

  8.     return 0;
  9. }
复制代码

然后执行:

  1. #arm-elf-gcc -Wl,-elf2flt -o hello hello.c
复制代码

-elf2flt参数是将elf文件格式转为flat文件格式,这个工具是在你安装交叉编译器产生的。

  1. #ls
  2. hello  hello.c  hello.gdb
  3. #file hello
  4. hello: BFLT executable - version 4 ram
复制代码

你会发现,它是BFLT(binary FLAT),你目标平台所支持的文件格式。

5,执行你的hello程序
这里,我们将借助genromfs这个小工具来完成测试,这个工具就是你在安装交叉编译器时产生的,你可以直接使用它。

http://gro.clinux.org/frs/downlo ... utils-1.2.0.tar.bz2
下载skyeye-binary-testutils-1.2.0.tar.bz2
然后:

  1. #tar xvfj skyeye-binary-testutils-1.2.0.tar.bz2
  2. #cd skyeye-binary-testutils-1.2.0/at91x40/uclinux2
  3. #mkdir romfs
  4. #mkdir /mnt/tmp
  5. #mount -o loop boot.rom /mnt/tmp
  6. #cp -r /mnt/tmp/* romfs
  7. #cd romfs
  8. #ls
  9. bin  dev  etc  home  lib  mnt  proc  sbin  tmp  usr  var
复制代码

另外,把你编译好的可执行程序拷贝到/romfs/bin目录里,这里就是hello了!

  1. #cp ~/hello ~/skyeye-binary-testutils-1.2.0/at91x40/uclinux2/romfs/bin
复制代码

然后

  1. #cd ~/skyeye-binary-testutils-1.2.0/at91x40/uclinux2/
  2. #ls
  3. boot.rom  linux  readme  romfs  skyeye.conf
复制代码

确保在当前文件夹下有skyeye.conf,然后

  1. [root]@[/usr/local/skyeye-binary-testutils-1.2.0/at91x40/uclinux2]#skyeye linux
  2. ***********************************************************************
  3. ****                                                               ****
  4. ****   SkyEye  Simulator Ver 0.9.2 with  GDB/Insight 5.3 Interface ****
  5. ****                                                               ****
  6. ***********************************************************************
  7. GNU gdb 5.3
  8. Copyright 2002 Free Software Foundation, Inc.
  9. GDB is free software, covered by the GNU General Public License, and you are
  10. welcome to change it and/or distribute copies of it under certain conditions.
  11. Type "show copying" to see the conditions.
  12. There is absolutely no warranty for GDB.  Type "show warranty" for details.
  13. This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
  14. (no debugging symbols found)...
  15. (SkyEye) target sim
  16. cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
  17. mach info: name at91, mach_init addr 0x8184ee0
  18. nic[0] info: state=1, ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
  19. log_info: log is off.
  20. log_info:log file is /tmp/test.log, fd is 0x8491710
  21. log_info: log start clock 3200000
  22. log_info: log end clock 3330000
  23. nic_init_begin
  24. tapif_init begin
  25. tapif_init: fd -1
  26. tapif_init:open: No such file or directory
  27. -----------------------------------------------------------
  28. NOTICE: you should be root at first !!!
  29. NOTICE: you should inmod linux kernel net driver tun.o!!!
  30. NOTICE: if you don't make device node, you should do commands:
  31. NOTICE:    mkdir /dev/net; mknod /dev/net/tun c 10 200
  32. NOTICE: now the net simulation function can not support!!!
  33. NOTICE: Please read SkyEye.README and try again!!!
  34. -----------------------------------------------------------
复制代码

这时,根据它的错误提示,继续:

  1. [root]@[/usr/local/skyeye-binary-testutils-1.2.0/at91x40/uclinux2]#mkdir /dev/net
  2. [root]@[/usr/local/skyeye-binary-testutils-1.2.0/at91x40/uclinux2]#mknod /dev/net/tun c 10 200
  3. [root]@[/usr/local/skyeye-binary-testutils-1.2.0/at91x40/uclinux2]#skyeye linux
  4. ***********************************************************************
  5. ****                                                               ****
  6. ****   SkyEye  Simulator Ver 0.9.2 with  GDB/Insight 5.3 Interface ****
  7. ****                                                               ****
  8. ***********************************************************************
  9. GNU gdb 5.3
  10. Copyright 2002 Free Software Foundation, Inc.
  11. GDB is free software, covered by the GNU General Public License, and you are
  12. welcome to change it and/or distribute copies of it under certain conditions.
  13. Type "show copying" to see the conditions.
  14. There is absolutely no warranty for GDB.  Type "show warranty" for details.
  15. This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
  16. (no debugging symbols found)...
  17. (SkyEye) target sim
  18. cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
  19. mach info: name at91, mach_init addr 0x8184ee0
  20. nic[0] info: state=1, ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
  21. log_info: log is off.
  22. log_info:log file is /tmp/test.log, fd is 0x8491710
  23. log_info: log start clock 3200000
  24. log_info: log end clock 3330000
  25. nic_init_begin
  26. tapif_init begin
  27. tapif_init: fd 7
  28. tapif_init: system("ifconfig tap0 inet 10.0.0.1");
  29. tapif_init end
  30. nic_init_end
  31. SKYEYE: use arm7100 mmu ops
  32. Loaded ROM   ./boot.rom
  33. Connected to the simulator.
  34. (SkyEye) load
  35. Loading section .init, size 0xa000 vma 0x1000000
  36. Loading section .text, size 0xd0480 vma 0x100a000
  37. Loading section .data, size 0x9154 vma 0x10dc000
  38. Start address 0x1000000
  39. Transfer rate: 7450272 bits in <1 sec.
  40. (SkyEye) run
  41. Starting program: /usr/local/skyeye-binary-testutils-1.2.0/at91x40/uclinux2/linux
  42. Linux version 2.4.20-uc0 (chy@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #7 五 8月 1 19:43:07 CST 2003
  43. Processor: Atmel AT91M40xxx revision 0
  44. Architecture: EB01
  45. On node 0 totalpages: 1024
  46. zone(0): 0 pages.
  47. zone(1): 1024 pages.
  48. zone(2): 0 pages.
  49. Kernel command line: root=/dev/rom0
  50. Calibrating delay loop... 12.97 BogoMIPS
  51. Memory: 4MB = 4MB total
  52. Memory: 2984KB available (833K code, 181K data, 40K init)
  53. Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
  54. Inode cache hash table entries: 512 (order: 0, 4096 bytes)
  55. Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
  56. Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
  57. Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
  58. POSIX conformance testing by UNIFIX
  59. Linux NET4.0 for Linux 2.4
  60. Based upon Swansea University Computer Society NET3.039
  61. Initializing RT netlink socket
  62. Starting kswapd
  63. Atmel USART driver version 0.99
  64. ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
  65. ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
  66. Blkmem copyright 1998,1999 D. Jeff Dionne
  67. Blkmem copyright 1998 Kenneth Albanowski
  68. Blkmem 1 disk images:
  69. 0: 1400000-157D3FF [VIRTUAL 1400000-157D3FF] (RO)
  70. RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
  71. SkyEye NE2k Ethernet driver version 0.2 (2003-04-27)
  72. sene2k dev name: eth0: <6>NET4: Linux TCP/IP 1.0 for NET4.0
  73. IP Protocols: ICMP, UDP, TCP
  74. IP: routing cache hash table of 512 buckets, 4Kbytes
  75. TCP: Hash tables configured (established 512 bind 512)
  76. NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
  77. sys_mount:dev_name /dev/root,dir_name /root, type ext2, flag 0x8001, data 0
  78. sys_mount:1 data_page 1122000, type_page 113bf74, dev_page 0, dir_page 8001
  79. sys_mount:2 data_page 0, type_page 117f000, dev_page 117d000, dir_page 117e000
  80. sys_mount:3 data_page 0, type_page 117f000, dev_page 117d000, dir_page 117e000
  81. sys_mount:4 data_page 0, type_page 117f000, dev_page 117d000, dir_page 117e000
  82. sys_mount:dev_name /dev/root,dir_name /root, type romfs, flag 0x8001, data 0
  83. sys_mount:1 data_page 0, type_page 117f000, dev_page 117d000, dir_page 8001
  84. sys_mount:2 data_page 0, type_page 117f000, dev_page 117d000, dir_page 117e000
  85. sys_mount:3 data_page 0, type_page 117f000, dev_page 117d000, dir_page 117e000
  86. sys_mount:4 data_page 0, type_page 117f000, dev_page 117d000, dir_page 117e000
  87. VFS: Mounted root (romfs filesystem) readonly.
  88. sys_mount:dev_name .,dir_name /, type <NULL>, flag 0x2000, data 0
  89. sys_mount:1 data_page 111c120, type_page 0, dev_page 10e5d00, dir_page 10e5174
  90. sys_mount:2 data_page 0, type_page 0, dev_page 117f000, dir_page 1122000
  91. sys_mount:3 data_page 0, type_page 0, dev_page 117f000, dir_page 1122000
  92. sys_mount:4 data_page 0, type_page 0, dev_page 117f000, dir_page 1122000
  93. Shell invoked to run file: /etc/rc
  94. Command: hostname GDB-ARMulator
  95. Command: /bin/expand /etc/ramfs.img /dev/ram0
  96. Command: mount -t proc proc /proc
  97. sys_mount:dev_name /proc,dir_name /proc, type proc, flag 0xc0ed0000, data 11d2008
  98. sys_mount:1 data_page 1000, type_page 1002, dev_page 118e008, dir_page c0ed0000sys_mount:2 data_page 118b000, type_page 118d000, dev_page 118c000, dir_page 1122000
  99. sys_mount:3 data_page 118b000, type_page 118d000, dev_page 118c000, dir_page 1122000
  100. sys_mount:4 data_page 118b000, type_page 118d000, dev_page 118c000, dir_page 1122000
  101. mount: /etc/mtab: Read-only file system
  102. Command: mount -t ext2 /dev/ram0 /var
  103. sys_mount:dev_name /dev/ram0,dir_name /var, type ext2, flag 0xc0ed0000, data 11d2008
  104. sys_mount:1 data_page 111c260, type_page 119fe40, dev_page 0, dir_page c0ed0000sys_mount:2 data_page 1189000, type_page 118b000, dev_page 118a000, dir_page 1122000
  105. sys_mount:3 data_page 1189000, type_page 118b000, dev_page 118a000, dir_page 1122000
  106. sys_mount:4 data_page 1189000, type_page 118b000, dev_page 118a000, dir_page 1122000
  107. mount: /etc/mtab: Read-only file system
  108. Command: mkdir /var/tmp
  109. Command: mkdir /var/log
  110. Command: mkdir /var/run
  111. Command: mkdir /var/lock
  112. Command: cat /etc/motd
  113. Welcome to
  114.           ____ _  _
  115.          /  __| ||_|
  116.     _   _| |  | | _ ____  _   _  _  _
  117.    | | | | |  | || |  _ \| | | |\ \/ /
  118.    | |_| | |__| || | | | | |_| |/    \
  119.    |  ___\____|_||_|_| |_|\____|\_/\_/
  120.    | |
  121.    |_|

  122. GDB/ARMulator support by <davidm@snapgear.com>
  123. For further information check:
  124. http://www.uclinux.org/

  125. Command: /bin/ifconfig eth0 up 10.0.0.2
  126. Execution Finished, Exiting

  127. Sash command shell (version 1.1.1)
  128. />ls
  129. bin
  130. dev
  131. etc
  132. home
  133. lib
  134. mnt
  135. proc
  136. sbin
  137. tmp
  138. usr
  139. var
  140. /> cd /bin
  141. /bin> ls
  142. boa
  143. boot.rom
  144. busybox
  145. dhcpcd
  146. expand
  147. ftp
  148. ftpd
  149. gdbserver
  150. hello
  151. ifconfig
  152. inetd
  153. init
  154. login
  155. mount
  156. ping
  157. reboot
  158. route
  159. sh
  160. telnet
  161. telnetd
  162. umount
  163. /bin> hello
  164. i=0Hello,Embedded Linux!
  165. i=1Hello,Embedded Linux!
  166. i=2Hello,Embedded Linux!
  167. i=3Hello,Embedded Linux!
  168. i=4Hello,Embedded Linux!
  169. i=5Hello,Embedded Linux!
  170. /bin>
复制代码
 楼主| 发表于 2005-5-31 09:10:38 | 显示全部楼层
6,编译并运行uClinux-dist-20030909.tar.gz

ftp://166.111.68.183/pub/embed/uclinux/soft/
或到
ftp://166.111.8.229/OS/Embeded/uclinux/pub/uClinux/dist
下载uClinux-dist-20030909.tar.gz

  1. #cp uClinux-dist-20030909.tar.gz /usr/src
  2. #cd /usr/src
  3. #tar xvfz uClinux-dist-20030909.tar.gz
  4. ......
  5. #cd uClinux-dist
复制代码

这个时候在我的debian下无法使用make xconfig和make menuconfig进行编译,错误如下:
  1. [root]@[/usr/src/uClinux-dist]#make xconfig
  2. config/mkconfig > config.in
  3. make -C /usr/src/uClinux-dist/config/scripts tkparse
  4. make[1]: Entering directory `/usr/src/uClinux-dist/config/scripts'
  5. make[1]: `tkparse' is up to date.
  6. make[1]: Leaving directory `/usr/src/uClinux-dist/config/scripts'
  7. ARCH=dummy /usr/src/uClinux-dist/config/scripts/tkparse < config.in > config.tmpcat /usr/src/uClinux-dist/config/scripts/header.tk >> ./config.tk
  8. cat config.tmp >> config.tk
  9. rm -f config.tmp
  10. echo "set defaults "/dev/null"" >> config.tk
  11. echo "set help_file "config/Configure.help"" >> config.tk
  12. cat /usr/src/uClinux-dist/config/scripts/tail.tk >> config.tk
  13. chmod 755 config.tk
  14. make: wish: Command not found
  15. make: *** [xconfig] Error 127
  16. [root]@[/usr/src/uClinux-dist]#
复制代码
  1. [root]@[/usr/src/uClinux-dist]#make menuconfig
  2. config/mkconfig > config.in
  3. make -C /usr/src/uClinux-dist/config/scripts/lxdialog all
  4. make[1]: Entering directory `/usr/src/uClinux-dist/config/scripts/lxdialog'
  5. /usr/bin/ld: cannot find -lncurses
  6. collect2: ld returned 1 exit status

  7. >> Unable to find the Ncurses libraries.
  8. >>
  9. >> You must have Ncurses installed in order
  10. >> to use 'make menuconfig'

  11. make[1]: *** [ncurses] Error 1
  12. make[1]: Leaving directory `/usr/src/uClinux-dist/config/scripts/lxdialog'
  13. make: *** [menuconfig] Error 2
  14. [root]@[/usr/src/uClinux-dist]#
复制代码
ps:在我的/lib下包含ncurses,如下:
  1. [root]@[/lib]#ls|grep -i ncurses
  2. libncurses.so.5
  3. libncurses.so.5.4
  4. [root]@[/lib]#
复制代码

接下来我make config,vendor/product中选择GDB/ARMulator,kernel版本选择2.4,uClibc,下面全部默认(没有看到save and exit),然后make deb,再make后,在/usr/src/uClinux-dist/linux-2.4.x目录下生成了可执行文件linux,在/usr/src/uClinux-dist/images/生成了romfs.img等文件.如下:
  1. zhyfly@zhyfly:/usr/src/uClinux-dist$ cd images
  2. zhyfly@zhyfly:/usr/src/uClinux-dist/images$ ls
  3. image.bin  linux.data  linux.text  romfs.img
  4. zhyfly@zhyfly:/usr/src/uClinux-dist/images$
复制代码

然后在uClinux-dist目录下编辑skyeye.conf,内容如下:
  1. #cat skyeye.conf
  2. cpu: arm7tdmi
  3. mach: at91
  4. mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
  5. mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
  6. mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=images/romfs.imgmem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
  7. mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
  8. mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
  9. mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
复制代码

在uClinux-dist目录下用root执行:
  1. [root]@[/usr/src/uClinux-dist]#skyeye linux-2.4.x/linux
  2. ***********************************************************************
  3. ****                                                               ****
  4. ****   SkyEye  Simulator Ver 0.9.2 with  GDB/Insight 5.3 Interface ****
  5. ****                                                               ****
  6. ***********************************************************************
  7. GNU gdb 5.3
  8. Copyright 2002 Free Software Foundation, Inc.
  9. GDB is free software, covered by the GNU General Public License, and you are
  10. welcome to change it and/or distribute copies of it under certain conditions.
  11. Type "show copying" to see the conditions.
  12. There is absolutely no warranty for GDB.  Type "show warranty" for details.
  13. This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
  14. (SkyEye) target sim
  15. cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
  16. mach info: name at91, mach_init addr 0x8184ee0
  17. SKYEYE: use arm7100 mmu ops
  18. Loaded ROM   images/romfs.img
  19. Connected to the simulator.
  20. (SkyEye) load
  21. Loading section .init, size 0xa000 vma 0x1000000
  22. Loading section .text, size 0xdb290 vma 0x100a000
  23. Loading section .data, size 0x8a34 vma 0x10e6000
  24. Start address 0x1000000
  25. Transfer rate: 7792160 bits/sec.
  26. (SkyEye) run
  27. Starting program: /usr/src/uClinux-dist/linux-2.4.x/linux
  28. Linux version 2.4.22-uc0 (root@zhyfly) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #1 Tue May 31 10:41:04 GMT 2005
  29. Processor: Atmel AT91M40xxx revision 0
  30. Architecture: EB01
  31. On node 0 totalpages: 1024
  32. zone(0): 0 pages.
  33. zone(1): 1024 pages.
  34. zone(2): 0 pages.
  35. Kernel command line: root=/dev/rom0
  36. Calibrating delay loop... 15.82 BogoMIPS
  37. Memory: 4MB = 4MB total
  38. Memory: 2948KB available (876K code, 173K data, 40K init)
  39. Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
  40. Inode cache hash table entries: 512 (order: 0, 4096 bytes)
  41. Mount cache hash table entries: 512 (order: 0, 4096 bytes)
  42. Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
  43. Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
  44. POSIX conformance testing by UNIFIX
  45. Linux NET4.0 for Linux 2.4
  46. Based upon Swansea University Computer Society NET3.039
  47. Initializing RT netlink socket
  48. Starting kswapd
  49. Atmel USART driver version 0.99
  50. ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
  51. ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
  52. Blkmem copyright 1998,1999 D. Jeff Dionne
  53. Blkmem copyright 1998 Kenneth Albanowski
  54. Blkmem 1 disk images:
  55. 0: 1400000-14A4FFF [VIRTUAL 1400000-14A4FFF] (RO)
  56. RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
  57. NET4: Linux TCP/IP 1.0 for NET4.0
  58. IP Protocols: ICMP, UDP, TCP
  59. IP: routing cache hash table of 512 buckets, 4Kbytes
  60. TCP: Hash tables configured (established 512 bind 512)
  61. NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
  62. VFS: Mounted root (romfs filesystem) readonly.
  63. Shell invoked to run file: /etc/rc
  64. Command: hostname GDB-ARMulator
  65. Command: /bin/expand /etc/ramfs.img /dev/ram0
  66. Command: mount -t proc proc /proc
  67. Command: mount -t ext2 /dev/ram0 /var
  68. Command: mkdir /var/tmp
  69. Command: mkdir /var/log
  70. Command: mkdir /var/run
  71. Command: mkdir /var/lock
  72. Command: mkdir /var/empty
  73. Command: cat /etc/motd
  74. Welcome to
  75.           ____ _  _
  76.          /  __| ||_|
  77.     _   _| |  | | _ ____  _   _  _  _
  78.    | | | | |  | || |  _ \| | | |\ \/ /
  79.    | |_| | |__| || | | | | |_| |/    \
  80.    |  ___\____|_||_|_| |_|\____|\_/\_/
  81.    | |
  82.    |_|

  83. GDB/ARMulator support by <davidm@snapgear.com>
  84. For further information check:
  85. http://www.uclinux.org/

  86. Execution Finished, Exiting

  87. Sash command shell (version 1.1.1)
  88. /> ls
  89. bin
  90. dev
  91. etc
  92. home
  93. lib
  94. mnt
  95. proc
  96. sbin
  97. tmp
  98. usr
  99. var
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-6-15 20:38:12 | 显示全部楼层
按照这一过程安装时遇到两个问题,1.在执行echo "export PATH=$PATH:/usr/local/skyeye-insight/bin">>"~/.bashrc"这一步时,输出bash:export: '/usr/local/skyeye-insight/bin': not a valid identifier
2.“接下来我make config,vendor/product中选择GDB/ARMulator,kernel版本选择2.4,uClibc,下面全部默认(没有看到save and exit),然后make deb,再make后”这一部分没明白,在执行make config时,输出:
make : ***没有规则可以创建目标“config”,停止
其他的步骤和输出结果都和斑竹相同
回复 支持 反对

使用道具 举报

发表于 2005-6-15 21:17:01 | 显示全部楼层
关于第二个问题,应该是我缺少编译内核所需要的东西,我apt-get install libncurses5-dev
但不知道斑竹所说的ncurses是否在lib下?
还试图apt-get install libgtk2.0-dev 但可能是我的源有问题,没安装成功,我又试了make config
还是提示相同的错误
回复 支持 反对

使用道具 举报

发表于 2005-6-16 13:24:43 | 显示全部楼层
另一个问题:执行完arm-elf-gcc -Wl,-elf2flt -o hello hello.c
然后cp ~/hello ~/skyeye-binary-testutils-1.2.0/at91x40/uclinux2/romfs/bin
在 ~/skyeye-binary-testutils-1.2.0/at91x40/uclinux2/romfs/bin下能看到hello
但到了skyeye linux
target sim
load
run
ls
cd bin
ls
这里就没有hello了,为什么?
回复 支持 反对

使用道具 举报

发表于 2005-6-16 14:49:20 | 显示全部楼层
第二个问题已经解决好了,能够编译内核了,在/usr/src/uClinux-dist/linux-2.4.x目录下生成了可执行文件linux,在/usr/src/uClinux-dist/images/生成了romfs.img等文件
我按照斑竹的方法在uClinux-dist目录下编辑skyeye.conf
然后再/usr/src/uClinux-dist#skyeye linux-2.4.x/linux
bash: skyeye: command not found
为什么?如何解决?
回复 支持 反对

使用道具 举报

发表于 2005-6-16 15:07:56 | 显示全部楼层
刚才提出的问题已经解决,原因是环境变量的问题,是不是每次重启终端时都要执行以下的代码?
#echo "export PATH=$PATH:/usr/local/skyeye-insight/bin">>"~/.bashrc"
#source ~/.bashrc
如何把它们加入到.bashrc中?
回复 支持 反对

使用道具 举报

发表于 2005-6-16 15:10:57 | 显示全部楼层
现在剩下的问题主要是那个hello程序不能在skyeye中执行,在bin里能够看到,但在skyeye里ls时就看不到了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-24 21:44:27 | 显示全部楼层
不好意思,好长时间没过来:(
你的问题解决了吗?
我现在打算在slackware下安装skyeye:)
回复 支持 反对

使用道具 举报

发表于 2005-6-25 08:10:30 | 显示全部楼层
上面的那个问题还是没有解决,就是hello程序加载不上,在bin里能看到hello,但到skyeye里执行不了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表