-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patch for pigpiod to work with 64bit gentoo #266
Comments
Welcome to github. Might I humbly suggest that you edit your issue and put your code into a code block with triple backticks: ( While you're at it, you might consider adding a description of the changes and why they are necessary. Most patches without any justification seem to just get lost in the noise. PS. I'm just a humble githubitizen and have no affiliation with pigpio. PPS. I had no idea there was a big Gentoo community for the Pi. I love Gentoo and got it working on my own forever ago once. Have stayed on Debian images since to save the headache but always considered the possibility of going back... With distcc and proper cross compiling setup it might not be so bad! |
FYI, the current gentoo-on-rpi-64bit release (v1.5.2) contains It replaces there Best, sakaki |
Interesting. @joan2937 , any chance that those patches referenced above in the post of @sakaki- can be included in the code? |
I think just a v72 verbump should do it, the patch I included was just an additional required commit wrt v71. Oh and also btw, I found I needed to set the shipped PIGPIOD_OPTS="-l -n 127.0.0.1" to have the service work out-of-the-box with |
gentoo/gentoo#13905 (also added the -n parameter) Might be better if pigpiod would allow to specify IPv6 addresses with -n (currently only allows ipv4), to make it use IPv6 you have to ditch the -n parameter which makes it listen only on "::1" but allows connections from any IP (if that really is what "-n" does ...) I was originally under the wrong impression that it would listen on both or that the "::1" listener should also work for ipv4 (similar to what it does when you bind to "::"), that is not the case and both 127.0.0.1 and "::1" should need to be set up automatically to listen when specifying "-l" Though it seemed to work fine for me when only using (-l) , maybe because i am also using IPv6 in my network? |
@github-k8n , It would be helpful to me if you could explain if these changes are specific to gentoo-64bit or are they applicable to all 64-bit distributions? As for your comments above on IPv6, we are engaged with a contributor who provided basic support for IPv6 but left a hole on accepting either "::1" or "127.0.0.1" when the "-l" option is invoked. This will be fixed. The "-n" option is for providing a 'whitelist' of IP addresses but it was not included in the original IPv6 support. Instead it now essentially forces IPv4 only. Including IPv6 on "-n" would require some network stack help. |
Hi @guymcswain , I don't really have any insight into the code/patches at all. Regarding the patch this issue is about, I would have to point you to @sakaki- , if I understand the comment above correctly, the patch should be already included in some way or form in v72, thus in this context I think the issue could be closed? |
Sure, here's the output on an RPi4 (4GB) running v1.5.3 of gentoo-on-rpi-64bit: demouser@pi64 ~ $ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : c03111
Serial : 10000000--------
Model : Raspberry Pi 4 Model B Rev 1.1 |
Thank you! These two issues are indeed related. Two methods of patching have been offered. I believe there is yet a third method that is more in line with the RaspberryPi.org documentation. I'll soon propose a solution to the library owner and put that patch on the 'develop' branch for everyone to review. |
@zwim , @sakaki- , May I request that you download the proposed patch for this issue and test it on your systems?
Test your system as normal. If for some reason it fails, capture the initialization log by doing the following:
If there was any error in the hardware revision decode it should appear in this output. Thank you very much! |
Hello, I have tested the v7301.zip on a Raspberry Pi 3 Model B Rev 1.2 with 64-bit. Thanks |
Excellent. Thank you for the test confirmation. @sakaki- , my plan is to merge this into the pigpio master branch by early Feb unless you tell me 64bit Gentoo would need it sooner. |
Tested your v7301.zip today on RPi3B+, RPi4B; seems working OK. @guymcswain happy to wait for your merge in early Feb; this will be before my next planned release of the gentoo-on-rpi-64bit image (v1.5.4) goes into soft freeze. |
Hello,
I am using a gentoo 64 bit system an an rpi 3 model B V1.2 (based on sakaki https://github.com/sakaki-/gentoo-on-rpi3-64bit).
With the pach below applied to pipgoid.c everything works fine for me :-)
As I am not familiar with github i have appended the patch below and as a zip file.
pigpio.c.patch.zip
Despite not having a different linux distribution, I cannot check if the patch breaks something on 32bit.
Please could someone confirm, that the patch does not break 32bit systems?
Thanks and have joy with the patch
pigpio.c.patch.txt
The text was updated successfully, but these errors were encountered: