search for: create_args_and_load

Displaying 20 results from an estimated 21 matches for "create_args_and_load".

2014 Apr 29
2
Issues with syslinux_run_command(str) and parameters
...hain.c32 receives no parameters. Similarly, using -iso- memdisk initrd=/myimage.ima displays a memdisk error saying no No ramdisk image specified! As an awkward test to confirm the problem lies somewhere behind syslinux_run_command, I replaced whichsys.c's call to syslinux_run_command(str) with create_args_and_load(str). In this situation, the whichsys chain.c32 example works without issue. (Of course, create_args_and_load only supports com32 modules, so much of whichsys's load functionality is lost. Not a good solution :). Any ideas why parameters are being lost with syslinux_run_command? --Ian
2013 Aug 13
5
Booting second label
...hen I try to debug the kontron_wdt.c32 I can see that syslinux_run_command(..) returns -1. What could cause this? I've tried the ifcpu.c32 application as well (which is a bit similar to kontron_wdt.c32) and it also cannot call syslinux_run_command(). I can see that syslinux_run_command() call create_args_and_load() but if I put any printf's there they're not printed to screen, so it's pretty hard to debug what's causing the error. If someone knows a way to call two labels that would also work as a workaround for the problem I'm trying to solve. -- Bjoern
2014 Apr 29
2
Issues with syslinux_run_command(str) and parameters
...eceives no parameters. Similarly, using -iso- memdisk initrd=/myimage.ima displays a memdisk error saying no No ramdisk image specified! > > As an awkward test to confirm the problem lies somewhere behind syslinux_run_command, I replaced whichsys.c's call to syslinux_run_command(str) with create_args_and_load(str). In this situation, the whichsys chain.c32 example works without issue. (Of course, create_args_and_load only supports com32 modules, so much of whichsys's load functionality is lost. Not a good solution :). > > > > Any ideas why parameters are being lost with syslinux_run_com...
2014 Apr 29
0
Issues with syslinux_run_command(str) and parameters
...c32 receives no parameters. Similarly, using -iso- memdisk initrd=/myimage.ima displays a memdisk error saying no No ramdisk image specified! > As an awkward test to confirm the problem lies somewhere behind syslinux_run_command, I replaced whichsys.c's call to syslinux_run_command(str) with create_args_and_load(str). In this situation, the whichsys chain.c32 example works without issue. (Of course, create_args_and_load only supports com32 modules, so much of whichsys's load functionality is lost. Not a good solution :). > > Any ideas why parameters are being lost with syslinux_run_command? >...
2014 Apr 29
0
Issues with syslinux_run_command(str) and parameters
...es no parameters. Similarly, using -iso- memdisk initrd=/myimage.ima displays a memdisk error saying no No ramdisk image specified! > > > As an awkward test to confirm the problem lies somewhere behind syslinux_run_command, I replaced whichsys.c's call to syslinux_run_command(str) with create_args_and_load(str). In this situation, the whichsys chain.c32 example works without issue. (Of course, create_args_and_load only supports com32 modules, so much of whichsys's load functionality is lost. Not a good solution :). > > > > > > Any ideas why parameters are being lost with syslin...
2014 May 07
2
Issues with syslinux_run_command(str) and parameters
...?p=syslinux/syslinux.git;a=commit;h=975a4c3b343c09a340d95f1a2a4ece3556c57a10 > And syslinux_run_command() in 2007: > http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=0b3b862ff49ab1b0b5d5af8c15d58e3c4baaf634 > > At this point, syslinux_run_command is using the equivalent of > create_args_and_load(), a function that is *not* negatively affected > by ALLOWOPTIONS. > > The behavior was changed in 2013 to use load_kernel to *add* label support: > http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=04f40bc55ed4f39d6c625b017bb16907f7d50c05 > > At this point the 8 or 9 com...
2014 May 05
2
Issues with syslinux_run_command(str) and parameters
> I didn't see any further communication here; would anyone be > against my submitting/proposing a patch for this? Contributions are always welcome. > > I can see two possible approaches. One approach would be to > isolate the restriction on user commands away from > syslinux_run_command / load_kernel. > > Another would perhaps be to add support for a
2015 Oct 13
0
[PATCH 1/2] ldlinux: fix stack overflow when running COM32 modules
...nux/execute.c b/com32/elflink/ldlinux/execute.c index 653c880..3955571 100644 --- a/com32/elflink/ldlinux/execute.c +++ b/com32/elflink/ldlinux/execute.c @@ -44,6 +44,7 @@ const struct image_types image_boot_types[] = { { NULL, 0 }, }; +extern jmp_buf __return_to_command_prompt; extern int create_args_and_load(char *); __export void execute(const char *cmdline, uint32_t type, bool sysappend) @@ -136,7 +137,8 @@ __export void execute(const char *cmdline, uint32_t type, bool sysappend) /* Restore the console */ ldlinux_console_init(); - ldlinux_enter_command(); + /* Jump back to the main to ca...
2013 Aug 13
0
Booting second label
...to syslinux_run_command()? Does it have a trailing line end character? terminating NUL character? > I've tried the ifcpu.c32 application as well (which is a bit similar to kontron_wdt.c32) and it also cannot call syslinux_run_command(). > > I can see that syslinux_run_command() call create_args_and_load() but if I put any printf's there they're not printed to screen, so it's pretty hard to debug what's causing the error. Are you using printf() or dprintf()? > If someone knows a way to call two labels that would also work as a workaround for the problem I'm trying to solve....
2013 Aug 13
0
Booting second label
...dt.c32 I can see that > syslinux_run_command(..) returns -1. What could cause this? > > I've tried the ifcpu.c32 application as well (which is a bit similar > to kontron_wdt.c32) and it also cannot call syslinux_run_command(). > > I can see that syslinux_run_command() call create_args_and_load() but > if I put any printf's there they're not printed to screen, so it's > pretty hard to debug what's causing the error. > > If someone knows a way to call two labels that would also work as a > workaround for the problem I'm trying to solve. > > -- B...
2014 May 07
0
Issues with syslinux_run_command(str) and parameters
...04: http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=975a4c3b343c09a340d95f1a2a4ece3556c57a10 And syslinux_run_command() in 2007: http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=0b3b862ff49ab1b0b5d5af8c15d58e3c4baaf634 At this point, syslinux_run_command is using the equivalent of create_args_and_load(), a function that is *not* negatively affected by ALLOWOPTIONS. The behavior was changed in 2013 to use load_kernel to *add* label support: http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=04f40bc55ed4f39d6c625b017bb16907f7d50c05 At this point the 8 or 9 com32 modules I listed earlier st...
2012 Jul 01
1
[PATCH] elflink: fix return from execute()
Fix return from execute() if type == KT_NONE. Signed-off-by: Sebastian Herbszt <herbszt at gmx.de> --- com32/elflink/ldlinux/execute.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c index f713eb1..899154c 100644 --- a/com32/elflink/ldlinux/execute.c +++ b/com32/elflink/ldlinux/execute.c @@ -108,7
2014 May 07
0
Issues with syslinux_run_command(str) and parameters
...a=commit;h=975a4c3b343c09a340d95f1a2a4ece3556c57a10 > > And syslinux_run_command() in 2007: > > http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=0b3b862ff49ab1b0b5d5af8c15d58e3c4baaf634 > > > > At this point, syslinux_run_command is using the equivalent of > > create_args_and_load(), a function that is *not* negatively affected > > by ALLOWOPTIONS. > > > > The behavior was changed in 2013 to use load_kernel to *add* label support: > > http://git.zytor.com/?p=syslinux/syslinux.git;a=commit;h=04f40bc55ed4f39d6c625b017bb16907f7d50c05 > > > &gt...
2013 Aug 14
3
Booting second label
...dt.c32 I can see that > syslinux_run_command(..) returns -1. What could cause this? > > I've tried the ifcpu.c32 application as well (which is a bit similar > to kontron_wdt.c32) and it also cannot call syslinux_run_command(). > > I can see that syslinux_run_command() call create_args_and_load() but > if I put any printf's there they're not printed to screen, so it's > pretty hard to debug what's causing the error. > > If someone knows a way to call two labels that would also work as a > workaround for the problem I'm trying to solve. > > --...
2012 Oct 19
3
[PATCH 0/3] elflink fixes
From: Matt Fleming <matt.fleming at intel.com> The first two patches in this series are fixes for bugs reported by someone in #syslinux. The third makes dmitest.c32 actually wait for user input. If no one has any objections/concerns, I'll pull this into the official elflink branch. Matt Fleming (3): core: Print error message if we don't load ldlinux.c32 Clean up $(GPLLIB) leak
2015 Oct 13
5
[PATCH 0/2] Stack overflows when running commands
From: Sylvain Gault <sylvain.gault at gmail.com> Hello there, I propose 2 patches that fix two possible stack overflows either when running a COM32 module or when loading a new config file. I didn't find a better way to do this than to use the infamous setjmp/longjmp functions to restore the stack to a previous state. This makes the logic a bit more complex, but the behavior is not
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
...ss", IMAGE_TYPE_BSS }, + { "pxe", IMAGE_TYPE_PXE }, + { "fdimage", IMAGE_TYPE_FDIMAGE }, + { "comboot", IMAGE_TYPE_COMBOOT }, + { "com32", IMAGE_TYPE_COM32 }, + { "config", IMAGE_TYPE_CONFIG }, + { NULL, 0 }, }; extern int create_args_and_load(char *); -void execute(const char *cmdline, enum kernel_type type) +void execute(const char *cmdline, uint32_t type) { - const char *p, *const *pp; const char *kernel, *args; + const char *p; com32sys_t ireg; char *q; @@ -79,22 +79,31 @@ void execute(const char *cmdline, enum kernel_type...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...uot; #include "fs.h" +#include "config.h" /* Must match enum kernel_type */ const char *const kernel_types[] = { @@ -84,8 +85,8 @@ void execute(const char *cmdline, enum kernel_type type) if (type == KT_COM32) { /* new entry for elf format c32 */ - lfree(kernel); - create_args_and_load(cmdline); + lfree((void *)kernel); + create_args_and_load((char *)cmdline); } else if (type == KT_CONFIG) { char *argv[] = { "ldlinux.c32", NULL }; @@ -96,7 +97,7 @@ void execute(const char *cmdline, enum kernel_type type) if (*args) mangle_name(config_cwd, args); - sta...
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse