Page 1 of 2

C $ Bootloader

Posted: Sat Apr 26, 2008 2:21 pm
by steward
Hi Guys

I want to make a Floppy disk that at sector 0 is Bootloader and at sector 1 is a kernel in c Language.My kernel is DMIDecode.is there any way to do that.
if anyone has the Dmidecode source code in assembly please share that.

My question is that how can i make this boot disk?

Thx in advance

Posted: Sat Apr 26, 2008 2:57 pm
by 01000101
I had an experimental OS that had the BL @ sect 0, and then the kernel at sect 1, and then the next 'file' was at sect 2 and so on.

I just ended each file with

Code: Select all

times 512-($-$$) db 0 
to fill up the rest of a sector, and if it went over, i just multiplied the first 512 by the sector count required.

Posted: Sat Apr 26, 2008 3:06 pm
by steward
But what about Dmidecode?

It is in C language.

How can i put it in sector 1 and compile it?

Posted: Sat Apr 26, 2008 3:52 pm
by levu
steward wrote:But what about Dmidecode?

It is in C language.

How can i put it in sector 1 and compile it?
with a special tool (attachement) you can write the bootloader onte the first sector and then it loads the kernel.bin you put onto the floppy with WinExplorer. Dont Worry, You can't see bootloader in explorer.
The kernel.bin can be written in each language. Also in C.

All needed files are an attachement

Posted: Sat Apr 26, 2008 3:57 pm
by Combuster
Try searching using "partcopy" as the keyword.

Posted: Sat Apr 26, 2008 4:14 pm
by Brynet-Inc
You all realize he's trying to directly boot some random utility right? :lol:

http://www.nongnu.org/dmidecode/

So funny, I shed a tear.. :)

Posted: Sat Apr 26, 2008 4:26 pm
by Combuster
Brynet-Inc wrote:You all realize he's trying to directly boot some random utility right? :lol:

http://www.nongnu.org/dmidecode/

So funny, I shed a tear.. :)
I honestly appreciate the fact that he at least tried to listen to what we previously said and STFW instead of hammering. I agree though that his knowledge is way below the norm and he will still get nowhere and it is indeed best if he left this place for a more newb-friendly environment for the time being.

Posted: Mon Apr 28, 2008 5:29 am
by jal
Combuster wrote:I honestly appreciate the fact that he at least tried to listen to what we previously said and STFW instead of hammering. I agree though that his knowledge is way below the norm and he will still get nowhere and it is indeed best if he left this place for a more newb-friendly environment for the time being.
Yeah, he doesn't even seem to understand how to get an assembly listing from C-code, given his question... This guy is really beyond redemption...


JAL

Posted: Mon Apr 28, 2008 5:52 am
by steward
you are right i dont know nothing.but you claim that you know everything

If u know sth help me instead of ridicule me.

I want to know how can i set a C kernel after bootloader?C code:

Code Spam removed - Combuster. Use attachments or at least code tags

Posted: Mon Apr 28, 2008 6:06 am
by JamesM
omfg. :evil: PASTEBIN!

Posted: Mon Apr 28, 2008 6:13 am
by steward
What do u mean?
please solve my problem

Posted: Mon Apr 28, 2008 6:17 am
by JamesM
@mods: I have a ban request for you. What's the procedure?

Posted: Mon Apr 28, 2008 6:24 am
by steward
If u dont want to answer me dont post nothing.

Posted: Mon Apr 28, 2008 6:26 am
by JamesM
In which case, don't infiltrate the forum I frequent every day, post inordinate amounts of untagged code with the line "Fix it for me" then proceed to tell me what to do.

Also, nice use of double negatives, moron. Perhaps you meant "Don't post anything" or "Post nothing".

Posted: Mon Apr 28, 2008 6:29 am
by steward
Ok.excuse me

But i am in trouble and i should do that as soon as possible.
help please