Cumulus Firware Compilation

This is the right place to discuss on how to implement hardware vsync, adding a VIA or AY chipset, puting multiple roms, or how to design a new flash expansion card.
User avatar
Chema
Game master
Posts: 2016
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Cumulus Firware Compilation

Post by Chema » Sat Jul 01, 2017 3:05 pm

Okay, I'm afraid I'm not going to be able to help. If only metadata read this...

He had similar problems, as you already read in the forum. Iss provided a modded code that printed error messages (check this post http://forum.defence-force.org/viewtopi ... =120#p9409).

But metadata was quite cryptic (at least to me) when he said he solved it. He just said he learnt the difference between a BIN file and an HEX file... http://forum.defence-force.org/viewtopi ... =135#p9436

And that is all.

Hope someone comes with a new idea.

zaxon
1st Star Corporal
Posts: 8
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon » Sat Jul 01, 2017 3:19 pm

Yop, i use bootloader code from ISS from this topic http://forum.defence-force.org/viewtopi ... =120#p9409 . I compile it in mp lab using modded linker, maybe this is also problem :?: Echh I feel like a child in the fog...

Code: Select all


// File: 18f46k20_g.lkr
// Generic linker script for the PIC18F46K20 processor

LIBPATH .

#IFDEF _CRUNTIME
  #IFDEF _EXTENDEDMODE
    FILES c018i_e.o
    FILES clib_e.lib
    FILES p18f46k20_e.lib

  #ELSE
    FILES c018i.o
    FILES clib.lib
    FILES p18f46k20.lib
  #FI

#FI

  CODEPAGE   NAME=page       START=0x0               END=0xFFFF
CODEPAGE   NAME=idlocs     START=0x200000          END=0x200007       PROTECTED
CODEPAGE   NAME=config     START=0x300000          END=0x30000D       PROTECTED
CODEPAGE   NAME=devid      START=0x3FFFFE          END=0x3FFFFF       PROTECTED
CODEPAGE   NAME=eedata     START=0xF00000          END=0xF003FF       PROTECTED

#IFDEF _EXTENDEDMODE
  DATABANK   NAME=gpre       START=0x0               END=0x5F
#ELSE
  ACCESSBANK NAME=accessram  START=0x0               END=0x5F
#FI

DATABANK   NAME=gpr0       START=0x60              END=0xFF
DATABANK   NAME=sector_buffer_section       START=0x100             END=0x3FF	PROTECTED
//DATABANK   NAME=gpr2       START=0x200             END=0x2FF	
//DATABANK   NAME=gpr3       START=0x300             END=0x3FF
DATABANK   NAME=gpr4       START=0x400             END=0x4FF
DATABANK   NAME=gpr5       START=0x500             END=0x5FF
DATABANK   NAME=gpr6       START=0x600             END=0x6FF
DATABANK   NAME=gpr7       START=0x700             END=0x7FF
DATABANK   NAME=gpr8       START=0x800             END=0x8FF
DATABANK   NAME=gpr9       START=0x900             END=0x9FF
DATABANK   NAME=gpr10      START=0xA00             END=0xAFF
DATABANK   NAME=gpr11      START=0xB00             END=0xBFF
DATABANK   NAME=gpr12      START=0xC00             END=0xCFF
DATABANK   NAME=gpr13      START=0xD00             END=0xDFF
  DATABANK   NAME=gpr14      START=0xE00             END=0xEFF
DATABANK   NAME=gpr15      START=0xF00             END=0xF5F
ACCESSBANK NAME=accesssfr  START=0xF60             END=0xFFF          PROTECTED

SECTION		NAME=sector_buffer_section				RAM=sector_buffer_section

#IFDEF _CRUNTIME
  SECTION    NAME=CONFIG     ROM=config
  #IFDEF _DEBUGSTACK
    STACK SIZE=0x100 RAM=gpr13
  #ELSE
    STACK SIZE=0x100 RAM=gpr14
  #FI
#FI





User avatar
iss
Flight Lieutenant
Posts: 476
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Cumulus Firware Compilation

Post by iss » Sat Jul 01, 2017 8:03 pm

Attached is what I found in my archives.
Unfortunately only HEX files, sorry it was long time ago.
Please try it, I hope it helps...
Attachments
Cumulus-fw.zip
(29.38 KiB) Downloaded 7 times

zaxon
1st Star Corporal
Posts: 8
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon » Sat Jul 01, 2017 9:50 pm

ISS many thanks, now is much better ;) Time to talk with XC95144 :) . Also my orginal rom from orginal microdisk is dead. :evil: I try dump it but is empty...Not easy..

Image

Image

User avatar
iss
Flight Lieutenant
Posts: 476
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Cumulus Firware Compilation

Post by iss » Sat Jul 01, 2017 11:01 pm

Congrats, great progress! :)
ROM content is the one which is used in emulators too and can be downloaded form here.
Compiling XC95144 code is bit tricky, if you have any problems I think we can solve them :).

User avatar
Chema
Game master
Posts: 2016
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Cumulus Firware Compilation

Post by Chema » Sun Jul 02, 2017 10:42 am

Great!

Please iss, put the file in the repository... clearly having the binay files in addition to the sources looks like a good idea!

zaxon
1st Star Corporal
Posts: 8
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon » Sun Jul 02, 2017 12:10 pm

Very good ;) When i finish i also share working files in one place.

Ok, next day fight, i upload 2 diffrent JED files to XC95144 without success. Also ,somebody know why in Cumulus is Flash EEprom 256, not normal eprom like 27c64 ? Rom for microdisc is 8 KB. So what about rest? Write 4x8kb in to eeprom?

I would be grateful for the working JED file for XC95144XL. :D

On the moment:
Image

User avatar
iss
Flight Lieutenant
Posts: 476
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Cumulus Firware Compilation

Post by iss » Sun Jul 02, 2017 2:06 pm

First, here is how I repaired my Cumulus 2 years ago - literally everything was burnt!
Cumulus-repair.jpg
In the attached zip file are ALL needed binary files.
@Chema: I can't upload to SVN, but someone with write access can do it ;).
Attachments
Cumulus-fw-bin.zip
(56.65 KiB) Downloaded 9 times

User avatar
coco.oric
Flight Lieutenant
Posts: 420
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: Cumulus Firware Compilation

Post by coco.oric » Sun Jul 02, 2017 4:27 pm

Dear all,

here is the process i use to change the firmware on my cumulus :
Processus de Compilation.
1. télécharger et installer mplabx
2. télécharger et installer le compilateur C18 de microchip
3. créer un nouveau projet dans l’ide mplabx avec les options : -standalone, PIC18F46K20, -select ICD3 (non fondamental), C18 compiler et donner un nom au projet
4. Ouvrir la fenetre projet (Windows->Project) et ajouter les fichiers de type .h (header), .lkr (linker) et .c
5. click «run» -> «Build project»
6. Télécharger hex2bin http://hex2bin.sourceforge.net/
7. copier le fichier .hex compilé dans le répertoire hex2bin
8. en ligne de commande, taper hex2bin -l 10000 YOURHEXFILENAME

The tools :
. EaseUS Partition Master 9.3.0 permet de reformater correctement la carte SD. Il est nécessaire que seul le fichier CUMULUS.BIN (majuscules) soit présent sur la carte SD pour reprogrammer le firrmware.
. Installer les logiciels requis ci-dessous : MPLab C18 et MPLABx IDE (nécessite de s’enregistrer sur le site) et Hex2Bin Attention, le Cumulus possède 2 types d’écran : le PCF8833 et le S1D15G10 (point noir) et le header 6610.h doit en tenir compte (#define)

Sorry, it's in french but i wrote it 3 years ago when i tried to change the buttons' role.
Didier
coco.oric as DidierV, CEO Member
Image Image

zaxon
1st Star Corporal
Posts: 8
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon » Sat Jul 08, 2017 5:42 pm

Ok, ready ;) Big thanks for support.

Image

Some demos downloaded, beer in fridge, so is time for saturday relax with Oric scene ;)

And yes, i need swap colors in case, red bottom and black top . Heheheh
I list also few interfaces on Sell My Retro page.

User avatar
kenneth
Flying Officer
Posts: 179
Joined: Fri Nov 26, 2010 9:11 pm
Location: France PdD
Contact:

Re: Cumulus Firware Compilation

Post by kenneth » Mon Jul 10, 2017 6:34 am

zaxon wrote:
Sun Jul 02, 2017 12:10 pm
...Also ,somebody know why in Cumulus is Flash EEprom 256, not normal eprom like 27c64 ? Rom for microdisc is 8 KB. So what about rest?
It's more handy for updating, you don't need to erase the software with an UV lamp to re-write. I suppose that the EEPROM contains also the update microprogram.

Godzil
Squad Leader
Posts: 755
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: Cumulus Firware Compilation

Post by Godzil » Mon Jul 10, 2017 7:46 pm

The EEPROM contain only the microdisk ROM and nothing else. (which is on a legal point a view quite problematic to be honest)

User avatar
Dbug
Site Admin
Posts: 2345
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Cumulus Firware Compilation

Post by Dbug » Mon Jul 10, 2017 8:16 pm

Godzil wrote:
Mon Jul 10, 2017 7:46 pm
The EEPROM contain only the microdisk ROM and nothing else. (which is on a legal point a view quite problematic to be honest)
It would probably be possible to replace the EEPROM by our own code.
As far as I remember, 90% of it is unused code from the first DOS, all the EEPROM does is to basically load some data, check it's a valid DOS format, loads the boot sector, and run the code after having disabled itself.
Probably about 256 bytes of code, give or take :D

Godzil
Squad Leader
Posts: 755
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: Cumulus Firware Compilation

Post by Godzil » Mon Jul 10, 2017 8:26 pm

Of course, I'm not saying it would be hard :D

User avatar
Dbug
Site Admin
Posts: 2345
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Cumulus Firware Compilation

Post by Dbug » Mon Jul 10, 2017 8:31 pm

All I mean is that this eprom is far from being a core part of the product, and in case of legal troubles looming, it would probably take a week to get a replacement one, and we could even use the additional room for adding stuff like a standard file loading library :p

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests