Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Fri Apr 28, 2017 3:52 pm

All times are UTC




Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Compiling the ARM firmware?
PostPosted: Tue Aug 14, 2012 11:18 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
The repository at Google Code contains full source for the ARM board's firmware, but browsing through the SVN web interface I don't see any Makefiles or linker scripts. Can anyone give me some pointers in how to build the ARM firmware, please?

_________________
~ 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: Wed Aug 15, 2012 5:37 pm 
Offline

Joined: Sun Dec 28, 2008 3:00 pm
Posts: 59
See this:
viewtopic.php?f=6&t=352&start=20


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Aug 15, 2012 7:26 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
Dirk wrote:


Ah - thanks for that :)

So it's not as "simple" as whipping up a GCC cross-compiler then.

It also looks to me like it'd be easy to brick the ARM controller by uploading buggy firmware. Is there any way of getting a program into it, other than sticking it on the SD card and selected Upgrade Firmware from the menu?

_________________
~ 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: Wed Aug 15, 2012 7:38 pm 
Offline

Joined: Sun Dec 28, 2008 3:00 pm
Posts: 59
The update is checked against a crc before updating.
The sources can be compiled with arm gcc after some changes.
I am using the Yagarto toolchain.


Last edited by Dirk on Wed Aug 15, 2012 7:45 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Aug 15, 2012 7:43 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1566
Location: .de
MMrobinsonb5 wrote:
It also looks to me like it'd be easy to brick the ARM controller by uploading buggy firmware. Is there any way of getting a program into it, other than sticking it on the SD card and selected Upgrade Firmware from the menu?


Its impossible to brick the ARM.
It has a ROM (not eraseable) internal bootloader code.
If the FlashROM contains a buggy firmware or update went wrong, this ROM bootloader can be copied into the FlashROM.

More about this is to find at the ARM website.
Please DO NOT play with it! To upload the Minimig firmware, it will require the "Samba Bootloader software", a USB connection to Windows PC and the image.

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


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Wed Aug 15, 2012 9:55 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
Dirk wrote:
The update is checked against a crc before updating.


Yeah I wasn't worried so much about corruption during the update process - more that if I port some of my OSD improvements to the "real" Minimig, I might end up with a non-working ARM board if I end up with a non-working build, and thus can't access the menus.

Quote:
The sources can be compiled with arm gcc after some changes.
I am using the Yagarto toolchain.


OK thanks - so what do you do, build and link in ELF format, then objcopy to raw?

boing4000 wrote:
Its impossible to brick the ARM.
It has a ROM (not eraseable) internal bootloader code.
If the FlashROM contains a buggy firmware or update went wrong, this ROM bootloader can be copied into the FlashROM.


Ah - that's good to know - so that's what the "Erase" DIP switch is for? (Don't worry, I have no intention of messing with this stuff until or unless I know *exactly* how to recover from screwing it up!)

Quote:
More about this is to find at the ARM website.
Please DO NOT play with it! To upload the Minimig firmware, it will require the "Samba Bootloader software", a USB connection to Windows PC and the image.


OK - so that's what the mini-USB socket's for?

Like I say, it'd be a nice project to port some of my OSD improvements from the DE1 and Chameleon ports back to the "real" Minimig (block-level access to the SD card, support for WInUAE hardfiles (so ClassicWB images will work unmodified) and some cosmetic changes.)

_________________
~ 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 Aug 16, 2012 11:42 am 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1566
Location: .de
MMrobinsonb5 wrote:
Ah - that's good to know - so that's what the "Erase" DIP switch is for? (Don't worry, I have no intention of messing with this stuff until or unless I know *exactly* how to recover from screwing it up!)


At first I also took this as matching ;)
Actually the TEST dip will copy the ROM Bootloader into the Flash. Please do not set this dip switch!

Quote:
OK - so that's what the mini-USB socket's for?


Thats correct.
The USB port currently is only active if the ARM run its Bootloader to (initiially) receive any program or firmware.

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


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Sun Dec 09, 2012 1:39 pm 
Offline

Joined: Tue Sep 25, 2012 7:15 pm
Posts: 105
MMrobinsonb5 wrote:
So it's not as "simple" as whipping up a GCC cross-compiler then.


It's actually not much more than that. One of the first things i did when starting my own project was to write a Makefile and add some startup code to be able to use gcc on a linux host. I have never run the resulting binary on a real minimig, but the parts i was able to test in my setup (spi, sd card, rs232, fpga boot) work. Is there still interest? I may spend a few minutes to redo this with the original arm sources.


Top
 Profile  
 
 Post subject: Re: Compiling the ARM firmware?
PostPosted: Sun Dec 09, 2012 4:45 pm 
Offline

Joined: Tue Dec 13, 2011 7:48 pm
Posts: 341
Master of Gizmo wrote:
Is there still interest? I may spend a few minutes to redo this with the original arm sources.


There's certainly still interest - it would be great to get as many different variants of the firmware building from a single codebase as possible.

_________________
~ 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: Sun Dec 09, 2012 5:12 pm 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1566
Location: .de
Yes there is.
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 :)

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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr