This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
doublequestionmark's profile picture

Boot - A CC Bootloader [Version 1.2 Released!]

Started by doublequestionmark, 26 January 2016 - 02:15 AM
doublequestionmark #1
Posted 26 January 2016 - 03:15 AM
Boot

A comptuercraft bootloader



changelog

V.1.2:
  • removed cli configuration tool bug
  • added secure boot fuctionality
V.1.0: initial release


Manual

Actually booting into somethingThere are two ways to tell Boot to boot into something
the first way is to create a program ending in ".boot", ".start", ".startup", ".load", or ".bin"
Examplefile: program.boot
—————————————————
print("Hello There!")

The second way is to set Boot's defualt path using
startup defaultPath=[path]
–note this seems to be a bit buggy atm

Menusstartup menu (hold delete):
http://imgur.com/MmecZAR
the startup menu allows you to chose a temporary boot device/file

bootloader menu (hold escape) {advanced computers only}:
[image not available]
the bootloader menu is a gui front end to the command line configuration utility (powered by: oeed's bedrock framework/api)

configurationyou have two options to configure Boot

the first option is to enter the bootloader menu (escape) {requires an advanced computer} and do your configuring there.

the second option is to use Boot's command line configuration utility

startup var value

example: to enable debug mode:

startup dev true

Secure Bootto enable secure boot just run
startup SecureBootFile {path to boot file} 
for example, lets say i wanted to enable secure boot for 'shell.boot'. i would run:
startup SecureBootFile shell.boot
and then i would reboot my computer, and if all goes well, i should see Boot generating a hash for 'shell.boot'

setting other varsBoot has a variety of configuration items not included in the gui config tool (mostly 'cause laziness), if you want to change their values just use the CLI config tool.
the vars you can change are located in between the '–#–' and the '–==–==–==–==' lines at the top of Boot's startup file

To use the CLI config tool just run
startup var string
so if i wanted to spoof the id of my computer to be 42 i would run:
startup ID 42



Downloads

pastebin run Jn48zZjG


Screenshots




Edited on 07 February 2016 - 09:16 PM
LewisTehMinerz #2
Posted 31 January 2016 - 03:30 PM
Created a minified version as an alternate download: http://pastebin.com/fEc5tm6V
Towtow10 #3
Posted 02 February 2016 - 08:39 AM
Add some screenies please.
zguystudios #4
Posted 04 February 2016 - 10:38 PM
So, essentially a more souped up version of zBoot?
EDIT: The startup files idea, at the very least
Edited on 04 February 2016 - 09:39 PM
doublequestionmark #5
Posted 07 February 2016 - 10:16 PM
Add some screenies please.
your wish is my command
LewisTehMinerz #6
Posted 31 May 2016 - 02:11 PM
Just wondering, why is there a profanity option and why is one of your functions named the F-Bomb?
doublequestionmark #7
Posted 03 June 2016 - 09:33 PM
Just wondering, why is there a profanity option and why is one of your functions named the F-Bomb?

When I was first developing it, it crashed alot, so instead of me yelling F*** several times an hour, the computer did it for me.
And as for the function name, that function is called whenever a core part of boot crashes, so F*** kinda fits