Author Topic: Compiling For Armv4 Processors  (Read 9663 times)

ShadowMaster

  • Newbie
  • *
  • Posts: 25
    • View Profile
Compiling For Armv4 Processors
« on: March 03, 2006, 02:36:34 am »
Ok, first above anything else, hello everybody n_n
If someone here already know me, he/she may know then that I'm not here for asking 34352452234 support questions and give no answers...
I'm here because I'm a developer who recently acquired a zaurus device and I would love to port and create software for this platform just as I did (and still do) for HPC devices....
pdaXrom is GREAT, specially for developers like me. Thanks for making such a great "distro".
However... let's get to the point...

I'm already developing some stuff on my zaurus like dockapps and some utilities that are needed on a jornada (under linux).
The problem is... that the zgcc provided by you compiles for the xscale processor.
Binaries made by zgcc on the zaurus are useless in any linux distro on a jornada 720 (StrongARM processor.... that's  ARMv4 instruction set if the information I handle is right).
I tried some gcc switches in a couple of attempts on building for older ARM processors but all of them failed in some degree... always causing the typical illegal instruction error in the J720..

gcc has way too many options and flaws, settings and switches, environmental variables and ways to configure each step.

What are the proper switches, environmental settings, bells and whistles that I need to set-up in order to compile binaries compatibles with a Jornada 72x (or other ARMv4 device)????
Is it possible at all?
Any information on the matter will be appreciated.
Thanks for your time, your effort... and of course.... pdaXrom
    Elias Zacarias

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Compiling For Armv4 Processors
« Reply #1 on: March 03, 2006, 02:54:03 am »
here:
http://mail.pdaxrom.org/1.1.0beta1/Zaurus-5000D-5500/

You'll find pdaxrom for 5x000.
a zgcc and cross compiler that produce code for armv4

However the processor  is not the only problem, for instance pdaxrom use softfloat, if the glibc on your jordana isn't compiled for softfloat, a binary compiled with the cross-compiler above will probably not work.

You must also take into account that the version of gcc - glibc used might be different and that not all versions are compatible.....

It is probably easier to use the toolchain that is used to build the distro for the jordana to recompile your applications.

You can perhaps also have a look at the pdaxrom builder (docs on www.pdaxrom.org)
SLC-860 cacko / senao wifi

ShadowMaster

  • Newbie
  • *
  • Posts: 25
    • View Profile
Compiling For Armv4 Processors
« Reply #2 on: March 03, 2006, 12:18:38 pm »
Thanks, I'll take a look at those tools.
I'll report you the results as soon as I test it

[EDIT] The binary didn't run... incompatible glibc version i think..
« Last Edit: March 03, 2006, 07:19:55 pm by ShadowMaster »

ShadowMaster

  • Newbie
  • *
  • Posts: 25
    • View Profile
Compiling For Armv4 Processors
« Reply #3 on: March 05, 2006, 03:48:41 am »
Quote
Thanks, I'll take a look at those tools.
I'll report you the results as soon as I test it

[EDIT] The binary didn't run... incompatible glibc version i think..
[div align=\"right\"][a href=\"index.php?act=findpost&pid=116845\"][{POST_SNAPBACK}][/a][/div]

Well.. seems like here is where my adventure ends.....
I had the brilliant idea of running a NAND blocks test on my zaurus and I got 2 bad blocks....
Even when some people say that's normal, I had the even_more_brilliant idea to try a NAND erase....
and now... I've a bricked Zaurus!  
Development was stopped when it wasn't even started...
well... I'll see if I can save my zaurus....
I've been on that all night long.... 5:45am and I'm still on it (downloading original NAND and preparing stuff)...
Sorry guys... I really wanted to develop things for the Zaurus
I'll let you know if I can get my zaurus running again....

ShadowMaster

  • Newbie
  • *
  • Posts: 25
    • View Profile
Compiling For Armv4 Processors
« Reply #4 on: March 05, 2006, 10:27:41 am »
Uff..... I could revive it....
I was so worried  It was worse than any possible nightmare....
But finally my Zaurus is back

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Compiling For Armv4 Processors
« Reply #5 on: March 05, 2006, 03:41:51 pm »
Quote
Uff..... I could revive it....
I was so worried  It was worse than any possible nightmare....
But finally my Zaurus is back
[div align=\"right\"][a href=\"index.php?act=findpost&pid=117085\"][{POST_SNAPBACK}][/a][/div]
Hee Hee. Good job. Welcome back. We look forward to your Zaurus developments.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

ShadowMaster

  • Newbie
  • *
  • Posts: 25
    • View Profile
Compiling For Armv4 Processors
« Reply #6 on: March 05, 2006, 06:45:17 pm »
I'll try luck in porting a HP49 emulator... Even when there's a working HP48 emulator for pdaxrom is always good to use the lattest mathematical horse-power that technology can offer  
There's nothing better than a HP48/49 emulator on a handheld device in times of study....

ShadowMaster

  • Newbie
  • *
  • Posts: 25
    • View Profile
Compiling For Armv4 Processors
« Reply #7 on: March 06, 2006, 10:55:04 pm »
Ok... I got xcircuits compiled on my zaurus  anyone interested on an ipkg?
seems like it was compiled before (an old version) but I just tried it and it's quite unstable (this is unstable too, but seems like quite less)

Edit:  Some screenshots. and.. it's TOTALLY reliable (At least loading big examples provided) now that I set some proper directories.



 [ Invalid Attachment ]
« Last Edit: March 06, 2006, 11:52:40 pm by ShadowMaster »