-
Notifications
You must be signed in to change notification settings - Fork 215
gets stuck at "Booting first stage..." when chainloading via grub in an iso #49
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
Comments
@xacrimon Any updates on this? |
Haven't had time.
…On Mon, Apr 1, 2019, 14:26 Philipp Oppermann ***@***.***> wrote:
@xacrimon <https://github.com/xacrimon> Any updates on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUDRh9yAK9_NN631RUhW1JkDGvi5G1pdks5vcfr-gaJpZM4bIIkd>
.
|
Ill do some more research as soon as i have time. Probably wont be until May comes around. |
Ok, thanks for the update! |
Alright, haven't had much time but it seems to be a failure related to loading the rest of the bootloader @phil-opp |
This is the output while running with
and then it hangs |
Alright. Ive tried to narrow the instruction down but i have had a hard time. I know |
Ah okay. If i dont supply the -cdrom flag to grub it doesnt call spin and get stuck with no error message. If i supply it it gives the load error and calls spin |
Alright. Done some more narrowing down. It seems to fail silently and fall into a spin loop or something in stage_1.s line 105 where it jumps to stage 2.
|
but as i said, it doesnt get to print the booting second stage message so something going wrong when jumping. |
It might be related to having issues loading. It may load some data that isn't the bootloader since locations get messed up when packed in an iso |
Yes, that could be the problem. Could you try removing the |
Will try!
…On Mon, Apr 29, 2019, 13:05 Philipp Oppermann ***@***.***> wrote:
It might be related to having issues loading. It may load some data that
isn't the bootloader since locations get messed up when packed in an iso
Yes, that could be the problem. Could you try removing the "relocation_model":
"static" line
<https://github.com/rust-osdev/bootloader/blob/f770e97f6c52420212ff69e7acfec6b4854a46ff/x86_64-bootloader.json#L20>
from the x86_64-bootloader.json file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFANDB2IB32JUFI26KRVX5DPS3JANANCNFSM4GZAREOQ>
.
|
No dice. Still hangs without further output. No difference with the |
Tried building a bootable ISO of my kernel using this bootloader with mkisofs (without grub) and it hung at stage 1. Unortunately I couldn't get any output because OCR was being unreliable. However, it hung both on VMware and virtual box, and I could only get it to boot via the .bin file. |
Tried to make a file with |
I've managed to get it working with grub. iso/boot/grub/grub.cfg:
Then:
The problem seems to be that if you just chainload with I'm not sure if there's a good way to get the |
Closing this for now. Let me know if there are further problems |
I am now running into this issue. How would I put the kernel onto another partition of the ISO so that int 13h sees it? I'd rather not distribute 2 files when an Iso should be good enough. |
Could you clarify what you mean with "this issue"? Do you mean that it gets stuck in the first stage?
I never worked with GRUB chainloading, so I don't think that I can answer this question. |
Yes, it gets stuck when creating an ISO and attempting to boot the
.bin file with it.
…On 1/22/20, Philipp Oppermann ***@***.***> wrote:
@ethindp
> I am now running into this issue
Could you clarify what you mean with "this issue"? Do you mean that it gets
stuck in the first stage?
> How would I put the kernel onto another partition of the ISO so that int
> 13h sees it? I'd rather not distribute 2 files when an Iso should be good
> enough.
I never worked with GRUB chainloading, so I don't think that I can answer
this question.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#49 (comment)
--
Signed,
Ethin D. Probst
|
Done some testing. Seems to happen after entering protected mode. CPU at 100% and frozen
The text was updated successfully, but these errors were encountered: