summaryrefslogtreecommitdiff
path: root/net/etherboot/files/patch-aa
blob: 7a6f1c78db8b36db32a48735b36005e4a6b90fb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- Config.orig	Wed May 23 11:50:37 2001
+++ Config	Wed May 23 11:53:08 2001
@@ -223,7 +223,7 @@
 # CFLAGS32+=	-DAOUT_IMAGE -DIMAGE_MULTIBOOT -DIMAGE_FREEBSD
 
 # Change download protocol to NFS, default is TFTP
-# CFLAGS32+=	-DDOWNLOAD_PROTO_NFS
+CFLAGS32+=	-DDOWNLOAD_PROTO_NFS
 
 # These flags affect the loader that is prepended to the Etherboot image
 LCONFIG+=	-DMOVEROM
--- boot1a.s.orig	Sat Jun 23 08:56:25 2001
+++ boot1a.s	Mon Feb  4 14:49:28 2002
@@ -56,7 +56,7 @@
 # Partition Constants 
 		.set PRT_OFF,0x1be		# Partition offset
 		.set PRT_NUM,0x4		# Partitions
-		.set PRT_BSD,0x1		# Partition type
+		.set PRT_BSD,0xA5		# Partition type
 
 # Flag Bits
 		.set FL_PACKET,0x80		# Packet mode
--- makerom.c.orig	Thu Aug  2 00:27:48 2001
+++ makerom.c	Mon Feb  4 15:05:00 2002
@@ -67,7 +67,7 @@
 		fprintf(stderr, "BIOS extension ROM Image did not start with 0x55 0xAA\n");
 	size = buffer[2] * 512L;
 	/* sizes are usually powers of two, warn if not */
-	for (i = MINROMSIZE; i < MAXROMSIZE && i < size; i *= 2)
+	for (i = MINROMSIZE; i < MAXROMSIZE && i < size; i += MINROMSIZE)
 		;
 	if (size > 0 && i > size)
 		fprintf(stderr, "%ld is a strange size for a boot ROM\n",
@@ -192,8 +192,8 @@
 		exit(1);
 	}
 	/* shrink it down to the smallest size that will do */
-	for (romsize = MAXROMSIZE; romsize > MINROMSIZE && romsize >= 2*fs; )
-		romsize /= 2L;
+	for (romsize = MINROMSIZE; romsize < MAXROMSIZE && romsize <fs;
+		romsize += MINROMSIZE );
 	rom[2] = romsize / 512L;
 	rom[5] = 0;
 	if (verbose)
--- Makefile.orig	Sun Feb 17 18:59:52 2002
+++ Makefile	Sun Feb 17 19:00:04 2002
@@ -166,7 +166,7 @@
 BOBJS32+=	bin32/serial.o bin32/timer.o
 BLIB32=		bin32/bootlib.a
 LIBS32=		$(BLIB32) $(LIBC32)
-UTILS+=		bin/makerom bin/lzhuf
+UTILS+=		bin/makerom bin/lzhuf $(DISKLOADER)
 STDDEPS32=	$(START32) $(BLIB32) $(UTILS)
 UBE_DEPS32=	$(UBE_START32) $(BLIB32)
 # MAKEDEPS is the one target that is depended by all ROMs, so we check gcc here