Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

This project

  • is awesome, I like to participate wherever I can

    Votes: 14 38.9%
  • is great, I will sit back and see what becomes of it

    Votes: 17 47.2%
  • is useless

    Votes: 5 13.9%

  • Total voters
    36
  • Poll closed .

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
Most of the suggestions here are very nice and useful, but from a developers perspective, the most important is a simply way to flash from another Mac/PC without entering Firmware Programming Mode. A circuit that could halt, flash/dump and reset the Mac Pro - space for more than one image is also very useful, with an image selection switch controlled from GPIO.
I just saw 'another' product which is able to read and write the SPI flash via Little Frank for a MacBook Pro, so when enough info available, it 'may be' be possible.
 

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
Just found this...
1679679809393.png


It's from a 2009-2011 iMac, so it wouldn't differ too much with the cMP 4,1 / 5,1

External ROM is selected by pulling SPIROM_USE_MLB low...

Another layout:

L2S6YqHpTgNkDQP5.full
 

Attachments

  • 1679679801714.png
    1679679801714.png
    148.6 KB · Views: 69
Last edited:
  • Like
Reactions: avro707 and Bmju

avro707

macrumors 68020
Dec 13, 2010
2,263
1,654
Just one chip and just the memory size of the native chip would be fine for me.

I guess it would be great if the alternative nvram chip was also replaceable without soldering, but that's just a 'nice to have'.
Getting away from soldering opens things up to a lot more people who aren’t confident on soldering things.

Bigger memory size would be great, but also if it’s more dependable over the long run.

Being able to keep a pristine version of a rebuilt bootrom that can be reverted to in case of disaster also would be good.
 

tsialex

Contributor
Jun 13, 2016
13,454
13,601
Bigger memory size would be great, but also if it’s more dependable over the long run.

Having a bigger replacement SPI Flash memory is only useful to keep more images, a MacPro5,1 BootROM image is hardwired to 4MB and you can't change that.
 
  • Like
Reactions: crjackson2134

tsialex

Contributor
Jun 13, 2016
13,454
13,601
I just saw 'another' product which is able to read and write the SPI flash via Little Frank for a MacBook Pro, so when enough info available, it 'may be' be possible.

There is no need to program the native SPI Flash itself, like the cmizapper MEDUSA, if we can program one of the images/slots for images and select it for the next boot via GPIO, this will help immensely.

Just found this...
View attachment 2178155

It's from a 2009-2011 iMac, so it wouldn't differ too much with the cMP 4,1 / 5,1

External ROM is selected by pulling SPIROM_USE_MLB low...

Another layout:

L2S6YqHpTgNkDQP5.full

DEBUG_RESET and SMC_RESET are what will be very interesting for developers testing the images, since reseting programmatically the Mac Pro will eliminate an enormous point of friction.
 

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
Having a bigger replacement SPI Flash memory is only useful to keep more images, a MacPro5,1 BootROM image is hardwired to 4MB and you can't change that.
I would wonder how. SPI just continues after 0x3FFFFF to 0x400000 … Is serially hardwired to the CPU, so unless the instruction set doesn’t allow for more than 22bit addressing, it would work IMHO
 

tsialex

Contributor
Jun 13, 2016
13,454
13,601
I would wonder how. SPI just continues after 0x3FFFFF to 0x400000 … Is serially hardwired to the CPU, so unless the instruction set doesn’t allow for more than 22bit addressing, it would work IMHO

You are forgetting how the X86 Reset Vector works, you will have to change all the offsets. Currently more or less 2/5 of the Mac Pro SPI flash is just 0xffs, why you gonna change for a bigger image?

If you gonna go crazy and remove binary compatibility, then something like CoreBoot is a better option.
 

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
You are forgetting how the X86 Reset Vector works, you will have to change all the offsets.
Yes, will need a rebuild of course, not a hardwired limitation though.

If you gonna remove binary compatibility, then something like CoreBoot is a better option.
I have no idea whether that would be good, I've no experience with that.
 

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
Ordered some connectors just before today's shipping deadline. Will see on Monday if the cheap ones fit well.

Schermafbeelding 2023-03-24 om 19.52.02.png
 

tsialex

Contributor
Jun 13, 2016
13,454
13,601
Yes, will need a rebuild of course, not a hardwired limitation though.

Hardwired was probably a wrong choice of word, but effectively is, since we don't have the source code of the BootROM to change everything needed or we want to remove binary compatibility.
 

startergo

macrumors 603
Sep 20, 2018
5,020
2,282
I have no idea whether that would be good, I've no experience with that.
You might wanna look here:

I have a different idea. Why not create a coreboot firmware with modern UEFI-2 and maybe even updating the ME region keeping the original hardware identifiers so OpenCore would work out of the box? Then use that firmware with a switch on the LF connector?
 
Last edited:
  • Like
Reactions: RolfNoot

tsialex

Contributor
Jun 13, 2016
13,454
13,601
I was thinking more in depth about this proposal and while I think that will be really useful for several use cases, one thing that become clear about it is that name choice OpenNVRAM and some of the first post info are currently misleading, this is a SPI flash memory replacement board, exactly like a MATT card is, with added BootROM switcher and not solution for the NVRAM volume logical problems.

The exact same logical problems that the MacPro5,1 BootROM have with the NVRAM volume will continue to happen, hardware can't solve that. You can eliminate the NAND failure issues with the SPI flash replacement board, but not the garbage collection issues, the NVRAM volume problems, the cross-flashing adverse effects or the several BootBlock issues, to cite some. Changing to another BootROM image/slot, like an Amiga Kickstart switcher does, partially address that indirectly, since you can move to a fully working BootROM image, but this continues to be a SPI flash replacement on steroids.

Another thing, without a previously saved BootROM image to the SPI replacement board, you can't get anywhere, this have to be clearly explained, when a newbie reads the first post it gives the impression that everything about his brick will be solved with this future device and is just to connect it to the backplane and the backplane will be magically revived. This is literally impossible, unless you want to mess with Apple copyright real hard like cmizapper currently does or will use CoreBoot instead, but like @startergo correctly suggested above, you still need the factory saved hardware-IDs that are completely lost if the SPI flash memory failed without a BootROM backup.
 
Last edited:

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
I admit the topic name was wrongly chosen, but I am not able to modify it unfortunately.

I wouldn’t compare it with a Matt card which is a pretty dumb device. There’s a lot of logic and functionality added which makes it a different device. An MCU could prevent nvram/bootrom issues when we know when it’s being messed with. It can protect nvram like opencore does and can even switch back to ‘virgin mode’ when needed.

I’m not telling that it can restore bootrom. It can simplify the procedure for the user but we still need tech guys like @tsialex for BootROM reconstruction. I foresee an increased interest in the reconstruction services once users can program it with a ‘virgin’ reconstructed BootROM to switch back to at any moment.
 

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
Also, I had this idea initially, not even knowing if and how much it could contribute to the community. I had some ideas but it needs maturing.

I like the idea of @startergo, but I’ve no idea what all would be possible in the end. I am just an embedded hardware ‘nerd’ focusing on improving the poor SPI ROM design of the MacPro and hoping to contribute in a way to enhance the lifespan of these beautiful machines.
 

tsialex

Contributor
Jun 13, 2016
13,454
13,601
maybe even updating the ME region keeping the original hardware identifiers

You are thinking for newer Macs, no? Apple did not implemented Intel ME with Mac Pro platform until late-2013 Mac Pro.

I admit the topic name was wrongly chosen, but I am not able to modify it unfortunately.

You can always edit the topic title or ask a moderator to do it.

I wouldn’t compare it with a Matt card which is a pretty dumb device. There’s a lot of logic and functionality added which makes it a different device. An MCU could prevent nvram/bootrom issues when we know when it’s being messed with.

First thing, I'm not trying to discourage you in any way, I can see several ways that a solution like you propose can be extremely helpful. I here to help the discussion.

Sure, I'm not doubting that in the long run we can do that, but it's like the end goal. You will have to initially implement a SPI flash replacement + BootROM switcher and then interact/develop on that, no?

It can protect nvram like opencore does

OpenCore protection of the NVRAM is very narrow and with some very specific issues that happen at boot time once macOS/Windows is loaded, OpenCore is not running anymore and you can still make havoc with the MacPro5,1 NVRAM VSS store. Yes, the design Apple implemented is this bad when you look with today's hindsight.

and can even switch back to ‘virgin mode’ when needed.

Yeah, some things are easy to avoid, like corrupted headers, I'm sure your logic can scan for some of the most common NVRAM/BootROM errors with some validation/checksum verification/etc.

Also, I had this idea initially, not even knowing if and how much it could contribute to the community. I had some ideas but it needs maturing.

Anything that can be done for improving our Mac Pros, will surely be most welcome.

I like the idea of @startergo, but I’ve no idea what all would be possible in the end. I am just an embedded hardware ‘nerd’ focusing on improving the poor SPI ROM design of the MacPro and hoping to contribute in a way to enhance the lifespan of these beautiful machines.

Just one other thing to add and going back to my suggestion of the first implementation, a lot of the Mac Pro user base have zero or little interest running anything newer than Mojave.

A lot of Logic Pro guys still run Snow Leopard/El Capitan/High Sierra. Adobe CS6 people can't even go anything newer than High Sierra. Studios and production houses that still run MacPro5,1, most are using it with legacy applications like FCP7.

So, for a good chunk of the perspective public for a solution like this, CoreBoot or even OpenCore have no attractiveness whatsoever.
 
Last edited:

KvR

macrumors member
Jan 11, 2017
58
48
Amsterdam
I don’t have much two offer on the programming skills. But I am willing to contribute upfront like 50-100 euro? So some test materials can be bought. Also I’m not a complete idiot and willing to experiment and alpha or beta test.

My interest would be to stay current with the latest macOS release and improve hardware support.
 

cdf

macrumors 68020
Jul 27, 2012
2,256
2,583
As an enhanced programmer/smart Matt card, this device has a lot of potential.

Some ideas:
  • One functionality that I envision is to automatically switch to a clean BootROM image periodically or even based on (MCU-sensed) pre-corruption indicators.
  • We should also look into SMC interaction via Frank. It might be possible to fix the racing fan bug (perhaps with a simple reset) that affects some machines and graphics cards.
  • The USB connection could be provided internally through my olá module (or similar).
  • It is important to minimize the strain on the Little Frank connector (I don’t think it’s rated for many plug-unplug cycles). This is something that should be kept in mind when testing connectors and should also be incorporated in the design.
 

Macschrauber

macrumors 68030
Dec 27, 2015
2,979
1,487
Germany
It would be a combination of hard- and software. For example scanvss from @Syncretic can be used to check the variables and UefiExtract for checking the CRC32 sums. I use both tools for my dumper in the background.

An emergency mode could contain the generic mp51.fd file what has no machine IDs (nor Fsys, Gaid, lbsn). The user has to flash that firmware on it in a pre installation procedure (for copyright issues I would not ship it with a firmware pre installed).

This does not take away the need for having a bootrom backup of course like @tsialex said.

I would add some functionality to my dumper to serve such a firmware board.
 
  • Like
Reactions: RolfNoot

cdf

macrumors 68020
Jul 27, 2012
2,256
2,583
OpenCore protection of the NVRAM is very narrow and with some very specific issues that happen at boot time, once macOS/Windows is loaded, OpenCore is not running anymore and you can make havoc with the MacPro5,1 NVRAM VSS store.
Just a comment on this: OpenRuntime is present though, so I believe the protection extends beyond boot time.
 
  • Like
Reactions: Bmju

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
As an enhanced programmer/smart Matt card, this device has a lot of potential.

Some ideas:
  • One functionality that I envision is to automatically switch to a clean BootROM image periodically or even based on (MCU-sensed) pre-corruption indicators.
  • We should also look into SMC interaction via Frank. It might be possible to fix the racing fan bug (perhaps with a simple reset) that affects some machines and graphics cards.
  • The USB connection could be provided internally through my olá module (or similar).
  • It is important to minimize the strain on the Little Frank connector (I don’t think it’s rated for many plug-unplug cycles). This is something that should be kept in mind when testing connectors and should also be incorporated in the design.
That's an interesting olá module! 😀 The design can embrace the same functionality as well. Currently I am thinking to use PSoC4200L as I can create the firmware and multiplexing of the SPI signals in almost no time (have done each aspect of the design earlier and it's just a matter of connecting the Lego blocks).

Eventually I will look into RP2040 or similar to see which chip can have the desired functionality utilized.

I will hook the SMC & LPC signals on the LF to the MCU, so any SMC interaction can be developed in f/w when there's interest.

It would be a combination of hard- and software. For example scanvss from @Syncretic can be used to check the variables and UefiExtract for checking the CRC32 sums. I use both tools for my dumper in the background.

An emergency mode could contain the generic mp51.fd file what has no machine IDs (nor Fsys, Gaid, lbsn). The user has to flash that firmware on it in a pre installation procedure (for copyright issues I would not ship it with a firmware pre installed).

This does not take away the need for having a bootrom backup of course like @tsialex said.

I would add some functionality to my dumper to serve such a firmware board.
Would incorporating the mp51.fd image raise any copyright issues? I was thinking though to change the chime AIFF so users would notice the difference :cool:
 
Last edited:
  • Like
Reactions: cdf

RolfNoot

macrumors member
Original poster
Feb 20, 2023
79
100
Tried to change the (misleading) title to:
Open KickStart Project - kick new life to the cMP - polling interest

Seems I can't do that, any moderator here to help? Fixed!
 
Last edited:

Bmju

macrumors 6502a
Dec 16, 2013
702
767
I was thinking though to change the chime AIFF so users would notice the difference
Please don't. I think as someone else said, Mac owners trend to be quite aesthetically sensitive, and to just want their machines to work nicely, in the standard Apple way.
 
  • Like
Reactions: RolfNoot

Bmju

macrumors 6502a
Dec 16, 2013
702
767
Just a comment on this: OpenRuntime is present though, so I believe the protection extends beyond boot time.
Yes, OpenRuntime and OpenVariableRuntimeDxe remain present and continue to provide the protections that they respectively provide while the OS - any OS - is running
 
  • Like
Reactions: tsialex and cdf

Macschrauber

macrumors 68030
Dec 27, 2015
2,979
1,487
Germany
Please don't. I think as someone else said, Mac owners trend to be quite aesthetically sensitive, and to just want their machines to work nicely, in the standard Apple way.

as I understand this is for the emergency firmware without identity. So a special emergency firmware chime is imo helpful to separate and to warn if it was chosen.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.