vph Posted February 14, 2018 Posted February 14, 2018 Hi, I installed pyA20 on my Orange pi PC2 and running one of the test files I'm getting segmentation fault. I am running ARMBIAN 5.34.171029 nightly Ubuntu 16.04.3 LTS. Can somebody help me troubleshoot the problem? Thanks,
Igor Posted February 14, 2018 Posted February 14, 2018 First move to this version: https://dl.armbian.com/orangepipc2/Ubuntu_xenial_next.7z which is first stable to be. Then explain exactly what you did - I can not tell whether this is our problem or something else, out of our power to fix. Support for H5 boards is still considered testing.
vph Posted February 15, 2018 Author Posted February 15, 2018 Thank you Igor. I did what you suggested and now it is working fine. Greetings,
martinayotte Posted February 16, 2018 Posted February 16, 2018 Which version of pyA20 did you used ? Check if at the end of gpio_lib.h the SUNXI_PIO_BASE is defined as "extern unsigned int" or as "extern unsigned long", if the former, it crash because it is a 32bits pointer used on 64bits CPU. You will need to change that and some other references in gpio_lib.c too...
Recommended Posts