OKUJI Yoshinori ([EMAIL PROTECTED]) wrote:

OY> From: Andreas Reich <[EMAIL PROTECTED]>
OY> Subject: Re: Chainloader File
OY> Date: Sat, 16 Dec 2000 20:50:57 +0100

>> You are right, my file is onle 69 bytes long.
>> How do I add bytes so GRUB can boot it?

OY> $ dd if=/dev/zero bs=`expr 512 - 69 - 2` count=1 >> your_file
OY> $ printf '\x55\xaa' >> your_file

Thanks, that worked.
I am curious: Why \x55\xaa and not just zero-bytes?

OY> This should work, but it is better to do this by your assembler or
OY> linker. See stage1/stage1.S in the source tree of GRUB, for example.

I looked into stage1.S, but - what exactly am I supposed to see there?

-- 
Andreas Reich
Scention Labs, Entwicklungsleitung |  Privat:
[EMAIL PROTECTED]                 |  [EMAIL PROTECTED]
ICQ# 94341344                      |  ICQ# auf Anfrage



_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to