Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Installing WAGO-PFC-BSP-2018.2.1
Installing WAGO-PFC-BSP-2018.2.1 [message #1787447] Fri, 25 May 2018 14:37 Go to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello 4DIAC Team,
I am using virtual machine with Ubuntu 16.04 version to install and cross compile forte for Wago PFC 200 by following the tutorial "Installation/Forte for WagoPFCs".
I am having some errors during installation of WAGO-PFC-BSP-2018.2.1.
According to tutorial step this;

2.4) Let the package manager list available toolchains for the cortexa8 (just to see if repository is working correctly).

>apt-cache search cortexa8-linux-gnueabihf

I am supposed to see the repository working but it doesn´t show anything after the command entered "apt-cache search cortexa8-linux-gnueabihf" and after step 2.5,

2.5) Install "oselas.toolchain-2012.12.1-arm-cortexa8-linux-gnueabihf-...

>sudo apt-get install oselas.toolchain-2012.12.1-arm-cortexa8-linux-gnueabihf-gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized
------------------------------------------------------------------------------
Repository will install the cross toolchain into folder:
/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/
------------------------------------------------------------------------------

I am facing some errors which are shown in screenshot I shared. Please have a look and help me out.
Thanks a lot for your support

Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1787473 is a reply to message #1787447] Fri, 25 May 2018 21:49 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 635
Registered: January 2014
Senior Member
if the apt-cache search does not show a list of supported toolchains it means that the step in 2.1 or 2.3 didn't work as it should. Could you recheck if apt-get update checks for updates at http://debian.pengutronix.de/debian/?
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1787589 is a reply to message #1787473] Tue, 29 May 2018 17:26 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Mr. Alois,
I have rechecked the steps 2.1 and 2.3, screen shots are attached as an attachment please have a look to it. It does not check for updates at http://debian.pengutronix.de/debian/?. In fact it check for updates at http://ubuntu-master.mirror.tudos.de/ubuntu/.

Thanks
Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1787601 is a reply to message #1787589] Tue, 29 May 2018 21:07 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 635
Registered: January 2014
Senior Member
Hi,

it looks like that somehow you created a directory '/ect/apt/soruces.list.d/pengutronix.list'
How I would proceed is to delete this directory and recrating this file. I personally prefere to use the editor nano which I think is installed per default in ubuntu.
nano /etc/apt/soruces.ist.d/pengutronix.list
and place there the line
deb http://debian.pengutronix.de/debian/ sid main contrib non-free

save it and close it.
you can afterwards checkt with the less command (less /etc/apt/soruces.ist.d/pengutronix.list) if you have the correct content in your file.

I hope this helps.

Cheers,
Alois

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1788393 is a reply to message #1787601] Wed, 30 May 2018 17:19 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello,

The directory '/etc/apt/sources.list.d/pengutronix.list' is unable to delete from my system as it is saved in Computer (Please check the attachments). From nano editor when i tried to save the file it gives 'Permission denied'.

Thanks
Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1789993 is a reply to message #1788393] Fri, 01 June 2018 19:31 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 635
Registered: January 2014
Senior Member
Hi,

you can only perform changes there with super user rights. So you have to do the following in a console:

sudo su
cd /etc/apt/source.list.d
rm -rf pengutronix.list
nano pegnutronix.list

I hope this helps,
Alois
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790060 is a reply to message #1789993] Mon, 04 June 2018 10:40 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Mr. Alois,
Thanks a lot for the help and support. It is solved and now I am at step "(7.1) Compile all packages of PFC firmware" from the same tutorial "How to install WAGO-PFC-BSP". During compilation I was having some errors. Please have a look at an attachment file.
Is this step 7.1 is also the last step for installing WAGO-PFC-BSP? and then I should proceed to Building FORTE for WAGO tutorial?

Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790067 is a reply to message #1790060] Mon, 04 June 2018 11:37 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 635
Registered: January 2014
Senior Member
hi, as I understood the documentation (I haven't build forte on wago myself yet) this is the last step. However you have to find out the root-cause of your issue. For that normally you need to find the first error in your console output. Which I don't see on your screenshot.
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790071 is a reply to message #1790067] Mon, 04 June 2018 11:54 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello
Please find an attachment screen-shot. I think this could be the root cause of my issue.

Thanks
Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790083 is a reply to message #1790071] Mon, 04 June 2018 13:34 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 635
Registered: January 2014
Senior Member
can you try if "sudo apt-get install libtool" solves your issue.
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790136 is a reply to message #1790083] Tue, 05 June 2018 17:25 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Mr. Alois,
I tried this command "sudo apt-get install libtool" but it shows that I already had the newest version installed. Please have a look at screen shot as an attachment. After this when I tried again "ptxdist go -q". The result is still the same.

Best Regards
Obaid Khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790155 is a reply to message #1790136] Wed, 06 June 2018 08:12 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hi ,

I have not yet tried the latest wago build by myself. From the last build I tried, I remember the dependency of Ubunutu 14.01 LTS 32 bit for a flawless build.
Could you please check this with the latest build system?

cheers
Milan

[Updated on: Wed, 06 June 2018 08:12]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790175 is a reply to message #1790155] Wed, 06 June 2018 13:37 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hi,
I am using ubuntu 16.04 LTS now.
Are you suggesting me to use ubuntu 14.04 LTS instead of ubuntu 16.04?

Thanks
Best Regards
Obaid khan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790205 is a reply to message #1790175] Thu, 07 June 2018 02:05 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hi,

I could not check the latest BSP because of my limited internet connectivity. The dependency I mentioned is based on my last experience with BSP released in 2017. Eventhough I am not sure about Ubuntu version 14/16, I would say 32 bit version is a must. Please verify this from the installation guide coming along with the BSP WAGO-PFC-BSP-2018.2.1\HowTo_Install_WAGO-PFC-BSP-2018.2.1.txt". Hope this helps.

Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790386 is a reply to message #1790205] Sat, 09 June 2018 01:07 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Milan,

Thanks a lot for your time and support.
I am already following the tutorial (How to install WAGO-PFC-BSP-latest) but I was using Ubuntu 16.04 64 bit LTS. As you mentioned that 32 bit version is must so I tried in Ubuntu 14.05 32 bit LTS and I think it works. I am still not sure that either all packages were installed or not. So I took some of the screen shots during compilation in step "7.1" (Compile all packages of PFC firmware) of the tutorial (How to install WAGO-PFC-BSP-latest).

Please have a look at the screen shots as an attachment for verification of warnings, errors and successful compilation.
How would we know that all the necessary packages are installed?

Best Regards
Obaid
  • Attachment: 1.png
    (Size: 263.81KB, Downloaded 42 times)
  • Attachment: 2.png
    (Size: 233.75KB, Downloaded 36 times)
  • Attachment: 3.png
    (Size: 253.21KB, Downloaded 35 times)
  • Attachment: 4.png
    (Size: 276.50KB, Downloaded 38 times)
  • Attachment: Last .png
    (Size: 239.49KB, Downloaded 36 times)
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790396 is a reply to message #1790386] Sat, 09 June 2018 08:35 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hello Obaid,

Good to know that it worked for you. Your last screen shot shows that your BSP installation is complete and is ready to use. As far as I understood, the BSP checks for all the necessary packages, so you can ignore the warnings. You can try with some sample projects or directly forte installation at this stage. Hopefully it should work.

Cheers
Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790433 is a reply to message #1790396] Sun, 10 June 2018 20:56 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Milan,
Now I am trying to do installation for Building FORTE as following the tutorial. Step 1 says;

1. Create forte_wago project in PTXDist: From FORTE/buildsupport/wago_pfc200/, copy the rule files forte_wago.in and forte_wago.make to wago/ptxproj-2.2.20/rules (creates a new package). Within the copied rule file .../ptxproj-2.2.20/forte_wago.make edit the line FORTE_WAGO_URL: file:///<path to FORTE main directory> to the absolute path of your FORTE main directory. To (de)activate specific modules (library parts) of FORTE edit .../ptxproj-2.2.20/wago.make line FORTE_WAGO_CONF_OPT := ...

I have question from line "Within the copied rule file .../ptxproj-2.2.20/forte_wago.make edit the line FORTE_WAGO_URL: file:///<path to FORTE main directory> to the absolute path of your FORTE main directory."Which path I have to give here?

Also when I tried to open the dialogue it shows that "ptxdist: error: refusing to run PTXdist as root"

I have attached screen shot as an attachment. Please have a look at it.
Thanks a lot
BR
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790454 is a reply to message #1790433] Mon, 11 June 2018 10:54 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hello Obaid,

1) The path FORTE_WAGO_URL: file:///<path to FORTE main directory> , should point to the directory where you placed(downloaded) the forte source

2) The command ptxdist will work only from the specific directory where you installed the BSP, for exmaple Wago2018/ptxdist-xxx. And make sure you execute this as a normal user and not as root.

Hope this will help.

[Updated on: Mon, 11 June 2018 10:57]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790489 is a reply to message #1790454] Mon, 11 June 2018 16:52 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hi Milan,

Thanks a lot for your support.

As you said in step " (1) The path FORTE_WAGO_URL: file:///<path to FORTE main directory> " I have to point the directory where FORTE source is downloaded. But I am now building FORTE for WAGO PLC, so how would I will know that which path to mention here?

Ptxdist command line had worked. I was executing it with the root user not with normal user. Thanks once again...

In step 3,
> cd wago/ptxproj-2.8.26
> ptxdist targetinstall forte_wago
I am facing following errors and it is hard for me to identify it. Please have a look on screen shot as attachment for identification of an error.

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790493 is a reply to message #1790489] Mon, 11 June 2018 19:18 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hi Obaid,

FORTE_WAGO is just a random name we used for the project, and FORTE_WAGO_URL refers to the source of the project. You are cross compiling wago BSP along with forte from your ubuntu virtual machine. So in your case the source is the forte source you downloaded in your virtual machine. In my machine it looks something like this, FORTE_WAGO_URL:= file:///home/org.eclipse.4diac.forte.

Unfortunately I cannot see your attachment and thus the rest of the description

Milan
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790497 is a reply to message #1790493] Mon, 11 June 2018 21:05 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 635
Registered: January 2014
Senior Member
As the message in your screenshot above says. You should not run ptxdist as user root. Does it change when you run it as normal user?
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790525 is a reply to message #1790497] Tue, 12 June 2018 11:41 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hi Milan,

I don´t have the FORTE source in my ubuntu virtual machine or any URL with this name "org.eclipse.4diac.forte". Does it comes along with 4DIAC-IDE when we download it or we have to build separately ?

I have one more information to add that in future I will going to use 4diac OPC UA communication features as a communication protocol between RPI and WAGO PLC. I had already build FORTE with Open62541 source code in my Ubuntu virtual machine. In past, I also asked the question in group about that possibility and I got the answer YES it is possible as we have to cross compile both FORTE.

For step 3 error (ptxdist targetinstall forte_wago), I am attaching screen shots again. Please have a look at them. I hope it will be visible this time.

Alois = Yes it changed when I executed it with normal user. It was showing error when I was running it with root user.

Thanks a lot
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790567 is a reply to message #1790525] Wed, 13 June 2018 05:33 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hi Obaid,

You have to download the 4diac rte(forte) source from the following link https://www.eclipse.org/4diac/en_dow.php. Please get it and place it somewhere in your virtual machine and point FORTE_WAGO_URL to this directory.

From the screenshot, I did not understand how you were able to compile without specifying any source. Could you please make a try with the latest source as shown above?
Building open62541 is also possible following the same procedure for cross compiling. You can also check it in Wago howtos.
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790743 is a reply to message #1790567] Fri, 15 June 2018 10:11 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Milan,

I have downloaded forte rte source code and tried it, but the result is still same. I am still having the same error which I was facing before during compilation of command (> ptxdist targetinstall forte_wago).

Please have a look at the screen shots that either the forte source and its URL is correct?

With the 4DIAC-ide download from website (https://www.eclipse.org/4diac/en_dow.php.) we don´t have the build-In RTE in it. So I download it from clone source as (git clone -b develop git://git.eclipse.org/gitroot/4diac/org.eclipse.4diac.forte.git).

Thanks a lot
Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790744 is a reply to message #1790743] Fri, 15 June 2018 12:36 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 101
Registered: February 2016
Senior Member
The compiler error you had before was a bug in the forte code. It was fixed in branch 1.9.x. please, go into your org.eclipse.4diac.forte folder in the terminal and execute
git checkout 1.9.x
. If you then compile, you shouldn't get the error
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790817 is a reply to message #1790744] Mon, 18 June 2018 13:46 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Jose Maria,

Thanks for your time and support.
I have tried to execute the command "git checkout 1.9.x" from the desired terminal "org.eclipse.4diac.forte" and then execute the command for compilation,
> cd wago/ptxproj-2.8.26
> ptxdist targetinstall forte_wago
but I still have the errors. I have attached the screenshots of both the commands output after execution and compilation. Please find it as an attachment.

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1790874 is a reply to message #1790817] Tue, 19 June 2018 12:44 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hello Obaid,

After making any changes in your source, you have to rebuild the project. You can do this as follows,
#Remove all previously created time stamps from your project.
ptxdist clean forte_wago
#Rebuild as normal 
ptxdist targetinstall forte_wago

Hope this solve your problem.

Milan

[Updated on: Tue, 19 June 2018 12:46]

Report message to a moderator

Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791158 is a reply to message #1790874] Mon, 25 June 2018 10:25 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 101
Registered: February 2016
Senior Member
And maybe a
git pull origin 1.9.x
to update to the last version
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791256 is a reply to message #1791158] Tue, 26 June 2018 21:22 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Jose and Milan,
Thanks a lot for help. It´s been solved with step:
. git checkout 1.9.x
then,
. ptxdist clean forte_wago
. ptxdist targetinstall forte_wago

Now I am proceeded to next step of the tutorial which is,
"Build and Debug FORTE remotely on Wago PFC with Eclipse"

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791550 is a reply to message #1791256] Mon, 02 July 2018 12:06 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello Milan and Jose,

I have a question to ask. I am now following the tutorial as mentioned above "Build and Debug FORTE remotely on Wago PFC with Eclipse" and I am on step:
"Within the Remote System Explorer perspective create a New Connection by clicking on New Connection button. Choose Linux and press Next. Enter the IP of our Wago PFC as Host name and type any Connection Name e.g. wagoPFC200 and press finish".

My question is what is the IP of our Wago PFC? How I could find the IP address.

Thanks a lot
Sincerely,
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791822 is a reply to message #1791550] Thu, 05 July 2018 15:23 Go to previous messageGo to next message
Muhammad Obaid Khan is currently offline Muhammad Obaid KhanFriend
Messages: 21
Registered: September 2017
Junior Member
Hello 4DIAC Team,
I still have the same question to ask which was my last message. Please help me out if someone knows about it.
Does for the step "Enter the IP of our Wago PFC as Host name", I have to connect PLC for that also?
I have one more question to ask as I am new to PLC communicating, so I have a lack of knowledge.
If in case we don´t need to connect the PLC for step "Enter the IP of our Wago PFC as Host name", then when or which step I have to connect the controller to my PC?

I will be very thankful for your support.

Best Regards
Obaid
Re: Installing WAGO-PFC-BSP-2018.2.1 [message #1791840 is a reply to message #1791822] Fri, 06 July 2018 06:54 Go to previous message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 25
Registered: August 2016
Junior Member
Hello Obaid,

Please refer to your Wago PFC manual, to learn how to set a custom IP/ use the fixed IP from Wago. Once you set the IP of your PFC make sure you can ping your PFC from your PC. You do not need to connect your Wago PFC when you enter the static parameters in Eclipse remote system explorer. Once you set up everything, you can connect to your PFC remotely using remote system explorer "connect" button.

Also please note that "building using Eclipse CDT is only an alternative to directly building and running forte from terminals using PTXDist. Eclipse based build is recommended when you need remote debugging of forte from your PC using Eclipse or when you feel more comfortable with Eclipse based build (using again PTXdist as build environment) than a PTXdist build from terminal.

If you have already built forte using PTXDist, after setting IP of your PFC, you can use tools like "Putty" for communicating with your PFC and and also for transferring forte executables you built using PTXDist.

Hope this helps.
Milan
Previous Topic:Memory Error
Next Topic:FORTE LOVE HTTP
Goto Forum:
  


Current Time: Mon Sep 24 01:54:59 GMT 2018

Powered by FUDForum. Page generated in 0.08108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top