Posibility to destroy hardware with testing?

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
HackmanGT
Posts:1
Joined:Wed Nov 21, 2007 6:10 am
Posibility to destroy hardware with testing?

Post by HackmanGT » Wed Nov 21, 2007 7:21 pm

If found the "Operating System Development Series" Resource invaluable. I have basic knowledge on ASM, and advanced on C, C++, I want to start developing a Boot Loader for my own use, but before start I read...
...When working with low level code, it is possible to destroy hardware if you are not carefull...
I know... two of them... setting the monitor to different rate, and writing to the BIOS area, if it is software update-able.
What else should I avoid?
If I follows the tutorial, and I made a mistake, could I make my hard disk or something else unusable?

I don't care to destroy software, I can reinstall.
But destroy hardware? I don't want it to happens.

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Post by Mike » Wed Nov 21, 2007 10:31 pm

Hello,

It is possible to destroy a disk drive, or completely make your machine unusable.

One thing to watch for is disk drive motors. If you forget to stop them after an operation, it is possible that it could wear out.

Directly probing memory for any reason can cause unpredictable damage depending on what location, and in what way.

Also, there are some 'holes' in physical memory that you need to be very careful of. More specifically, memory above 1MB.

Their are more. Just be careful and insure you are setting and know exactally what it should do.

Testing your software on an emulator is a great way that may resolve most possible problems.

Also, get the memory map from the BIOS to insure you get the correct amount of RAM, and locations that you can safely touch. Only do this when you are ready, however. (i.e., do not worry about it until later when you get to the kernel.)

The tutorial demos are completely tested on real hardware, and does work fine.

From all of the tutorials thus far, the only hardware damage that can be done is destroying your floppy drive, or the memory problems discussed above.

Tutorial 7 contains the basic memory map layout for memory below 1MB. As long as you read or write to the unused portians of the memory map, everything should be fine. ;)
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

Post Reply