search for: syslinux_adv_writ

Displaying 9 results from an estimated 9 matches for "syslinux_adv_writ".

Did you mean: syslinux_adv_write
2017 Jan 25
2
Possible to persist data across reboots from Lua?
I'd like to be able to save a boolean value across reboots. I believe that being able to store to the auxiliary data vector would satisfy this need, but I'm using syslinux and that doesn't seem to be implemented. While I'm currently using a Lua script, I'm not tied to it, so if there's a way to read and write any persistent filesystem or disk, I'd be happy to switch.
2015 Oct 13
0
[PATCH 1/2] ldlinux: fix stack overflow when running COM32 modules
...@@ -302,6 +304,7 @@ __export int main(int argc __unused, char **argv) const void *adv; const char *cmdline; size_t count = 0; + int retval; ldlinux_console_init(); @@ -333,16 +336,25 @@ __export int main(int argc __unused, char **argv) if (!syslinux_setadv(ADV_BOOTONCE, 0, NULL)) syslinux_adv_write(); - load_kernel(cmdline); /* Shouldn't return */ - ldlinux_enter_command(); - } - - if (!forceprompt && !shift_is_held()) - ldlinux_auto_boot(); + /* + * The corresponding longjmp is located in the execute function + * after a COM32 module has returned. + */ + retval = se...
2017 Jan 27
0
Possible to persist data across reboots from Lua?
...not exported to Lua. > While I'm currently using a Lua script, I'm not tied to it, so if > there's a way to read and write any persistent filesystem or disk, I'd > be happy to switch. I think the best would be adding Lua bindings for syslinux_getadv(), syslinux_setadv(), syslinux_adv_write(), syslinux_adv_size() and the BOOTONCE and MENUSAVE tags. And define some policy for allocating new tags... which is the hard part. > Reading through the source code, it seems like most filesystem > operations are read-only Yes, the filesystem drivers in Syslinux are read-only. -- Feri
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 Aug 14
1
[GIT PULL] elflink fixes
...**argv __unused) cmdline = dst = malloc(count + 1); if (!dst) { printf("Failed to allocate memory for ADV\n"); - goto cmdline; + ldlinux_enter_command(true); } for (i = 0; i < count; i++) @@ -264,37 +291,11 @@ int main(int argc __unused, char **argv __unused) syslinux_adv_write(); load_kernel(cmdline); /* Shouldn't return */ - goto cmdline; + ldlinux_enter_command(true); } /* TODO: Check KbdFlags? */ - if (forceprompt) - goto cmdline; - - cmdline = default_cmd; -auto_boot: - /* - * Auto boot - */ - if (defaultlevel || noescape) { - if (defaultlevel...
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com> Here are the patches that I've got queued up based on the very helpful feedback I received from people testing Syslinux 5.00-pre9. Unless anyone has any concerns these will make it into Syslinux 5.00-pre10. Matt Fleming (9): pxe: Don't call open_config() from the pxe core ldlinux: Print a warning if no config file is found
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
2011 May 25
1
[GIT PULL] elflink ldlinux
...if (!dst) { + printf("Failed to allocate memory for ADV\n"); + goto cmdline; + } + + for (i = 0; i < count; i++) + *dst++ = *src++; + *dst = '\0'; /* Null-terminate */ + + /* Clear the boot-once data from the ADV */ + if (!syslinux_setadv(ADV_BOOTONCE, 0, NULL)) + syslinux_adv_write(); + + load_kernel(cmdline); /* Shouldn't return */ + goto cmdline; + } + /* TODO: Check KbdFlags? */ if (forceprompt) diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c index 441651e..8ded92a 100644 --- a/com32/elflink/ldlinux/readconfig.c +++ b/com32...
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