search for: command_line_size

Displaying 20 results from an estimated 86 matches for "command_line_size".

2008 Oct 27
0
NEW: COM32 module to alias (Revised)
...lias COM32 application; Call as a KERNEL with a boot line command as the * APPEND line. */ /* * History * b003 Work on resolving a potential overflow issue with building the * command string to pass to syslinux_run_command() * Reformatted {} in more visual style. * Use MAX_CMDLINE_LEN or COMMAND_LINE_SIZE (in that order) if available * b002 Alter the concatenation of the command line arguments to use memcpy * b001 Initial version */ #include <stdio.h> #include <stdlib.h> // #include <stdbool.h> #include <string.h> #include <limits.h> #ifdef __COM32__ /* Allow targ...
2009 Feb 22
2
NEW: COM32 module to run another command, optionally clearing the screen
...clr.c to runc.c * b004 aliasclr.c; Add NUM_NL newlines to beginning of output * Cleanup code to standards * b003 Work on resolving a potential overflow issue with building the * command string to pass to syslinux_run_command() * Reformatted {} in more visual style. * Use MAX_CMDLINE_LEN or COMMAND_LINE_SIZE (in that order) if available * b002 Alter the concatenation of the command line arguments to use memcpy * b001 Initial version */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <consoles.h> #ifdef __COM32__ /* Allow target...
2005 Dec 15
1
Breaking the 256 command line limit
I'm building pxe-booted kiosk systems using pxelinux 3.09 and linux kernel 2.6.14. I noticed a discussion on this list that 3.09 supports a 511 character command line but that the kernel would need to be patched to access it beyond 255. How can I patch the kernel to do so? Andrew Lambe Systems Programmer Information Technology Oral Roberts University Tulsa, Oklahoma
2005 Aug 27
3
SYSLINUX 3.11-pre5 -- release candidate -- release on Tuesday
SYSLINUX 3.11-pre5 is hereby a bug fix release candidate. If I don't receive any problem reports, I will release it as-is on Tuesday, August 30. http://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/ -hpa
2005 Feb 23
4
Maximum line length of APPEND option in PXELINUX
Hi, I just replaced the pxelinux.0 of some 2.x version by pxelinux.0 vers. 3.0.7. Some of the PXE Clients refused to boot thereafter (just stopped after reading the config file). I noticed that the APPEND line was too long. Is this intentional? What is the maximum length of the APPEND option line? Thanks, Thomas
2005 Jun 08
2
unknown boot options on kernel command line.
changing i386 COMMAND_LINE_SIZE to 1024 attached is a simplistic fix to change kernel's command-line size from 256 to 1024, tomatch capability in syslinux 3.08. It seems to work. Is this all there is to it ? One of the reasons I did this was to figure out what extra options are appearing, and why. b4 extending: (the...
2005 Aug 31
1
Re: THE LINUX/I386 BOOT PROTOCOL - Breaking the 256 limit
...Lately, I've found that 256 bytes long kernel parameters are not enough > for my configuration. > > I've found the place where the kernel defines the length, I've actually > found it in two places... I cannot understand why... > > include/asm-i386/param.h: #define COMMAND_LINE_SIZE 256 > include/asm-i386/setup.h: #define COMMAND_LINE_SIZE 256 > > Now... I've added an entry in the kernel configuration menu so that I > can define these constants using menuconfig. > > I was quite happy... > > But then I've got into a discussion with grub'...
2008 Dec 25
0
[PATCH 2/4] dom0 linux: Add "guestdev=" boot parameter.
...+ int dev; + int func; + struct guestdev_node *child; +}; + +struct pcidev_sbdf { + int seg; + int bus; + struct pcidev_sbdf_node *child; +}; + +struct pcidev_sbdf_node { + int dev; + int func; + struct pcidev_sbdf_node *child; +}; + +static int reassign_resources = 0; + +static char guestdev_param[COMMAND_LINE_SIZE]; +LIST_HEAD(guestdev_list); + +/* Get hid and uid */ +static int pci_get_hid_uid(char *str, char *hid, char *uid) +{ + char *sp, *ep; + int len; + + sp = str; + ep = strchr(sp, '':''); + if (!ep) { + ep = strchr(sp, ''-''); + if (!ep) + goto format_err_end; + }...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...#define ROSH_BUF_SZ 16384 -/* Size of screen output buffer (80*40) */ -#define ROSH_SBUF_SZ 1200 +/* Size of screen output buffer (80*40) //HERE */ +#define ROSH_SBUF_SZ ((80 + 2) * 40) /* Size of command buffer string */ #ifdef MAX_CMDLINE_LEN -#define ROSH_CMD_SZ MAX_CMDLINE_LEN -#else -#ifdef COMMAND_LINE_SIZE -#define ROSH_CMD_SZ COMMAND_LINE_SIZE +# define ROSH_CMD_SZ MAX_CMDLINE_LEN +#elif COMMAND_LINE_SIZE +# define ROSH_CMD_SZ COMMAND_LINE_SIZE #else -#define ROSH_CMD_SZ 2048 -#endif /* COMMAND_LINE_SIZE */ +# define ROSH_CMD_SZ_LG2 12 +# define ROSH_CMD_SZ (1 << ROSH_CMD_SZ_LG2) #end...
2008 Jan 23
0
Increasing the kernel command line size
I''m having problems with my Dom0 kernel command lines being truncated, and I want to increase the command line size. They currently default to a maximum size of 256 bytes and I want to increase that to 1024 bytes. I changed the #defined variable COMMAND_LINE_SIZE in 3 places in the 2.6.18 kernel from 256 to 1024, but it had no effect. I''m aware that I''m actually passing my command line to Xen which then passes it to the Dom0 kernel, but I discovered the #define GUEST_CMDLINE_SIZE which is already set to 1024. Can somebody tell me how...
2006 Jun 26
0
[klibc 17/43] sparc32: transfer arch-specific options to /arch.cmd
...parc/kernel/setup.c index 3509e43..ae8f283 100644 --- a/arch/sparc/kernel/setup.c +++ b/arch/sparc/kernel/setup.c @@ -240,8 +240,6 @@ #define RAMDISK_IMAGE_START_MASK 0x07FF #define RAMDISK_PROMPT_FLAG 0x8000 #define RAMDISK_LOAD_FLAG 0x4000 -extern int root_mountflags; - char reboot_command[COMMAND_LINE_SIZE]; enum sparc_cpu sparc_cpu_model; @@ -328,14 +326,7 @@ #endif } pfn_base = phys_base >> PAGE_SHIFT; - if (!root_flags) - root_mountflags &= ~MS_RDONLY; ROOT_DEV = old_decode_dev(root_dev); -#ifdef CONFIG_BLK_DEV_INITRD - rd_image_start = ram_flags & RAMDISK_IMAGE_START_MAS...
2006 Jun 26
0
[klibc 16/43] sparc64: transmit arch-specific options to kinit via /arch.cmd
...ernel command line switches that are specific to the * SPARC or that require special low-level processing. */ @@ -214,8 +215,6 @@ #define RAMDISK_IMAGE_START_MASK 0x07FF #define RAMDISK_PROMPT_FLAG 0x8000 #define RAMDISK_LOAD_FLAG 0x4000 -extern int root_mountflags; - char reboot_command[COMMAND_LINE_SIZE]; static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 }; @@ -315,6 +314,64 @@ void __init sun4v_patch(void) } } +/* + * Platform-specific configuration commands which don't come from + * the actual kernel command line. Write them into a file in rootfs + * so kinit can pick t...
2010 May 19
3
[PATCH] com32/lib/syslinux/load_linux.c: cmdline truncated
Hi, in syslinux-386, I think I've found a problem in com32/lib/syslinux/load_linux.c that leads to cmdline being truncated unnecessarily when e.g. linux.c32 is used. The patch below fixes the problem for me. But I don't know, whether the patch is safe in all cases. I tried to reproduce the logic found in runkernel.inc, but I might have missed something. So, feel free to tell me
2009 Feb 15
2
COM32 module: Read-Only shell
...d)0) +#endif /* __COM32__ */ + +#define SEP '/' + +/* Size of buffer string */ +#define ROSH_BUF_SZ 16384 +/* Size of screen output buffer (80*40) */ +#define ROSH_SBUF_SZ 1200 + +/* Size of command buffer string */ +#ifdef MAX_CMDLINE_LEN +#define ROSH_CMD_SZ MAX_CMDLINE_LEN +#else +#ifdef COMMAND_LINE_SIZE +#define ROSH_CMD_SZ COMMAND_LINE_SIZE +#else +#define ROSH_CMD_SZ 2048 +#endif /* COMMAND_LINE_SIZE */ +#endif /* MAX_CMDLINE_LEN */ + +/* Size of path buffer string */ +#ifdef PATH_MAX +#define ROSH_PATH_SZ PATH_MAX +#elif NAME_MAX +#define ROSH_PATH_SZ NAME_MAX +#else +#define ROSH_PATH_SZ 255 +...
2015 Jul 11
0
EXTLINUX - GCC 5
...------------------------------------------------- [com32/modules/prdhcp.c:145]: (error) Uninitialized variable: p Possibly a false positive. It depends on what pxe_get_cached_info() does to &p. ----------------------------------------------------------------- Checking com32/rosh/rosh.c: COMMAND_LINE_SIZE... [com32/rosh/rosh.c:1128]: (error) Uninitialized variable: cmdstr Checking com32/rosh/rosh.c: FILENAME_MAX... [com32/rosh/rosh.c:559]: (error) Uninitialized variable: filestr2 ... [com32/rosh/rosh.c:600]: (error) Uninitialized variable: filestr2 Possibly non-functional compile time al...
2008 Feb 11
3
[PATCH 1/5] Change vsmp compile dependency
Change Makefile so vsmp_64.o object is dependent on PARAVIRT, rather than X86_VSMP Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ravikiran Thirumalai <kiran@scalemp.com> Acked-by: Shai Fultheim <shai@scalemp.com> --- arch/x86/kernel/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/Makefile
2015 Jul 11
3
EXTLINUX - GCC 5
> On Jul 10, 2015 5:29 PM, "poma via Syslinux" <syslinux at zytor.com> wrote: > > > The same as with the ISOLINUX, stable and git. > > Only this time has nothing to do with the menu. > > 1) EXTLINUX is no longer a discrete variant. The installer extlinux now > installs SYSLINUX. > 2) William Kensington already saw a similar behavior wherein an
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...ata.kallsyms_token_table = __pa(&kallsyms_token_table); + lguest_data.kallsyms_token_index = __pa(&kallsyms_token_index); + lguest_data.kallsyms_markers = __pa(&kallsyms_markers); + hcall(LHCALL_LGUEST_INIT, __pa(&lguest_data), 0, 0); strncpy(boot_command_line, boot->cmdline, COMMAND_LINE_SIZE); Index: linux-2.6.21-rc5-mm2/drivers/lguest/lguest_debug.c =================================================================== --- /dev/null +++ linux-2.6.21-rc5-mm2/drivers/lguest/lguest_debug.c @@ -0,0 +1,458 @@ +/* + lguest debug utils. Modified from various other parts of Linux. + What...
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...ata.kallsyms_token_table = __pa(&kallsyms_token_table); + lguest_data.kallsyms_token_index = __pa(&kallsyms_token_index); + lguest_data.kallsyms_markers = __pa(&kallsyms_markers); + hcall(LHCALL_LGUEST_INIT, __pa(&lguest_data), 0, 0); strncpy(boot_command_line, boot->cmdline, COMMAND_LINE_SIZE); Index: linux-2.6.21-rc5-mm2/drivers/lguest/lguest_debug.c =================================================================== --- /dev/null +++ linux-2.6.21-rc5-mm2/drivers/lguest/lguest_debug.c @@ -0,0 +1,458 @@ +/* + lguest debug utils. Modified from various other parts of Linux. + What...
2007 May 09
1
[patch 2/9] lguest: the guest code
...halt; + paravirt_ops.get_wallclock = lguest_get_wallclock; + paravirt_ops.time_init = lguest_time_init; + paravirt_ops.set_lazy_mode = lguest_lazy_mode; + paravirt_ops.wbinvd = lguest_wbinvd; + + hcall(LHCALL_LGUEST_INIT, __pa(&lguest_data), 0, 0); + strncpy(boot_command_line, boot->cmdline, COMMAND_LINE_SIZE); + + /* We use top of mem for initial pagetables. */ + init_pg_tables_end = __pa(pg0); + + asm volatile ("mov %0, %%fs" : : "r" (__KERNEL_DS) : "memory"); + + reserve_top_address(lguest_data.reserve_mem); + + cpu_detect(&new_cpu_data); + /* Need this before paging...