Issues with Raspberry Pi4 and Mesa 7i96

More
25 Nov 2023 21:13 #286499 by mrcrankyface
Searched around regarding isolcpus and force turbo mode, found this thread: forum.linuxcnc.org/9-installing-linuxcnc...th-preempt-rt-kernel

Used this:
echo -n 'isolcpus=1,2,3 idle=poll processor.max_cstate=1' | sudo tee -a /boot/cmdline.txt
echo -n 'performance' | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and
echo -n 'force_turbo=1' | sudo tee -a /boot/config.txt
Not sure if that's correct but it seems to show up in the right files.
Restarted the pi after this.

Unfortunately this seems to have made the problem worse.
As soon as I start linuxCNC I now get "error queueing read".
 

Please Log in or Create an account to join the conversation.

More
25 Nov 2023 21:40 #286502 by PCW
Not sure whats going on but it sounds like something
generic is broken in the LinuxCNC/OS configuration

What kind of latency do you get if you run the latency histogram?

latency-histogram --nobase --sbinsize 1000

 

Please Log in or Create an account to join the conversation.

More
25 Nov 2023 22:20 #286504 by rodw

You may have lost some latency reducing setup when you upgraded

On the RPI4 I think isolcpus 2,3 and force turbo mode are usually required

isolcpus and a couple of other latency reducing settings are already set in the 2.9.1 image. Following another thread may have broken things.

I would reinstall. This image should replace the one on the downloads page when Andy gets to it. It does not make any real changes, just sets up the apt environment better for future updates and also include networkmanager because people did not know the wifi could be configured using sudo menu-config

drive.google.com/file/d/12poZ2QAoC4vhvuJ...CN2/view?usp=sharing
The following user(s) said Thank You: mrcrankyface

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 00:27 #286513 by cornholio
Hey rod when you compiled the kernel did you set the governor default to performance ?

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 00:52 #286517 by rodw
I don't know. HOw do you do it?

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 09:27 #286535 by cornholio
When you build a kernel search for this string CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE . Should tell you where to go. I'd give a screen shot but my pies are away for the day.

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 11:28 #286543 by rodw

When you build a kernel search for this string CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE . Should tell you where to go. I'd give a screen shot but my pies are away for the day.

Geez, Cornholio, my resident pi expert has let me down! 

This is all that we set
github.com/rodw-au/rpi-img-builder-lcnc/...rscripts/uscripts#L6
Please let me know how to script it.

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 11:31 #286544 by mrcrankyface
Doing a full reinstall with the image from rodw's link.
-Pi imager says it's written successfully and ejects card.
-Raspberry boots up nicely.
-I run 'sudo menu-config':
I set ip to 10.10.10.100 and I set gateway to 10.10.10.1
I change keyboard to swedish layout.
Timezone to stockholm
Locale to en-US.
Then quit the config and restart pi.

Timezone works, keyboard works and IP seems to work, I can ping the Mesa card.
PnCConf refuses to work because locale is unsupported.
I doublecheck locale in terminal with 'locale' and 'localectl'(I have no idea if there's a difference).

localectl says "System Locale: (unset)".
locale says everything is "C.UTF-8" except "language=" and "LC_ALL=" which are empty.

It seems to me that the locale setting in menu-config does not work?
I got around this previously with some command but can't find it again, so now I'm stuck at not being able to use PnCConf.

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 11:46 #286545 by cornholio
I can't remember is there an option to run menuconfig ?

Just found it......
MENUCONFIG="0" set this to 1 in userdata.txt and make the changes in menuconfig.
The following user(s) said Thank You: mrcrankyface

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 12:03 #286546 by mrcrankyface
It was even easier than that. I needed to press spacebar when selecting en_US.. I had just highlighted it and pressed enter.
Now the changes pulled through and after a reboot I could finish PnCConf.
LinuxCNC has now been running stable for ~10 minutes which is a lot more than before.

I will leave it on for some hours and see if it continues behaving.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.192 seconds
Powered by Kunena Forum