Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
ShrewdSpirit

Spirit Loader: A multi boot ROM

Recommended Posts

Hello!

 

Have you ever wanted to have multi boot support for your computers or servers?

Normally it's a pain in the a$$ to change between OSes because you have to replace your HDDs to boot the OS you want and you'll have no access to your files on the other OS except if you insert that HDD/Floppy again!

 

Now Spirit Loader is here to save a lot of time for you! You can have as many bootable medias as you want in your server, computer, or whatever else! Spirit Loader lets you choose the OS you want to boot  ;)

Note that on servers without screens or bound terminals, Spirit Loader will boot the first OS it finds to avoid errors and stuff ...

 

24594144567498540240_Untitled.png

 

Steps to get it on your EEPROM:

  1. Get the file 
    wget https://gist.githubusercontent.com/ShrewdSpirit/aae851383c0c081b570e/raw/9e8e8445fb75183123ac715024c2161dabf77ab7/SpiritLoader.lua spiritloader.lua
  2. Insert an empty EEPROM and flash the ROM using this command
    flash spiritloader.lua
  3. You're done. Now you can use this EEPROM in your computers/servers/robots/etc  :D

Spirit Loader also provides a simple API for printing, errors, getting signals, sleep and gpu/screen functions.

You have access to all component and computer APIs. The APIs are in bootdevice table. Feel free to look at the source to see what fields it has  :P

 

Here's a simple boot loader example (Requires GPU and Screen): http://pastebin.com/fncfJF7x

 

Current version is 1.0.0

 

TODO:

* Net boot support

Link to post
Share on other sites

Sorry if this is soo not how it works (haven't even tried coding) but would it be possible for it to launch the autorun.lua first and then load, so that the resolution can be fixed (I have to run at 110 40) so that people can read the options. Like I said, sorry if this isn't possible not into coding yet

Link to post
Share on other sites

Sorry if this is soo not how it works (haven't even tried coding) but would it be possible for it to launch the autorun.lua first and then load, so that the resolution can be fixed (I have to run at 110 40) so that people can read the options. Like I said, sorry if this isn't possible not into coding yet

 

It loads /init.lua or /boot.lua or anything else specified in searchPaths in source code. In boot file, you can change the resolution using the provided API (If bootdevice.disp is true) Take a look at the example

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.