OS acting weird on real hardware

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
Nutty
Posts: 1
Joined: Thu Aug 12, 2021 2:59 am

OS acting weird on real hardware

Post by Nutty »

Hello, i am currently following an os dev tutorial (https://www.youtube.com/watch?v=7LTB4aL ... a8l0Jb6l8-)

i reached episode 4 and i decided to test my os on real hardware so i used HxD to copy the binary contents of "boot.bin" onto an USB drive and i also made sure that the hex code is placed on the right sectors, the usb drive is MBR formatted (FAT file system). when i boot from it , all i see is a smiley emoji at the bottom of the screen. if you are willing to help me solve this and need more information, you can tell me and i will give it to you, i am not sure what causes the problem and thats why i am saying that :)
Octocontrabass
Member
Member
Posts: 5567
Joined: Mon Mar 25, 2013 7:01 pm

Re: OS acting weird on real hardware

Post by Octocontrabass »

Nutty wrote:Hello, i am currently following an os dev tutorial
Do not trust OS development tutorials. They're full of bugs.
Nutty wrote:i used HxD
Did you select the physical disk or the logical disk? Did you overwrite the partition table or leave the one that was already there?
Nutty wrote:USB
Booting from USB can be tricky. Is your partition marked active?
Nutty wrote:if you are willing to help me solve this and need more information, you can tell me and i will give it to you,
Source code would help. You might consider using an online version control system like Github - if your hard drive crashes, you'll still have a copy of the code. It's also easier to link to the VCS website instead of pasting your code into forum posts.
Post Reply