Hello,
i want my bootsector to load the second sector of the bootdisk into RAM. But how, do i put a binary exactly at the second sector of the floppy with dd? Is it possible with:
dd if=secondsector.bin obs=512 seek=1 of=/dev/fd0
?
I tried this, but either the program doesnt work, or the dd command was wrong.
Can you tell me please?
Thanks in advance,
Elfredo
dd (sorry might be OT)
Re:dd (sorry might be OT)
I don't know what it is off hand. But the man page for dd will tell you what you need to know to do it.
K.J.
K.J.
Re:dd (sorry might be OT)
lo!
I use the following command to put my kernel to the second sector:
dd bs=512 if=kernel.bin seek=1 count=25 of=/dev/fd0
So I assume that the kernel is smaller than 25/2= 12.5 KB. It seems to me that it is nearly the same like your command. Couldn't it be that your bootsector make an mistake and it doesn't jump to the beginning of your kernel but to somewhere else. I think the best methode to try this would be to put a string at the beginning of your kernel and then try to print this string instead of jumping there.
I hope I could help you although my English is not were good (I am from germany).
CU
I use the following command to put my kernel to the second sector:
dd bs=512 if=kernel.bin seek=1 count=25 of=/dev/fd0
So I assume that the kernel is smaller than 25/2= 12.5 KB. It seems to me that it is nearly the same like your command. Couldn't it be that your bootsector make an mistake and it doesn't jump to the beginning of your kernel but to somewhere else. I think the best methode to try this would be to put a string at the beginning of your kernel and then try to print this string instead of jumping there.
I hope I could help you although my English is not were good (I am from germany).
CU
Re:dd (sorry might be OT)
Yes i somehow got confused with the segments when jumping to the kernel (well in fact it isnt a kernel yet), i now figured it out and it works alright now.