Cannot boot my boot loader from a normal computer

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
kemosparc
Member
Member
Posts: 207
Joined: Tue Oct 29, 2013 1:13 pm

Cannot boot my boot loader from a normal computer

Post 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.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Cannot boot my boot loader from a normal computer

Post 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.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
kemosparc
Member
Member
Posts: 207
Joined: Tue Oct 29, 2013 1:13 pm

Re: Cannot boot my boot loader from a normal computer

Post 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
Post Reply