LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2017, 06:52 PM   #1
bkelly
Member
 
Registered: Jan 2008
Distribution: Centos 7-4
Posts: 205

Rep: Reputation: 13
ARM Cortex Development


We are building a system with Red Hat on a rather new Windows class machine. Plenty of CPU cores, memory, and hard drive, Intel X86, 64 bit architecture. It will boot Red Hat only.

We need to write some code in C++ for an ARM Cortex 9 CPU, an embedded system. We need the ability to copy the executables over to the embedded target and run.

If we can run in an emulated environment under the IDE that would be really helpful.

Can we build the code for X86, debug it, then build for ARM with a greater expectation of success? The app will be using CoAP transactions.

What is the easiest IDE to use for a Linux newbie?
 
Old 12-14-2017, 01:15 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,358

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
To quote the Kerryman when asked for directions: "If I was You, I wouldn't start from here at all." I would
  1. Head over to Http://www.linuxfromscratch.org and check out the CLFS project
  2. Don't put Red Hat, CentOS, Fedora, or any Red Hat distro on your building box, because they are known to behave poorly with LFS. They patch normal code big time. Use any mainstream distro - debian, ubuntu, slackware, etc.
 
1 members found this post helpful.
Old 12-15-2017, 01:06 PM   #3
bkelly
Member
 
Registered: Jan 2008
Distribution: Centos 7-4
Posts: 205

Original Poster
Rep: Reputation: 13
We are not going the LFS (Linux From Scratch) route. I work for the government and this project must use Red Hat. Given that, what are good selections for the IDE and the cross compiler to build for ARM Cortex?
 
Old 12-15-2017, 02:33 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,358

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
Quote:
Originally Posted by bkelly View Post
We are not going the LFS (Linux From Scratch) route. I work for the government and this project must use Red Hat. Given that, what are good selections for the IDE and the cross compiler to build for ARM Cortex?
You can use google as well as me, my friend. I'm sure the difficulties I mentioned with Red Hat will plague you wherever the system is involved. CLFS is one respectable project, but there's bound to be others. If you have to use Red hat, and it makes your system puke like it has others, consider a VM for your compilation.
On this
Code:
Can we build the code for X86, debug it, then build for ARM with a greater expectation of success? 
The app will be using CoAP transactions.
There's many differences between x86(_64) and Arm: Instruction sets; Capabilities; Endianness
I see no advantage at all in compiling code in x86_64 first. It's no guarantee that the libs, headers, includes, and compiler in your arm setup will compile it. Neither are you likely to be able to test it. I don't get the bit about CoAP transactions.

Your task will be carefully setting up an ide in x86_64 which only sees Arm libs, includes, headers etc. and not polluting that in any way. You may be able to set up an Arm VM using your Red Hat Box and that's the first option I'd explore. Alternatively, many distros for Arm exist, and even the Raspberry Pi makes a respectable if not the fastest compiler. So don't waste time.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: ARM debuts Cortex-A75 and Cortex-A55 with AI in mind LXer Syndicated Linux News 0 05-30-2017 01:50 AM
Beaglebone Black using (TI ARM cortex A8 processor) Divya19 Linux - Embedded & Single-board computer 1 02-16-2016 01:30 PM
Two ARM Cortex-M3 Boards for embeded development kennyfly899 Linux - Hardware 1 07-03-2009 07:41 AM
Have you ever used "Emlink for ARM" Emulator to debug your ARM Cortex-M3 processors? kennyfly899 Linux - Newbie 0 06-27-2009 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration