Dennis,

I'm afraid I'm taking this a bit off topic, but part of your answer
tantalized me:

...I also should see about setting up Buster (Debian 10) in VirtualBox
> first; I do have Stretch in VirtualBox already...
>

I'm pretty sure you don't mean what I hope you mean, but do you have a
Beaglebone VM environment set up? Or are you just referring to having the
current version of x86/64/standard desktop Debian VM running under
Virtualbox?

I know there have been efforts in the past to emulate the old beagleboard
devices under qemu but I would be thrilled to be able to run a modern
emulated am335x in any desktop environment. I looked into bringing that
back up to date but it was about 3 steps outside of the actual tasks I need
to work on and simply not worthwhile to do so.

Back on topic, as to Megha's question, there are some details about
cross-compiling here which have been useful to me in the past, though now
to ensure all the pieces end up in the correct places I have stayed with
compiling directly on the machine.
http://gnutoolchains.com/beaglebone
https://jumpnowtek.com/beaglebone/BeagleBone-Systems-with-Yocto.html

Best regards,

Jim
tp://gnutoolchains.com/beaglebone/

On Mon, Jul 8, 2019 at 12:36 PM Dennis Lee Bieber <[email protected]>
wrote:

> On Sun, 7 Jul 2019 21:09:23 -0700 (PDT), Megha Bhirade
> <[email protected]> declaimed the
> following:
>
> >Hi,
> >
> >I am using beagle bone black board in Linux Ubuntu distribution..my
> >requirement is i need to write simple code on terminal(filename.c) using
> >processor SDK i need to compile it and need to create .out file for the
> >code and after that i need to load that .out(binary file-executable )
> file
> >on to beagle bone black board and make it to work on board and get output
> >on terminal...
> >
> >I am not getting how to do it... how to create  . out file and load into
> >board...
> >
> >please help me to resolve it??? i am new to this board..
>
>         For simple stuff, you would probably find it faster to actually do
> the
> building ON the BBB, using the ARM native GCC.
>
> -=-=-=-
> debian@beaglebone:~$ vim demo.c
> debian@beaglebone:~$ cat demo.c
> #include <stdio.h>
>
> void main(int argc, char * argv[])
> {
>         printf("\n\n\t\tHelp me!\n\n\n");
> }
> debian@beaglebone:~$ gcc -o demo demo.c
> debian@beaglebone:~$ ./demo
>
>
>                 Help me!
>
>
> debian@beaglebone:~$
> -=-=-=-
>
>         If I interpret your description, you are trying to do the builds
> ON a
> different machine, with a different native architecture. To take the result
> of such a build will require using a cross-compiler toolchain.
>
>         I'm afraid I can't really help setting up such. The closest I have
> is
> the ARM-ELF toolchain for GNAT (Ada) on Win10. I'm getting a linker failure
> as I don't have a crt0.o library (I suspect that library has to be
> customized for each target board). "Code Composer Studio 9" does have a
> configuration for BBB, but it is, I'm fairly certain, meant to be a "bare
> board" build, not something running under Linux (I got an "illegal
> instruction" trying to run the test program).
>
> -=-=-=-
> debian@beaglebone:~$ ls -l
> total 124
> -rw-r--r-- 1 debian debian 94852 Jul  8 12:14 BBB_test.out
> drwxr-xr-x 2 debian debian  4096 Jun 17  2018 bin
> -rwxr-xr-x 1 debian debian  8340 Jul  8 11:47 demo
> -rw-r--r-- 1 debian debian    94 Jul  8 11:47 demo.c
> -rw-r--r-- 1 debian debian   325 Jan 30 17:03 pwm.py
> -rw-r--r-- 1 debian debian   620 Jan 30 17:20 sqwave.py
> debian@beaglebone:~$ chmod ugo+x BBB_test.out
> debian@beaglebone:~$ ./BBB_test.out
> Illegal instruction
> debian@beaglebone:~$
> -=-=-=-
>
>
>         Chapter 7 of "Exploring Beaglebone 2nd Edition" (D. Molloy, 2019
> John
> Wiley & Sons) is all about setting up a cross-compilation suite -- the book
> recommends using Debian 9 (or later) either as a stand-alone Linux machine
> or via a virtual machine (discussed in chapter 3). The first part of the
> chapter is command-line toolchain. The later part covers installing Eclipse
> for cross-compiling.
>
> {I should probably see about setting that up myself -- though I also should
> see about setting up Buster (Debian 10) in VirtualBox first; I do have
> Stretch in VirtualBox already}
>
>
> --
>         Wulfraed                 Dennis Lee Bieber         AF6VN
>         [email protected]
> http://wlfraed.microdiversity.freeddns.org/
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/qoo6ietir36sm578i1mrhhah4kpb65hbfp%404ax.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAGS%2B2h955Levzr%3D__5STbmd7CUVFND09a5Tk7-OX_Ns6_aZtQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to