___________________________________________________________________________________
按照安装说明执行
./arm-elf-tools-20030314.sh
提示:
bad interpreter: No such file or directory
如果执行
source arm-elf-tools-20030314.sh
提示:
: command not found
'bash: ./arm-elf-tools-20030314.sh: line 4: syntax error near unexpected token `in
'bash: ./arm-elf-tools-20030314.sh: line 4: `case "${SCRIPT}" in
errors:
tail : cannot open `+43' for reading : No such file or directory
gzip:stdin: not in gizp format
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
解决方案:
Code:
tail : cannot open `+43' for reading : No such file or directory
This error comes out when you use the obsolete option for tail
Code:
tail +43
the latest POSIX standard interprets it as the name of a file. In this case you have to use the correct option
Code:
tail -n +43
However, since you're running a binary file, it is not possible to edit it to change commands. But you can change the POSIX standard to match the one assumed by the installer. Just set the environment variable _POSIX2_VERSION as in
Code:
export _POSIX2_VERSION=199209
代码:
**************************** WARNING **********************************
If you want to run ELF image, you should use -e option to indicate
your elf-format image filename. Or you only want to run binary image,
you need to set the filename of the image and its entry in skyeye.conf.
***********************************************************************
big_endian is false.
Failed to open skyeye config file skyeye.conf in the same directory
error: No such file or directory
------------------------- SkyEye -V1.2 ---------------------------
Usage: SkyEye [options] -e program [program args]
Default mode is STANDALONE mode
------------------------------------------------------------------
Options:
-e exec-file the (ELF executable format)kernel file name.
-l load_address,load_address_mask
Load ELF file to another address, not its entry.
-b specify the data type is big endian when non "-e" option.
-d in GDB Server mode (can be connected by GDB).
-c config-file the skyeye configure file name.
-h The SkyEye command options, and ARCHs and CPUs simulated.
------------------------------------------------------------------
----------- Architectures and CPUs simulated by SkyEye-------------
-------- ARM architectures ---------
at91
lpc
s3c4510b
s3c44b0x
s3c44b0
s3c3410x
ep7312
lh79520
ep9312
cs89712
sa1100
pxa_lubbock
pxa_mainstone
at91rm92
s3c2410x
s3c2440
sharp_lh7a400
ns9750
lpc2210
ps7500
integrator
-------- BlackFin architectures ----
bf533
因为在安装skyeye 时会用到一些别的包,所以在新立得软件包管理器中找到下面的软件包:binutils-dev[这个问题也有很多人遇到,在Ubuntu下直接 apt-get install binutils-dev] 标记并安装
下面是关于这个软件包的描述
The GNU binary utilities (BFD development files)
This package includes header files and static libraries necessary to build
programs which use the GNU BFD library, which is part of binutils. Note
that building Debian packages which depend on the shared libbfd is Not
Allowed.
int main()
{
int i;
for(i=0;i<6;i++)
{
printf("i=%d\n",i);
printf("Hello,embedded linux!\n");
}
return 0;
}
用以下命令进行编译:
代码:
root@yuanyangliu-Linux:/source/work/test# arm-elf-gcc -Wl,-elf2flt -o test test.c
root@yuanyangliu-Linux:/source/work/test# ls
test test.c test.gdb