A possible and likely cause of this problem is that you are compiling for 
dynamic linking with the c libraries at run time, and the version of the c 
library you compiled against, and the c library you are trying to link 
against at run time, are different and non-compatible. This is a possible 
problem when cross-compiling.

What version of glibc.so are you compiling with?  (The one in your 
cross-compiler host.)
What version of glibc.so are you trying to dynamically link with at run 
time? (The one in your BBB.)

Either you need to get the libraries to match, or at least be compatible, 
or include the compiler libraries as hard linked inside the executable.  
This will cause your executable to swell up in size, but will guarantee 
that the c libraries match.

--- Graham

==

On Monday, March 9, 2015 at 8:09:04 PM UTC-5, Karl Anderson wrote:
>
> Here is a link to the readme, which details how to download the repo and 
> execute it: https://github.com/BestFriendofDoug/PRUSS-C
>
> For some reason, the prudebug is not recognizing the executable, even 
> after I downloaded and untar-ed the file see error below:
>
> root@beaglebone:~/prudebug-0.25# ls -l
> total 184
> -rw-r--r-- 1 debian debian  8698 Mar  8  2014 cmd.c
> -rw-r--r-- 1 root   debian  1591 Mar  8  2014 cmdinput.c
> -rw-r--r-- 1 root   root    2264 Mar  8  2014 cmdinput.o
> -rw-r--r-- 1 debian debian 10512 Mar  8  2014 cmd.o
> -rw-r--r-- 1 debian debian  7302 Mar  8  2014 da.c
> -rw-r--r-- 1 root   root    8120 Mar  8  2014 da.o
> -rw-r--r-- 1 debian debian  1510 Mar  8  2014 LICENSE
> -rw-r--r-- 1 debian debian   136 Mar  8  2014 Makefile
> -rw-r--r-- 1 debian debian  6176 Mar  8  2014 printhelp.c
> -rw-r--r-- 1 debian debian  8484 Mar  8  2014 printhelp.o
> -rw-r--r-- 1 debian debian 16769 Mar  8  2014 prudbg.c
> -rw-r--r-- 1 debian debian  2607 Mar  8  2014 prudbg.h
> -rw-r--r-- 1 root   root   13240 Mar  8  2014 prudbg.o
> -rwxr-xr-x 1 root   root   41276 Mar  8  2014 prudebug
> -rw-r--r-- 1 debian debian  9495 Mar  8  2014 README
> -rw-r--r-- 1 debian debian  1238 Mar  8  2014 uio.c
> -rw-r--r-- 1 debian debian   549 Mar  8  2014 uio.h
> -rw-r--r-- 1 root   root    2016 Mar  8  2014 uio.o
> root@beaglebone:~/prudebug-0.25# sudo ./prudebug 
> sudo: unable to execute ./prudebug: No such file or directory
>
>
> On Friday, March 6, 2015 at 4:19:23 PM UTC-6, Jason Kridner wrote:
>>
>> That URL doesn't point to the source code. Can you simplify the 
>> step-by-step a bit further.
>>
>> I'm curious if http://sourceforge.net/projects/prudebug/ would help know 
>> that your code is properly loaded and running.
>>
>> On Fri, Mar 6, 2015 at 3:14 PM, Karl Anderson <anderso...@gmail.com> 
>> wrote:
>>
>>> I am trying to run the example blinkled project shown at 
>>> https://github.com/BestFriendofDoug/PRUSS-C/tree/master/am335x_pru_package/pru_sw/app_loader/lib
>>>  
>>> but I am not getting any output to the GPIO pins. I have set up the dto to 
>>> output P9.12, and the blinkled.c is using StarterWare programs to toggle 
>>> P9.12, but there is no output to the pins when the program runs.
>>>
>>> The git repo should have everything you need. I occasionally get the 
>>> below error:
>>> ./blinkled 
>>>
>>> INFO: Starting PRU_memAccess_DDR_PRUsharedRAM example.
>>>     INFO: Initializing example.
>>> ./blinkled: symbol lookup error: ./blinkled: undefined symbol: 
>>> prussdrv_load_datafile
>>>
>>> Which was solved for me when re-running the Makefile in 
>>> /root/PRUSS-C/am335x_pru_package/app_loader/interface
>>>
>>> Any help on this issue would be appreciated!!
>>>
>>> -- 
>>> For more options, visit http://beagleboard.org/discuss
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "BeagleBoard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to beagleboard...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to