On Tue, 4 Nov 2008, Joshua Juran wrote:

> On Nov 4, 2008, at 12:06 PM, Brad Boyer wrote:
> 
> >On Tue, Nov 04, 2008 at 07:34:41PM +0100, Riccardo wrote:
> >
> >Hopefully there's a logical way to detect this upgrade, but it would be 
> >interesting to know if the update changes the gestalt ID.
> 
> You would detect an upgraded ROM by reading the ROM, I imagine.

Good point. But I think we'd need the ROM base to be supplied by Penguin? 
Or even just the ROM checksum.

> In Genie, it's at /sys/mac/rom.
> By the way, does anyone know how to calculate a ROM checksum, or will I 
> have to reverse-engineer CopyROM or somesuch?

I assumed that CopyROM etc did not validate anything, they just reported 
the checksum contained in the ROM (first 4 bytes). The code must be part 
of the POST though, since a bad rom checksum is a sad mac error. So you 
could reverse engineer that. But IIRC there is a card ROM checksum 
algorithm given in Designing Card and Drivers for the Mac II and Mac SE. 
It's probably the same algorithm. I don't have access to my copy at the 
moment.

Finn

> 
> Josh
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to