Re: [Emc-developers] [PCW too] rpi 5.10 rt preempt

2021-02-23 Thread Gene Heskett
On Tuesday 23 February 2021 11:33:38 Peter C. Wallace wrote:

[...]
> > What did I forget to do?
> >
> > Thanks Peter.
> >
> > Cheers, Gene Heskett
>
> You are trying to write a .pin (a text pinout description) file
> instead of a .bit (Xilinx  firmware) file

Fresh download had bit files, worked a treat.  Thanks Peter.

>
> Peter Wallace
> Mesa Electronics
>
> (\__/)
> (='.'=) This is Bunny. Copy and paste bunny into your
> (")_(") signature to help him gain world domination.
>
>
>
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


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 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] [PCW too] rpi 5.10 rt preempt

2021-02-23 Thread Gene Heskett
On Tuesday 23 February 2021 11:33:38 Peter C. Wallace wrote:

> On Tue, 23 Feb 2021, Gene Heskett wrote:
> > Date: Tue, 23 Feb 2021 11:07:19 -0500
> > From: Gene Heskett 
> > Reply-To: EMC developers 
> > To: emc-developers@lists.sourceforge.net
> > Subject: Re: [Emc-developers] [PCW too] rpi 5.10 rt preempt
> >
> > On Tuesday 23 February 2021 04:12:19 Thomas J Powderly wrote:
> >> I'm getting 73.1us base latency already
> >>
> >> and need about 20 for my step timings worse case,
> >>
> >> so 80us base thread is ng
> >
> > Mine with std threads is much worse ATM, but mc is busy unpacking
> > the src zip.  And doing it over my local net. And thats seriously
> > hogging cpu cycles. And, the pi was also busy building
> > linuxcnc-master :)
> >
> > But now I have another problem. One for Peter.
> >
> > mesaflash can readhmid of a 5i25 just fine, well enough I can see
> > its the wrong firmware in it, no pwmgens, but won't write a new one.
> > Complains all the file headers are wrong:
> >
> > gene@Hardinge1:~/linuxcnc/hostmot2-firmware-5i25$ sudo mesaflash
> > --device 5i25 --program prob_rfx2.PIN
> > ERROR: Board 5I25 doesn't support FPGA resetting.
> > gene@Hardinge1:~/linuxcnc/hostmot2-firmware-5i25$ sudo mesaflash
> > --device 5i25 --verify prob_rfx2.PIN
> > Checking file... Invalid bitfile header!
> >
> > But it doesn't look contaminated to me.
> >
> > What did I forget to do?
> >
> > Thanks Peter.
> >
> > Cheers, Gene Heskett
>
> You are trying to write a .pin (a text pinout description) file
> instead of a .bit (Xilinx  firmware) file
>
And all I have on either the machine to be removed from service, or the 
machine to get renamed to TLM and which will eventually replace it 
are .pins. The machime I was using got rededicated/reinstalled after a 
pci bus failure.  I guess that means I'll need to dl that from your site 
again.

Thank you Peter.

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 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] [PCW too] rpi 5.10 rt preempt

2021-02-23 Thread Peter C. Wallace

On Tue, 23 Feb 2021, Gene Heskett wrote:


Date: Tue, 23 Feb 2021 11:07:19 -0500
From: Gene Heskett 
Reply-To: EMC developers 
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] [PCW too] rpi 5.10 rt preempt

On Tuesday 23 February 2021 04:12:19 Thomas J Powderly wrote:


I'm getting 73.1us base latency already

and need about 20 for my step timings worse case,

so 80us base thread is ng


Mine with std threads is much worse ATM, but mc is busy unpacking the src
zip.  And doing it over my local net. And thats seriously hogging cpu
cycles. And, the pi was also busy building linuxcnc-master :)

But now I have another problem. One for Peter.

mesaflash can readhmid of a 5i25 just fine, well enough I can see its the
wrong firmware in it, no pwmgens, but won't write a new one. Complains
all the file headers are wrong:

gene@Hardinge1:~/linuxcnc/hostmot2-firmware-5i25$ sudo mesaflash --device
5i25 --program prob_rfx2.PIN
ERROR: Board 5I25 doesn't support FPGA resetting.
gene@Hardinge1:~/linuxcnc/hostmot2-firmware-5i25$ sudo mesaflash --device
5i25 --verify prob_rfx2.PIN
Checking file... Invalid bitfile header!

But it doesn't look contaminated to me.

What did I forget to do?

Thanks Peter.

Cheers, Gene Heskett


You are trying to write a .pin (a text pinout description) file instead of a
.bit (Xilinx  firmware) file



--
"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 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] rpi 5.10 rt preempt

2021-02-23 Thread Thomas J Powderly

Hi Andy


On 2/23/21 6:59 PM, andy pugh wrote:

On Tue, 23 Feb 2021 at 09:42, Thomas J Powderly  wrote:

is the kernel img in the vmlinuz or zImage file?

The useful test is the deb


It doesnt seem very useful to me

I used   sudo dpkg -i on the 3 debs

onto a fresh sd image using "image_2021-01-20-linuxcnc-pi4-3G"

and the instructions at 
https://github.com/kdoren/linux/releases/tag/5.10.16-rt30


fails

it drops into busybox when booted

the errors are

"raspberrypi-firmware:soc:firmware gpio failed to get GPIO 0"

repeated for GPIO 0 thru 7

ymmv

TomP



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] [PCW too] rpi 5.10 rt preempt

2021-02-23 Thread Gene Heskett
On Tuesday 23 February 2021 04:12:19 Thomas J Powderly wrote:

> I'm getting 73.1us base latency already
>
> and need about 20 for my step timings worse case,
>
> so 80us base thread is ng

Mine with std threads is much worse ATM, but mc is busy unpacking the src 
zip.  And doing it over my local net. And thats seriously hogging cpu 
cycles. And, the pi was also busy building linuxcnc-master :)

But now I have another problem. One for Peter.

mesaflash can readhmid of a 5i25 just fine, well enough I can see its the 
wrong firmware in it, no pwmgens, but won't write a new one. Complains 
all the file headers are wrong:

gene@Hardinge1:~/linuxcnc/hostmot2-firmware-5i25$ sudo mesaflash --device 
5i25 --program prob_rfx2.PIN
ERROR: Board 5I25 doesn't support FPGA resetting.
gene@Hardinge1:~/linuxcnc/hostmot2-firmware-5i25$ sudo mesaflash --device 
5i25 --verify prob_rfx2.PIN
Checking file... Invalid bitfile header!

But it doesn't look contaminated to me.

What did I forget to do?

Thanks Peter.

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 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] rpi 5.10 rt preempt

2021-02-23 Thread andy pugh
On Tue, 23 Feb 2021 at 09:42, Thomas J Powderly  wrote:
>
> is the kernel img in the vmlinuz or zImage file?

The useful test is the deb

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] rpi 5.10 rt preempt

2021-02-23 Thread Thomas J Powderly

is the kernel img in the vmlinuz or zImage file?

agh!

i discounted that as its 1.7meg vs the 6.8meg i had previously booted with.

argh++

tomp



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] rpi 5.10 rt preempt

2021-02-23 Thread Gene Heskett
On Tuesday 23 February 2021 01:39:28 Thomas J Powderly wrote:

> RPi rt5.10 builds ok (on the rpi4) and is running latency-histogram
> --base 8 --servo 100 now
>
> ( in my tests for stepper cfgs those parms seem to work reliably for
> days )
>
>
> Long story short, build had no problems,
>
> but at end when i wanted to copy the new kernel7l-blah.img to /boot
>
> I couldnt find it
>
>
> I searched entire fs for it using different tools, no joy, no file
> near the 6.8Meg of kdoren's .img...
>
> so, i just got the tgz of kdorens pre-compiled files nad installed
> that.
>
Thats considerably smaller than the 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT I 
built from the raspbian supplied preempt-rt srcs over 2 years ago now. 
Since that src can be bult for any architecture, I suspect its building 
a bunch of stuff the pi doesn't use.  A lot of bloat IOW.

And I like you, couldn't find it at first. And raspbian will not even 
reply to a request for help with it. However I did eventually find it. 
and organized what I found into a tgz of not quite 30 megs which when 
unpacked to a buster armhf install, actually installs the files over the 
files on the sd card.  There is more work to do before you stick the 
card back into the pi, see the README thaat goes with that tgz on my web 
site.

>
> The kernel booted fine with usb and mouse and keyboard support and
> with no reduction of my 4g mem.
>
> ooh just noticed 300+ fps w 4 glx gears :-)
>
My cheap monitors won't go that fast, and are generally 60 hz vertical 
locked. An ex bro-in-laws remark that it was "good enough for the girls 
I go with" seems to apply here, but that is good news for the 4k monitor 
owners.

Running a 7i90HD card with 3 7i42TA's to buffer and protect its 3.3 volt 
logic, driven by rpspi.ko, I have no base thread, however back in pi3 
days I added a slower thread, running at 200 hz that services the jog 
dials that allow me to run the lathe manually just as if it still had 
hand cranks. 200 hz is plenty fast enough for that.

And I've not taken that stuff out with a 2 gig pi4 install. If its not 
broken, don't fix it.  And its for sure not broken.  

But I do keep it uptodate with apt or synaptic, and I have built me a 
buildbot to make new linuxcnc's from master by putting all that traffic 
on a separate drive plugged into a usb3 port.  Any write traffic taken 
off the sd card will extend its life, so will using a big card, and that 
one is a 64Gigger, nearly 3 years old now. Swap has been moved to 
another SSD also plugged into the other usb3 port, giving the pi several 
gigs of swap. Currantly showing as having used 65 megs of 10 gigs.  
Thats from building several new linuxcnc's since the last reboot.

The only write traffic to the u-sd card is from apt or my build scripts 
keeping the master install up to date, or my editing new gcode files for 
the next job. And whatever files amanda may keep in /tmp as it backs up 
the pi every nite.

Take care, stay well and safe all.

> tomp
>
> On 2/21/21 9:18 PM, Thomas J Powderly wrote:
> > maybe of interest
> >
> > https://github.com/kdoren/linux
> >
> > NB: wear fireproof pants
> >
> > tomp

I've pulled it, but haven't moved it to the pi yet. I have several other 
irons in the fire.

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 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] rpi 5.10 rt preempt

2021-02-23 Thread Andy Pugh


> On 23 Feb 2021, at 08:22, Alec Ari via Emc-developers 
>  wrote:
> 
> Is there a particular reason to use that git tree over this:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/log/?h=linux-5.10.y-rt

I believe that the Pi kernel tree has patches and binary blobs specific to the 
Pi. 



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] rpi 5.10 rt preempt

2021-02-23 Thread Alec Ari via Emc-developers
Is there a particular reason to use that git tree over this:

https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/log/?h=linux-5.10.y-rt

Just wondering, thanks!

Alec


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers