LinuxCNC on Raspberry Pi 4

More
3 years 11 months ago #255858 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
Maybe this may help I started Hal and issued
loadrt hal_pi_gpio dir=246244 exclude=63444491

With the following results

 

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

More
3 years 11 months ago - 3 years 11 months ago #255862 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
Code:
After reading your post links I used suggested method to detect raspberry pi board.


 
Last edit: 3 years 11 months ago by tjmarch. Reason: Not sowing properly

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

More
3 years 11 months ago - 3 years 11 months ago #255869 by elovalvo
Replied by elovalvo on topic LinuxCNC on Raspberry Pi 4
As far as I can see the problem arises from a bug on the 'cat /proc/cpuinfo' command
github.com/raspberrypi/linux/issues/2110


Unfortunately this command is used by the cpuinfo.c module which is called by the hal_pi_gpio module.

Maybe it could be solved with this variant:
cat /proc/device-tree/system/linux,revision | xxd -p
or
xxd -p /proc/device-tree/system/linux,revision

Can you try and tell me what he answers?
Last edit: 3 years 11 months ago by elovalvo.

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

More
3 years 11 months ago #255915 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
Tried what you suggested with the following output

 

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

More
3 years 11 months ago #255917 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
Can cpuinfo.c be set so you use
Code:
'cat /sys/firmware/devicetree/base/model' because results list REV. 1.1 which is
c03111

 

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

More
3 years 11 months ago #255923 by tjmarch
Replied by tjmarch on topic LinuxCNC on Raspberry Pi 4
I have two rpi4 4gb one is Rev1.1 and the other Rev.1.2 both show correct Rev. # with 'cat /sys/firmware/devicetree/base/model' why not just look for this Rev.#/model and forget about other code such as c03111. This will work on 32bit and 64bit I have checked this on 32bit Raspbian.

 

 

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

Time to create page: 0.165 seconds
Powered by Kunena Forum