#linuxcnc-devel Logs
Apr 28 2021
#linuxcnc-devel Calendar
03:03 PM -!- #linuxcnc-devel mode set to +v by ChanServ
03:08 PM -!- #linuxcnc-devel mode set to +v by ChanServ
03:56 PM -!- #linuxcnc-devel mode set to +v by ChanServ
03:56 PM -!- #linuxcnc-devel mode set to +v by ChanServ
08:15 PM -!- #linuxcnc-devel mode set to +v by ChanServ
08:15 PM -!- #linuxcnc-devel mode set to +v by ChanServ
08:49 PM jepler: well that was anti-climactic.... as far as hm2_pci is concerned, a 6i24 on the pci connector of a raspberry pi 4 compute module .. simply works without any fiddling. (or at least, is detected and configured, I didn't run RT threads yet)
08:49 PM jepler: I think mesaflash will have more to do
08:49 PM jepler: pcw_mesa:
08:52 PM jepler: https://gist.github.com/jepler/5c4eed115fcfa7705bb9e9080833f173
08:54 PM jepler: https://www.jeffgeerling.com/blog/2020/usb-20-ports-not-working-on-compute-module-4-check-your-overlays the usb ports didn't work until I did this 1-line configuration
09:10 PM cradek: awesome
09:14 PM Tom_L: that's cool. i tested ethernet and spi but not pci on it
09:33 PM jepler: https://github.com/LinuxCNC/mesaflash/pull/46 that was much easier than I was worried it would be .. mostly silly integer-size stuff.
09:34 PM jepler: Tom_L: I hadn't heard of anybody who did but I didn't look too hard
09:35 PM Tom_L: i did test the ethernet on my mill with no issues
09:35 PM jepler: when I realized the CM4 had a pci slot with no fiddling I figured what the heck, why not see if it worked, or I could make it work. tada.
09:36 PM jepler: I had read about being able to desolder one of the ICs on a PI4 to add a PCI daughterboard, but that's not for me.
09:36 PM jepler: https://www.raspberrypi.org/products/compute-module-4-io-board/
09:37 PM Tom_L: might be a bit cumbersome unless you have a good way to mount the mesa card
09:37 PM jepler: yeah it's not confidence-inspiring. A right angle PCI-E riser would help.
09:38 PM cradek: + printf(" Memory: %08" PRIx64 "\n", board->mem_base);
09:38 PM cradek: what on earth
09:38 PM jepler: the CM4 idea is that third parties will design the I/O boards, so the magical outcome would be an FPGA board you plug the compute module into .. it would have to also have HDMI, USB, power, etc though.
09:39 PM jepler: PRIx64 expands into something that prints an (u)int64_t value in hex
09:39 PM jepler: it might be %lx, %LLx, %qx, who knows ..
09:39 PM cradek: heh wow
09:39 PM jepler: In C99 rather than defining new %-substitutions for the specifically-sized integers, they added these macros that expand to whatever is needed
09:40 PM cradek: [magic glitter hand waving guy animated gif]
09:40 PM jepler: oh I probably need to cast the argument (which is of some other type) to uint64_t though. we'll see what the CI says.
09:40 PM jepler: indeed
09:41 PM jepler: 'night