Alan, Awesome to see someone else helping out. Thank you!
I've had some issues here last night but I think it's a corrupt environment at my end. I will reclone and build again tonight as it was working. Follow the steps in instructions.txt in the linuxcnc branch do a make purge-all before you start again You may need to run "make ncompile" after "make ccompile" I would also suggest you edit userdata.txt and set MENUCONFIG="1" CUSTOM_DEFCONFIG="0" This will open the kernel menuconfig and prevent the use of the custom defconfig (which may be corrupt) When menuconfig opens, open general settings and look for preemption model. Set it to fully preemptible kernel If that option is not there, go back one level and further down general settings, there is a menu option with "expert" in the name. Set that to true and the fully preemptible kernel option will be displayed. I have found this to be a very confusing recent change at kernel.org... Once this is building, we should be able to copy the generated defconfig to the file defconfig/linuxcnc_defconfig and reset this userdata flags for full automation Re the kernel, note that upstream added an additional field in userdata.txt to contain the desired commit number on the Raspberry Pi's kernel repository for better automation. The latest RT patch is at version 6.1.46 refer https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.1/ So we copy that patch to the userpatches folder and select the commit where kernel version 6.1.46 was merged into the pi kernel in userdata.txt. (currently on last look, it had advanced to 6.1.50) This I know works! You can follow the conversation I have had with the pi installer upstream in this issue https://github.com/pyavitz/rpi-img-builder/issues/56 Finally, I can confirm that the Debian Real time kernel is crap and compiling from pristine upstream sources on any architecture always yields better latency. But here we are retrieving the Raspberry pi kernel, not debian or from kernel.org Thanks so much for giving this a try. I know a couple have got it working from my repo so don't give up! Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Tue, 5 Sept 2023 at 09:57, condit.alan--- via Emc-developers < emc-developers@lists.sourceforge.net> wrote: > Rod, > Thanks, I have cloned your repository and am now in the process of > building it. > I built a new kernel from Linux sources and it has some differences with > the stock Debian kernel that made me pause in its installation. It expected > some directories where the standard installation had files. > Alan > > > > Date: Sun, 3 Sep 2023 13:42:13 +1000 > > From: Rod Webster <r...@vmn.com.au> > > To: EMC developers <emc-developers@lists.sourceforge.net> > > Subject: [Emc-developers] Raspberry Pi - Linuxcnc Bookworm installer > > ready to go > > Message-ID: > > <canv1gkdcqfntdxmxv58qwjku0nvtonbs6c6sr4nrkjk-ohv...@mail.gmail.com> > > Content-Type: text/plain; charset="UTF-8" > > > > Hi guys, I have forked the Raspberry Pi installer and built a linuxcnc > > branch > > https://github.com/rodw-au/rpi-img-builder-lcnc/tree/linuxcnc > > > > With a lot of help from upstream who made a few mods for me this is now > > final. (I hope) > > It downloads the official Raspberry Kernel at a commit that matches the > > latest 6.1 RT patch from kernel org and applies the 6.1.46 RT patch. > > > > It also adds the correct isolcpus settings in the boot environment. > > > > It installs xfce and downloads the latest Linuxcnc code, builds the debs > > and installs them to the menus. (Docs are not built as its already a 6.5 > Gb > > .img). The source and build files are deleted on completion to reduce th > > footprint by about 1 Gb. > > > > It would be great if this could be forked into Linuxcnc. > > Also because its built in a chroot cross-compiler environment, it may be > > possible to incorporate into Sebs new buildbot, You can also copy the > debas > > to another location in the script /files/userscript/uscripts > > > > You pi guys please give it a go and provide feedback on my repo. > > > > > > Rod Webster > > *1300 896 832* > > +61 435 765 611 > > > > _______________________________________________ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers