[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] build problems
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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |