Run Test Progrm on Friendly ARM

sanjayshejkar
Hello All, 
      I am new to Linux on Friendly ARM. Gradually Moving from WinCE. I
have a basic doubt. After compiling the hello world program using
arm-linux-gcc in ubuntu, I am struck in executing the program on board
(Friendly ARM). I have the following questions
1. How to transfer .o file to Friendly ARM Linux
2. How to execute the transferred file.

Please help me in this regards. 

Regards,
Sanju.

Juergen Beisert
*.o files are objects, not executable programs. You must still run the
linker on this type of files to finish the build.

Transfer: a) SD card b) network
Running: Just run it in a console on your Target: ./myprogram (but only
works if the executable permission bits are set)

sanjay
Hello Juergen, 
      Thank you for the reply. I am able to generate the executable and
transfer it to per drive(USB). when I plug the  to friendly ARM in the logs
(Hyperterminal), I am able to see USB (Pen Drive)mounting. But I am able to
browse the pen drive to run my program. 

1. I need to know how can I browse the pen drive, 
2. What is the path of it. (I tried /dev, /mnt ect..)

Hope I am clear with my question. Please help me with the same. 

Thank you in advance. 
Regards,
Sanju.

Juergen Beisert
Do you see the USB enumeration of your USB memory stick or the mount
process? If you see the USB enumeration only when you plug in the stick,
the next step is to mount it manually. As any kind of USB mass storage
device is handled via the SCSI layer, you will get devices like "/dev/sd*",
for example "/dev/sda" for the first USB memory stick and "/dev/sda1" for
the first partition on this memory stick. To mount is, just run "mount
/dev/sda1 /mnt" for example. This will mount the first partition on your
memory stick into "/mnt". Maybe you must add the "-t <filesystemtype>"
option, if the kernel cannot guess the filesystem on this partition. If it
uses the common FAT32 format the command should be "mount -t vfat /dev/sda1
/mnt". If it still fails, check if your kernel supports this filesystem
("cat /proc/filesystems") or check what filesystem is *really* used on this
partition.

PhiNguyen
hello Juergen!!!
how about transfer by network?

thanks!
Phi

Juergen Beisert
????
It was one transfer method I listed in my first answer.

shaco
u can try this if u want to copy your execute file from usb to mini2440:
1. open terminal
2. copy file (for exampele your filename is "helloworld" from flashdisk to
mini2440:
   cp /udisk/helloworld /opt/Qtopia/bin/
3. to execute your program, u should go to folder bin.
   cd /opt/Qtopia/bin/
   ./helloworld
4. if u want to show the shortcut into your mini2440 desktop, just copy
helloworld.desktop into folder (/opt/Qtopia/apps/app/Applications/) then
restart.