Displaying 20 results from an estimated 20 matches for "dev_null_r".
2014 Jun 09
3
How to use --once? Does it work?
> On 06/08/2014 02:58 PM, Ady wrote:
> >>
> >> To be clear, I am not saying there is no bug - there might be.
> >>
> >
> > I performed the following test with several versions of Syslinux:
> >
> > 1_ Execute:
> > 'extlinux --once=non_default_label --install /mnt/sda1' ;
> > 2_ In first reboot, the
2014 Jun 09
4
How to use --once? Does it work?
...n once
> Info: Symbol __negdi2 is defined more than once
> Info: Symbol __umoddi3 is defined more than once
> Info: Symbol __lshrdi3 is defined more than once
> Info: Symbol __dtors_end is defined more than once
> Info: Symbol __dtors_start is defined more than once
> Info: Symbol dev_null_r is defined more than once
> Info: Symbol __ashldi3 is defined more than once
> Info: Symbol __udivdi3 is defined more than once
> Info: Symbol __syslinux_adv_size is defined more than once
> Info: Symbol __ctors_end is defined more than once
> Info: Symbol __ctors_start is defined mo...
2010 Jul 01
2
[PATCH] ifplop.c32: Detect if PLoP USB/CD INT13h hook is enabled/disabled
...while ((c = *p++))
+ *q++ = c;
+ *q++ = ' ';
+ a = 1;
+ }
+ q -= a;
+ *q = '\0';
+
+ if (!str[0])
+ syslinux_run_default();
+ else
+ syslinux_run_command(str);
+}
+
+int main(int argc, char *argv[])
+{
+ char **args[2];
+ int arg = 0;
+
+ openconsole(&dev_null_r, &dev_stdcon_w);
+
+ if (argc)
+ arg++;
+ args[0] = &argv[arg];
+ args[1] = NULL;
+ while (arg < argc) {
+ if (!strcmp(argv[arg], "--")) {
+ argv[arg] = NULL;
+ args[1] = &argv[arg + 1];
+ break;
+ }
+ arg++;
+ }
+ if (args[1] != NULL) {
+ boot...
2008 Aug 22
1
syslinux-3.71-21-gbd09a6d - build breakage
...erence to `strtoul'
ethersel.c:(.text+0x98): undefined reference to `strtoul'
ethersel.c:(.text+0xbd): undefined reference to `strtoul'
ethersel.o: In function `main':
ethersel.c:(.text+0xee): undefined reference to `dev_stdcon_w'
ethersel.c:(.text+0xf3): undefined reference to `dev_null_r'
ethersel.c:(.text+0xf8): undefined reference to `openconsole'
ethersel.c:(.text+0xfd): undefined reference to `pci_scan'
ethersel.c:(.text+0x118): undefined reference to `__syslinux_config_file'
ethersel.c:(.text+0x12d): undefined reference to `fopen'
ethersel.c:(.text+0x196):...
2014 Jun 09
0
How to use --once? Does it work?
...ux_adv_ptr is defined more than once
Info: Symbol __negdi2 is defined more than once
Info: Symbol __umoddi3 is defined more than once
Info: Symbol __lshrdi3 is defined more than once
Info: Symbol __dtors_end is defined more than once
Info: Symbol __dtors_start is defined more than once
Info: Symbol dev_null_r is defined more than once
Info: Symbol __ashldi3 is defined more than once
Info: Symbol __udivdi3 is defined more than once
Info: Symbol __syslinux_adv_size is defined more than once
Info: Symbol __ctors_end is defined more than once
Info: Symbol __ctors_start is defined more than once
-hpa
2014 Jun 10
0
How to use --once? Does it work?
...__negdi2 is defined more than once
> > Info: Symbol __umoddi3 is defined more than once
> > Info: Symbol __lshrdi3 is defined more than once
> > Info: Symbol __dtors_end is defined more than once
> > Info: Symbol __dtors_start is defined more than once
> > Info: Symbol dev_null_r is defined more than once
> > Info: Symbol __ashldi3 is defined more than once
> > Info: Symbol __udivdi3 is defined more than once
> > Info: Symbol __syslinux_adv_size is defined more than once
> > Info: Symbol __ctors_end is defined more than once
> > Info: Symbol __...
2012 Sep 04
0
[PATCH] console: Close stdin, stdout, stderr on ldlinux.c32 unload
...,8 +27,6 @@
extern hexdump, mydump
- extern printf_init
-
extern mem_init
; fs.c
diff --git a/core/hello.c b/core/hello.c
index d30fc3b..bed7cb5 100644
--- a/core/hello.c
+++ b/core/hello.c
@@ -76,8 +76,3 @@ void mp5(void)
myprint(5);
}
-void printf_init(void)
-{
- openconsole(&dev_null_r, &dev_stdcon_w);
-}
-
diff --git a/core/init.c b/core/init.c
index 01319f4..26b4a19 100644
--- a/core/init.c
+++ b/core/init.c
@@ -62,7 +62,6 @@ static inline void bios_timer_init(void)
*hook = (uint32_t)&timer_irq;
}
-extern void printf_init(void);
void init(com32sys_t *regs __unused...
2019 Apr 05
2
Syslinux LUA -- output not visible in UEFI mode?
Hello all,
We're having the following issue: when in UEFI mode,
any output/errors from a lua script is invisible!
This occurs even just running 'lua -v'. It runs and returns to
a (visible) 'boot:' prompt, but there is simply no output visible
from lua! (It does do a linefeed, but no visible text appears.)
Has anyone encountered this? And/or know of a solution?
For
2010 Jul 05
0
whichsys.c32: execute specific command, based on Syslinux bootloader variant
...ys.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-")) {
+ argv[arg] = NULL;
+ isolinux.arg[0] = &argv[arg...
2009 Mar 31
0
enhanced config.c32 module
...ux_param=false;
}
void show_usage() {
fprintf(stderr, "Usage: config <filename>\n");
fprintf(stderr, " config ext=<filename> iso=<filename> pxe=<filename> sys=<filename> \n");
}
int main(int argc, const char *argv[])
{
openconsole(&dev_null_r, &dev_stdcon_w);
if (argc < 2) {
fprintf(stderr, "No config file specified.\n\n");
show_usage();
return 1;
}
init_structs();
detect_parameters(argc,argv);
if (detect_syslinux() == 1) {
fprintf(stderr, "No valid bootloader found..\n\n");
sho...
2008 Jun 24
2
Debugging
Hi!
It's indeed better to open a new thread for this. So, here's my test
session:
$ qemu -fda extlinux.144 -s -S
Then in another terminal:
$ gdb extlinux.elf
(gdb) set architecture i8086
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
0x0000fff0 in ?? () at localboot.inc:68
68 jmp kaboom ; If we returned, oh boy...
How does "jmp kaboom" get
2005 Sep 17
2
com16/com32 module for APM powerdown
...------------------ */
/*
* apmoff.c
*
* Power down a computer, using APM.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <console.h>
#include <com32.h>
int main(void)
{
com32sys_t in, out;
int flags;
int version;
openconsole(&dev_null_r, &dev_stdcon_w);
printf("APM/ACPI Off\nCopyright (C) 1999,2005 Luciano Rocha.\n");
/* clear input registers */
memset(&in, '\0', sizeof in);
/* check APM support and version */
in.eax.w[0] = 0x5300;
__intcall(0x15, &in, &out);
/* version in ax,...
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
2011 Aug 06
4
[PATCH] ifmemdsk.c32: Allow boot options based on presence of MEMDISK
...es = scan_drives;
+ static f_find * do_walk_safe_hooks = do_nothing;
+ static f_find * do_scan_mbfts = do_nothing;
+ char ** detected_cmd;
+ char ** not_detected_cmd;
+ char ** cmd;
+ char ** cur_arg;
+ int show_usage;
+ int found;
+
+ (void) argc;
+
+ openconsole(&dev_null_r, &dev_stdcon_w);
+
+ detected_cmd = NULL;
+ not_detected_cmd = NULL;
+ show_usage = 1;
+ for (cur_arg = argv + 1; *cur_arg; ++cur_arg) {
+ /* Check for command divider */
+ if (!strcmp(*cur_arg, "--")) {
+ show_usage = 0;
+ *cur_arg = NU...
2010 Apr 27
4
Patch sensible callback framework
...)
{
const char *kernel_name;
@@ -118,11 +145,13 @@ int main(int argc, char *argv[])
size_t kernel_len;
bool opt_dhcpinfo = false;
bool opt_quiet = false;
+ bool opt_percent = false;
void *dhcpdata;
size_t dhcplen;
char **argp, *arg, *p;
- openconsole(&dev_null_r, &dev_stdcon_w);
+
+ console_ansi_raw();
(void)argc;
argp = argv + 1;
@@ -157,16 +186,23 @@ int main(int argc, char *argv[])
if (find_boolean(argp, "quiet"))
opt_quiet = true;
- if (!opt_quiet)
- printf("Loading %s... ", kernel_name);
+ if (find...
2009 Jul 27
1
[PATCH] mboot using module path
...cwd, *argp);
???? rv = zloadfile(*argp, &mp->data, &mp->len);
???? if (rv) {
@@ -150,9 +160,10 @@
?int main(int argc, char *argv[])
?{
-? int nmodules;
+? int nmodules, len;
?? struct module_data *modules;
?? bool keeppxe = false;
+? char modulepath[1024], *str;
?? openconsole(&dev_null_r, &dev_stdcon_w);
@@ -160,11 +171,27 @@
?? argv++;
?? while (*argv) {
-??? if (!strcmp(*argv, "-solaris"))
+??? if (!strcmp(*argv, "-solaris")) {
?????? opt.solaris = true;
-??? else if (!strcmp(*argv, "-aout"))
+??? } else if (!strcmp(*argv, "-aout")) {...
2007 Oct 17
3
Adding a "boot from local hard disk" option to syslinux menu, booted from USB
...d
automatically */
int idd, idp, endd, endp;
FILE *f;
char *log = "/chsdlog.txt";
char logsc[1024];
char *logs = &logsc;
char logrc[10240];
char *logr = &logrc;
char inch[20];
int ix = 0;
int waittotal;
char cc;
FILE *pFile = NULL;
openconsole(&dev_null_r, &dev_stdcon_w);
/*if ( argc < 2 ) {
error("Usage: chain.c32 (hd|fd)# [partition]\n");
goto bail;
}*/
strcpy (logrc, "Log: ");
sprintf(logs, "Starting chainsd - chain see disk
only.\n");
printf(logs);
strcat(logrc, logs);
//drivena...
2010 Jul 26
5
[RFC/PATCH] New chainloading functionality
This patch introduces extra functionality to chain.c, mainly with reference to
BPB adjustments, but not only that. It expects 3 small patches I sent earlier
(they are included for easy reference, patches 1-3/4).
The changes introduced are:
1) file and boot sector use separate options to control load address and jump
address (if applicable). Options are as described below:
*
2007 Apr 10
1
[PATCH] Add support for DHCP-Options
hi,
I've written a start of an c32-module to do basic substition:
add subst.c32
this is a start of a generic substition module
---
commit 9a1f41a7e6599fe6a162197cd9ddc6610185e780
tree cfb799a0be9844926afe44e21b2eb96630666c44
parent 89478bdbfa7167bc1b627a478d042c99e46f06b7
author Maurice Massar <massar at unix-ag.uni-kl.de> Tue, 10 Apr 2007 20:13:39 +0200
committer Maurice Massar
2012 Aug 14
1
[GIT PULL] elflink fixes
Hi Peter,
The main part of this pull request includes commits that try to replace
as many __intcall() invocations as possible. Some remain, but not many
(and eventually they'll be gone too). There's also a patch to make
better use of ld's --as-needed option and various other bug
fixes/cleanups.
The following changes since commit ff7334a2ce536b7f4b1f6d6f93ff4e285a3bd45a:
Only