Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Fri Oct 20, 2017 6:06 pm

All times are UTC




Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Sun Dec 09, 2012 8:54 pm 
Offline

Joined: Tue Sep 25, 2012 7:15 pm
Posts: 105
boing4000 wrote:
Even when I don't know C language, it woult be great to compile its own firmware.
Maybe one will learn to program C in the process by changing little things and step-by-step :)


Please take it from http://www.harbaum.org/ARM_GCC.ZIP and put it onto your sourceforge page or the like.

This is untested, but compiles fine and some parts of this have proven to work in my own project.

Edit: Forgot to mention: All changes inside the original files have been #ifdef'd and thus the changes should not affect the original way of compiing this. This is based on the googlecode tree from chaos' de1 port. He is maintaining a nice archive of the various original code inside his source tree.


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Dec 12, 2012 9:56 am 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
Thanks for your work and the archive.
I would like to compile this in Linux using gcc, but all I get from "make" is:
Code:
/bin/sh: 1: arm-elf-as: not found
make: *** [crt.o] error 127

Is there some special (debian) package required?

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Dec 12, 2012 10:23 am 
Offline

Joined: Tue Nov 09, 2010 3:10 pm
Posts: 316
boing4000: you are probably missing the ARM GCC cross-compiler, or the executables are not in the path. If you haven't installed them yet, I recommend to use the Sourcery G++ lite toolchain (an ARM GCC compiler 'port').

_________________
** my minimig builds: http://somuch.guru/ **


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Dec 12, 2012 12:32 pm 
Offline

Joined: Tue Sep 25, 2012 7:15 pm
Posts: 105
chaos wrote:
boing4000: you are probably missing the ARM GCC cross-compiler, or the executables are not in the path. If you haven't installed them yet, I recommend to use the Sourcery G++ lite toolchain (an ARM GCC compiler 'port').


Make sure you install a "bare metal" compiler (that's one that's meant to compile code to run directly on the "bare" chip without e.g. a linux underneath. And it needs to have "newlib" support which is the bare metal replacement for the libc which normally provides printf and friends under a full featured linux.

I had success with these instrcutions:
http://www.doctort.org/adam/index.php?s=arm-elf-gcc
and
http://www.doctort.org/adam/nerd-notes/arm-helloworld.html

Similar instructions here:
http://www.kunen.org/uC/gnu_tool.html

or in german:
http://www.alphapogo.de/


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Dec 12, 2012 1:07 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
I've installed all kind of package. It don't work, seems GCC and C in general will never be my cup of tea...

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Dec 12, 2012 4:16 pm 
Offline

Joined: Fri Dec 09, 2011 11:31 am
Posts: 91
Master of Gizmo wrote:
Please take it from http://www.harbaum.org/ARM_GCC.ZIP and put it onto your sourceforge page or the like.

Thanks for source

Why has "firmware.hex" 320KB after compilation?
When the USB firmware update around 40 kilobytes. I think this the file ARM_FIRMWARE_BIN_AYQ090911.zip

I use to compile Yaqarto ARM tools.


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Dec 12, 2012 6:02 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
boing4000 wrote:
I've installed all kind of package. It don't work, seems GCC and C in general will never be my cup of tea...


What do you get if you try this:

find / -iname \*arm-elf\*

_________________
~ Amiga 4000/030 ~ Amiga 1200 030/50MHz ~ Turbo Chameleon 64 ~ Altera DE1 with Minimig core ~
Details of my projects: http://retroramblings.net


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Thu Dec 13, 2012 7:44 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
MMrobinsonb5 wrote:
find / -iname \*arm-elf\*


No output... but I will not try any further and better stay with the FPGA core :)

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Thu Dec 13, 2012 9:21 pm 
Offline

Joined: Tue Sep 25, 2012 7:15 pm
Posts: 105
minimig_emu wrote:
Why has "firmware.hex" 320KB after compilation?


Look at the size of the bin file, this is the real code.

The firmware is using printf which in turn makes the binary bloated as printf can handle floats and thus causes all kind of floating point arithmetic to be included.

This can of course be optimzed and i once ran the entire firmware in the 64k RAM.

But the arm has 256k flash, so no urgent need to optimize if the code runs from flash (as it usually does). I preferred to leave the source code untouched as far as possible.


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Thu Jan 24, 2013 3:47 pm 
Offline

Joined: Fri Dec 09, 2011 11:31 am
Posts: 91
Any advice?

Whether compiled original ARM core or from by user Master of Gizmo. So not one does not work. Thus green LED flashes as crazy and lights at 30%. But the screen of nothing: (


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr