中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-11 22:42
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » GRUB help
Printable Version  1,885 / 5
Floor1 spitfirebay Posted 2004-01-15 00:00
初级用户 Posts 14 Credits 141
I want to compile Grub for dos under Linux, but I don't have the source code. Who can tell me where to download it?

Floor2 不点 Posted 2004-01-16 00:00
银牌会员 Posts 1,115 Credits 2,491
The relevant information can be found on this webpage:
http://www.linuxeden.com/edu/doctext.php?docid=3006

The source code of versions prior to grub for dos 0.1.x can all be obtained. Whether it is a tar.gz file or a zip file, after decompression, there is a grub-0.93-diff file, which is the source code of grub for dos, but it is just a patch file for GNU grub 0.93. Therefore, you should also download GNU's grub-0.93.tar.gz.

Grub for dos 0.2.0 has not been officially released yet, and only the executable exe file is available as a test version.
Floor3 spitfirebay Posted 2004-01-16 00:00
初级用户 Posts 14 Credits 141
Thanks, got it.
Floor4 spitfirebay Posted 2004-01-18 00:00
初级用户 Posts 14 Credits 141
There is another question. I downloaded the original code and your original code. Just copy them directly to the original code directory of grub093? What other settings need to be changed?
Floor5 不点 Posted 2004-01-18 00:00
银牌会员 Posts 1,115 Credits 2,491
The general method of using diff patches is: 【Take grub for dos as an example】

1. cd grub-0.93

2. patch -p1 < ../grub-0.93-diff

Explanation: The current directory is grub-0.93, and then the patch command is executed here. The right side of the less-than sign is our patch file. We put it in the upper-level directory, so we use ../grub-0.93-diff. In fact, it can be placed in any directory, as long as its accurate path is indicated.

3. ./configure

4. make

This step is compilation, which takes a long time, about a few minutes or 20 minutes

5. su 【May need to type in the password of the root user】

6. make install

7. exit 【Exit the root environment】

Okay, let's see that all the files have been generated. grub.exe is in the grub-0.93/stage2 directory.
Floor6 spitfirebay Posted 2004-01-19 00:00
初级用户 Posts 14 Credits 141
Thanks, compiling now.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023