Re: [Amforth] Amforth & WINE & Linux (WANRING! NEWBIE-Alert! :)

2017-04-01 Thread tuxic
On 04/01 11:30, Erich Wälde wrote:
> Hello Meino,
> 
> tu...@posteo.de writes:
> 
> > Hi,
> >
> > Before I install a lot of software on my GENTOO-Linux only
> > to recognize I had done the wrong assumptions I would like
> > ask, whether I have the needed prerequisites for AmForth:
> >
> > I am running a 64bit-GENTOO Linux and I am quite familiar with
> > Linux.
> > I want to run AmForth on a Arduino Pro Mini Atmega328p/3.3V.
> > With my USB-to-serial adapter I flash my ProMinis with the
> > Arduino-IDE successfully.
> 
> Please note: "programming" an Arduino uses a bootloader flashed
> to the arduino controller before it is shipped. This bootloader
> is unfortunately not compatible with amforth. To flash amforth
> to your arduino you *must* have a proper programmer. There are
> many different ones available. I have successfully used several
> including this one: mySmartUSB light by www.myAVR.de. With this
> programmer you are able to reinstall the arduino bootloader as
> well.
> 
> > I am a AmForth-newbie.
> > I am a Wine-newbie.
> >
> > Do I need to install the 32bit-version or the 64bit-version of
> > wine?
> 
> AvrAssembler2 ist a 32 bit executable. Looking at my Debian I
> have installed
> . wine
> . wine-binfmt
> . wine32:i386
> . wine32-preloader:i386
> . wine64
> in other words, the multiarch system is used to enable :i386
> (==32 bit) packages, wine and wine32:i386 are installed. Then
> this should work. Be sure to search for corresponding
> instructions on gentoo.
> 
> > Do I need to install wine at all -- can I use a different software
> > to assemble things (I would prefer this way even it would imply more
> > work) ?
> 
> There is "avra" at http://avra.sourceforge.net. A long time ago
> I was able to assemble amforth with avra as well (amforth
> versions 4.2 .. 4.6 maybe). However: I had to patch avra to make
> it output the correct hex file for my beloved 644p. And some of
> the assembly directives did not work (.overlay may be, but not
> sure). Very unfortunately avra seems to be abandoned. So I
> personally have given in to use wine+AvrAssembler2.
> 
> It would, of course, be very exciting, if someone would pick up
> the leftovers of avra. I would definitely help by using it. And
> I'm sure, I'm not the only one waiting for a motivated developer
> to move on. As mentioned, I have looked at the sources. It looks
> doable, but I have dedicated my time to other things.
> 
> Maybe interesting to note: since wine+AvrAssembler2 is working,
> it gives a prospective maintainer of avra a possibility to
> check, whatever changes were made do not break the output. In
> the end avra should be able to produce identical output.
> 
> Another route could be to shape up naken_asm. Note that the
> msp430 Version of amforth ist build using naken_asm
> (http://www.mikekohn.net/micro/naken_asm.php)
> I'm not in a position to judge, whether this is a possible
> route.
> 
> If I remember correctly, then gcc-as is not a possible route,
> since the format of the assembly used by gcc-avr is different
> from that used to feed AvrAssember2.
> 
> >
> > Thank you very much in advance for any help!
> > Have a nice weekend!
> > Cheers
> >  Meino
> 
> 
> Hope, this helps, and welcome to amforth!
> 
> Another source of information is the .pdf Version of the "Vierte
> Dimension", a german (and somewhat english) publication by the
> "Forth Gesellschaft e.V.", found at
> http://www.forth-ev.de/filemgmt/viewcat.php?cid=2
> 
> Also, Jean Claude Wippler of jeelabs.org fame is experimenting
> with Forth.
> 
> Have the appropriate amount of fun!
> 
> Cheers,
> Erich
> 
> --
> The purpose of computing is insight --- not numbers
> R. Hamming
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 

Hi,

thanks a lot for the huge amount of informations!
But...

If I have to install wine first, then a windows executable...sorry,
no thank you.
With Gentoo everything has to be compiled first and I have had 
some not so successful experiences previously with wine (a vendor offers
a firmware-update-flashing tool for windows only).

Cheers
Meino


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Amforth & WINE & Linux (WANRING! NEWBIE-Alert! :)

2017-04-01 Thread Erich Wälde
Hello Meino,

tu...@posteo.de writes:

> Hi,
>
> Before I install a lot of software on my GENTOO-Linux only
> to recognize I had done the wrong assumptions I would like
> ask, whether I have the needed prerequisites for AmForth:
>
> I am running a 64bit-GENTOO Linux and I am quite familiar with
> Linux.
> I want to run AmForth on a Arduino Pro Mini Atmega328p/3.3V.
> With my USB-to-serial adapter I flash my ProMinis with the
> Arduino-IDE successfully.

Please note: "programming" an Arduino uses a bootloader flashed
to the arduino controller before it is shipped. This bootloader
is unfortunately not compatible with amforth. To flash amforth
to your arduino you *must* have a proper programmer. There are
many different ones available. I have successfully used several
including this one: mySmartUSB light by www.myAVR.de. With this
programmer you are able to reinstall the arduino bootloader as
well.

> I am a AmForth-newbie.
> I am a Wine-newbie.
>
> Do I need to install the 32bit-version or the 64bit-version of
> wine?

AvrAssembler2 ist a 32 bit executable. Looking at my Debian I
have installed
. wine
. wine-binfmt
. wine32:i386
. wine32-preloader:i386
. wine64
in other words, the multiarch system is used to enable :i386
(==32 bit) packages, wine and wine32:i386 are installed. Then
this should work. Be sure to search for corresponding
instructions on gentoo.

> Do I need to install wine at all -- can I use a different software
> to assemble things (I would prefer this way even it would imply more
> work) ?

There is "avra" at http://avra.sourceforge.net. A long time ago
I was able to assemble amforth with avra as well (amforth
versions 4.2 .. 4.6 maybe). However: I had to patch avra to make
it output the correct hex file for my beloved 644p. And some of
the assembly directives did not work (.overlay may be, but not
sure). Very unfortunately avra seems to be abandoned. So I
personally have given in to use wine+AvrAssembler2.

It would, of course, be very exciting, if someone would pick up
the leftovers of avra. I would definitely help by using it. And
I'm sure, I'm not the only one waiting for a motivated developer
to move on. As mentioned, I have looked at the sources. It looks
doable, but I have dedicated my time to other things.

Maybe interesting to note: since wine+AvrAssembler2 is working,
it gives a prospective maintainer of avra a possibility to
check, whatever changes were made do not break the output. In
the end avra should be able to produce identical output.

Another route could be to shape up naken_asm. Note that the
msp430 Version of amforth ist build using naken_asm
(http://www.mikekohn.net/micro/naken_asm.php)
I'm not in a position to judge, whether this is a possible
route.

If I remember correctly, then gcc-as is not a possible route,
since the format of the assembly used by gcc-avr is different
from that used to feed AvrAssember2.

>
> Thank you very much in advance for any help!
> Have a nice weekend!
> Cheers
>  Meino


Hope, this helps, and welcome to amforth!

Another source of information is the .pdf Version of the "Vierte
Dimension", a german (and somewhat english) publication by the
"Forth Gesellschaft e.V.", found at
http://www.forth-ev.de/filemgmt/viewcat.php?cid=2

Also, Jean Claude Wippler of jeelabs.org fame is experimenting
with Forth.

Have the appropriate amount of fun!

Cheers,
Erich

--
The purpose of computing is insight --- not numbers
R. Hamming

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Amforth & WINE & Linux (WANRING! NEWBIE-Alert! :)

2017-04-01 Thread Matthias Trute
Hi Meino,


> I am running a 64bit-GENTOO Linux and I am quite familiar with
> Linux.
> I want to run AmForth on a Arduino Pro Mini Atmega328p/3.3V.
> With my USB-to-serial adapter I flash my ProMinis with the 
> Arduino-IDE successfully.

You definitely need a "real" programmer to flash amforth. A second
arduino with the ISP software shall work, I use the Atmel AVR ISP MK2 
and an AVR Dragon. The default arduino flashing system does not 
cooperate with amforth. See 
http://amforth.sourceforge.net/faq.html#what-about-boot-loaders


> 
> Do I need to install the 32bit-version or the 64bit-version of wine?

It doesn't matter. I use the 64bit version (Ubuntu LTS)

> Do I need to install wine at all -- can I use a different software
> to assemble things (I would prefer this way even it would imply more
> work) ?

For the AVR world, there is no other way. Very early version of
amforth (10 years ago) could be assembled with an assembler called
avra, but that piece of code died long ago and is no longer able to
compile amforth. The MSP430 variant uses the naken_asm, that even
works on a raspberry pi. Unfortunately the AVR support in naken_asm
is not sufficient to compile amforth.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel