flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Help

Author
Thread Post new topic Reply to topic
steward



Joined: 04 Apr 2008
Posts: 24
steward
hi,

Really i should make a boot disk that at first sector be a bootloader then at second sector be an os that show the hardware specification in which you can see after POST in a table.can you help me?
thx
Post 04 Apr 2008, 02:45
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
sure we can.
look there: http://board.flatassembler.net/forum.php?f=11&sid=87451ac49d62fe7f957211da8dc176ed.
you will find a lot of examples.

have you good a dos application that can do that? in this case, you just have to modify it a bit and put it on a bootable drive, with some manipulations.

can you be more precise about the "hardware spec"?
Post 04 Apr 2008, 02:54
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
Thank u.but my problem is that i am not a pro.because i am networkman not a programer.guid me better
Post 04 Apr 2008, 03:23
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
i repeat my question, wich hardware spec do speak about? DMI? I/O ports, PCI dump? all?

in this case goto http://osdev.org

if you just want an application to show what is the hardware config at boot-time, in case of no os on the machine for example, you will seek for one of the threads at the link i gave to you.

do you want to code in asm or just to obtain some free ready to use products?
Post 04 Apr 2008, 03:32
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
i want asm code.
for example:

cpu intel

Ram gail

Hard maxtor.

...
Post 04 Apr 2008, 03:39
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
i'm sorry to say this to you, but it isn't so simple. there are many norms, many mazes in all specifications, some hardware vendors don't broadcast their programming skills, and it will be more than one sector to obtain this kind of application. this can be named a product.

you will find this kind of software ready to use like aida32 for windows. but in asm, i don't know any soft able to boot and display what you want.

an easier method will be to open the machine and read what is writen on the components.

Very Happy
Post 04 Apr 2008, 03:47
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
But i know that if we have the code that are in bios(Rom) .we can do that.is it true?
Post 04 Apr 2008, 04:01
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
steward wrote:
But i know that if we have the code that are in bios(Rom) .we can do that.is it true?
Of course it is possible to use the BIOS to run your hardware, but I don't know of any BIOS call that will give you the the hardware specs as such. You might need to write your own code to extract whatever specs you want to see. Hence the Q, what hardware do you want to examine?

I think you need to clarify some more, perhaps you can make a mock up with an editor to give an example of what you want to see. Then people will have a better idea of what you are after.
Post 04 Apr 2008, 05:10
View user's profile Send private message Visit poster's website Reply with quote
steward



Joined: 04 Apr 2008
Posts: 24
steward
Like this


Description:
Filesize: 70.22 KB
Viewed: 1462 Time(s)

Extension.JPG


Post 04 Apr 2008, 08:28
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
Well the work is not going to be so easy for a beginner. You have to learn about the motherboard interfaces (like SMBUS) also to be able to query things like the RAM type.

I suggest as a starting point you have a look at some existing OSes on this board that have code for using the devices that you want to display.
Post 04 Apr 2008, 09:27
View user's profile Send private message Visit poster's website Reply with quote
DJ Mauretto



Joined: 14 Mar 2007
Posts: 464
Location: Rome,Italy
DJ Mauretto
Quote:
i want asm code.
for example:

cpu intel

Ram gail

Hard maxtor.


Search SMBIOS Spec. on google or learn about ACPI.
If you want to do low level access then:
1) for CPU use CPUID instruction (at least pentium)
2) for RAM use SMBUS ,read at address A0,A2,A4,A6,and so on ... for SPD (serial presence detect)
3) for HD use 'IDENTIFY DRIVE' command ( ECH)
for CDROM DVDROM use 'IDENTIFY DRIVE' command ( A1H)

note that is not for beginners ,start to learn ,then write your mini OS
Post 04 Apr 2008, 10:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.