zeroflag / punyforth

Forth inspired programming language for the ESP8266
Other
410 stars 43 forks source link

cant follow your step on linux #2

Closed yunfan closed 7 years ago

yunfan commented 8 years ago

will you please add linux support?

zeroflag commented 8 years ago

Could you elaborate further, what kind of linux support do you mean? Currently you can run punyforth on linux, but there is no os integration (socket, file system, etc).

$ cd punyforth/arch/x86 $ ./build

Thils will compile, test, and start the REPL on linux.

yunfan commented 8 years ago

no i mean build that firmware on linux and flashing them to my module using esptool

also when i compiled it on my cellphone(termux on android) it fails too, and mostly caused by assembly syntax

zeroflag commented 8 years ago

no i mean build that firmware on linux and flashing them to my module using esptool

Ok, there are no build instructions yet. But basically you'll need to clone and build this project first

https://github.com/SuperHouse/esp-open-rtos

This needs esp-open-sdk, just follow the instructions on the github page. After that copy punyforth into the example directory of esp-open-rtos and run make.

There will be detaild instructions about the build process at some time.

yunfan commented 8 years ago

so your forth is an rtos app not barebone one?

zeroflag commented 8 years ago

Yes, this is a programming language, not an operating system.

yunfan commented 8 years ago

i followed all the ins of esp-open-rtos

and then i got this after i enter the examples/punyforth then type make

still got error

jyf@brix:~/repo/git/esp-open-rtos/examples/punyforth$ LC_ALL=c  make
make: *** No targets specified and no makefile found.  Stop.
zeroflag commented 8 years ago

The makefile is located at esp-open-rtos/examples/punyforth/arch/esp8266/rtos/user

Try to run make in this directory.

yunfan commented 8 years ago

yes i have enter that directory and type make too still lack of a file named uber.forth

zeroflag commented 8 years ago

yes i have enter that directory and type make too still lack of a file named uber.forth

The uber.forth is generated by the modules.py python script. It is just a big (zero terminated) source file that contains all of the selected modules in the correct order. Use the modules.py to generate one then you'll be able to flash it with help of the flash script (it is in the same directory as the modules.py).

zeroflag commented 7 years ago

I added build instructions to the wiki

https://github.com/zeroflag/punyforth/wiki/Build-environment-setup

yunfan commented 7 years ago

export PATH=$PATH:/esp/esp-open-sdk/xtensa-lx106-elf/bin

should be

export PATH=$PATH:~/esp/esp-open-sdk/xtensa-lx106-elf/bin

zeroflag commented 7 years ago

@yunfan thx, fixed

mhoffma commented 7 years ago

what is uber.forth it seems to be missing? is that just any forth program from the examples directory?