Jump to content




BIGLDR - multiboot bootloader for CC

lua computer

  • You cannot reply to this topic
7 replies to this topic

#1 Awe2K

  • Members
  • 38 posts
  • LocationSomewhere near keyboard

Posted 02 November 2015 - 06:00 PM

Hi.

Now, I have finished basic functionality of my "BIG LDR" bootloader and now I'm proud to present it.
BIGLDR - bootloader that is capable of loading multiple operating systems, so if you want two or even more of them, you can use this bootloader.
Also, it offers easy script format to make booting easier.

So, my bootloader just scans disks and computer (root directories) for *.mbt files, and lists them in menu.
If no scripts found, console will be opened to enter commands.

Script format (list of commands):
Spoiler

Example scripts:
Spoiler

Run installer:
pastebin run JE6EX9db

Bootloader scripts for manual installation:
Spoiler

Latest version: 0.04beta3

Changelog:
Spoiler

Hope that bootloader will be useful for someone :rolleyes:

Edit: yeah, tried to make it look like GNU GRUB bootloader.
Attached Image: 2015-11-14 (3).pngAttached Image: 2015-11-14 (4).png

Edited by Awe2K, 14 November 2015 - 06:01 PM.


#2 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 02 November 2015 - 06:20 PM

Could you write an example script? For example load CraftOS or any other OS of your choice.

#3 Awe2K

  • Members
  • 38 posts
  • LocationSomewhere near keyboard

Posted 02 November 2015 - 06:23 PM

Okay:

load_craftos.mbt:
clear
chainload craftos

load_some_kernel.mbt:
clear
print Loading some very cool OS!
set some_parameter value123
sleep 1
multiboot kernel.bin


#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 02 November 2015 - 08:01 PM

Moved to Programs.

#5 Awe2K

  • Members
  • 38 posts
  • LocationSomewhere near keyboard

Posted 13 November 2015 - 02:19 PM

Updated to 0.04beta1.
Added several features:
  • You can now reference global variables in your script by prefixing it with '$' character.
  • Changed "set" command format a bit, now it uses '$' prefix before variable name (e.g. "set $var_name value")
  • (Added just for fun) Now it generates random memory amount (base-2) every boot.
  • Fixed minor bug with multiboot.
  • New bugs included!
UPD: directories ending with .mbt are not listed now.

Edited by Awe2K, 13 November 2015 - 03:17 PM.


#6 Awe2K

  • Members
  • 38 posts
  • LocationSomewhere near keyboard

Posted 14 November 2015 - 03:57 PM

So, I've made BIGLDR installer, to make installation of loader a bit easier.
  • If custom OS is already installed (e.g. has "startup" file), then it will backup it and add config entry for it.
  • Also it can create config entry for craftos
  • Tried to make it compatible with all computers (pocket, pre-1.74, etc) and easy to use.
To get installer, just type:
pastebin get JE6EX9db bigldr_installer

Attached Thumbnails

  • Attached Image: 2015-11-14.png


#7 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 14 November 2015 - 05:08 PM

You can make: pastebin run <code>

#8 Awe2K

  • Members
  • 38 posts
  • LocationSomewhere near keyboard

Posted 14 November 2015 - 05:17 PM

Thanks, didn't know this. Replaced that :)

Edit: updated bigldr again. Now it displays fancy names instead of file names (for example, "CraftOS" instead of "/craft_os.mbt").

Edited by Awe2K, 14 November 2015 - 05:20 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users