Gene, I found a kernel patched version 4.19.59-rt23-v7l+ for Raspberry Pi 4B at https://github.com/lemariva/RT-Tools-RPi/commit/59f477d637b8dfc3082a1163e76e09e72fd87379 <https://github.com/lemariva/RT-Tools-RPi/commit/59f477d637b8dfc3082a1163e76e09e72fd87379>. You could try it and maybe not even have to build the kernel.
Alan > On Sep 20, 2019, at 2:54 PM, emc-users-requ...@lists.sourceforge.net wrote: > > Send Emc-users mailing list submissions to > emc-users@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/emc-users > or, via email, send a message with subject or body 'help' to > emc-users-requ...@lists.sourceforge.net > > You can reach the person managing the list at > emc-users-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Emc-users digest..." > Today's Topics: > > 1. Re: MESA 7i92H Power (John Dammeyer) > 2. Re: MESA 7i92H Power (Peter C. Wallace) > 3. sorting an rpi4 for an rt kernel (Gene Heskett) > 4. Re: sorting an rpi4 for an rt kernel (Gene Heskett) > 5. Re: MESA 7i92H Power (John Dammeyer) > > From: "John Dammeyer" <jo...@autoartisans.com> > Subject: Re: [Emc-users] MESA 7i92H Power > Date: September 20, 2019 at 12:47:53 PM PDT > To: "'Enhanced Machine Controller \(EMC\)'" <emc-users@lists.sourceforge.net> > > >>> And Peter, you stated previously that it's more versatile to not use a pin >>> file with the PWM DIR allocated. So which is it? >> >> It is better (because if you dont want the pin to be spindle >> DIR you have no choice if you enable PWM but if its plain GPIO >> it can funtion ad DIR or just a normal output) >> but you do need PWM on the proper pin >> >> What breakout do you have and where is its PWM pin? >> >> (The PMDX126 has PWM on pin 16 not 14 ) > > Exactly. As I've said a number of times now, I have a PMDX-126. I've been > asking to have the PWM moved from pin 14 to pin 16 now for the last couple of > days. You've said you have a pin/bin file for the PMDX-126. I've asked if > it could be emailed to me. Since that product is out there it seems to make > sense to me that it be included in the 7i92.zip file. > > Thank you > > John > >> >>> >>> John > > > > > > > From: "Peter C. Wallace" <p...@mesanet.com> > Subject: Re: [Emc-users] MESA 7i92H Power > Date: September 20, 2019 at 1:47:14 PM PDT > To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> > > > On Fri, 20 Sep 2019, John Dammeyer wrote: > >> Date: Fri, 20 Sep 2019 12:47:53 -0700 >> From: John Dammeyer <jo...@autoartisans.com> >> Reply-To: "Enhanced Machine Controller (EMC)" >> <emc-users@lists.sourceforge.net> >> To: "'Enhanced Machine Controller (EMC)'" <emc-users@lists.sourceforge.net> >> Subject: Re: [Emc-users] MESA 7i92H Power >>>> And Peter, you stated previously that it's more versatile to not use a pin >>>> file with the PWM DIR allocated. So which is it? >>> >>> It is better (because if you dont want the pin to be spindle >>> DIR you have no choice if you enable PWM but if its plain GPIO >>> it can funtion ad DIR or just a normal output) >>> but you do need PWM on the proper pin >>> >>> What breakout do you have and where is its PWM pin? >>> >>> (The PMDX126 has PWM on pin 16 not 14 ) >> >> Exactly. As I've said a number of times now, I have a PMDX-126. I've been >> asking to have the PWM moved from pin 14 to pin 16 now for the last couple >> of days. You've said you have a pin/bin file for the PMDX-126. I've asked >> if it could be emailed to me. Since that product is out there it seems to >> make sense to me that it be included in the 7i92.zip file. >> >> Thank you >> >> John > > http://freeby.mesanet.com/7i92_pmdx126.zip > > >> >>> >>>> >>>> John >> >> >> >> _______________________________________________ >> Emc-users mailing list >> Emc-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/emc-users >> > > Peter Wallace > Mesa Electronics > > (\__/) > (='.'=) This is Bunny. Copy and paste bunny into your > (")_(") signature to help him gain world domination. > > > > > > > From: Gene Heskett <ghesk...@shentel.net> > Subject: [Emc-users] sorting an rpi4 for an rt kernel > Date: September 20, 2019 at 2:03:06 PM PDT > To: "'Enhanced Machine Controller (EMC)'" <emc-users@lists.sourceforge.net> > > > I have the mesa stuff running, as in full screen glxgears is >50 fps, > I think I am ready to tackle the next step in making linuxcnc run on a > rpi4, which is building it a realtime kernel. > > So, Following along with the kernel-building page from the raspian site: > > #>sudo apt install bc bison flex libssl-dev > No errors. > modify the git command to git the latest kernel that uname says it is: > #>sudo git clone --depth=1 https://github.com/raspberrypi/linux -b > rpi-4.19.y-rt > #>sudo chown -R pi:pi linux > #>cd linux > #>make bcm2711_defconfig > no errors > skip to rpi-4 instructions; but do a make menuconfig first to check stuff > Trouble, needs ncurses-devel or libncurses-dev: > * Unable to find the ncurses package. > * Install ncurses (ncurses-devel or libncurses-dev > * depending on your distribution). > > I suspect wayland is the culprit.. > > sudo apt can't find any ncurses packages > use less to verify the rt stuff is set, is: > # Timers subsystem > # > CONFIG_TICK_ONESHOT=y > CONFIG_NO_HZ_COMMON=y > # CONFIG_HZ_PERIODIC is not set > CONFIG_NO_HZ_IDLE=y > # CONFIG_NO_HZ_FULL is not set > CONFIG_NO_HZ=y > CONFIG_HIGH_RES_TIMERS=y > CONFIG_PREEMPT=y > CONFIG_PREEMPT_RT_BASE=y > CONFIG_HAVE_PREEMPT_LAZY=y > CONFIG_PREEMPT_LAZY=y > # CONFIG_PREEMPT_NONE is not set > # CONFIG_PREEMPT_VOLUNTARY is not set > # CONFIG_PREEMPT__LL is not set > # CONFIG_PREEMPT_RTB is not set > CONFIG_PREEMPT_RT_FULL=y > CONFIG_PREEMPT_COUNT=y > > So, not being able to intelligently modify it, I fire off a "make -j2 > zImage modules dtbs" to see what falls out. I'd try the j4, but w/o a > fan on that big one piece heat sink, and its hot already, a j4 might be > pushing my luck. Half an hour later its still munching along at about 3x > a pi3's speed. > > Now, I see something in the raspberry kernel building docs that I think > will be handier than sliced bread, I can name the zImage I copy to > the /boot partition differently, as long as I also use that name as the > kernel to boot in the /boot/config.txt file. So a quick edit of that > file, either on a live machine, or in a reader, can put me back to > booting the default kernel. I don't know as I can do that on a pi3. But > it for sure is worth trying! The limit of course is the size of > the /boot, and how full it is. On the pi4, 260 megs, df say its 16% > used, so there is room to play. But the pi3 /boot is only 60 megs, and > 55% used, so maybe not. > > Done but me somewhat confused. It built bcm2711-rpi-4-b.dtb > which is in the /boot directory, but built it > in /media/pi/workspace/kernel/linux/arch/arm/boot/dts/bcm2711-rpi-4-b.dtb, > which is nearly the same location it built zImage in. > > There is an install.sh in that /arch/arm/boot directory, but it needs at > least 3 arguments. Anyboy got an idea what to pass to it? > > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/gene> > > > > > > From: Gene Heskett <ghesk...@shentel.net> > Subject: Re: [Emc-users] sorting an rpi4 for an rt kernel > Date: September 20, 2019 at 2:41:08 PM PDT > To: emc-users@lists.sourceforge.net > > > On Friday 20 September 2019 17:03:06 Gene Heskett wrote: > >> I have the mesa stuff running, as in full screen glxgears is >50 fps, >> I think I am ready to tackle the next step in making linuxcnc run on a >> rpi4, which is building it a realtime kernel. >> >> So, Following along with the kernel-building page from the raspian >> site: >> >> #>sudo apt install bc bison flex libssl-dev >> No errors. >> modify the git command to git the latest kernel that uname says it is: >> #>sudo git clone --depth=1 https://github.com/raspberrypi/linux -b >> rpi-4.19.y-rt >> #>sudo chown -R pi:pi linux >> #>cd linux >> #>make bcm2711_defconfig >> no errors >> skip to rpi-4 instructions; but do a make menuconfig first to check >> stuff Trouble, needs ncurses-devel or libncurses-dev: >> * Unable to find the ncurses package. >> * Install ncurses (ncurses-devel or libncurses-dev >> * depending on your distribution). >> >> I suspect wayland is the culprit.. >> >> sudo apt can't find any ncurses packages >> use less to verify the rt stuff is set, is: >> # Timers subsystem >> # >> CONFIG_TICK_ONESHOT=y >> CONFIG_NO_HZ_COMMON=y >> # CONFIG_HZ_PERIODIC is not set >> CONFIG_NO_HZ_IDLE=y >> # CONFIG_NO_HZ_FULL is not set >> CONFIG_NO_HZ=y >> CONFIG_HIGH_RES_TIMERS=y >> CONFIG_PREEMPT=y >> CONFIG_PREEMPT_RT_BASE=y >> CONFIG_HAVE_PREEMPT_LAZY=y >> CONFIG_PREEMPT_LAZY=y >> # CONFIG_PREEMPT_NONE is not set >> # CONFIG_PREEMPT_VOLUNTARY is not set >> # CONFIG_PREEMPT__LL is not set >> # CONFIG_PREEMPT_RTB is not set >> CONFIG_PREEMPT_RT_FULL=y >> CONFIG_PREEMPT_COUNT=y >> >> So, not being able to intelligently modify it, I fire off a "make -j2 >> zImage modules dtbs" to see what falls out. I'd try the j4, but w/o a >> fan on that big one piece heat sink, and its hot already, a j4 might >> be pushing my luck. Half an hour later its still munching along at >> about 3x a pi3's speed. >> >> Now, I see something in the raspberry kernel building docs that I >> think will be handier than sliced bread, I can name the zImage I copy >> to the /boot partition differently, as long as I also use that name as >> the kernel to boot in the /boot/config.txt file. So a quick edit of >> that file, either on a live machine, or in a reader, can put me back >> to booting the default kernel. I don't know as I can do that on a >> pi3. But it for sure is worth trying! The limit of course is the size >> of the /boot, and how full it is. On the pi4, 260 megs, df say its 16% >> used, so there is room to play. But the pi3 /boot is only 60 megs, and >> 55% used, so maybe not. >> >> Done but me somewhat confused. It built bcm2711-rpi-4-b.dtb >> which is in the /boot directory, but built it >> in >> /media/pi/workspace/kernel/linux/arch/arm/boot/dts/bcm2711-rpi-4-b.dtb >> , which is nearly the same location it built zImage in. >> >> There is an install.sh in that /arch/arm/boot directory, but it needs >> at least 3 arguments. Anyboy got an idea what to pass to it? >> > So then I thought I'd see how far I could get with a 2 or 3 week old pull > of linuxcnc-master, but ./configure bails out: > > checking for libusb-1.0... yes > checking for module installation directory... configuring for > run-in-place > /media/pi/slash/linuxcnc-master/rtlib > checking for glib... configure: error: no -- required until somebody > makes glib optional > Another wayland casualty? > > Thanks for any guidance everybody. > > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > Genes Web page <http://geneslinuxbox.net:6309/gene> > > > > > > From: "John Dammeyer" <jo...@autoartisans.com> > Subject: Re: [Emc-users] MESA 7i92H Power > Date: September 20, 2019 at 2:53:42 PM PDT > To: "'Enhanced Machine Controller \(EMC\)'" <emc-users@lists.sourceforge.net> > > > Thank you. I'll try it later today. > John > > >> -----Original Message----- >> From: Peter C. Wallace [mailto:p...@mesanet.com] >> Sent: September-20-19 1:47 PM >> To: Enhanced Machine Controller (EMC) >> Subject: Re: [Emc-users] MESA 7i92H Power >> >> On Fri, 20 Sep 2019, John Dammeyer wrote: >> >>> Date: Fri, 20 Sep 2019 12:47:53 -0700 >>> From: John Dammeyer <jo...@autoartisans.com> >>> Reply-To: "Enhanced Machine Controller (EMC)" >>> <emc-users@lists.sourceforge.net> >>> To: "'Enhanced Machine Controller (EMC)'" <emc- >> us...@lists.sourceforge.net> >>> Subject: Re: [Emc-users] MESA 7i92H Power >>> >>>>> And Peter, you stated previously that it's more versatile to not use a pin >>>>> file with the PWM DIR allocated. So which is it? >>>> >>>> It is better (because if you dont want the pin to be spindle >>>> DIR you have no choice if you enable PWM but if its plain GPIO >>>> it can funtion ad DIR or just a normal output) >>>> but you do need PWM on the proper pin >>>> >>>> What breakout do you have and where is its PWM pin? >>>> >>>> (The PMDX126 has PWM on pin 16 not 14 ) >>> >>> Exactly. As I've said a number of times now, I have a PMDX-126. I've been >>> asking to have the PWM moved from pin 14 to pin 16 now for the last >> couple of >>> days. You've said you have a pin/bin file for the PMDX-126. I've asked if >>> it >>> could be emailed to me. Since that product is out there it seems to make >>> sense to me that it be included in the 7i92.zip file. >>> >>> Thank you >>> >>> John >> >> http://freeby.mesanet.com/7i92_pmdx126.zip >> >> >>> >>>> >>>>> >>>>> John >>> >>> >>> >>> _______________________________________________ >>> Emc-users mailing list >>> Emc-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/emc-users >>> >> >> Peter Wallace >> Mesa Electronics >> >> (\__/) >> (='.'=) This is Bunny. Copy and paste bunny into your >> (")_(") signature to help him gain world domination. >> >> >> >> _______________________________________________ >> Emc-users mailing list >> Emc-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/emc-users > > > > > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users