search for: spawn_load

Displaying 19 results from an estimated 19 matches for "spawn_load".

2015 Sep 01
4
HP EFI binaries
...lent to know. Thanks. > > And numerical value of 6 is EFI_NOT_READY, indicating the keyboard > buffer is empty, as expected. > Gene, Yeah I guess that could be good or bad news. Also I have determined where it is getting hung at -- core/elflink/load_env32.c in start_ldlinux at rv = spawn_load(LDLINUX, argc, argv); Do you have any other ideas for troubleshooting?
2015 Sep 02
0
HP EFI binaries
On Tue, Sep 1, 2015 at 11:36 PM, Derrick M <derrick.martinez at gmail.com> wrote: > Gene > > I have tried to sleep 75 seconds right before the spawn_load() call just to > wait if it wasn't ready yet to send. Also according to tcpdump there are no > RRQ packets to the tftp server from syslinux. (only the initial > syslinux.efi) Where are you doing the capture? I find that an inline capture with misbehaving clients the most helpful (thr...
2016 Jan 21
3
[PATCH 2/2] core: Fix stack overflow when reloading config
On 10/12/15 21:04, celelibi--- via Syslinux wrote: > From: Sylvain Gault <sylvain.gault at gmail.com> > > The behavior when running a "CONFIG" command line is to reload > ldlinux.c32 with the new file as argument. This call never return. > > In order to avoid stacking up the calls to start_ldlinux, this patch > introduce a setjmp/longjmp to return to the
2011 Apr 01
1
[GIT PULL] elflink core
....c | 84 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 80 insertions(+), 4 deletions(-) diff --git a/com32/lib/sys/module/exec.c b/com32/lib/sys/module/exec.c index 54182cc..fbe165d 100644 --- a/com32/lib/sys/module/exec.c +++ b/com32/lib/sys/module/exec.c @@ -343,11 +343,45 @@ int spawn_load(const char *name,const char **argv) */ } +/* + * Avoid circular dependencies. + * + * It's possible that someone messed up the modules.dep file and that + * it includes circular dependencies, so we need to take steps here to + * avoid looping in module_load_dependencies() forever. + * + *...
2015 Feb 10
3
[PATCH 0/2] fix a couple cosmetic issues
Fixes some typos and missing newlines Jonathan Boeing (2): fix a few typos add missing '\n' to dprintf com32/include/sys/module.h | 2 +- com32/lib/sys/module/exec.c | 4 ++-- core/fs/fs.c | 2 +- core/lwip/src/netif/undiif.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) -- 2.3.0
2011 May 25
1
[GIT PULL] elflink ldlinux
...m32/elflink/ldlinux/execute.c index a00a5b1..635e327 100644 --- a/com32/elflink/ldlinux/execute.c +++ b/com32/elflink/ldlinux/execute.c @@ -134,7 +134,7 @@ void execute(const char *cmdline, enum kernel_type type) argv[argc] = NULL; module_load_dependencies(kernel, "modules.dep"); spawn_load(kernel, argc, argv); - } else if (type <= KT_KERNEL) { + } else if (type == KT_KERNEL) { /* Need add one item for kernel load, as we don't use * the assembly runkernel.inc any more */ new_linux_kernel(kernel, cmdline); @@ -148,14 +148,15 @@ void execute(const char *cmdline, enum ker...
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
2011 Mar 16
0
[GIT PULL] elflink compiler warning fixes
...AND_DELIM); len_mn = strlen(module_name); if (!strcmp(module_name + len_mn - 4, ".c32")) { @@ -397,7 +397,7 @@ void process_command(const char *cmd, bool history) } while (argc < MAX_COMMAND_ARGS); argv[argc] = NULL; module_load_dependencies(module_name, MODULES_DEP); - spawn_load(module_name, argv); + spawn_load(module_name, (const char **)argv); } else if (!strcmp(module_name + len_mn - 2, ".0")) { execute(cmd, KT_PXE); } else if (!strcmp(module_name + len_mn - 3, ".bs")) { @@ -418,7 +418,6 @@ void process_command(const char *cmd, bool history)...
2016 Jan 22
0
[PATCH 2/2] core: Fix stack overflow when reloading config
...>> >> Signed-off-by: Sylvain Gault <sylvain.gault at gmail.com> > > We don't re*load* ldlinux.c32, I hope? I assume we just re-execute it? > > -hpa Well, ldlinux.c32 is unloaded explicitely in the function start_ldlinux. It is then actually reloaded by a call to spawn_load. Network capture just confirmed it. Do you wish something else to happen? It is, indeed, a waste of time reloading the very same file again and again. But I hope it was made this way for simplicity. Celelibi
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
...r. This series is also available at, git://git.zytor.com/users/mfleming/syslinux.git elflink-readconfig-for-hpa Matt Fleming (12): dprintf: Print to stdout as well as serial ports elflink: Remove *.c32 on 'make clean' core: Be less verbose at boot elflink: Don't pass NULL to spawn_load() elflink: Move code out of core and into ldlinux.c32 elflink: Look for syslinux.cfg elflink: Move config data into config.h elflink: Don't reload the current EXEC_MODULE module Convert mp() to dprintf() ldlinux: Record "default" and "ui" command lines ldlinux:...
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and
2016 Jan 22
2
[PATCH 2/2] core: Fix stack overflow when reloading config
...y: Sylvain Gault <sylvain.gault at gmail.com> >> >> We don't re*load* ldlinux.c32, I hope? I assume we just re-execute it? >> >> -hpa > > Well, ldlinux.c32 is unloaded explicitely in the function > start_ldlinux. It is then actually reloaded by a call to spawn_load. > Network capture just confirmed it. > > Do you wish something else to happen? > > It is, indeed, a waste of time reloading the very same file again and > again. But I hope it was made this way for simplicity. > > > Celelibi > BTW, this code is due to Matt Flemming w...
2012 Nov 27
0
Syslinux-5.00-pre11
...a module Merge branch 'xfs-for-hpa' of git://zytor.com/users/pcacjr/syslinux into merge/elflink/xfs hdt-cli: Correct malloc() size argument screensize: Dereference pointers when checking cols/rows pxe: Don't leak inode on timeout module: Fix memory leak in spawn_load() module: Fix off-by-one error in findpath() core/elflink: Fix off-by-one error Merge branch 'coverity' into elflink Paulo Alcantara (46): EXTLINUX: Initial XFS filesystem support mbr: Add support for loading VBRs from XFS filesystems xfs: Initial skelet...
2011 Feb 17
5
[PATCH 0/4] Reduce core size
From: Matt Fleming <matt.fleming at linux.intel.com> These patches are based on the elflink branch. This set of patches is my attempt at moving the command-line interface functionality out of the core and into an ELF module to reduce the size of the core. The most interesting patch is [PATCH 4/4] which moves the cli code out of core/elflink and into com32/elflink/modules. [PATCH 4/4] is
2011 Apr 01
1
[GIT PULL] elflink ldlinux
The following changes since commit 8c576f1fe03e34879921311f46613a35c6530000: Merge remote-tracking branch 'mfleming/for-hpa/elflink/fix-compiler-warnings' into elflink (2011-03-16 12:53:58 -0700) are available in the git repository at: git://git.zytor.com/users/mfleming/syslinux.git for-hpa/elflink/ldlinux Matt Fleming (1): ldlinux: Perform auto-boot if NOESCAPE set in config
2015 Aug 31
4
HP EFI binaries
On Mon, Aug 31, 2015 at 06:08:19AM -0400, Gene Cumm via Syslinux wrote: > On Aug 30, 2015 8:42 PM, "Derrick" <derrick22 at gmail.com> wrote: > > > > Gene thanks, here is the output > > > > My IP is 10.2.49.10 > > Img @ 71d89718 = 8cdcd40ca5f0 > > Udp @ 71d89718 = 8cdcd40ca5f0 > > Udp @ 71d89718 = 8cdcd40ca5f0 > > Udp @ 71d89718 =
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...ue; - p = dep + len - 1; - while (j > 0 && *p && *p != '/') { - p--; - j--; - } + if (strchr(dep, '/')) { + p = strrchr(dep, '/'); + p++; + } else + p = dep; - if (*p++ == '/') { - char *argv[2] = { p, NULL }; - spawn_load(p, 1, argv); - } + argv[0] = p; + spawn_load(p, 1, argv); } } diff --git a/com32/lib/syslinux/disk.c b/com32/lib/syslinux/disk.c index d6409af..093751a 100644 --- a/com32/lib/syslinux/disk.c +++ b/com32/lib/syslinux/disk.c @@ -73,7 +73,8 @@ int disk_int13_retry(const com32sys_t * inreg...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...t;); - // - //dump_elf_module(module); /* Find modules we need to load as dependencies */ if (module->str_table) { @@ -534,7 +532,7 @@ int module_load(struct elf_module *module) { } if (*p++ == '/') { - char argv[2] = { p, NULL }; + char *argv[2] = { p, NULL }; spawn_load(p, 1, argv); } } diff --git a/com32/lib/sys/module/elfutils.c b/com32/lib/sys/module/elfutils.c index 64be077..b7d760b 100644 --- a/com32/lib/sys/module/elfutils.c +++ b/com32/lib/sys/module/elfutils.c @@ -37,7 +37,7 @@ struct memalign_info { }; int elf_malloc(void **memptr, size_t align...
2012 Aug 14
1
[GIT PULL] elflink fixes
...;reg, &reg); - return (reg.eflags.l & EFLAGS_CF) ? -1 : 0; -} diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c index b15cdbb..8e124a0 100644 --- a/core/elflink/load_env32.c +++ b/core/elflink/load_env32.c @@ -66,28 +66,15 @@ int start_ldlinux(char **argv) again: rv = spawn_load(LDLINUX, 1, argv); if (rv == EEXIST) { - struct elf_module *m, *mod, *begin = NULL; - /* * If a COM32 module calls execute() we may need to * unload all the modules loaded since ldlinux.c32, * and restart initialisation. This is especially * important for config files. */...