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: 3013
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Cumulus Firware Compilation

Post by Chema »

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
Officer Cadet
Posts: 48
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon »

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
Wing Commander
Posts: 1637
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Cumulus Firware Compilation

Post by iss »

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 371 times
zaxon
Officer Cadet
Posts: 48
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon »

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
Wing Commander
Posts: 1637
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Cumulus Firware Compilation

Post by iss »

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: 3013
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Cumulus Firware Compilation

Post by Chema »

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
Officer Cadet
Posts: 48
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon »

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
Wing Commander
Posts: 1637
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Cumulus Firware Compilation

Post by iss »

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 390 times
User avatar
coco.oric
Squad Leader
Posts: 720
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: Cumulus Firware Compilation

Post by coco.oric »

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
Historic owner of Oric, Apple II, Atari ST, Amiga
zaxon
Officer Cadet
Posts: 48
Joined: Thu Jun 29, 2017 9:51 am

Re: Cumulus Firware Compilation

Post by zaxon »

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
Squad Leader
Posts: 514
Joined: Fri Nov 26, 2010 9:11 pm
Location: France PdD
Contact:

Re: Cumulus Firware Compilation

Post by kenneth »

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: 774
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: Cumulus Firware Compilation

Post by Godzil »

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: 4437
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Cumulus Firware Compilation

Post by Dbug »

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: 774
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: Cumulus Firware Compilation

Post by Godzil »

Of course, I'm not saying it would be hard :D
User avatar
Dbug
Site Admin
Posts: 4437
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Cumulus Firware Compilation

Post by Dbug »

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