Page 1 of 1

Cannot boot my boot loader from a normal computer

Posted: Tue Nov 12, 2013 9:19 am
by kemosparc
Hi,

I have created an iso image for a very simple boot loader the prints a welcome message like the one in baby step 2, and I have burned the iso to a CD.

When I boot qemu or bochs from the physical CD it boots and prints the message, but when I try to boot from the cd on a physical lenovo W500 thinkpad it just hangs and does nothing. I tried from different physical machines and the same problem persistes.

If anyone went through this and has a solution for it kindly let me know

Thanks
Karim.

Re: Cannot boot my boot loader from a normal computer

Posted: Tue Nov 12, 2013 9:41 am
by Love4Boobies
kemosparc wrote:I have created an iso image for a very simple boot loader the prints a welcome message like the one in baby step 2, and I have burned the iso to a CD.
The Babystep series doesn't cover the information required for booting from optical drives. However, the wiki does show one possible answer. By the way, Babystep looks like a half-baked assembly tutorial. I would look for some better learning resources, if I were you.
kemosparc wrote:When I boot qemu or bochs from the physical CD it boots and prints the message, but when I try to boot from the cd on a physical lenovo W500 thinkpad it just hangs and does nothing. I tried from different physical machines and the same problem persistes.
Unfortunately, "hangs and does nothing" is not a good problem description. At what point does this happen and where does it get stuck? You should investigate the bug and, if you don't figure out how to fix it by then, prepare the smallest bug-demonstrating test case you can and show it to us.
kemosparc wrote:If anyone went through this and has a solution for it kindly let me know
A common problem members of this community seem to have encountered with with booting from real hardware rather than emulators is that they made assumptions, like memory being zeroed out or relying on certain firmware functionality to be (correctly) implemented.

Re: Cannot boot my boot loader from a normal computer

Posted: Tue Nov 12, 2013 10:16 am
by kemosparc
Thank you very much for your reply.

I have solved the problem.

The proiblem was that I have overlooked setting the ds to zero.

It was stupid of me.

Sorry for that and thanks for your reply.

Thanks
Karim