From: Tim Deegan Subject: Re: SMBIOS problem with PXE booting Date: Fri, 5 Jan 2007 16:24:16 +0000 Message-ID: <20070105162416.GB21843@york.uk.xensource.com> References: <459DD344.6050901@scalent.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Return-path: Content-Disposition: inline In-Reply-To: <459DD344.6050901@scalent.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Evan Bigall Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --SUOF0GtieIMvvwua Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Hi, At 11:25 +0700 on 05 Jan (1167996340), Evan Bigall wrote: > When I change nothing in the config but the image to boot, and then boot > eb-5.4.2-rtl8139.iso (downloaded from *rom*-*o*-*matic*.net), the iso > boots, correctly, PXEs, tftps our kernel and ramdisk, but then if I run > dmidecode on the ramdisk, it looks like SMBIOS has been corrupted somehow. Indeed. The ROMBIOS is reporting the wrong amount of base memory (0x0 -- 0x9fc00), so etherboot relocates itself on top of the SMBIOS tables (which are at 0x9f000). The attached patch should fix it for Xen 3.0.3. Cheers, Tim. --SUOF0GtieIMvvwua Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename=basemem diff -r 6b3bb79cb1c9 tools/firmware/rombios/rombios.c --- a/tools/firmware/rombios/rombios.c Tue Jan 02 14:46:13 2007 +0000 +++ b/tools/firmware/rombios/rombios.c Fri Jan 05 16:12:02 2007 +0000 @@ -1435,10 +1435,17 @@ copy_e820_table() copy_e820_table() { Bit8u nr_entries = read_byte(0x9000, 0x1e8); + Bit32u base_mem; if (nr_entries > 32) nr_entries = 32; write_word(0xe000, 0x8, nr_entries); memcpyb(0xe000, 0x10, 0x9000, 0x2d0, nr_entries * 0x14); + /* Report the proper base memory size at address 0x0413: otherwise + * non-e820 code will clobber things if BASE_MEM_IN_K is bigger than + * the first e820 entry. Get the size by reading the second 64bit + * field of the first e820 slot. */ + base_mem = read_dword(0x9000, 0x2d0 + 8); + write_word(0x40, 0x13, base_mem >> 10); } #endif /* HVMASSIST */ --SUOF0GtieIMvvwua Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --SUOF0GtieIMvvwua--