-
Notifications
You must be signed in to change notification settings - Fork 127
Grub2 Can't find Multiboot header #140
Comments
Do you know if runtime.js is a multiboot compliant kernel? Have you searched for the multiboot magic number? If not, it would be a good and somewhat easy addition :-) |
Ok, it's multiboot compliant. So, when does your error shows up? |
when |
Is that a command? How are you executing it? |
it is, Grub2 boot config source code: set timeout=10
set color_highlight=black/white
set color_normal=green/black
function graphics() {
loadfont /boot/unicode.pf2
set gfxmode=1024x768
set gfxpayload=keep
terminal_output gfxterm
}
graphics()
menuentry "ModernOS" {
loadfont /boot/unicode.pf2
set gfxmode=1024x768
set gfxpayload=keep
terminal_output gfxterm
multiboot /boot/runtime
boot
} |
How are you trying to exec it, on real hardware? Have you tried to run it on QEmu? It will be easier, you can be able to give it directly a multiboot kernel (I have done it myself in the past, also from scratch). Also, currently runtime.js only have drivers for virtio (virtual) devices... |
it works on qemu using the rom/kernel option |
Ok, so seems it's an issue with Grub2. Have you tried syslinux? It's fairly easier to work with and install, in fact it's what I'm using in NodeOS. |
not yet |
I would stick by the moment with the QEmu -kernel option, but if you are willing to use a bootloader, give syslinux a try ;-) |
I need help running syslinux to create a disk image from my disk directory |
to create the disk image use |
How do I get that command, I dont have it |
You could also use runtime-cli's runtime mkimg --size <how big you want it (e.g. 10G for 10 gigabytes)> --label "MODERNOS" disk.img |
I found out that Grub2 doesn't have x64 support for non-linux kernels. |
I can design a bootloader and call it Runtime.js Boot Manager |
It's better to fix multiboot support on runtime.js. Example code is easy to
understand, don't know why it's not working here...
El 23/6/2017 3:02 AM, "SpaceboyRoss01" <notifications@github.com> escribió:
… I can design a bootloader and call it Runtime.js Boot Manager
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAgfvo5tsbn65VwexDgf_LqsbWGyqeGdks5sGw6ZgaJpZM4LZ8lF>
.
|
running readelf on the kernel outputs: |
grub accept elf kernels, but not only them... Why don't you try to compile
a hello world kernel, like the example one of grub multiboot spec? It's a
funny and instructive task :-)
El 23/06/2017 22:38, "SpaceboyRoss01" <notifications@github.com> escribió:
… running readelf on the kernel outputs: readelf: Error: Not an ELF file -
it has the wrong magic bytes at the start
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAgfvmyEmZU1TWfZDBHwTtHDLGCF0ypFks5sHCIzgaJpZM4LZ8lF>
.
|
I got it to work now |
congrats! :-)
El 23/06/2017 22:42, "SpaceboyRoss01" <notifications@github.com> escribió:
… I got it to work now
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAgfvncDziJln-EgB4BNu0H8M08_qBDyks5sHCMqgaJpZM4LZ8lF>
.
|
Hey, I'm using grub2 to boot runtime but Grub2 says that it can't find the multiboot header.
The text was updated successfully, but these errors were encountered: