search for: kernel_len

Displaying 15 results from an estimated 15 matches for "kernel_len".

Did you mean: kernel_env
2007 Apr 26
2
boot 32 or 64 kernel depending on cpu
...lt;ctype.h> #include <stdlib.h> #include <console.h> #include <syslinux/loadfile.h> #include <syslinux/linux.h> #include "cpuid.h" int main(int argc, char *argv[]) { const char *kernel, *initrd; void *kernel_data, *initrd_data; struct initramfs *rd; size_t kernel_len, initrd_len; char cmdline[1024]; uint32_t mem_limit = 0; uint16_t video_mode = 0; int i; unsigned p; char _b[64]; #define pause() (fgets(_b, sizeof _b, stdin)) s_cpu cpu; openconsole(&dev_stdcon_r, &dev_stdcon_w); for (i = 0; i < argc; i++) { printf("argument %d: '...
2014 Apr 29
2
[PATCH][git-pull] lua: make kernel and initrd progress output match in sl_boot_linux
...rc/syslinux.c +++ b/com32/lua/src/syslinux.c @@ -219,7 +219,7 @@ static int sl_boot_linux(lua_State * L) msleep(1000); */ - printf("Loading kernel %s...\n", kernel); + printf("Loading kernel %s... ", kernel); if (loadfile(kernel, &kernel_data, &kernel_len)) printf("failed!\n"); else @@ -237,10 +237,10 @@ static int sl_boot_linux(lua_State * L) initrd = arg; printf("Loading initrd %s... ", initrd); - if (initramfs_load_archive(initramfs, initrd)) { + if (initramfs_load_archive(initramfs, initrd)) pr...
2016 Mar 20
0
[PATCH 0/1] EFI image booting capabilities
...70 @@ bail: > printf("%s\n", strerror(errno)); > return 1; > } > + > + > +int new_efi_image(char *okernel, char *ocmdline) > +{ > + const char *kernel_name = NULL, *args = NULL; > + char *temp; > + void *kernel_data; > + size_t kernel_len, cmdline_len; > + char *cmdline=NULL; > + > + > + //lets clear the screen before loading the efi image > + if(firmware && firmware->clear_screen) > + firmware->clear_screen(); > + > + > + dprintf("okernel = %s, ocmdline = %s", oke...
2016 Aug 15
2
[PATCH v2] v2v: factor out bootloader handling
...linuzes + + method set_default_kernel vmlinuz = + if not (String.is_prefix vmlinuz grub_prefix) then + error (f_"kernel %s is not under grub tree %s") + vmlinuz grub_prefix; + let kernel_under_grub_prefix = + let prefix_len = String.length grub_prefix in + let kernel_len = String.length vmlinuz in + String.sub vmlinuz prefix_len (kernel_len - prefix_len) in + + (* Find the grub entry for the given kernel. *) + let paths = g#aug_match (sprintf "/files%s/title/kernel[. = '%s']" + grub_config kernel_under_grub...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
...ne = %s", okernel, ocmdline); if (okernel) @@ -129,3 +137,70 @@ bail: printf("%s\n", strerror(errno)); return 1; } + + +int new_efi_image(char *okernel, char *ocmdline) +{ + const char *kernel_name = NULL, *args = NULL; + char *temp; + void *kernel_data; + size_t kernel_len, cmdline_len; + char *cmdline=NULL; + + + //lets clear the screen before loading the efi image + if(firmware && firmware->clear_screen) + firmware->clear_screen(); + + + dprintf("okernel = %s, ocmdline = %s", okernel, ocmdline); + + if (okernel) + kernel_name...
2008 Mar 13
5
Adding memdisk or similar when booting linux
Hi Thanx guys for the help on understanding howto read dmi info! I now have a custom boot menu for install of different linux versions based if they have been installed before (reinstall is ok for users, first install is not), and installquirks like if we detect odd hardware, we add install options to redhat installer so it can install anyhow (for instance hp dc7800 who needs pci=nommconf as
2015 Nov 20
0
[PATCH] v2v: factor out bootloader handling
...List.map ((^) prefix) vmlinuzes + + method set_default kernel = + if not (String.is_prefix kernel prefix) then + error (f_"kernel %s is not under grub tree %s") + kernel prefix; + let kernel_under_grub_prefix = + let prefix_len = String.length prefix in + let kernel_len = String.length kernel in + String.sub kernel prefix_len (kernel_len - prefix_len) in + + (* Find the grub entry for the given kernel. *) + let paths = g#aug_match (sprintf "/files%s/title/kernel[. = '%s']" + grub_config kernel_under_grub...
2016 Aug 15
0
Re: [PATCH v2] v2v: factor out bootloader handling
...t_kernel vmlinuz = > + if not (String.is_prefix vmlinuz grub_prefix) then > + error (f_"kernel %s is not under grub tree %s") > + vmlinuz grub_prefix; > + let kernel_under_grub_prefix = > + let prefix_len = String.length grub_prefix in > + let kernel_len = String.length vmlinuz in > + String.sub vmlinuz prefix_len (kernel_len - prefix_len) in > + > + (* Find the grub entry for the given kernel. *) > + let paths = g#aug_match (sprintf "/files%s/title/kernel[. = '%s']" > + grub...
2010 Apr 27
4
Patch sensible callback framework
...file, size_t cur, size_t total) { + int percent = (int)(((float)cur / (float)total) * 100.0); + if (percent >= 100) + printf(" OK\n"); +} + int main(int argc, char *argv[]) { 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 +...
2016 Aug 25
2
[PATCH v2] v2v: factor out bootloader handling
...| `Grub1 -> - if not (String.is_prefix kernel.ki_vmlinuz grub_prefix) then - error (f_"kernel %s is not under grub tree %s") - kernel.ki_vmlinuz grub_prefix; - let kernel_under_grub_prefix = - let prefix_len = String.length grub_prefix in - let kernel_len = String.length kernel.ki_vmlinuz in - String.sub kernel.ki_vmlinuz prefix_len (kernel_len - prefix_len) in - - (* Find the grub entry for the given kernel. *) - let paths = g#aug_match (sprintf "/files%s/title/kernel[. = '%s']" - g...
2014 May 14
0
[PATCH][git-pull] lua: make kernel and initrd progress output match in sl_boot_linux
...yslinux.c > @@ -219,7 +219,7 @@ static int sl_boot_linux(lua_State * L) > msleep(1000); > */ > > - printf("Loading kernel %s...\n", kernel); > + printf("Loading kernel %s... ", kernel); > if (loadfile(kernel, &kernel_data, &kernel_len)) > printf("failed!\n"); > else > @@ -237,10 +237,10 @@ static int sl_boot_linux(lua_State * L) > > initrd = arg; > printf("Loading initrd %s... ", initrd); > - if (initramfs_load_archive(initramfs, initrd)) { > + if (initramf...
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
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
From: Matt Fleming <matt.fleming at linux.intel.com> This is a series of patches that, * shrink the core by moving things into an ldlinux ELF module * begin wiring up some of the C versions of various functions The core now only contains essential code and loads the ldlinux module to do everything else, like providing a command line interface and loading kernels. The config file parsing
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
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