• ciforth (lina64) for risc-V is available

    From none) (albert@21:1/5 to All on Fri Mar 31 13:12:32 2023
    The family of 64 bits ciforths has now a new member. https://home.hccnet.nl/a.w.m.van.der.horst/lina.html

    Apart from i86 linux, MS-windows, arm Linux, and i86 Apple there
    is now a risc-V version.
    Due to the generic build system, this baby is born with hair, claws
    and teeth.
    It builds locally with the regular tool chain on a
    Linux ubuntu 5.19.0-1007-allwinner #7~22.04.1-Ubuntu
    SMP Wed Feb 22 16:07:52 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux
    and a
    DongshanNeZha-STU board.

    So it has the usual features of ciforth's:
    1. A comprehensive test succeeds
    2. Fitting documentation available in info pdf and ps format
    with indices of words and concepts.
    Heavily cross referenced .html present.
    Man page present.
    3. The library, with numerous ciforth facilities
    4. Simple examples.
    5. Compiles to executables. Scripting available.

    Fitting means that the documentation is fully applicable to
    this Forth, there are only words in the documentation that are
    actually available and all words are documented the way they
    actually work in this particular Forth.
    (Try `` man as '' to appreciate this.)
    The documentation is grouped in wordsets with a description.
    This cuts down in finding a functionality (that e.g. naturally belongs
    to string handling) and more importantly allows to decide whether a functionality is not available.

    This is a beta release, a dated snapshot, so you will have to manually
    -unpack it,
    -if you're paranoid inspect the source and reassemble it;
    you need gcc (actually as and ld)
    -tryout: it is usable in this directory
    - install : you can do a system wide install with option -i
    - enlarge : if 2 Mbyte is to small use option -g
    - copy .info .pdf .ps man.1 to appropriate places.

    After a burn in period this will be promoted to version 5.4.

    (Building a .deb archive is postponed till then. This is
    as much effort as porting to risc-V in the first place.)

    See also an introduction to ciforth family.
    https://forth.hcc.nl/producten/ciforth.html

    The word VMA-IO works, i.e. you can find the address of the io-space.
    If I can locate the 1400 page (chinese?) manual of the D1-H chip,
    all the gpio, dac, SPI, UARTs, timers can be used.
    [ Beware: Other boards have different manuals.]

    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring.
    You must not say "hey" before you have crossed the bridge. Don't sell the
    hide of the bear until you shot it. Better one bird in the hand than ten in
    the air. First gain is a cat spinning. - the Wise from Antrim -

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jan Coombs@21:1/5 to albert@cherry. on Fri Mar 31 12:39:13 2023
    On Fri, 31 Mar 2023 13:12:32 +0200
    albert@cherry.(none) (albert) wrote:

    The family of 64 bits ciforths has now a new member. https://home.hccnet.nl/a.w.m.van.der.horst/lina.html

    A welcome addition, thanks. I'm hoping to move my home computing to a
    RISC-V soon.

    Jan Coombs
    --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From none) (albert@21:1/5 to albert on Sun Apr 2 14:19:29 2023
    In article <nnd$7704a178$6cc07930@8c9e956022945fa0>,
    none) (albert <albert@cherry.> wrote:

    The family of 64 bits ciforths has now a new member. >https://home.hccnet.nl/a.w.m.van.der.horst/lina.html

    Apart from i86 linux, MS-windows, arm Linux, and i86 Apple there
    is now a risc-V version.
    Due to the generic build system, this baby is born with hair, claws
    and teeth.
    It builds locally with the regular tool chain on a
    Linux ubuntu 5.19.0-1007-allwinner #7~22.04.1-Ubuntu
    SMP Wed Feb 22 16:07:52 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux
    and a
    DongshanNeZha-STU board.

    To unleash the full power of the D1-H chip you need the manual
    that describes the port address, functions of each ports etc.
    Once you have a D1-H chip there is one variable that determines
    where the ports are mapped. This available in ciforth through
    the word VMA-IO . You have to be superuser, otherwise you get
    a privilege violation.

    I have tracked it down:
    https://open.allwinnertech.com/#/doc?menuID=2
    You may need to register, I did it a long time ago.
    You need D1-H_UserManual_V.1.3 , but I recommend to
    select all, down load all.
    No it is not an excerpt, it runs 1400 pages. It is all about
    hardware, look elsewhere for the instruction set/ assembler manuals.

    The holding board has a mask that contains the io pins names,
    e.g. PB6. These can be tracked down easily in the manual.
    The circuit description is available, electronics schematics
    and board layout.

    <SNIP>

    The board that I have is available through analoglamb.com ,
    a knowledgeable supplier which can be contacted directly and
    responds.
    It is shipping directly from China, no intermediate amazon or aliexpress.

    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring.
    You must not say "hey" before you have crossed the bridge. Don't sell the
    hide of the bear until you shot it. Better one bird in the hand than ten in
    the air. First gain is a cat spinning. - the Wise from Antrim -

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