Ingrid Ribeiro Galvez
2015-Sep-08 13:19 UTC
[syslinux] Using syslinux to boot xen without initrd
Hello all, I have a Linux kernel image with Xen compiled for an embedded system. It doesn't need an initrd as everything required for it to boot is already in the final kernel image, and it works perfectly. But I'm having problems to boot the Xen image without an initrd. I'm following this guideline http://www.syslinux.org/wiki/index.php/Xen for my syslinux configuration file, but without including an initrd. So it looks like this: LABEL xen MENU DEFAULT KERNEL mboot.c32 APPEND xen-4.3.2.gz dom0_mem=262144 --- ../vmlinuz-2.6.31.8 console=tty0 root=/dev/sda1 ro What happens is that it tries to load but keeps looping back to the bootloader menu. I think it might be expecting the initrd image. Anybody knows how to set the configuration file for xen so it doesn't need an initrd?? Thank You! Cheers, Ingrid
Can you tell us the Syslinux version you use ? Le 8 sept. 2015 3:21 PM, "Ingrid Ribeiro Galvez via Syslinux" < syslinux at zytor.com> a ?crit :> Hello all, > > I have a Linux kernel image with Xen compiled for an embedded system. It > doesn't need an initrd as everything required for it to boot is already in > the final kernel image, and it works perfectly. But I'm having problems to > boot the Xen image without an initrd. I'm following this guideline > http://www.syslinux.org/wiki/index.php/Xen for my syslinux configuration > file, but without including an initrd. So it looks like this: > > > LABEL xen > > MENU DEFAULT > KERNEL mboot.c32 > APPEND xen-4.3.2.gz dom0_mem=262144 --- ../vmlinuz-2.6.31.8 > console=tty0 root=/dev/sda1 ro > > What happens is that it tries to load but keeps looping back to the > bootloader menu. I think it might be expecting the initrd image. Anybody > knows how to set the configuration file for xen so it doesn't need an > initrd?? > > Thank You! > > Cheers, > > Ingrid > _______________________________________________ > Syslinux mailing list > Submissions to Syslinux at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux >
On Tue, Sep 8, 2015 at 5:54 PM, Erwan Velu via Syslinux <syslinux at zytor.com> wrote:> Can you tell us the Syslinux version you use ? > Le 8 sept. 2015 3:21 PM, "Ingrid Ribeiro Galvez via Syslinux" < > syslinux at zytor.com> a ?crit : > >> Hello all, >> >> I have a Linux kernel image with Xen compiled for an embedded system. It >> doesn't need an initrd as everything required for it to boot is already in >> the final kernel image, and it works perfectly. But I'm having problems to >> boot the Xen image without an initrd. I'm following this guideline >> http://www.syslinux.org/wiki/index.php/Xen for my syslinux configuration >> file, but without including an initrd. So it looks like this: >> >> >> LABEL xen >> >> MENU DEFAULT >> KERNEL mboot.c32 >> APPEND xen-4.3.2.gz dom0_mem=262144 --- ../vmlinuz-2.6.31.8 >> console=tty0 root=/dev/sda1 ro >> >> What happens is that it tries to load but keeps looping back to the >> bootloader menu. I think it might be expecting the initrd image. Anybody >> knows how to set the configuration file for xen so it doesn't need an >> initrd??Other common questions: - Where did the build come from (though likely not relevent)? - Did you try it without the menu? Often times a warning/error is hidden by the menu. -- -Gene
Ingrid Ribeiro Galvez
2015-Sep-09 08:46 UTC
[syslinux] Using syslinux to boot xen without initrd
Erwan, I'm using syslinux v3.85 Gene, the kernel was built using buildroot (and I checked that Xen support was enabled). Didn't try without the menu, will see that now. Also, I saw a short note on syslinux mboot wiki page: "A really good use case for this (using mboot.c32) is booting Xen <http://xensource.com>, or any other hypervisor-based virtualization pieces that also require an initrd/initramfs. If your Xen boot doesn't require an initrd, then it is possible to utilize the existing kernel/append method." ( http://www.syslinux.org/wiki/index.php/Mboot.c32) .... I'm not sure what they mean by "existing kernel/append method" though... I 've already tried stuff such as: 1) LABEL Xen Hypervisor MENU DEFAULT KERNEL ../xen-4.3.2.gz APPEND root=/dev/sda1 console=tty0 console=ttyS0,9600 rw loglevel=5 and 2) LABEL Xen Hypervisor MENU DEFAULT KERNEL ../vmlinuz-2.6.31.8 APPEND ../xen-4.3.2.gz root=/dev/sda1 console=tty0 console=ttyS0,9600 rw loglevel=5 But none of this have worked. Hope you guys can help me figure out what I'm doing wrong. Thank you very much for your time! Cheers, Ingrid On Tue, Sep 8, 2015 at 10:54 PM, Erwan Velu <erwanaliasr1 at gmail.com> wrote:> Can you tell us the Syslinux version you use ? > Le 8 sept. 2015 3:21 PM, "Ingrid Ribeiro Galvez via Syslinux" < > syslinux at zytor.com> a ?crit : > >> Hello all, >> >> I have a Linux kernel image with Xen compiled for an embedded system. It >> doesn't need an initrd as everything required for it to boot is already in >> the final kernel image, and it works perfectly. But I'm having problems to >> boot the Xen image without an initrd. I'm following this guideline >> http://www.syslinux.org/wiki/index.php/Xen for my syslinux configuration >> file, but without including an initrd. So it looks like this: >> >> >> LABEL xen >> >> MENU DEFAULT >> KERNEL mboot.c32 >> APPEND xen-4.3.2.gz dom0_mem=262144 --- ../vmlinuz-2.6.31.8 >> console=tty0 root=/dev/sda1 ro >> >> What happens is that it tries to load but keeps looping back to the >> bootloader menu. I think it might be expecting the initrd image. Anybody >> knows how to set the configuration file for xen so it doesn't need an >> initrd?? >> >> Thank You! >> >> Cheers, >> >> Ingrid >> _______________________________________________ >> Syslinux mailing list >> Submissions to Syslinux at zytor.com >> Unsubscribe or set options at: >> http://www.zytor.com/mailman/listinfo/syslinux >> >
On 09/08/2015 06:19 AM, Ingrid Ribeiro Galvez via Syslinux wrote:> Hello all, > > I have a Linux kernel image with Xen compiled for an embedded system. It > doesn't need an initrd as everything required for it to boot is already in > the final kernel image, and it works perfectly. But I'm having problems to > boot the Xen image without an initrd. I'm following this guideline > http://www.syslinux.org/wiki/index.php/Xen for my syslinux configuration > file, but without including an initrd. So it looks like this: > > > LABEL xen > > MENU DEFAULT > KERNEL mboot.c32 > APPEND xen-4.3.2.gz dom0_mem=262144 --- ../vmlinuz-2.6.31.8 > console=tty0 root=/dev/sda1 ro > > What happens is that it tries to load but keeps looping back to the > bootloader menu. I think it might be expecting the initrd image. Anybody > knows how to set the configuration file for xen so it doesn't need an > initrd?? > > Thank You! > >The first thing to try is to hit Esc to get out of the menu into the CLI, and then entering "xen" at the command line prompt. You will get better error messages that way. Also, do you really have xen in the syslinux directory but not vmlinuz? -hpa