• Transputer Tools ported on Linux/ARM

    From Mike B.@21:1/5 to All on Sun Apr 28 07:35:19 2019
    Hi!

    Today I've successfully compiled my favorite transputer tools for Linux running on an ARM demo board (Atmel SAMA5D3-Xplained).

    ==================================================================
    Poky (Yocto Project Reference Distro) 1.5.1 sama5d3_xplained /dev/ttyS0

    sama5d3_xplained login: root
    root@sama5d3_xplained:~# ls -l
    -rw-r--r-- 1 root root 80 Feb 5 13:35 hello.c
    -rwxr-xr-x 1 root root 33960 Feb 5 13:19 iserver
    drwxrwxrwx 2 root root 1912 Feb 5 13:29 itools
    drwxrwxrwx 2 root root 5184 Feb 5 13:28 libs
    -rwxr-xr-x 1 root root 11744 Feb 5 13:00 link300.so.1.0.1
    -rwxr-xr-x 1 root root 8064 Feb 5 13:00 linktest
    -rwxr-xr-x 1 root root 17148 Feb 5 13:11 peek
    -rwxr-xr-x 1 root root 18760 Feb 5 13:11 poke
    -rwxr-xr-x 1 root root 89088 Feb 5 13:19 rspy
    root@sama5d3_xplained:~# file iserver
    iserver: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), not stripped
    root@sama5d3_xplained:~# export TRANSPUTER=./link300.so.1.0.1@10.232.11.66:l0 root@sama5d3_xplained:~# ./linktest
    TestError() returned 0
    root@sama5d3_xplained:~# ./rspy -L -E -M
    # Part rt Link0 Link1 Link2 Link3 E.Test RAM@cycle
    0 T414B 20 972K ... ... ... passed 2K@1,4096K@3? root@sama5d3_xplained:~# ./poke -R 0x80000010 0x55555555 root@sama5d3_xplained:~# ./peek 0x80000000 -N 16
    80000000: 80000000 80000000 80000000 80000000
    80000010: 55555555 800000A5 800000A5 800000A5
    80000020: 80000000 80000000 80000000 80000271
    80000030: 80000605 80000268 8000040E 80000298
    root@sama5d3_xplained:~# export IBOARDSIZE=#400800
    root@sama5d3_xplained:~# export IDEBUGSIZE=#400800
    root@sama5d3_xplained:~# export ISEARCH=$HOME/libs/
    root@sama5d3_xplained:~# ./iserver -sb ./itools/icc.btl hello.c -ta root@sama5d3_xplained:~# ./iserver -sb ./itools/ilink.btl hello.tco -f startup.lnk -ta
    root@sama5d3_xplained:~# ./iserver -sb ./itools/icollect.btl hello.lku -t -o hello.btl
    root@sama5d3_xplained:~# ./iserver -sz -sb hello.btl
    Startup ...
    Version : 1.4.2.1
    Build : 15:48:05 Apr 28 2019
    Linkname : ./link300.so.1.0.1@10.232.11.66:l0
    4 Parameter ok. Switches=0x000001D1
    Option 0: 9 1 0 "./iserver"
    Option 1: 3 1 0 "-sz"
    Option 2: 3 1 0 "-sb"
    Option 3: 9 1 0 "hello.btl"
    Link module loaded

    Connect root transputer ...
    Try to connect to 10.232.11.66:l0
    Link resource is open

    Reset root transputer ...
    Link has been reset

    Booting root transputer ...
    Filename is hello.btl
    8192 bytes send
    8192 bytes send
    4232 bytes send
    20616 bytes total

    Hello World!
    Disconnect
    Link statistic: send=20kB recv=0kB control=1
    root@sama5d3_xplained:~# ==================================================================

    Kind regards
    Mike

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Axel Muhr@21:1/5 to All on Mon Apr 29 04:28:26 2019
    Am Sonntag, 28. April 2019 16:35:20 UTC+2 schrieb Mike B.:
    Hi!

    Today I've successfully compiled my favorite transputer tools for Linux running on an ARM demo board (Atmel SAMA5D3-Xplained).

    Awesome! I assume /link300.so is connecting to your LinkUSB?

    If we could "reanimate" Hessel to continue his work on this RasPi hat, we would be all set for a "Fistful of Transputer-Host":
    http://isquared.nl/blog/2014/06/18/raspberry-pi-inmos-link/ http://isquared.nl/blog/2014/11/15/rs-422-link-first-packets/

    Cheers, Axel

    ==================================================================
    Poky (Yocto Project Reference Distro) 1.5.1 sama5d3_xplained /dev/ttyS0

    sama5d3_xplained login: root
    root@sama5d3_xplained:~# ls -l
    -rw-r--r-- 1 root root 80 Feb 5 13:35 hello.c
    -rwxr-xr-x 1 root root 33960 Feb 5 13:19 iserver
    drwxrwxrwx 2 root root 1912 Feb 5 13:29 itools
    drwxrwxrwx 2 root root 5184 Feb 5 13:28 libs
    -rwxr-xr-x 1 root root 11744 Feb 5 13:00 link300.so.1.0.1
    -rwxr-xr-x 1 root root 8064 Feb 5 13:00 linktest
    -rwxr-xr-x 1 root root 17148 Feb 5 13:11 peek
    -rwxr-xr-x 1 root root 18760 Feb 5 13:11 poke
    -rwxr-xr-x 1 root root 89088 Feb 5 13:19 rspy
    root@sama5d3_xplained:~# file iserver
    iserver: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), not stripped
    root@sama5d3_xplained:~# export TRANSPUTER=./link300.so.1.0.1@10.232.11.66:l0 root@sama5d3_xplained:~# ./linktest
    TestError() returned 0
    root@sama5d3_xplained:~# ./rspy -L -E -M
    # Part rt Link0 Link1 Link2 Link3 E.Test RAM@cycle
    0 T414B 20 972K ... ... ... passed 2K@1,4096K@3? root@sama5d3_xplained:~# ./poke -R 0x80000010 0x55555555 root@sama5d3_xplained:~# ./peek 0x80000000 -N 16
    80000000: 80000000 80000000 80000000 80000000
    80000010: 55555555 800000A5 800000A5 800000A5
    80000020: 80000000 80000000 80000000 80000271
    80000030: 80000605 80000268 8000040E 80000298
    root@sama5d3_xplained:~# export IBOARDSIZE=#400800
    root@sama5d3_xplained:~# export IDEBUGSIZE=#400800
    root@sama5d3_xplained:~# export ISEARCH=$HOME/libs/
    root@sama5d3_xplained:~# ./iserver -sb ./itools/icc.btl hello.c -ta root@sama5d3_xplained:~# ./iserver -sb ./itools/ilink.btl hello.tco -f startup.lnk -ta
    root@sama5d3_xplained:~# ./iserver -sb ./itools/icollect.btl hello.lku -t -o hello.btl
    root@sama5d3_xplained:~# ./iserver -sz -sb hello.btl
    Startup ...
    Version : 1.4.2.1
    Build : 15:48:05 Apr 28 2019
    Linkname : ./link300.so.1.0.1@10.232.11.66:l0
    4 Parameter ok. Switches=0x000001D1
    Option 0: 9 1 0 "./iserver"
    Option 1: 3 1 0 "-sz"
    Option 2: 3 1 0 "-sb"
    Option 3: 9 1 0 "hello.btl"
    Link module loaded

    Connect root transputer ...
    Try to connect to 10.232.11.66:l0
    Link resource is open

    Reset root transputer ...
    Link has been reset

    Booting root transputer ...
    Filename is hello.btl
    8192 bytes send
    8192 bytes send
    4232 bytes send
    20616 bytes total

    Hello World!
    Disconnect
    Link statistic: send=20kB recv=0kB control=1
    root@sama5d3_xplained:~# ==================================================================

    Kind regards
    Mike

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike B.@21:1/5 to All on Mon Apr 29 07:08:37 2019
    link300.so is the simple tcp B300 compatible interface.

    Current possible interface list
    link004.dos (x86)
    link004.os2 (x86)
    link004.w32 (x86)
    link008.dos (x86)
    link008.os2 (x86)
    link300.lnx (x86,amd64,arm,ppc,mips)
    link300.os2 (x86)
    link300.vms (vax)
    link300.w32 (x86,amd64,ia64)
    linkbbk.w32 (x86)
    linklpt.dos (x86)
    linklpt.w32 (x86)
    linknec.dos (x86)
    linkusb.w32 (x86,amd64,ia64)

    linkusb.so didn't exist because there is still no LINKUSB driver for Linux. But an USB connector is available on the SAMA5D3, so maybe in the future ...

    Kind regards
    Mike

    PS: I don't use my real B300 (because to much noise). I use a simple SW-Gateway to LINKUSB under windows on another box.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike B.@21:1/5 to All on Mon Apr 29 07:11:42 2019
    If we could "reanimate" Hessel

    Hardware is not the problem ;-)

    -Mike

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike B.@21:1/5 to All on Sun May 12 11:10:38 2019
    Hi!

    The linkusb interface 4 linux (with libusb-1.0) also runs now on x86, amd64 and even on my tiny arm demo board:

    root@sama5d3_xplained:~# ./rspy -LR -E -M
    # Part rt Link0 Link1 Link2 Link3 RTT.ms.hops E.Test RAM@cycle
    0 T805D 30 1712K 1295K 1724K 1179K 0.486 0 passed 4K@1,8192K@3?
    1 T2 20 ... ... 925K ... 0.445 1
    4 T801B 25 ... 1724K 1712K ... 0.537 1 passed 4K@1,2048K@2?
    5 T801B 25 ... 1712K 1612K ... 0.520 2 passed 4K@1,2048K@2?
    6 T800C 20 ... 1712K 1700K ... 0.521 3 passed 4K@1,28K@3,2016K@4,4K@3?
    7 T800C 20 ... 1612K 1453K ... 0.506 4 passed 4K@1,28K@3,2016K@4,4K@3?
    8 T414B 20 ... 961K 814K ... 0.486 5 passed 2K@1,32K@3?
    9 T414B 20 ... 844K 972K ... 0.495 6 passed 2K@1,32K@3?
    10 T800C 20 ... 1381K ... ... 0.635 7 passed 4K@1,28K@3,2016K@4,4K@3?

    Lind regards
    Mike

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)