search for: boot_arg

Displaying 8 results from an estimated 8 matches for "boot_arg".

Did you mean: boot_args
2009 Feb 12
1
bug in ifcpu64 if !pae and only two options?
...WS: (and optionally 32-bit kernels with or without PAE.) However, if one doesn't specify boot_kernel_32pae but only boot_kernel_64 and boot_kernel_32, and if the CPU doesn't have support for PAE, args[2] will be executed unconditionally, with no check for if it is defined. Maybe replace boot_args(...: args[2]); with: boot_args(...: args[2] ? args[2] : args[1]); Or maybe some other construct so that the ?: isn't used so many times in a row... Regards, Luciano Rocha -- lfr 0/0 -------------- next part -------------- A non-text attachment was scrubbed... Name: not availa...
2010 Jul 05
0
whichsys.c32: execute specific command, based on Syslinux bootloader variant
...+#include <console.h> +#include <string.h> +#include <syslinux/boot.h> +#include "syslinux/config.h" + + +static struct syslinux_parameter { + char **arg[1]; + bool option; +} isolinux, pxelinux, syslinux; + +/* XXX: this really should be librarized */ +static void boot_args(char **args) +{ + int len = 0, a = 0; + char **pp; + const char *p; + char c, *q, *str; + + for (pp = args; *pp; pp++) + len += strlen(*pp) + 1; + + q = str = alloca(len); + for (pp = args; *pp; pp++) { + p = *pp; + while ((c = *p++)) + *q++ = c; + *q++ = ' '; + a...
2010 Jul 01
2
[PATCH] ifplop.c32: Detect if PLoP USB/CD INT13h hook is enabled/disabled
...3484b44; /* "CHKD" */ + + __intcall(0x13, &inregs, &outregs); + + /* eax will contain "yes " if PLoP INT13h hook is available */ + if (outregs.eax.l == 0x79657320) + return true; + + return false; +} + +/* XXX: this really should be librarized */ +static void boot_args(char **args) +{ + int len = 0, a = 0; + char **pp; + const char *p; + char c, *q, *str; + + for (pp = args; *pp; pp++) + len += strlen(*pp) + 1; + + q = str = alloca(len); + for (pp = args; *pp; pp++) { + p = *pp; + while ((c = *p++)) + *q++ = c; + *q++ = ' '; + a...
2011 Aug 06
4
[PATCH] ifmemdsk.c32: Allow boot options based on presence of MEMDISK
...atic f_find walk_safe_hooks; +static const s_safe_hook * is_safe_hook(const void *); +static const s_mdi * is_memdisk_hook(const s_safe_hook *); +static f_find scan_mbfts; +static const s_mbft * is_mbft(const void *); +static f_find do_nothing; +static void memdisk_info(const s_mdi *); +static void boot_args(char **); +static const char * bootloadername(uint8_t); + +/*** Structure/union definitions */ + +/*** Objects */ +static int show_info = 0; + +/*** Function definitions */ + +int main(int argc, char ** argv) { + static f_find * do_scan_drives = scan_drives; + static f_find * do_walk_safe_ho...
2010 Sep 14
2
[PATCH] ifgpxe.c32
ifgpxe.c32 is a com32 module that will run one command if gPXE extensions are available, and a different command if not. At VMware, we use this module to chain-load gpxelinux.0 from pxelinux.0. Both of those binaries use exactly the same configuration file, and this module allows us to differentiate between the two cases and break the infinite chain-loading loop that might result. Typical usage:
2010 Jun 12
1
[PATCH] ifcpuXX: Support multiple parameters with labels
...s(+), 6 deletions(-) diff --git a/com32/modules/ifcpu.c b/com32/modules/ifcpu.c index 8a9a5f4..1e57f08 100644 --- a/com32/modules/ifcpu.c +++ b/com32/modules/ifcpu.c @@ -71,20 +71,23 @@ static unsigned char sleep(unsigned int msec) /* XXX: this really should be librarized */ static void boot_args(char **args) { - int len = 0; + int len = 0, a = 0; char **pp; const char *p; char c, *q, *str; for (pp = args; *pp; pp++) - len += strlen(*pp); + len += strlen(*pp) + 1; - q = str = alloca(len + 1); + q = str = alloca(len); for (pp =...
2012 Jun 28
10
Error: Boot loader didn't return any data [pygrub boot debian wheezy alpha1 netinst ISO]
Note: I could simply direct boot the appropriate kernel/initrd to get the alpha1 installation going as always done in the past, but I think this should work. The Debian alpha 1 installer page says it should. Details $ sudo xm create -c wheezytest.cfg Using config file "./wheezytest.cfg". Error: Boot loader didn''t return any data! direct pygrub test run: # pygrub
2007 Jul 24
1
Custom kinit to find device by "label"
I need to reliably boot a server from a USB device. Since USB device ordering can be unpredictable, I wrote a simple early-userspace "init" program to find the root FS on the correct USB device & partition. I have "labeled" the root ext2 FS on the USB drive, and the program searches for the label by examining the bytes at a specific offset from the beginning of the