Comments (5)
It's a good question! I believe it should be possible, after stripping all binaries the complete distribution I ship today fits in less than 1MB. The kernel is ~120k stripped, and the init filesystem is ~800k with all binaries stripped.
I imagine the biggest challenge will be the boot protocol, I currently only support multiboot2. I don't currently have plans to support anything else, but I'd be happy to take a look at what would be needed if you can point me to the relevant documentation.
from nightingale.
@tyler569 Is this "multiboot2" boot protocol compatible with the floppy images? If you could create a floppy that will be bootable in QEMU (which also uses a coreboot+SeaBIOS internally) or VirtualBox, no extra adjustments needed to try to launch it on the real hardware from this BIOS. I'll be happy to test ;)
from nightingale.
Multiboot 2 is how the OS learns about things like memory maps, ACPI information, the display, etc. I don't boot directly off BIOS, I use grub2 to collect that information for me because it's a lot more convenient than doing all of the BIOS initialization manually. I don't believe grub2 can fit on a floppy, it has a lot of functionality and is probably much larger than my OS, but if you know of another multiboot2-compatible bootloader that you would recommend I can give it a try.
from nightingale.
@tyler569 Interesting to know if there's a good reason for using GRUB2 and not GRUB 0.97 like https://github.com/mikaku/Fiwix/
from nightingale.
I rely on features of GRUB2 that are not present in legacy GRUB 0.97, including multiboot 2 support.
from nightingale.
Related Issues (20)
- Port to x86_32 HOT 1
- Port to aarch64
- Fix sys_wait4()
- Audit usage of integer types
- TCP HOT 2
- Block process without busy loop
- Proper user environment / ENVP
- Crash in syscall should trace back through user code to main. HOT 1
- It should be possible to dump stack of a suspended process HOT 1
- Break libc out into a project of its own HOT 1
- fstdio functions in libc do not handle interactive EOF
- Move kernel/*.h to kernel/include
- `cat .` jumps to a null pointer
- Support thread-local storage
- sh doesn't like redirected shebangs HOT 1
- SIGSEGV does not work on x86_32
- Trouble compiling HOT 2
- hello ,can i become a contributions and worker with your team toghter HOT 2
- Traceback when loading a module that is not in virtual memory causes exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightingale.