dienbk7x / picocom

Automatically exported from code.google.com/p/picocom
GNU General Public License v2.0
0 stars 0 forks source link

[arm cross-compile] binary not found by bash #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.cross compile the picocom fist
CC=arm-linux-gcc
LD=arm-linux-ld

2.nfs boot or just copy picocom to target board (omap3 beagleboard rev C4)
under picocom folder, run 
./picocom 
or picocom
or /foldertopicocom/picocom

error ouput

# ./picocom
-/bin/sh: ./picocom: not found

I have tried kernel 2.6.32 and 2.6.35 

echo $PATH
# echo $PATH                                                                    
/sbin:/usr/sbin:/bin:/usr/bin 

tried put picocom copy into usr/bin and still not working. 

"ls -il"
1085562 -rwxr-xr-x    1 1000     1000        60514 Dec 31  2010 picocom  

and file picocom can run too. 

What is the expected output? What do you see instead?
i expect to see picocom to run or show cannot run. I see command not found. 

What version of the product are you using? On what operating system?
ver 1.6
I use kernel 2.6.32 and 2.6.35 with busybox also tried anstrong

Please provide any additional information below.

Original issue reported on code.google.com by zigzagze...@yahoo.com on 31 Dec 2010 at 9:36

Attachments:

GoogleCodeExporter commented 9 years ago
I got it worked. It is actually not related with picocom itself. Can u delete 
it from the thread? 
The sh is statically build so the picocom needs to be that too. 

Original comment by zigzagze...@yahoo.com on 1 Jan 2011 at 4:02

GoogleCodeExporter commented 9 years ago
So, how do you actually build it?
Can you please send me the compiled binary (working one)?
I am getting the same message on my mini2440 board.

Original comment by harshadh...@gmail.com on 13 Jan 2011 at 2:40

GoogleCodeExporter commented 9 years ago
How did you change the Makefile to statically link picocom?

Original comment by ksu.dead...@gmail.com on 25 Jan 2011 at 12:34

GoogleCodeExporter commented 9 years ago
Try adding a "-static" flag to LDFLAGS

Original comment by ffum...@googlemail.com on 31 Mar 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Hi All,
Please help me in the below issue.
I had built the picocom for beagle board rev-c3 running android.
I had copied the picocom exe to the board & tried to execute.

#CROSS-COMPILE=arm-eabi LDFLAGS=-static make
Above command had build the picocom successfully.

I had tried following commands on the board. 
All are giving same error- "./picocom :1:Syntax Error: "<" unexpected"
#./picocom
#./picocom /dev/ttyUSB0
#./picocom -b 4800 /dev/ttyUSB0

Original comment by vmadhu...@gmail.com on 20 May 2011 at 11:46

GoogleCodeExporter commented 9 years ago

Original comment by nick.pat...@gmail.com on 21 Feb 2012 at 5:21