Welcome, Guest
Username: Password: Remember me

TOPIC: Crosscompile for Fox board G20 on Ubuntu 11.04

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2499

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
I tried the distribute option which nearly works except:
[code:1]
-- Build node debarm
root@debarm's password:
pwrp_pkg_debarm_0003.tgz 100% 1577KB 1.5MB/s 00:00
root@debarm's password:
bash: /pwr_pkg.sh: No such file or directory
[/code:1]


I have a /usr/pwrrt/exe/pwr_pkg.sh on the target but I don't know if the problem comes from the host or from the target ...

what is launching this script so I can check if there is a problem of directory or else ?
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2500

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
The problem is the $pwr_exe is not defined. It is supposed by be defined by editing the file /root/.bashrc and adding the line 'source /etc/pwrp_profile'.

/Claes
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2501

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
OK that solved me....

Distribute function work like a charm....


Two additionnal remarks:
- the ra_plc_user.h seems not to be mentionned in the release note and have to be present in /pwrp/common/inc on the target o allow starting the plc.

- the /etc/init.d/pwr on the target is configured in a \"ubuntu\" way (sudo if user is not pwrp). I needed to remove all this as it is not usable on debian.


remaining problems:

when starting the rt_ini command on the target, quite everything seems OK except the following one :
[code:1]rt_logmod: mq_open : Function not implemented
E pwr_ini 1861 11-07-22 14:29:21.21 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
[/code:1]
which probably explains all the following which are all related to messageQ
[code:1]
E pwr_nacp 1864 11-07-22 14:29:22.79 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
E pwr_neth 1862 11-07-22 14:29:22.68 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
E pwr_linksup 1870 11-07-22 14:29:22.84 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
I pwr_linksup 1870 11-07-22 14:29:22.84 Adding application. aix: 2
E pwr_tmon 1866 11-07-22 14:29:22.77 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
E pwr_alim 1868 11-07-22 14:29:22.82 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
I pwr_alim 1868 11-07-22 14:29:23.01 Adding application. aix: 5
E pwr_bck 1869 11-07-22 14:29:22.83 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
E pwr_trend 1871 11-07-22 14:29:23.03 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
E pwr_emon 1867 11-07-22 14:29:23.10 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
E Unknown name 1872 11-07-22 14:29:23.30 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
I Unknown name 1872 11-07-22 14:29:23.30 Adding application. aix: 10
I pwr_fast 1872 11-07-22 14:29:23.30 No fast configuration, using base frequency 10 Hz
E rs_remhdl 1873 11-07-22 14:29:23.32 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
E pwr_sevhistmon 1881 11-07-22 14:29:23.41 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
/usr/pwrrt/exe/rt_webmon.sh: line 40: java: command not found
/usr/pwrrt/exe/rt_webmonelog.sh: line 41: /usr/local//bin/java: No such file or directory
I rs_remhdl 1873 11-07-22 14:29:23.45 Adding application. aix: 13
E Unknown name 1875 11-07-22 14:29:23.48 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
I Unknown name 1875 11-07-22 14:29:23.49 Adding application. aix: 14
I pwr_trend 1871 11-07-22 14:29:23.49 Couldn't get the DsTrendConf object. Used ScanTime = 1 s
E Unknown name 1880 11-07-22 14:29:23.51 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
I Unknown name 1880 11-07-22 14:29:23.51 Adding application. aix: 15
E Unknown name 1879 11-07-22 14:29:23.53 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented

I Started pwr_plc_1_0, prio: 5, pid: 1934
file: plc_debarm_0001_00002
E pwr_plc 1934 11-07-22 14:29:24.22 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
I pwr_plc 1934 11-07-22 14:29:24.23 Adding application. aix: 19
I pwr_plc 1934 11-07-22 14:29:24.23 Setting subscription defaults to 1.000 seconds
I pwr_plc 1934 11-07-22 14:29:24.24 maxdelay: %f, tv_sec: 0, tv_nsec: -1610612736
I pwr_plc 1934 11-07-22 14:29:24.24 maxdelay: %f, tv_sec: 1, tv_nsec: 0
I pwr_plc 1934 11-07-22 14:29:24.24 Priority set, plc thread 100 ms, prio 22
I pwr_plc 1934 11-07-22 14:29:24.26 Init of IO agent VolArm:Nodes-Arm
I pwr_plc 1934 11-07-22 14:29:24.26 IO init: no read or write actions found for this process
I pwr_io 1865 11-07-22 14:29:24.29 Init of IO agent VolArm:Nodes-Arm
I pwr_io 1865 11-07-22 14:29:24.29 IO init: no read or write actions found for this process
I pwr_linksup 1870 11-07-22 14:29:24.29 No NodeLink objects
I pwr_linksup 1870 11-07-22 14:29:24.29 No nodes to supervise, exiting
I pwr_neth 1862 11-07-22 14:29:24.30 Process 2 @ 0.1.1.1 dissapeared, cleaning up

[/code:1]

Except this messageQ problem it seems that the plc is working but now I'm in the frustrated following situation.... how to test it (checking some real time variable from the database in ssh ?? or accessing from another station ?? or every other access to the hardware is welcome to check if software is working as expected ....


Anyway it's a big big step for me which has been done...

Many many thanks for this support..

Sanrf
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2502

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Adding Posix Message Queue in the kernel configuration menu and rebuild the kernel will fix the message queue problems.

To see what is happening in the system you log in with ssh and start rt_rtt. It's a runtime navigator for terminals. You navigate with the arrow keys, open an object with Ctrl+A, close with Ctrl+R etc. Press Ctrl+H to get help.

/Claes
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2503

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
I'm like a kid with a new toy !!!

This rt_rtt is excellent and really efficient for a text mode tool ....nice job again...

I will (try to) rebuild the kernel next week as I plan to give a try also to add a real time patch on that (OSADL or XENOMAI)

For the moment, I was also wondering if the Arduino IO could work on this FoxG20 board.
When trying, I always got IO Init failed or error 14 coming from Arduino but the communication led on the Arduino board don't lit at all. So I wonder if this simply not possible to manage arduino from an ARM core or if it is only configuration problem somwhere ?

What do you think ?

Thanks again for all ..
The administrator has disabled public write access.

Re:Crosscompile for Fox board G20 on Ubuntu 11.04 12 years 9 months ago #2504

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Last question before the week ends ....

I unforunately badly close the runtime of the ARM and I have some locks I can't remove.
pwr_stop.sh returns the following:
[code:1]
E Unknown name 2446 11-07-22 17:39:14.61 Open messageQ, mq_open(/pwrlogqueue_1)
Function not implemented
I Unknown name 2446 11-07-22 17:39:14.61 Mapped /tmp/pwr_qpool_1, base: 4019e000, size: 18516
I Unknown name 2446 11-07-22 17:39:14.62 Mapped /tmp/pwr_qp0001_1, base: 40364000, size: 12476824
F Unknown name 2446 11-07-22 17:39:14.62 pwr bugcheck: <pool was not created>, in file ../../rt_pool.c, at line 351
%POOL-E-NOTCREATED, pool is not yet created
Done.
[/code:1]

pwr kill returns the following:
[code:1]
debarm:/tmp# pwr kill
Remove all processes and resources for Proview Storage Environment
/tmp/pwr_killer: line 4: kill: (2472) - No such process
/tmp/pwr_killer: line 5: kill: (2476) - No such process
/tmp/pwr_killer: line 6: kill: (2480) - No such process
/tmp/pwr_killer: line 7: kill: (2484) - No such process
/tmp/pwr_killer: line 8: kill: (2488) - No such process
Done.
[/code:1]


and rt_ini - i & returns
[code:1]
I Created 14-JUN-2011 12:00:00.00
I Reading volume file /usr/pwrrt/load/otherio.dbs
I Created 14-JUN-2011 12:00:00.00
I Mapped /tmp/pwr_db_lock_1, base: 400b7000, size: 12
I Objects : 39649 : 11736104 bytes
I Volumes : 30 : 13680 bytes
I Classes : 300 : 33600 bytes
I Nodes : 10 : 6240 bytes
I Mount servers: 100 : 7600 bytes
I Alias servers: 50 : 2400 bytes
I Sub servers : 500 : 54000 bytes
I Sub clients : 2000 : 352000 bytes
I San servers : 200 : 16800 bytes
I Cache : 10000
I Cached classes: 300 : 208800 bytes
I Cached class volumes: 150 : 8400 bytes
I Sub class objects: 300 : 37200 bytes
I Pool isize : 12476824, esize: 1559603
I Rtdb isize : 3737376, esize: 467172
E sect_Alloc: Couldn't attach/create shm section
F pwr bugcheck: <initating pool>, in file ../../rt_gdb.c, at line 672
%NONAME-E-NOMSG, Message number 00000002

[/code:1]


So I'm locked out ....

I don't know what I'm right to remove or not in the /tmp directory ? I removed all *lock* file and it now remains only rt_ini_wrapper, pwr_killer, pkg_unpack.sh, php.socket-0 and php.socket-1.

How can I restart ??

Have a good week end

Snarf

[EDIT]
Finally solved by a strange combination of pwr stop, kill and ARM reboot then distribute project again... Don't understand but it works again ...
[/EDIT]

Post edited by: Snarf77, at: 2011/07/22 19:44
The administrator has disabled public write access.
Time to create page: 8.140 seconds