Displaying 16 results from an estimated 16 matches for "syslinux_derivative_info".
2010 Apr 04
1
[PATCH] mboot: set boot device
...gmx.de>
diff --git a/com32/mboot/mboot.c b/com32/mboot/mboot.c
index d008da0..526d10a 100644
--- a/com32/mboot/mboot.c
+++ b/com32/mboot/mboot.c
@@ -224,6 +224,14 @@ int main(int argc, char *argv[])
mboot_apm();
mboot_syslinux_info();
+ /* Set boot device info */
+ const union syslinux_derivative_info *sdi;
+ sdi = syslinux_derivative_info();
+ if (sdi->c.filesystem != SYSLINUX_FS_PXELINUX) {
+ mbinfo.boot_device = (sdi->disk.drive_number << 24) | 0xffffff;
+ mbinfo.flags |= MB_INFO_BOOTDEV;
+ }
+
if (opt.solaris)
mboot_solaris_dhcp_hack();
2010 Jun 13
2
[GIT PULL] gfxboot module changes
Hello Peter,
the following changes since commit 08b3602db548775ca819780de77686a186156ec7:
H. Peter Anvin (1):
isohybrid: use getopt_long_only()
are available in the git repository at:
git://repo.or.cz/syslinux/sherbszt.git gfxboot32
Sebastian Herbszt (2):
gfxboot: use syslinux_derivative_info()
gfxboot: set media type
com32/gfxboot/gfxboot.c | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
Sebastian
2009 Jul 19
2
Patch for chain.c32: Set default boot drive to CD drive from which ISOLINUX is booted
...$ diff -u ./com32/modules/chain.c.old ./com32/modules/chain.c.new
--- ./com32/modules/chain.c.old 2009-07-19 20:33:16.468094540 +0200
+++ ./com32/modules/chain.c.new 2009-07-19 20:26:54.636091513 +0200
@@ -666,8 +666,7 @@
} else if (!strcmp(drivename, "boot")) {
const union syslinux_derivative_info *sdi;
sdi = syslinux_derivative_info();
- if (sdi->c.filesystem == SYSLINUX_FS_PXELINUX ||
- sdi->c.filesystem == SYSLINUX_FS_ISOLINUX)
+ if (sdi->c.filesystem == SYSLINUX_FS_PXELINUX )
drive = 0x80; /* Boot drive not available */
else
drive = sdi-&g...
2017 Mar 18
1
[PATCH] Fix recognition of keeppxe option
> Pushed. Thank you for digging so deeply on this.
>
Gene,
For the c32 modules to be able to use the keeppxe option, and
considering that the issue in v.5.+ is that 'IS_PXELINUX' is/was dead
code, is there any chance that the code in:
com32/modules/whichsys.c
would help?
I mean, as a different way of detecting the Syslinux variant.
In fact, the original idea of having the
2008 Oct 18
1
COMBOOT/COM32 shell and DIR library functions
...ould require 3 more functions each for each file
system type (ie opendir_fat(), opendir_iso() and opendir_ext() called
by opendir() after determining the FS type). These would benefit from
simple functions to determine FS type number and if the FS type allows
DIR operations (very quick to write as syslinux_derivative_info
provides the information).
2016 Jun 29
0
Fwd: [PATCH] {vesa}menu.c32 feature => hide menu entry for specific sources
...@@ struct labeldata {
int save;
int immediate;
struct menu *submenu;
+ const char *visiblesource;
};
/* Menu currently being parsed */
@@ -318,6 +319,7 @@ static void record(struct menu *m, struc
int i;
struct menu_entry *me;
const struct syslinux_ipappend_strings *ipappend;
+ const union syslinux_derivative_info *sdi;
if (!ld->label)
return; /* Nothing defined */
@@ -326,6 +328,34 @@ static void record(struct menu *m, struc
if (ld->menuhide)
m = hide_menu;
+ /* if HIDEIFNOT is specified , then send this entry to "hidden menu" until source doesn't match */
+ if (ld->visibl...
2010 Jul 05
0
whichsys.c32: execute specific command, based on Syslinux bootloader variant
...ys.c32 [-iso- command] [-pxe- command] [-sys- command]\n\
+Examples: whichsys.c32 -iso- chain.c32 hd0 -sys- chain.c32 hd1 swap\n\
+ whichsys.c32 -iso- config iso.cfg -sys- sys.cfg -pxe- pxe.cfg\n";
+ fprintf(stderr, usage);
+}
+
+int main(int argc, char *argv[])
+{
+ const union syslinux_derivative_info *sdi;
+
+ int arg = 0;
+
+ openconsole(&dev_null_r, &dev_stdcon_w);
+
+ /* If no argument got passed, let's show the usage */
+ if (argc == 1) {
+ usage();
+ return 0;
+ }
+
+ arg++;
+
+ while (arg < argc) {
+ if (!strcmp(argv[arg], "-iso-")) {...
2009 Jun 03
1
isohybrid detecting usb vs. cdrom boot
Given an isohybrid image, I'd like default to a different label when booted from usb vs. when booted from cd. Is there a way to do accomplish this, something similar to ifcpu64.c32 perhaps?
Thanks.
Joe
2013 Jun 12
3
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
On Wed, 12 Jun, at 11:17:44AM, Gerardo Exequiel Pozzi wrote:
> Cool thanks!. Now looks better, but still not work.
>
> For some reason, "ldlinux.c32" is apparently sent but "Failed to load"
> by PXELINUX and few seconds later, dnsmasq shows an error message
> "failed sending":
Argh! The patch was broken. I missed the new core/path.c file. My bad.
2013 Jun 12
5
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...path, new_len);
- _p[len + new_len] = '\0';
- free(PATH);
- PATH = _p;
- } else
- printf("Failed to realloc PATH\n");
+ if (parse_path(skipspace(p + 4)))
+ printf("Failed to parse PATH\n");
} else if (looking_at(p, "sendcookies")) {
const union syslinux_derivative_info *sdi;
diff --git a/com32/lib/sys/module/common.c b/com32/lib/sys/module/common.c
index 8547036..b763704 100644
--- a/com32/lib/sys/module/common.c
+++ b/com32/lib/sys/module/common.c
@@ -59,40 +59,28 @@ void print_elf_symbols(struct elf_module *module) {
FILE *findpath(char *name)
{
+ struct...
2013 Jun 12
0
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...path, new_len);
- _p[len + new_len] = '\0';
- free(PATH);
- PATH = _p;
- } else
- printf("Failed to realloc PATH\n");
+ if (parse_path(skipspace(p + 4)))
+ printf("Failed to parse PATH\n");
} else if (looking_at(p, "sendcookies")) {
const union syslinux_derivative_info *sdi;
diff --git a/com32/lib/sys/module/common.c b/com32/lib/sys/module/common.c
index 8547036..b763704 100644
--- a/com32/lib/sys/module/common.c
+++ b/com32/lib/sys/module/common.c
@@ -59,40 +59,28 @@ void print_elf_symbols(struct elf_module *module) {
FILE *findpath(char *name)
{
+ struct...
2013 Jun 11
2
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
On Mon, 10 Jun, at 07:57:50AM, H. Peter Anvin wrote:
> Either that or make the path a list rather than a string, using the
> normal word separators when entered on the command line, a bit like the
> (t)csh does. That is a bigger change but is probably a better solution.
How would this solution handle filenames containing spaces? Would we
need to escape (presumably with a backslash)
2013 Jun 12
0
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...'\0';
> - free(PATH);
> - PATH = _p;
> - } else
> - printf("Failed to realloc PATH\n");
> + if (parse_path(skipspace(p + 4)))
> + printf("Failed to parse PATH\n");
> } else if (looking_at(p, "sendcookies")) {
> const union syslinux_derivative_info *sdi;
>
> diff --git a/com32/lib/sys/module/common.c b/com32/lib/sys/module/common.c
> index 8547036..b763704 100644
> --- a/com32/lib/sys/module/common.c
> +++ b/com32/lib/sys/module/common.c
> @@ -59,40 +59,28 @@ void print_elf_symbols(struct elf_module *module) {
>
>...
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
...e <syslinux/boot.h>
#include <syslinux/bootrm.h>
#include <syslinux/movebits.h>
#include <syslinux/config.h>
-void chainboot_file(const char *file, enum kernel_type type)
+void chainboot_file(const char *file, uint32_t type)
{
uint8_t keeppxe = 0;
const union syslinux_derivative_info *sdi;
@@ -97,7 +98,7 @@ void chainboot_file(const char *file, enum kernel_type type)
* superblock.
*/
if (sdi->c.filesystem == SYSLINUX_FS_SYSLINUX &&
- type == KT_BSS && this_fs->fs_ops->copy_super(buf))
+ type == IMAGE_TYPE_BSS && this_fs->fs_o...
2012 Nov 06
50
chain.c32 (and partiter) updates v2
This is a bit updated set of chain.c32 changes that simplifies a few things
(and in partiter part), fixes few minor issues and adds a few new features.
Details are in the following commits, below is the summary and pull details at
the end.
Shao - any chance to peek over them ? Most of those are relatively simple
changes and well tested, though of course something might have slipped my
attention.