Telem-RTA-A: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
== M501 Default Settings ==
== M501 Default Settings ==
{| border="1" cellpadding="5"
{| border="1" cellpadding="5"
! Setting || default
! Setting || default ver<1190 || colspan=2 | ver>1190
|-
|-
| Default IP || 192.168.2.127
| Default IP || 192.168.2.127 || colspan=2 | 192.168.0.111
|-
|-
| Netmask || 255.255.255.0
| Netmask || 255.255.255.0 || colspan=2 | 255.255.255.0
|-
|-
| Login || root
| Login || root || root || martem
|-
|-
| Password || root
| Password || root || reH3epea || Xooviet0
|}
|}


Line 15: Line 15:


*You can find the software here
*You can find the software here
** http://phobos.martem.ee/shr/rta-a/
** \\Phobos\d\3_Tehniline\Tarkvara myygiks\RTA-A
** \\Phobos\d\3_Tehniline\Tarkvara myygiks\RTA-A
=== Updating ===
=== Updating ===
#Login with '''FTP'''
#Login with '''SFTP'''
#*If you're using a new M501 board, use the details above
#*If you're using a new M501 board, use the details above
#*If it's a configured RTA-A then use the IP you have configured to the device.
#*If it's a configured RTA-A then use the IP you have configured to the device.
#Copy all files except '''RtaMain''' to '''/disk/'''
#Overwrite the contents of '''/mnt/disk'''
#*If it fails, try again.
#*If it fails, try again.
#Copy '''RtaMain''' to '''/disk/'''
#**If RTA-A resets during the copy process, you might need to use '''192.168.2.127''' as the FTP IP address
#*If RTA-A resets during the copy process, you might need to use '''192.168.2.127''' as the FTP IP address
#**Try again
#*Try again
#Allow execution permissions for this files
#Allow execution permissions for these files
#*/mnt/disk/usr/local/bin/telem/run-telem.sh
#*/disk/gateway.sh
#**chmod +x /mnt/disk/usr/local/bin/telem/run-telem.sh
#*/disk/RtaMain
#Wait ~30 seconds, so everything is written to flash.
#*/disk/runfirst.sh
#Wait ~30 seconds
#Reset RTA-A
#Reset RTA-A
#Wait ~30 seconds until RTA-A starts
#Wait ~30 seconds until RTA-A starts, if not running by then, update failed.
 
== Enabling NTP ==
In order to enable NTP client or server user needs to create ntp.conf file in folder /disk/etc and reboot the device. This can be than with commands echo and reboot, for instance:
<pre>
root@Telem-RTA-A />echo server 192.168.55.1 burst iburst > /disk/etc/ntp.conf
root@Telem-RTA-A />reboot
</pre>
After the reboot RTA-A starts to sync with server at IP address 192.168.55.1.
 
Inorder to enable time server at RTA-A lines like these need to be added to the ntp.conf
<pre>
# Provider services from local clock
server 127.127.1.0
fudge 127.127.1.0 stratum 10
</pre>
 
Description of ntpd can be found here homepage for NTP is here [http://doc.ntp.org/4.1.0/ntpd.htm]. Linux man page for ntp.conf can be found here [http://linux.die.net/man/5/ntp.conf], description of ntpd can be found from here [http://linux.die.net/man/8/ntpd].
 
NTP can be disabled by deleting the file ntp.conf from the RTA-A
 
== Delete everything inside RTA-A ==
Log in with SSH and execute the following commands
 
chmod -x /mnt/disk/usr/local/bin/telem/run-telem.sh
 
rm -rf /mnt/disk/{.directory,PACKED,VERSION,README.txt,home,log,root,update,usr,var,lib*,rootfs.txz,config.xml}
 
Now when you run '''df''' it should show ~40%
df
 
After this, follow the update guide

Latest revision as of 13:55, 7 November 2013

M501 Default Settings

Setting default ver<1190 ver>1190
Default IP 192.168.2.127 192.168.0.111
Netmask 255.255.255.0 255.255.255.0
Login root root martem
Password root reH3epea Xooviet0

Software upgrades for Linux

Updating

  1. Login with SFTP
    • If you're using a new M501 board, use the details above
    • If it's a configured RTA-A then use the IP you have configured to the device.
  2. Overwrite the contents of /mnt/disk
    • If it fails, try again.
      • If RTA-A resets during the copy process, you might need to use 192.168.2.127 as the FTP IP address
      • Try again
  3. Allow execution permissions for this files
    • /mnt/disk/usr/local/bin/telem/run-telem.sh
      • chmod +x /mnt/disk/usr/local/bin/telem/run-telem.sh
  4. Wait ~30 seconds, so everything is written to flash.
  5. Reset RTA-A
  6. Wait ~30 seconds until RTA-A starts, if not running by then, update failed.

Enabling NTP

In order to enable NTP client or server user needs to create ntp.conf file in folder /disk/etc and reboot the device. This can be than with commands echo and reboot, for instance:

root@Telem-RTA-A />echo server 192.168.55.1 burst iburst > /disk/etc/ntp.conf
root@Telem-RTA-A />reboot

After the reboot RTA-A starts to sync with server at IP address 192.168.55.1.

Inorder to enable time server at RTA-A lines like these need to be added to the ntp.conf

# Provider services from local clock
server 127.127.1.0
fudge 127.127.1.0 stratum 10

Description of ntpd can be found here homepage for NTP is here [1]. Linux man page for ntp.conf can be found here [2], description of ntpd can be found from here [3].

NTP can be disabled by deleting the file ntp.conf from the RTA-A

Delete everything inside RTA-A

Log in with SSH and execute the following commands

chmod -x /mnt/disk/usr/local/bin/telem/run-telem.sh
rm -rf /mnt/disk/{.directory,PACKED,VERSION,README.txt,home,log,root,update,usr,var,lib*,rootfs.txz,config.xml}

Now when you run df it should show ~40%

df

After this, follow the update guide