Problem to execute a simple example in mini2440 with a factory configuration : Hi, I have a mini2440 T35 with a factory configuration ( linux + Qtopia ). I begin to compile hello.c example exist in the DVD : => hello.c : #include <stdio.h> int main(void) { printf("hello, FriendlyARM!\n"); } => Makefile : CROSS=arm-linux-gnueabi- all: hello hello: $(CROSS)gcc -o hello hello.c clean: @rm -vf hello *.o *~ Rq : I try also with the manual compilation. => I have a following version of arm-linux : - When i type the following commande : # arm-linux-gnueabi-gcc -v I have almost responded with : Using built-in specs. COLLECT_GCC=arm-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.5.1/lto-wrapper Target: arm-linux-gnueabi gcc version 4.5.1 (Ubuntu/Linaro 4.5.1-7ubuntu1) => And i add the executable mode to the file : [root@FriendlyARM plg]# chmod 777 hello ====>> My problem is, when i execute the hello example, i get the following answer : [root@FriendlyARM plg]# ./hello Illegal instruction or : [root@FriendlyARM plg]# sh hello hello: line 1: syntax error: word unexpected (expecting ")") RQ : the same comportment when using a flash disk or SDcard or another platform such as fedora or when I change the compiler as CodeSourcery. Thank you, Haithem.
Problem to execute a simple exemple in mini2440(factory config)
Have you tried compiling with the gcc-arm which came with your device or the one which is downloadable from this website?
I mean this one: http://www.friendlyarm.net/dl.php?file=arm-linux-gcc-4.3.2.tgz which can be found on this page: http://www.friendlyarm.net/downloads
Now i wand to use the NFS and TFTP server, I tried several times without success. I use the command ubout to configure the mini2440 to load kernel with TFTP server and file system with NFS server and i use ubuntu 10.10