From: Justin Ferguson Subject: Re: build problems Date: Tue, 29 Dec 2009 05:29:20 -0700 Message-ID: <705543260912290429w47ac934jd886cb2fc2972c3e@mail.gmail.com> References: <1262081277.31374.2.camel@localhost.localdomain> <705543260912290210j60a8709by9ef9874d63eec270@mail.gmail.com> <1262081968.31374.9.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <1262081968.31374.9.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org I apologize in advance as my terminology on the various linux kernel compression formats is not the best (up until today I thought bzImage was just a bzip'd copy of the elf image, and the documentation here uses a lot of conflicting terminology)-- I am not positive if it is zImage or what format it is (other than I know it is not bzImage), but: jf@theory:/boot$ file vmlinux ; zcat vmlinuz | file - vmlinux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped /dev/stdin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped (I changed both file names to make them easy to type with tab completion as ive been doing a lot of rebooting as of late) > The kernel you use must be the toplevel vmlinux ELF file, optionally > stripped and optionally gzip compressed. This is not the same as a > zImage which is a format similar to to bzImage but not able to cope with > such large images (it is effectively obsolete). When I attempt to boot either of these kernels from the command line, I get the (presumably grub due to the lack of verbosity) invalid magic error. Where I am unclear on grub is whether I am supposed to be using 'multiboot' or 'linux' as the operand (to replace 'kernel'), the bzimage i needed multiboot, but none of the images ive created have contained a (findable) multiboot header (per mbchk), That said I may be making things unnecessarily stupid on myself by using some new-fangled version of grub (that shipped with the distro). Regardless of whether I am doing something wrong with grub, one of the resulting images should boot, however all are returning the magic error. > I think there is a target in the 2.6.18-xen tree which will perform this > strip and compress step for you but I don't recall what it is, it might > be the "vmlinuz" target although note that people often rename whatever > image they have built to that name so if you find one lying around it > isn't necessarily in any particular format. Well a make kernels leaves you with the top level image necessary (or other ones in the arch directories). A full make world/make install installs a bzImage. The implication here of course is that the default image installed from a make install is the bzImage that cannot possibly work. (v2.04-v2.08 thing) > If you need to post again please include the exact grub config file you > are using and the precise error messages rather than paraphrasing. So, the grub.cfg I have at the moment contains the entry from the last make world/make install, since then I've attempted to boot the top level images on the command line as described. To satify you're request, the relevant entry is as follows: menuentry "xen" { multiboot /boot/xen-3.4.gz dom0_mem=512M module /boot/vmlinuz-2.6.18-xen root=/dev/sda5 ro module /boot/initrd-2.6-xen.img } I'm not attempting to clutter the dev list with user list type things, but I'm fairly certain there is a bug here. justin