Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7842947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:26:14+00:00 2026-06-02T16:26:14+00:00

I am trying to build a cross compiler to target the processor running on

  • 0

I am trying to build a cross compiler to target the processor running on my NAS box using crosstool-NG.

The NAS box is a ZyXEL NSA210, there is an example dmesg output, the /proc/cpuinfo is:

Processor       : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 183.09
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5
...
Hardware        : Oxsemi NAS
Revision        : 0000
Serial          : 00000d51caab2d00

The options on the target options page, the flag and my current settings in ():

  • Target Architecture (arm)
  • Use the MMU (yes)
  • Endianness (Little endian)
  • Bitness (32-bit)
  • Default instruction set mode (arm)
  • Use EABI (yes)
  • Architecture level –with-arch= ()
  • Emit assembly for CPU –with-cpu= ()
  • Tune for CPU ()
  • Use specific FPU ()
  • Floating point (software)
  • Target CFLAGS ()
  • Target LDFLAGS ()

I’ve been trying various combinations in the ‘Architecture level’ and ‘Emit assembly for CPU’, such as arm926ej-s, armv5l, armv5tej, but I don’t know which option goes where.

I’ve set the Target OS to bare-metal as crosstool-NG doesn’t have the version of Linux used on the box.

Also, once the toolchain is built do I need to pass the same options again to the compilers.

So far by attempts have just produced the Illegal instruction message.

Edit

If anyone could point me towards an article on setting up an ARM GCC toolchain with explicit reference of how to find out the correct parameters, that would answer my question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:26:16+00:00Added an answer on June 2, 2026 at 4:26 pm

    Try one of these

    --with-arch=armv5te
    --with-tune=arm926ej-s
    

    or

    --with-cpu=arm926ej-s
    

    (there’s no point in having both).

    Otherwise your options look fine.

    If it still doesn’t work then you need to look at the libraries and headers. If you want to use dynamically linked libraries then you’ll need to have ones that match those on the target, version wise and name wise. If you want to use static linking, or copy your own shared libraries onto the target (in a non-standard place, perhaps, which would need extra config), you should be fine.

    Either way, you’ll need your kernel headers to match. You can probably just download some contemporary kernel headers from kernel.org.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a GCC cross-compiler with --host=x86_64-apple-darwin10 and --target=ppc64-linux . I need
We are trying to build a cross-domain single-sign on solution using ASP.NET MVC. Any
I am trying to build a cross-compiler with x86_64 being the host and i386
I'm trying to build a arm-elf-gcc cross compiler. So firts I installed binutils 2.18
I'm trying to build a project in a cross-platform manner. I'm using CMake to
I am trying to build a cross mobile platform app to sync files and
Im trying to build call to action button on my site using jQuery. I
I'm trying to build something with the Android NDK standalone compiler toolchain, but I'm
I've making a shared library (cross-platform), but when trying to compile the Windows build
I am trying to build a cross platform (Mac or iOS) class that needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.