Displaying 7 results from an estimated 7 matches for "syslinux_getadv".
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.
2017 Jan 27
0
Possible to persist data across reboots from Lua?
...implemented in the Syslinux API, just 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 driv...
2010 Oct 02
4
[PATCH 0/4] some fixes on elflink branch
This is a small set of patches for elflink branch based on
feng's elflink branch.
hpa, It seems that I can't log on terminus by ssh at home. So I can't push these
patches on my git tree.
Liu Aleaxander (4):
elflink: Cleanup some warnings
elflink: Fix the wrong malloc size in enter_cmdline
elflink: Do clear screen even if we have no pDraw_Menu method
elflink: Add Ctrl-p +
2011 Mar 16
0
[GIT PULL] elflink compiler warning fixes
...rn const char *onerror; //"onerror" command line
#endif /* __CONFIG_H__ */
diff --git a/com32/elflink/ldlinux/getadv.c b/com32/elflink/ldlinux/getadv.c
index 456084b..5578313 100644
--- a/com32/elflink/ldlinux/getadv.c
+++ b/com32/elflink/ldlinux/getadv.c
@@ -39,7 +39,7 @@
const void *syslinux_getadv(int tag, size_t * size)
{
const uint8_t *p;
- size_t left, len;
+ size_t left;
p = syslinux_adv_ptr();
left = syslinux_adv_size();
diff --git a/com32/elflink/ldlinux/ldlinux.c b/com32/elflink/ldlinux/ldlinux.c
index b5a4409..31a457f 100644
--- a/com32/elflink/ldlinux/ldlinux...
2011 May 25
1
[GIT PULL] elflink ldlinux
...o bad_kernel;
}
@@ -98,11 +104,43 @@ static void enter_cmdline(void)
int main(int argc, char **argv)
{
+ com32sys_t ireg, oreg;
+ uint8_t *adv;
+ int count = 0;
+
openconsole(&dev_rawcon_r, &dev_ansiserial_w);
parse_configs(NULL);
- /* TODO: ADV */
+ __syslinux_init();
+ adv = syslinux_getadv(ADV_BOOTONCE, &count);
+ if (adv && count) {
+ /*
+ * We apparently have a boot-once set; clear it and
+ * then execute the boot-once.
+ */
+ uint8_t *src, *dst, *cmdline;
+ int i;
+
+ src = adv;
+ cmdline = dst = malloc(count + 1);
+ if (!dst) {
+ printf("Failed to a...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...reg, oreg;
- uint8_t *adv;
- int count = 0;
+ const void *adv;
+ size_t count = 0;
char *config_argv[2] = { NULL, NULL };
openconsole(&dev_rawcon_r, &dev_ansiserial_w);
@@ -127,17 +236,17 @@ int main(int argc, char **argv)
parse_configs(config_argv);
- __syslinux_init();
adv = syslinux_getadv(ADV_BOOTONCE, &count);
if (adv && count) {
/*
* We apparently have a boot-once set; clear it and
* then execute the boot-once.
*/
- uint8_t *src, *dst, *cmdline;
- int i;
+ const char *cmdline;
+ char *src, *dst;
+ size_t i;
- src = adv;
+ src = (char *)adv;...
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