Hi All,
I’m posting this here in case it helps anyone who is attempting to install the PiEconet Bridge on a Raspberry Pi 4B. I was previously using a PiZero 2 but decided to switch to the 4B so I could use cabled Ethernet due to connectivity dropouts.
Ultimately, I was able to successfully build the module by reflashing the 64-bit OS and skipping the `sudo apt -y full-upgrade` step, which kept the version at 6.6.51. It all proceeded without issue from there.
I'm not sure if this is known issue but thought I should post here in case anybody updates and runs into issues.
Below is the error message I received, in case it may be helpful:
I’m posting this here in case it helps anyone who is attempting to install the PiEconet Bridge on a Raspberry Pi 4B. I was previously using a PiZero 2 but decided to switch to the 4B so I could use cabled Ethernet due to connectivity dropouts.
- I performed a fresh install of the 64-bit version of Raspberry Pi OS.
- Following the instructions, I executed `sudo apt -y full-upgrade`. During this process, the kernel updated from version 6.6.51 to 6.12.20.
Ultimately, I was able to successfully build the module by reflashing the 64-bit OS and skipping the `sudo apt -y full-upgrade` step, which kept the version at 6.6.51. It all proceeded without issue from there.
I'm not sure if this is known issue but thought I should post here in case anybody updates and runs into issues.
Below is the error message I received, in case it may be helpful:
Code:
tblanks@econet:~/PiEconetBridge $ make install[ -e /lib/modules/`uname -r`/build ] || sudo ln -s /usr/src/linux-headers-`uname -r` /lib/modules/`uname -r`/build[ -f include/econet-gpio-kernel-mode.h ] || touch include/econet-gpio-kernel-mode.hcd module ; make clean ; makemake[1]: Entering directory '/home/tblanks/PiEconetBridge/module'make -C /lib/modules/`uname -r`/build M=/home/tblanks/PiEconetBridge/module cleanmake[2]: Entering directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8'make[2]: Leaving directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8'make[1]: Leaving directory '/home/tblanks/PiEconetBridge/module'make[1]: Entering directory '/home/tblanks/PiEconetBridge/module'make -I../include -C /lib/modules/`uname -r`/build M=/home/tblanks/PiEconetBridge/module modulesmake[2]: Entering directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8' CC [M] /home/tblanks/PiEconetBridge/module/econet-gpio-module.o/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:483:5: warning: no previous prototype for ‘econet_probe_adapte r’ [-Wmissing-prototypes] 483 | int econet_probe_adapter(void) | ^~~~~~~~~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:687:6: warning: no previous prototype for ‘econet_adlc_cleardo wn’ [-Wmissing-prototypes] 687 | void econet_adlc_cleardown(unsigned short in_irq) | ^~~~~~~~~~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:1001:6: warning: no previous prototype for ‘econet_finish_tx’ [-Wmissing-prototypes] 1001 | void econet_finish_tx(void) | ^~~~~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:1049:6: warning: no previous prototype for ‘econet_irq_write’ [-Wmissing-prototypes] 1049 | void econet_irq_write(void) | ^~~~~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:1276:6: warning: no previous prototype for ‘econet_irq_read’ [ -Wmissing-prototypes] 1276 | void econet_irq_read(void) | ^~~~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:2392:6: warning: no previous prototype for ‘econet_aun_tx_stat emachine’ [-Wmissing-prototypes] 2392 | void econet_aun_tx_statemachine(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:2875:6: warning: no previous prototype for ‘econet_led_state’ [-Wmissing-prototypes] 2875 | void econet_led_state(uint8_t arg) | ^~~~~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:4316:19: error: initialization of ‘void (*)(struct platform_de vice *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’ [-Werror=incompatible-pointer-types] 4316 | .remove = econet_remove, | ^~~~~~~~~~~~~/home/tblanks/PiEconetBridge/module/econet-gpio-module.c:4316:19: note: (near initialization for ‘econet_driver.<anonym ous>.remove’)cc1: some warnings being treated as errorsmake[4]: *** [/usr/src/linux-headers-6.12.20+rpt-common-rpi/scripts/Makefile.build:249: /home/tblanks/PiEconetBridge/mo dule/econet-gpio-module.o] Error 1make[3]: *** [/usr/src/linux-headers-6.12.20+rpt-common-rpi/Makefile:1969: /home/tblanks/PiEconetBridge/module] Error 2make[2]: *** [/usr/src/linux-headers-6.12.20+rpt-common-rpi/Makefile:236: __sub-make] Error 2make[2]: Leaving directory '/usr/src/linux-headers-6.12.20+rpt-rpi-v8'make[1]: *** [Makefile:12: all] Error 2make[1]: Leaving directory '/home/tblanks/PiEconetBridge/module'make: *** [Makefile:6: build-module] Error 2
Statistics: Posted by tblanks — Sun Apr 06, 2025 12:10 pm