Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could ZeldaOS fit on a floppy? #7

Open
informer2016 opened this issue Nov 19, 2019 · 4 comments
Open

could ZeldaOS fit on a floppy? #7

informer2016 opened this issue Nov 19, 2019 · 4 comments

Comments

@informer2016
Copy link

Even today the floppies are still being used, for example - as virtual floppies inside the coreboot open source BIOS. Just imagine: your wonderful OS could be a part of someone's BIOS build! (for coreboot supported motherboard, maybe you have or could get one - see https://www.coreboot.org/Supported_Motherboards )

@chillancezen , If you already have a coreboot-supported motherboard, or a real chance to get one, - wouldn't it be cool to be able to launch your own OS straight from the BIOS chip? ;) With one simple command its possible to add any floppy to coreboot BIOS build - and then you see it as a boot entry! Multiple floppies could be added this way (as long as you have enough space left inside the BIOS flash chip, luckily LZMA compression could be used for the stored floppies to reduce their occupied size)

@chillancezen
Copy link
Owner

thanks for filing the issue.
ZeldaOS.x86_64 is not a portal OS or kernel, it's just a bare metal virtual machine monitor. I am afraid it's not what you are seeking.

@informer2016
Copy link
Author

@chillancezen Thank you too, for a kind reply. ZeldaOS looks really great to be honest, judging by the screenshots. I wish you good luck in your project!

@chillancezen
Copy link
Owner

@chillancezen Thank you too, for a kind reply. ZeldaOS looks really great to be honest, judging by the screenshots. I wish you good luck in your project!

Thanks,
I take a loot at the final image size: 123K, that's definitely fitting a floppy:

drwxr-xr-x. 2 root root 4.0K Nov 21 05:16 bootloader
-rw-r--r--. 1 root root  512 Nov 21 05:17 bootloader64.bin
-rw-r--r--. 1 root root 2.0K Nov 21 05:17 bootloader64.elf
drwxr-xr-x. 3 root root 4.0K Nov 21 05:17 device
drwxr-xr-x. 2 root root 4.0K Nov 21 05:17 guest
drwxr-xr-x. 3 root root 4.0K Nov 21 05:17 init
-rw-r--r--. 1 root root   27 Nov 21 05:17 kernel64.inc
drwxr-xr-x. 3 root root 4.0K Nov 21 05:17 lib64
-rw-r--r--. 1 root root  806 Nov 21 05:16 Makefile
drwxr-xr-x. 3 root root 4.0K Nov 21 05:17 memory
drwxr-xr-x. 2 root root 4.0K Nov 21 05:16 mk
-rw-r--r--. 1 root root 2.7K Nov 21 05:16 README.md
drwxr-xr-x. 3 root root 4.0K Nov 21 05:17 vm_monitor
drwxr-xr-x. 3 root root 4.0K Nov 21 05:17 x86_64
-rwxr-xr-x. 1 root root 122K Nov 21 05:17 Zelda64.bin
-rw-r--r--. 1 root root 1.4K Nov 21 05:16 zelda64_config.h
-rwxr-xr-x. 1 root root 1.3M Nov 21 05:17 Zelda64.elf
-rw-r--r--. 1 root root 123K Nov 21 05:17 Zelda64.img <======= The bootable Image.
-rw-r--r--. 1 root root  67K Nov 21 05:17 Zelda64.map

The image contains a custom bootloader, the host kernel and the guest image(which is a tetris game)
alas, the host kernel itself is very limited in its functions, it's only able to drive several peripherals like keyboard/serial port/and video buffers. you can do nothing but play the game which is running inside a vm.

so sorry that I cannot help.

@informer2016
Copy link
Author

@chillancezen Well, running a Tetris game from a BIOS is already something wonderful that could be shown off to your friends 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants