OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 11:10 pm

All times are UTC - 6 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 6:17 am 
Offline
Member
Member

Joined: Mon Jan 16, 2017 3:39 pm
Posts: 25
Hey. My OS won't boot on physical hardware (my old PC). It has got Intel so don't say it won't boot because it's not recognising instructions.

It used to work fine. I've got a bootloader and kernel. It just used to work fine.
I've tried almost everything.

It only works on VirtualBox. I need a quick response please. If you view this, please reply! It just skips and boots to the hard disk. I'm booting with F12 boot manager on Acer. I've used a bootable USB tool. I have used DD to make the floppy image.

Please help me out. I really need help.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 6:26 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5145
Explain the steps you take to go from "floppy disk image" to whatever you're doing that isn't booting.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 6:35 am 
Offline
Member
Member

Joined: Mon Jan 16, 2017 3:39 pm
Posts: 25
I'm using a floppy image. Then, I put it on to my USB (using a tool). It used to work before.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 6:36 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5145
WaterOS wrote:
Then, I put it on to my USB (using a tool).

This is the step I need you to explain.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 6:38 am 
Offline
Member
Member

Joined: Mon Jan 16, 2017 3:39 pm
Posts: 25
I use Etcher... Alternative to Rufus I found. My bootloader and kernel used to work. Could there be some instructions that might interfere with the BIOS? I'm trying to boot from USB on an Acer.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 6:59 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5145
Does Etcher allow you to write the image to a partition on the disk? If so, make sure you are writing your image to the entire disk, not a partition.

Some BIOSes attempt to verify the contents of the boot sector before allowing the code to run. If the BIOS is skipping your code without trying to run it, your code probably doesn't look enough like a "real" boot sector. Make sure you have a BPB, and make sure it's correct.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:03 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 723
Location: Tallinn, Estonia
WaterOS wrote:
I use Etcher... Alternative to Rufus I found. My bootloader and kernel used to work. Could there be some instructions that might interfere with the BIOS? I'm trying to boot from USB on an Acer.


The blind shooting in the dark, interesting sport.

"Used to work" on the same Acer? go back to the version that worked and diff the changes you made, you'll find it.

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:08 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5145
dozniak wrote:
"Used to work" on the same Acer? go back to the version that worked and diff the changes you made, you'll find it.

I knew I was forgetting something. #-o


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:22 am 
Offline
Member
Member

Joined: Mon Jan 16, 2017 3:39 pm
Posts: 25
I've got a FAT12 BPB and Etcher worked before! I think the problem here is my kernel. What could be in my kernel that could stop things booting?


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:24 am 
Offline
Member
Member

Joined: Wed Oct 12, 2016 11:32 am
Posts: 34
Location: At my PC
WaterOS wrote:
I've got a FAT12 BPB and Etcher worked before! I think the problem here is my kernel. What could be in my kernel that could stop things booting?

Can your bootloader actually boot your kernel?


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:28 am 
Offline
Member
Member

Joined: Mon Jan 16, 2017 3:39 pm
Posts: 25
Yes, only on VirtualBox. Not my Acer. I boot from floppy on VirtualBox and I use USB on Acer.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:28 am 
Offline
Member
Member

Joined: Wed Oct 12, 2016 11:32 am
Posts: 34
Location: At my PC
WaterOS wrote:
Yes, only on VirtualBox. Not my Acer. I boot from floppy on VirtualBox and I use USB on Acer.

Send us your code?


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:32 am 
Offline
Member
Member

Joined: Mon Jan 16, 2017 3:39 pm
Posts: 25
The kernel is from Real mode assembly I :)
http://wiki.osdev.org/Real_mode_assembly_I

Everyone uses it as a tutorial.
By the way, do you think adding dw 0xAA55 to the kernel might work? You don't need times with kernels, only for bootloaders.

What is a good option to do?


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:39 am 
Offline
Member
Member

Joined: Wed Oct 12, 2016 11:32 am
Posts: 34
Location: At my PC
WaterOS wrote:
The kernel is from Real mode assembly I :)
http://wiki.osdev.org/Real_mode_assembly_I

Everyone uses it as a tutorial.
By the way, do you think adding dw 0xAA55 to the kernel might work? You don't need times with kernels, only for bootloaders.

What is a good option to do?

Because it's ment to be the bootsector. My guess is you made it over 512 bytes.


Top
 Profile  
 
 Post subject: Re: Help! My OS won't boot on physical hardware.
PostPosted: Sat Jan 21, 2017 7:43 am 
Offline
Member
Member

Joined: Mon Jan 16, 2017 3:39 pm
Posts: 25
I removed the times instruction by the way. How would I use it as a kernel? By the way, it still doesn't work on my Acer! By the way, if I do skip over 512 bytes, should I put AL=2 in my bootloader instead of 1?


Last edited by WaterOS on Sat Jan 21, 2017 7:47 am, edited 2 times in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 215 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group