I am experimenting with building and running openPowerlink on Raspberry Pi 3 Model B. The OS I have in use is the Raspbian Buster Version 10 OS. Have successfully built the stack including debug and release but encountered a problem while building the Linux Edrv Kernel Driver. This is what I followed verbatim from openPowerlink's documentation: http://openpowerlink.sourceforge.net/doc/2.1/2.1.0/dc/d8f/page_build_drivers.html
Then, tried setting -DCFG_POWERLINK_EDRV= 8139, 8111. But get the following error for all three cases:
make[3]: There is no rule for building the 'modules' target.
make[2]: [CMakeFiles/oplk82573mn.dir/build.make:97: oplk82573mn/oplk82573mn.ko] Error 2
make[1]: [CMakeFiles/Makefile2:105: CMakeFiles/oplk82573mn.dir/all] Error 2
make: [Makefile:130: all] Error 2
Can somebody help me please?
Best,
Prajjwal
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I do not think you can install 8139 network card driver on RPi as it uses completely different network interface. Therefore, you cannot use Linux Edrv Kernel Driver. You should use PCAP variant instead. Please follow the instructions for OpenPOWERLINK on RPi 2 (https://www.ethernet-powerlink.org/raspberrypi2). It should be the similar for RPi 3.
Regards,
Mladen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, Mladen. I am familiar with the link you posted and I can't find the files Run_oplk_MN.sh nor Install_pcap.sh. I did install libpcap nonetheless, using:
sudo apt install libpcap0.8 libpcap0.8-dev libpcap-dev.
Is that all that is needed with regards to installing pcap? How do you suggest I can find the file Run_oplk_MN.sh?
With regards,
Prajjwal
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For raspberry Pi, you can follow the steps for running a Linux pcap demo available in the official documentation of OPLK.
Once you have the pcap installed, there are two different types of architectures you can follow.
1. Running OPLK app and stack as a single application binary
2. Running OPLK stack as a separate Linux daemon and app as a separate application
The only difference is in terms of how you compile using cmake.
1. Stack compilation: here
2. Demo compilation: here
3. Running app: here
If you want to just quickly setup and run a RPi CN and check, the entire command list is below. sudo apt-get install cmake
sudo apt-get install libpcap0.8-dev
cd stack/build/linux/
cmake -DCMAKE_BUILD_TYPE=Release -DCFG_COMPILE_LIB_MN=FALSE -DCFG_COMPILE_LIB_MNAPP_USERINTF=FALSE -DCFG_COMPILE_LIB_MNAPP_KERNELINTF=FALSE -DCFG_COMPILE_LIB_MNAPP_PCIEINTF=FALSE -DCFG_COMPILE_LIB_MNAPP_ZYNQINTF=FALSE -DCFG_COMPILE_LIB_MNDRV_PCAP=FALSE -DCFG_COMPILE_LIB_MN_SIM=FALSE -DCFG_COMPILE_LIB_CNAPP_USERINTF=FALSE -DCFG_COMPILE_LIB_CNAPP_KERNELINTF=FALSE -DCFG_COMPILE_LIB_CNAPP_ZYNQINTF=FALSE -DCFG_COMPILE_LIB_CNDRV_PCAP=FALSE -DCFG_COMPILE_LIB_CN_SIM=FALSE ../..
make install
cd ../../../apps/demo_cn_console/build/linux/
cmake ../.. -DCMAKE_BUILD_TYPE=Release
make install
If you face any issues, please let me know. Thanks.
Hi,
I am experimenting with building and running openPowerlink on Raspberry Pi 3 Model B. The OS I have in use is the Raspbian Buster Version 10 OS. Have successfully built the stack including debug and release but encountered a problem while building the Linux Edrv Kernel Driver. This is what I followed verbatim from openPowerlink's documentation: http://openpowerlink.sourceforge.net/doc/2.1/2.1.0/dc/d8f/page_build_drivers.html
Then, tried setting -DCFG_POWERLINK_EDRV= 8139, 8111. But get the following error for all three cases:
make[3]: There is no rule for building the 'modules' target.
make[2]: [CMakeFiles/oplk82573mn.dir/build.make:97: oplk82573mn/oplk82573mn.ko] Error 2
make[1]: [CMakeFiles/Makefile2:105: CMakeFiles/oplk82573mn.dir/all] Error 2
make: [Makefile:130: all] Error 2
Can somebody help me please?
Best,
Prajjwal
Hi Prajjwal,
I do not think you can install 8139 network card driver on RPi as it uses completely different network interface. Therefore, you cannot use Linux Edrv Kernel Driver. You should use PCAP variant instead. Please follow the instructions for OpenPOWERLINK on RPi 2 (https://www.ethernet-powerlink.org/raspberrypi2). It should be the similar for RPi 3.
Regards,
Mladen
Thank you, Mladen. I am familiar with the link you posted and I can't find the files Run_oplk_MN.sh nor Install_pcap.sh. I did install libpcap nonetheless, using:
sudo apt install libpcap0.8 libpcap0.8-dev libpcap-dev.
Is that all that is needed with regards to installing pcap? How do you suggest I can find the file Run_oplk_MN.sh?
With regards,
Prajjwal
Hi Prajjwal,
For raspberry Pi, you can follow the steps for running a Linux pcap demo available in the official documentation of OPLK.
Once you have the pcap installed, there are two different types of architectures you can follow.
1. Running OPLK app and stack as a single application binary
2. Running OPLK stack as a separate Linux daemon and app as a separate application
The only difference is in terms of how you compile using cmake.
1. Stack compilation: here
2. Demo compilation: here
3. Running app: here
If you want to just quickly setup and run a RPi CN and check, the entire command list is below.
sudo apt-get install cmake sudo apt-get install libpcap0.8-dev cd stack/build/linux/ cmake -DCMAKE_BUILD_TYPE=Release -DCFG_COMPILE_LIB_MN=FALSE -DCFG_COMPILE_LIB_MNAPP_USERINTF=FALSE -DCFG_COMPILE_LIB_MNAPP_KERNELINTF=FALSE -DCFG_COMPILE_LIB_MNAPP_PCIEINTF=FALSE -DCFG_COMPILE_LIB_MNAPP_ZYNQINTF=FALSE -DCFG_COMPILE_LIB_MNDRV_PCAP=FALSE -DCFG_COMPILE_LIB_MN_SIM=FALSE -DCFG_COMPILE_LIB_CNAPP_USERINTF=FALSE -DCFG_COMPILE_LIB_CNAPP_KERNELINTF=FALSE -DCFG_COMPILE_LIB_CNAPP_ZYNQINTF=FALSE -DCFG_COMPILE_LIB_CNDRV_PCAP=FALSE -DCFG_COMPILE_LIB_CN_SIM=FALSE ../.. make install cd ../../../apps/demo_cn_console/build/linux/ cmake ../.. -DCMAKE_BUILD_TYPE=Release make install
If you face any issues, please let me know. Thanks.
Best Regards,
aeicoriiotteam
Thanks AEICOR IIoT Team for the info.
- Prajjwal