China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 16:52
Original Poster Posted 2004-01-15 00:00 ·  加拿大 安大略省 多伦多
初级用户
Credits 141
Posts 14
Joined 2004-01-10 00:00
22-year member
UID 15232
Gender Male
Status Offline
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?

Floor 2 Posted 2004-01-16 00:00 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
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.
因为我们亲手创建,这个世界更加美丽。
Floor 3 Posted 2004-01-16 00:00 ·  中国 四川 南充 电信
初级用户
Credits 141
Posts 14
Joined 2004-01-10 00:00
22-year member
UID 15232
Gender Male
Status Offline
Thanks, got it.
Floor 4 Posted 2004-01-18 00:00 ·  中国 四川 南充 电信
初级用户
Credits 141
Posts 14
Joined 2004-01-10 00:00
22-year member
UID 15232
Gender Male
Status Offline
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?
Floor 5 Posted 2004-01-18 00:00 ·  中国 河南 南阳 内乡县 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
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.
因为我们亲手创建,这个世界更加美丽。
Floor 6 Posted 2004-01-19 00:00 ·  中国 四川 南充 电信
初级用户
Credits 141
Posts 14
Joined 2004-01-10 00:00
22-year member
UID 15232
Gender Male
Status Offline
Thanks, compiling now.
Forum Jump: