discussion icon indicating copy to clipboard operation
discussion copied to clipboard

Getting started in the FreeBSD bootloader

Open eatonphil opened this issue 8 years ago • 2 comments

Hey! I am interested in learning more (and hacking on) Forth in the FreeBSD bootloader (or any other bootloaders that use a Forth interpreter). Does anyone have any suggestions for getting started on this? (Guides, posts, anything.) Thanks!

eatonphil avatar May 10 '16 13:05 eatonphil

I have noted there is plenty of FreeBSD Forth code on GitHub: https://github.com/search?q=beastie+extension%3A4th

larsbrinkhoff avatar May 10 '16 14:05 larsbrinkhoff

The FreeBSD boot loader includes at current a Ficl interpreter which is running some Forth scripts for diplaying a boot menu and handling different boot options. Maybe because the Ficl 4 source base initially introduced some critical bugs, there exist an ongoing effort to replace Ficl with Lua and rewrite the boot scripts: https://svnweb.freebsd.org/base/projects/lua-bootloader

Anyhow, both scripting languages seem to be supported in future. Just take a look to the FreeBSD source tree.

Mat2 avatar May 17 '16 11:05 Mat2