search for: dev_stdcon_r

Displaying 17 results from an estimated 17 matches for "dev_stdcon_r".

Did you mean: dev_stdcon_w
2013 Oct 23
2
syslinux lua support
...patch for this, but I don't know if it meets the code standards for this project. Second, I need to have a workingstdin when in VESA mode. As it stands, io.read() fails when in VESA mode. Itappears to be because of the dev_rawcon_r being the assigned input console. IfI modify the source to use dev_stdcon_r, it works as it does outside of VESA mode. However, I need to have raw access to the stdin if I am to design a menu drawing system in lua using ANSI control sequences because I need input control over arrow keys and such. Third, I need to get access to the cell dimensions. I have already written a...
2007 Apr 26
2
boot 32 or 64 kernel depending on cpu
...nclude <stdio.h> #include <ctype.h> #include <stdlib.h> #include <console.h> #include <cpuid.h> #include <syslinux/boot.h> int main(int argc, char *argv[]) { const char *kernel, *initrd; char cmdline[1024]; int i; unsigned p; s_cpu cpu; openconsole(&dev_stdcon_r, &dev_stdcon_w); if (argc < 5) { fprintf(stderr, "missing options, usage:\n" " l23or64 <32b kernel> <32b initrd> \\" " <64b kernel> <64b initrd> \\" " [kernel arguments]\n"); return 1; } d...
2012 Nov 23
1
[PATCH] nictype.c32: PXELINUX module to display UNDI NIC bus type...
...+ "CardBus", +}; + +static int usage(const char *prog); + +static const char prog_name[] = "nictype.c32"; + +int main(int argc, char **argv) +{ + int status; + t_PXENV_UNDI_GET_NIC_TYPE nic_type_info; + char filename[] = "VVVVDDDD"; + + openconsole(&dev_stdcon_r, &dev_stdcon_w); + + status = pxe_get_nic_type(&nic_type_info); + if (status == -1 || status != PXENV_STATUS_SUCCESS) { + fprintf(stderr, "pxe_get_nic_type failure\n"); + goto err_nic_type_info; + } + + /* Unknown NIC type? */ + if (nic_type_info.NicType >= Count...
2009 Mar 24
1
menu.c32 works on serial console, but hdt.c32 displays on vga only.
...ot;hdt", it displays the hdt screen on the VGA adaptor and not on the serial interface. In my pxeboot config file I have: serial 0 38400 console 0 prompt 1 I noticed that the main function in hdt.c has: console_ansi_raw(); /* Opening the Syslinux console */ // openconsole(&dev_stdcon_r, &dev_ansicon_w); Could the missing openconsole be stopping it from working on the serial console? Is there something I need to do to get hdt to run on the serial console? -- -- rouilj John Rouillard System Administrator Renesys Corporation 603-244-9084 (cell) 603-643-9300 x 111
2013 Oct 23
0
syslinux lua support
...is project. Post them here, and hopefully somebody will tell. > Second, I need to have a working stdin when in VESA mode. As it > stands, io.read() fails when in VESA mode. It appears to be because of > the dev_rawcon_r being the assigned input console. If I modify the > source to use dev_stdcon_r, it works as it does outside of VESA > mode. However, I need to have raw access to the stdin if I am to > design a menu drawing system in lua using ANSI control sequences > because I need input control over arrow keys and such. I don't get how you'd use both modes together. Anywa...
2004 Dec 08
4
malloc in libcom32 broken?
...c:50: undefined reference to `__stack_size' make: *** [hello.elf] Error 1 Modified hello.c follows below: #include <stdlib.h> #include <string.h> #include <stdio.h> #include <console.h> int main(void) { char buffer[1024]; void *foo = malloc(1); openconsole(&dev_stdcon_r, &dev_stdcon_w); printf("Hello, World!\n"); for (;;) { printf("> "); fgets(buffer, sizeof buffer, stdin); if ( !strncmp(buffer, "exit", 4) ) break; printf(": %s", buffer); } return 0; }
2012 May 23
1
[GIT PULL] Remove duplicate COM32 modules
...nb at zytor.com> */ -#include <string.h> #include <stdio.h> -#include <console.h> +#include <stdlib.h> -int main(int argc, char *argv[]) -{ - int i; +#include "sort.h" + +#define NUM_COUNT 10 +#define MAX_NUM 100 - openconsole(&dev_stdcon_r, &dev_stdcon_w); +int main(int argc __unused, char **argv __unused) +{ + int *nums = NULL; - printf("Hello, World!\n"); + nums = malloc(NUM_COUNT * sizeof(int)); + printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&main, nums); - fo...
2010 Mar 18
1
argv[0] doesn't contain module name and cat.c32 hangs with Syslinux 4.00-pre36
...e replacing strange characters with "?" would even be better. A more.c32 module would also be useful. $ cat com32/modules/cat.c #include <stdio.h> #include <stdlib.h> #include <console.h> int main(int argc, char *argv[]) { FILE *f; int ch; openconsole(&dev_stdcon_r, &dev_stdcon_w); if (argc != 2) { fprintf(stderr, "Usage: cat.c32 filename\n"); return 1; } f = fopen(argv[1], "r"); if (!f) { fprintf(stderr, "File name \"%s\" does not exist.\n", argv[1]); return 1; } while ((ch = getc(f))...
2009 Feb 16
3
[PATCH] cmd.c32: new module to just execute a command
...------ */ + +/* + * cmd.c + * + * Execute arbitrary commands + */ + +#include <string.h> +#include <alloca.h> +#include <console.h> +#include <com32.h> + +int main(int argc, const char *argv[]) +{ + size_t len = 0; + char *cmd; + char *tmp; + int i; + + openconsole(&dev_stdcon_r, &dev_stdcon_w); + + for (i = 1; i < argc; i++) + len += strlen(argv[i]) + 1; + + tmp = cmd = alloca(len); + + for (i = 1; i < argc; i++) + tmp += sprintf(tmp, "%s%s", argv[i], (i == argc-1) ? "" : " "); + + syslinux_run_command(cmd); +} -- 1.5.4.3
2009 Feb 22
2
NEW: COM32 module to run another command, optionally clearing the screen
From: Gene Cumm <gene.cumm at gmail.com> run.c: A simple COM32 module that will optionally clear the screen (using newlines) then run a command. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> --- This is based on my alias COM32 module that I submitted back in October, with some improvements to clean up debugging code and optionally clear the screen. LABEL et KERNEL run.c32
2012 Oct 19
3
[PATCH 0/3] elflink fixes
From: Matt Fleming <matt.fleming at intel.com> The first two patches in this series are fixes for bugs reported by someone in #syslinux. The third makes dmitest.c32 actually wait for user input. If no one has any objections/concerns, I'll pull this into the official elflink branch. Matt Fleming (3): core: Print error message if we don't load ldlinux.c32 Clean up $(GPLLIB) leak
2007 Jan 06
6
PXE stack access via com32
Hi, I've checked the archives for my issue, and while there is relevant discussion, the problem the original poster was asking about didn't seem to have been resolved then either (~2 years ago). At any rate, basically what I'm trying to do is send (possibly receive) UDP packets via the PXE stack using the com32 API (using version 3.11 of syslinux). I have followed both the comboot
2007 Apr 10
1
[PATCH] Add support for DHCP-Options
...; + append_output(&out, &outlen, replacement, strlen(replacement)); + free(replacement); + i += stop-start+1; + break; + } + } + + return out; +} + +int main(int argc, char *argv[]) +{ + int i; + char *out, *cmdline = NULL; + void *buf; + size_t cmd_len = 0; + + openconsole(&dev_stdcon_r, &dev_stdcon_w); + if (pxe_get_cached_info(PXENV_PACKET_TYPE_DHCP_ACK, &buf, &dhcpack_len) != 0) { + fprintf(stderr, "failed to get dhcp infos\n"); + return 1; + } + dhcpack = (bootp_t *)buf; + + for (i = 1; i < argc; i++) { + out = do_subst(argv[i]); + append_output(&...
2007 Apr 30
1
CentOS 5 single DVD for i386 and x86_64
...h> #include <stdlib.h> #include <console.h> #include <cpuid.h> #include <syslinux/boot.h> int main(int argc, char *argv[]) { const char *kernel, *initrd; char cmdline[1024]; int i; unsigned p; s_cpu cpu; openconsole(&dev_stdcon_r, &dev_stdcon_w); if (argc < 5) { fprintf(stderr, "missing options, usage:\n" " l23or64 <32b kernel> <32b initrd> \\" " <64b kernel> <64b initrd>...
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
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi, This series targets automatic boot menu generation, but most of it is the Lua upgrade, because I got tired reading deprecated API docs. It's mostly a straightforward forward port of the earlier Syslinux specific changes to Lua 5.1, except that: * I chose the add a stub getenv() implementation to the COM32 API instead of #ifdefing out all the references in Lua, and * I kept oslib
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not