* [Linux-ia64] elilo-3.3a netbooting patch
@ 2003-01-21 18:58 Stephane Eranian
0 siblings, 0 replies; only message in thread
From: Stephane Eranian @ 2003-01-21 18:58 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
Hi,
The following patch fixes a problem when netbooting with elilo. Some IP addresses were
not correctly converted to strings. This problem affects people who are netbooting
AND passing the DHCP-obtained IP address to the kernel using elilo's %I, %M, %N
substitution variables. Other netbooting configurations should not be affected
by this bug. The patch also includes 2 other minor bug fixes.
The patch is to be applied to elilo-3.3a.
--
-Stephane
[-- Attachment #2: elilo-030121.diff --]
[-- Type: text/plain, Size: 2026 bytes --]
diff -urN elilo-3.3a/ChangeLog elilo-3.3b/ChangeLog
--- elilo-3.3a/ChangeLog 2002-10-15 10:55:30.000000000 -0700
+++ elilo-3.3b/ChangeLog 2003-01-21 10:52:18.000000000 -0800
@@ -1,3 +1,8 @@
+2003-01-21 Stephane Eranian <eranian@hpl.hp.com>
+ * fix bug in glue_netfs.c convert_ip2decstr() which caused some IP
+ addresses to be incorrectly converted to strings.
+2002-11-01 Stephane Eranian <eranian@hpl.hp.com>
+ * fix bug in -r option for IA64. There is no argument to this option.
2002-10-15 Stephane Eranian <eranian@hpl.hp.com>
* fixed a double free bug for the kernel memory in case of abort.
(bug spotted by Levent Akyl from Intel)
diff -urN elilo-3.3a/glue_netfs.c elilo-3.3b/glue_netfs.c
--- elilo-3.3a/glue_netfs.c 2002-06-11 09:42:36.000000000 -0700
+++ elilo-3.3b/glue_netfs.c 2003-01-21 10:45:30.000000000 -0800
@@ -82,9 +82,10 @@
}
val = val % 100;
v = val / 10;
- if (v) {
+ if (v || ip[i] >= 100) {
str[j++] = '0'+v;
}
+
v = val % 10;
str[j++] = '0'+v;
if (i < l-1) str[j++] = '.';
diff -urN elilo-3.3a/ia32/system.c elilo-3.3b/ia32/system.c
--- elilo-3.3a/ia32/system.c 2002-02-21 17:26:43.000000000 -0800
+++ elilo-3.3b/ia32/system.c 2002-11-06 10:16:45.000000000 -0800
@@ -843,6 +843,17 @@
return -1;
}
+ /*
+ * Let's not forget efi info for EFI aware
+ * IA32 kernels...
+ */
+ bp->s.efi_sys_tbl = (UINTN)systab;
+ bp->s.efi_mem_map = (UINTN)mdesc.md;
+ bp->s.efi_mem_map_size = mdesc.map_size;
+ bp->s.efi_mem_desc_size = mdesc.desc_size;
+ bp->s.efi_mem_desc_ver = mdesc.desc_version;
+
+
*cookie = mdesc.cookie;
return 0;
diff -urN elilo-3.3a/ia64/config.c elilo-3.3b/ia64/config.c
--- elilo-3.3a/ia64/config.c 2002-08-15 19:08:38.000000000 -0700
+++ elilo-3.3b/ia64/config.c 2002-11-01 09:39:57.000000000 -0800
@@ -96,7 +96,7 @@
|| (elilo_opt.sys_img_opts && elilo_opt.sys_img_opts->allow_relocation ==TRUE) ? 1 : 0;
}
-#define IA64_CMDLINE_OPTIONS L"r:F:"
+#define IA64_CMDLINE_OPTIONS L"rF:"
CHAR16 *
sysdeps_get_cmdline_opts(VOID)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-21 18:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-21 18:58 [Linux-ia64] elilo-3.3a netbooting patch Stephane Eranian
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.