<div dir="ltr">So I think I found the source, there is no ikup command when I am telnet'ed in.<div><br></div><div>There is a mount command it seems but I have no idea how to use it, ones suggestion of using it as:</div><div>mount -t nfs foo:/bar /net<br></div><div><br></div><div>fails but calling mount("something") fails differently:</div><div>I am not sure what all the numbers mean from the returning values items etc.   </div><div><br></div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">0x001d41e4 (1917412)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">alt-rotator>mount -t nfs 10.50.1.1:/test /test</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Cexp syntax error: syntax error, unexpected IDENT</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">alt-rotator>mount("")</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">0xffffffff (-1)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">alt-rotator>mount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">0x001d41e4 (1917412)</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><div><br></div><div>I also goofed (already) and when I mkdir test i forgot the quotes</div><div>so I put mkdir(test) and created something I cannot seem to remove :/ . (the UWVS?? etc)</div><div><br></div><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span></p><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">alt-rotator>ls()</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">         </span>2, <span class="gmail-Apple-converted-space">      </span>2948b, <span class="gmail-Apple-converted-space">    </span>0.0 <span class="gmail-Apple-converted-space">    </span>00755 dev/</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">        </span>16,<span class="gmail-Apple-converted-space">      </span>16384b, <span class="gmail-Apple-converted-space">    </span>0.0 <span class="gmail-Apple-converted-space">    </span>00000 apo/</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>12959797, <span class="gmail-Apple-converted-space">      </span>4096b, <span class="gmail-Apple-converted-space">  </span>501.501 <span class="gmail-Apple-converted-space">  </span>00775 rtems/</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">        </span>16,<span class="gmail-Apple-converted-space">          </span>0b, <span class="gmail-Apple-converted-space">    </span>0.0 <span class="gmail-Apple-converted-space">    </span>00000 UWVS???l$4?|$8??t$<?</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">       </span>17,<span class="gmail-Apple-converted-space">          </span>0b, <span class="gmail-Apple-converted-space">    </span>0.0 <span class="gmail-Apple-converted-space">    </span>00000 test/</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">And to the question: </span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">- Can you say what the board support package and application are?</span><br style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small"></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">I am not sure what specifically you mean here, in the folder I found the source code (it was messy) i found all these other folders which might be packages compiled to it? and the README said to use the rtems-4.7.1 folder (where the code is)</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">[root@devel1 tools]# ls</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">build-4.6<span class="gmail-Apple-tab-span" style="white-space:pre"> </span> cexp-1.5-4.6<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>ntp-4.1.1a-rtems-20030127.tar<span class="gmail-Apple-converted-space">  </span>rtems-4.6.99.3.APO<span class="gmail-Apple-tab-span" style="white-space:pre">     </span><span class="gmail-Apple-converted-space">    </span>rtems-4.7.1.APO-RS232-Driver<span class="gmail-Apple-converted-space">  </span>rtems-nfs-1.3</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">build-4.7<span class="gmail-Apple-tab-span" style="white-space:pre">        </span> cexp-1.5-4.7<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span>openntpd-3.9p1<span class="gmail-Apple-tab-span" style="white-space:pre">        </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span> <span class="gmail-Apple-converted-space">      </span>rtems-4.6.99.3.ORIG<span class="gmail-Apple-tab-span" style="white-space:pre">  </span><span class="gmail-Apple-converted-space">    </span>rtems-4.7.3<span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-converted-space">  </span>rtems-nfs-1.4</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">build-4.7.1<span class="gmail-Apple-tab-span" style="white-space:pre">       </span> ntp-4.1.1a-rtems-20030127<span class="gmail-Apple-tab-span" style="white-space:pre">    </span>Python<span class="gmail-Apple-tab-span" style="white-space:pre">        </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span> <span class="gmail-Apple-converted-space">      </span>rtems-4.7<span class="gmail-Apple-tab-span" style="white-space:pre">    </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-converted-space">    </span>RTEMS-GeSys_2.1.beta<span class="gmail-Apple-tab-span" style="white-space:pre">     </span><span class="gmail-Apple-converted-space">  </span>rtemsNfs-1.5</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">build-4.7.1 .  <span class="gmail-Apple-converted-space">  </span>ntp-4.1.1a-rtems-20030127.APO<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>README<span class="gmail-Apple-tab-span" style="white-space:pre">        </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span> <span class="gmail-Apple-converted-space">      </span>rtems-4.7.1<span class="gmail-Apple-tab-span" style="white-space:pre">  </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span><span class="gmail-Apple-converted-space">    </span>RTEMS-GeSys_2.1.beta-4.6<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><span class="gmail-Apple-converted-space">  </span>rtems-telnetd-1.1.beta</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">










</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">cexp-1.5<span class="gmail-Apple-tab-span" style="white-space:pre">        </span> ntp-4.1.1a-rtems-20030127.OLD<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>rtems-4.6.6<span class="gmail-Apple-tab-span" style="white-space:pre">   </span><span class="gmail-Apple-tab-span" style="white-space:pre">      </span> <span class="gmail-Apple-converted-space">      </span>rtems-4.7.1.APO-Network-Mod<span class="gmail-Apple-converted-space">  </span>RTEMS-GeSys_2.1.beta-4.7<span class="gmail-Apple-tab-span" style="white-space:pre">        </span><span class="gmail-Apple-converted-space">  </span>temp</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">Sort of progress, just not sure how or where :D and totally sad I seemed to of created a corrupted file on the fs.</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"></p></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 17, 2019 at 11:22 AM Peter Dufault <<a href="mailto:dufault@hda.com">dufault@hda.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Oct 17, 2019, at 02:07 , Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>> wrote:<br>
> <br>
> On 17/10/19 4:20 am, Shane Thomas wrote:<br>
>> I had a question, I inherited a system that uses rtems<br>
> <br>
> Welcome.<br>
> <br>
>> and I am not sure how to<br>
>> edit files on that system.   There is no vim or vi.  I telnet into them and then<br>
>> get a message right away that says:<br>
>> <br>
>> cexp.help() for help (which does't work) but help() does show some commands like<br>
>> cat, pwd, home, mod = ld("filename")<br>
> <br>
> The cexp shell is a 3rd party shell package that is not formally part of RTEMS.<br>
> A lot of people use it however I do not and do not know anything about it. Sorry.<br>
> <br>
>> etc...<br>
>> but nothing that would let me edit files that are on that system.  Also no<br>
>> ftp/sftp to let me edit locally and then move them to that system.   I am not<br>
>> sure the version of rtems this is running even (not sure how to get that).<br>
>> <br>
>> Signed up to this mailing list just to ask this question, not sure what<br>
>> else/where else to look.<br>
> <br>
> I use the shell RTEMS provides in the cpukit/libmisc/shell directory and we have<br>
> documented, see <a href="http://docs.rtems.org" rel="noreferrer" target="_blank">docs.rtems.org</a> and click on the shell documents.<br>
> <br>
> To transfer files on to and off boards I set up a machine in the lab as an NFS<br>
> server and then mount it in RTEMS using the mount command:<br>
> <br>
> $ cd /<br>
> $ mkdir net<br>
> $ mount -t nfs foo:/bar /net<br>
> <br>
> If I need to edit text files on a target I add the `edit` shell command. It is<br>
> OK at performing small editing tasks on the target. Saving, exiting etc are<br>
> mapped to function keys.<br>
> <br>
> I hope this helps.<br>
> <br>
> Chris<br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
<br>
"cexpr()" originated at SLAC (Stanford Linear Accelerator) and is frequently used as part of the EPICS (<a href="https://epics.anl.gov" rel="noreferrer" target="_blank">https://epics.anl.gov</a>) system.  "cexpr()" is a "C" language expression parser, for better or worse, so you can call any C function from the command line.  Be sure to include the decimal point (3.0 not 3) if you're passing a floating point!<br>
<br>
The 'mod = ld("filename")' message shows it supports dynamic loading as well.<br>
<br>
Typically you do not edit files on those systems.  Usually the will use NFS to mount remote file systems so that you can edit files on the host system.  Try 'lkup("mount")'<br>
<br>
Are you sure there isn't an RTEMS version in the boot-up text?  I have access to an old system that uses "cexpr()" and it prints out the version:<br>
<br>
   Welcome to rtems-4.7.1(PowerPC/PowerPC 7455/beatnik) ($Name: R_beatnik_20060214 )<br>
   Build Date: Sat Sep 22 14:10:53 EDT 2007<br>
   Board Type: MVME5500-0161 (S/N E1834D9)<br>
<br>
Here's an example of using "cexpr()" to figure out the version on that system:<br>
<br>
------<br>
cexp_main>lkup("version")<br>
=====  In module 'SYSTEM' (0x01ad43d8) =====:<br>
  0x20fa3c[     0]: VOID                          void        _RTEMS_version<br>
  0x271028[     0]: VOID                          void        __fdlib_version<br>
   0xdaf1c[     4]:                               long (*)()  _bfd_elf_slurp_version_tables<br>
<br>
USER VARIABLES:<br>
0x00000000 (0)<br>
cexp_main>printf("%s\n",(char *)&_RTEMS_version)<br>
rtems-4.7.1(PowerPC/PowerPC 7455/beatnik)<br>
0x0000002a (42)<br>
cexp_main><br>
-----<br>
<br>
- Do you have the source?<br>
- Can you say what the board support package and application are?<br>
<br>
Peter<br>
-----------------<br>
Peter Dufault<br>
HD Associates, Inc.      Software and System Engineering<br>
<br>
This email is delivered through the public internet using protocols subject to interception and tampering.<br>
<br>
</blockquote></div>