Bug 27203
Summary: | PXE initrd download to the wrong memory space | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Michael Johnson <michael_d_johnson> |
Component: | pxe | Assignee: | Elliot Lee <sopwith> |
Status: | CLOSED DUPLICATE | QA Contact: | Brock Organ <borgan> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-08-08 05:08:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael Johnson
2001-02-12 21:26:55 UTC
Opps, wrong patch file. The patch should read: *** download.c Thu Sep 23 17:58:21 1999 --- /tmp/downloadpatch/download.c Mon Feb 12 13:35:52 2001 *************** t_IP sip; *** 95,100 **** --- 95,102 ---- t_PXE_MTFTP_TMOUT *mtftp_tmout; t_PXE_MTFTP_DELAY *mtftp_delay; + unsigned long mem_size = 0; + if (bootfile = find_dhcp_tag(&reply, 67, 0)) { strncpy(dl_fname, bootfile->buf, bootfile->len); dl_fname[bootfile->len] = 0; *************** t_IP sip; *** 116,122 **** initrd_size = 4 * 1024L * 1024L; ! initrd_addr = (get_memsize() - 1024L) * 1024L - initrd_size; cll(); --- 118,129 ---- initrd_size = 4 * 1024L * 1024L; ! mem_size = (get_memsize() - 1024L) * 1024L; ! if (mem_size > 0x038000000) { ! initrd_addr = 0x038000000 - initrd_size; ! } else { ! initrd_addr = mem_size - initrd_size; ! } cll(); bputs("Downloading initrd image...\n"); bputs("Downloading initrd image...\n"); Let's try that again, it pasted wrong... *** download.c Thu Sep 23 17:58:21 1999 --- /tmp/downloadpatch/download.c Mon Feb 12 13:35:52 2001 *************** t_IP sip; *** 95,100 **** --- 95,102 ---- t_PXE_MTFTP_TMOUT *mtftp_tmout; t_PXE_MTFTP_DELAY *mtftp_delay; + unsigned long mem_size = 0; + if (bootfile = find_dhcp_tag(&reply, 67, 0)) { strncpy(dl_fname, bootfile->buf, bootfile->len); dl_fname[bootfile->len] = 0; *************** t_IP sip; *** 116,122 **** initrd_size = 4 * 1024L * 1024L; ! initrd_addr = (get_memsize() - 1024L) * 1024L - initrd_size; cll(); bputs("Downloading initrd image...\n"); --- 118,129 ---- initrd_size = 4 * 1024L * 1024L; ! mem_size = (get_memsize() - 1024L) * 1024L; ! if (mem_size > 0x038000000) { ! initrd_addr = 0x038000000 - initrd_size; ! } else { ! initrd_addr = mem_size - initrd_size; ! } cll(); bputs("Downloading initrd image...\n"); Whee a patch, must apply. Apologies for the unresponsiveness of the previous pxe maintainer... *** Bug 18277 has been marked as a duplicate of this bug. *** |