For the CM4 is there really any reason to lift motherboard WiFi chip or cut traces on the motherboard? Im still pretty new to hardware mods like this so im wondering if im missing something.
The CM4 attaches to an adapter that then plugs in to the SODIMM socket on the motherboard, that means all of the connections are right there in the open on the edge of the adapter. My idea is to solder jumper wires to the very top of the GPIO pads and cover the rest of the pad with solder mask or kapton tape so they never get to the motherboard in the first place. I figure this way my motherboard is fully functional for other cores.
Is there any reason this wouldnāt work compared to cutting the traces on the motherboard or lifting that chip?
If you do not have access to hot air, even just removing power from the MB WiFi (cut one single trace) may suffice actually. If the chip does not power on, no data is transmitted and the bus is free to use for GPIO.
Yes, hijacking the signals would work as long as they donāt make the connection to the MB. But to make sure that doesnāt happen you still need to cut the traces on the adapter before they get to the connector or after they leave the connector on the MB, assuming they are accessible. Youāll have to check the schematic for the MB, adapter board and compare them to the physical boards to see if it can be pulled off.
In short you need to study the schematics and physical boards to see if this can be done.
And there is still the question of whether or not the adapter board exports the needed signals to the MB socket. This is called in to question by what you mentioned about needing a CM4 with WiFi. This is all moot if those signals are buried on BGA pins of the SOC. Most SOCs Iāve looked at use BGA pins. Iād have to look at the CM4 to know if it does.
I donāt understand; if we power down (cutting power or GND trace) or remove the WiFi module from the MB, the GPIOs on the 40-pin GPIO header are going to be free to use, no?
You mean balls?
Itās nice / comforting to see though, that the CM4 has a nice antenna connector just like the Clockworkpi MB, so you can still connect antennas (maybe even the included one) and get good reception.
It may be worth breaking that connector out to the shellās outside to connect a beefier antenna via SMB, though. Applies to the MB WiFi, as well, of course.
Another question, referring back to the original post: canāt you use the ā52 Pins extension module interfaceā? Is there anything preventing you to use that for the RTC?
From what I can tell here, GPIO28 through GPIO44 are free to use on the PCIe slot, right?
And if you do remove the WiFi chip, you get full 19 GPIOs free on the ā40-pin GPIO headerā:
If you end up needing the MB WiFi module after all, you can get a second MB for just $39. Then youād have one WiFi MB and one non-WiFi with 19 free GPIOs.
Another idea: if you populate the mini PCIe slot for a 4G module and donāt want to lose MB WiFi, you do get another audio port on that 4G module. So you could remove the MB audio and get 4 GPIOs, in case thatās enough for you:
Yes, if you remove the WiFi module you gain the GPIOs. But that wasnāt the question @USFrozen was asking. I would also say that I would have some concern that an unpowered WiFi module sitting on those lines might inject some noise. But my understanding of how the chips are actually made is extremely minimal, so it could very well be a good solution.
Assuming that the CM4 adapter is actually providing those signals. I have not attempted to verify that either.
Yes, I want the printer, speakers and USB ports so I want to leave the āext moduleā intact and connected. The I2C bus for the EXT module is brought out on the camera port. I donāt see anything on that board interfering with address 68H. Since I have no desire to have a camera my plan is to tap into that. Its just going to take more time, ducking and probably more creativity.
To clarify my specific needs: I just need access to an I2C bus⦠which is usually stupid simple. Imagine my surprise after finding and ordering pieces to work with these awful connectors that it didnāt work. Turns out the devices on the MB attached to the I2C bus also use address 68H. And there is nothing I can do about that.
The whole point of this topic was to start the discussion about what GPIO was actually still available on the so-called GPIO connector and to act as a warning for others looking to take advantage of it. Mission accomplished!
āBallsā / āpinsā same difference. I italicized the word because its not the exact correct word to use. But even novice readers will likely understand what I wrote.
Good point; sadly I just discovered that the CM4 adapter has no schematics or PCB files on GitHub (yet?).
In case they thought of that (that the CM4 has WiFi already) and left the GPIOs free, that would be great news for CM4 users.
I agree, and I do thank you for that. Itās very good to know that this issue exists.
If youāre referring to the GPIO availability, its all consumed unless you remove the extension module and put your own thing there. If youāre referring to the CM4 schematics I still canāt find them. If you want to know if the CM4 gives you more GPIO, all the main and extension module connections would remain the same, so anything exported to the GPIO header would still have all the same hardware attached, yet they might not actually be attached to something on the CM4 module.
I donāt expect anything will change.
I donāt own a CM4 module so maybe some GPIO can be drawn off of the module itself.
I just noticed this was DevTerm and not Uconsole, sorry!
I think the CM4 adapter schematic in PDF format is here:
Iāve been looking at this like the rest of you, thanks for your fantastic chart @yatli. I think that we have access to general GPIO as well as SPI and other features on the PCI via the GPIO28 to GPIO40ish connectors, as far as I can tell from that schematic and the CM4ās pinout itself.
But Iām not 100% sure, there are some weird discrepancies in that linked schematic I think.
Iād love for us to figure this out! The fact that the camera and extra USB4 arenāt even given tracks and bare pads on the 4G board and bare board bugs me, how are we supposed to use them!
@Scriven42 thanks for the schematic link. I did/would not look in the uConsole repo for it, since from what Iāve experienced here it predates the uConsole by quite a bit. These guys arenāt the best ālibrariansā.
According to the schematic a significant amount of the capacity of the rPi-CM4 is not being utilized, specifically its not connected to anything or being brought out in any way. Only what is needed to fulfill the needs of the main board and extension connector. This isnāt surprising, since it appears that the main board was originally designed for a CM3. That means the I/O of the CM4 is being reduced to that of a CM3.
With that said @yatliās chart still holds. With the clockwork extension module plugged in everything on the 40 pin gpio connector has other hardware attached. For my RTC project I was going to plug into the ācameraā socket on the EXT module and use the I2C bus there. I have no desire for a camera.
I donāt know that there is anything left to figure out. If you want to reach the unused I/O of the CM4, judging by photos and schematics, it appears youāll have to brew up a different adapter or some kind of piggy-back arrangement (which there likely isnāt any room for) with additional connectors to export the orphaned I/O.
Or you can ditch the EXT module and pull I/O off of the EXT connector. I donāt have a uConsole so I am assuming that they have an EXT module plugged in. Since the DevTerm and uConsole use the same main board the connectors are the same in both cases.
Iām not sure if Iāve made a mistake or not, but Iāve gone through the various schematics for the uConsole and done the same thing as @yatliās done, but for the CM4 only, and things look different and possibly MORE frustrating?
From what I can tell, both the camera (CAM1) and a bunch of unused GPIO is sent to the PCIe connector, and are then just trapped on the 4G boardā¦
I found it very confusing to map the net changes to try and keep track of things, they change from CM4 to DDR, and from DDR to MainBoard in some cases.
Oh, I wonder if this even belongs here or should I post this in uConsole forum? lol
NOTE: I donāt have a g00g account. The made a security decision on my behalf, without consulting me and locked me out. Iām already fed up with them so, Iām content to leave it at mutual hate.
I took a further look at the uConsole and see that they donāt use the DevTerm āEXTā module but instead provide the 4G adapter. Anyone familiar with the uConsole is probably saying, āDUH!!ā Since the DevTerm and uConsole EXTension hardware differs the uConsole forum may have better info. Iād also hazard a guess that the 4G module leaves more GPIO available. Iām pretty sure the DevTerm board was designed to use everything the main board didnāt. But if memory serves nothing from the PCIe connector shows up on the āGPIO connectorā.
Hmm⦠might be interesting to put this 4G module in a DevTerm if you can obtain it separately and you donāt want the printer.
As for tracing it through Iād start a spreadsheet. (Sorry I canāt see what you have.) Iād start with the SOM connector on the main board and list pin numbers in one column, signal names in another. Iād disregard anything not useful for GPIO purposes: Power, RAM, ⦠Iād do that simply to cut down on the work. If those things hold interest for you, then by all means trace away.
Iād use additional columns to track label changes and where those signals come out on different connectors.
Unfortunately I find that ClockworkPi is not particularly friendly to hardware hackers. The issue that prompted this topic, the use of FPC and PCIe connectors without supplying suitable breakouts, the warranty issue, disappearing SOMs, insane delivery times, broken software, ⦠They have all soured me on ClockworkPi. Its bummer because the actual hardware and cases look to be āclassā. But its like they canāt be bothered with the mundania of making it work or supplying trivial components to encourage the āmakerā spirit their ads seem to want to foster. Without any available GPIO on their GPIO connector ⦠its kind of moot. In short they oversold what they had to offer.
FYI: I Found that https://tinkersphere.com/ has a broad selection of 6" FPC ribbons and appropriate breakout boards. It wonāt help you with the PCIe connector. But it will help with those other connectors. Just donāt sneeze or youāll break the damn things.
Anyhow I donāt suspect Iāll have any time to further chase the uConsole hardware. Good luck!