C $ Bootloader

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.
steward
Member
Member
Posts: 27
Joined: Wed Apr 02, 2008 8:36 am

C $ Bootloader

Post 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
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post 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.
steward
Member
Member
Posts: 27
Joined: Wed Apr 02, 2008 8:36 am

Post by steward »

But what about Dmidecode?

It is in C language.

How can i put it in sector 1 and compile it?
levu
Posts: 1
Joined: Sat Apr 26, 2008 3:32 pm
Location: Darmstadt near Frankfurt, Germany
Contact:

Post 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
Attachments
writebin.com.txt
With this tool you can write floppys. please rename to *.com
(1.91 KiB) Downloaded 150 times
bootsec.asm
There is a bootloader who does what i said
(11.88 KiB) Downloaded 82 times
Macros.asm
Macrolib for the bootloader
(712 Bytes) Downloaded 50 times
Don't think, I'm thinking you can think beacuse then u think wrong and i think u cannot think, so don't think.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Try searching using "partcopy" as the keyword.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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.. :)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post 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
steward
Member
Member
Posts: 27
Joined: Wed Apr 02, 2008 8:36 am

Post 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
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

omfg. :evil: PASTEBIN!
steward
Member
Member
Posts: 27
Joined: Wed Apr 02, 2008 8:36 am

Post by steward »

What do u mean?
please solve my problem
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

@mods: I have a ban request for you. What's the procedure?
steward
Member
Member
Posts: 27
Joined: Wed Apr 02, 2008 8:36 am

Post by steward »

If u dont want to answer me dont post nothing.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post 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".
steward
Member
Member
Posts: 27
Joined: Wed Apr 02, 2008 8:36 am

Post by steward »

Ok.excuse me

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