Displaying 20 results from an estimated 40 matches for "kernel_size".
2009 Jul 09
2
libxc: Question on kernel image unzipping
...("%s: size (zip %zd, unzip %zd) looks insane, skip gunzip\n",
__FUNCTION__, ziplen, unziplen);
return 0;
}
return unziplen + 16;
}
The returned unziplen+16 is used for the size of the destination buffer
given to inflate. But it is then also written to the kernel_size
attribute of the xc_dom_image struct. Hence kernel_size does not contain
the uncompressed kernel size but that /plus/ 16.
So why do you always add 16 bytes to the *real* uncompressed kernel
size?? That doesn''t make much sense to me but I need to know it because
it is related to my curr...
2013 Mar 15
0
[PATCH 4.1] Add DomU xz kernel decompression
...t *size,
+ lzma_stream *stream, lzma_ret ret, const char *what)
{
- lzma_stream stream = LZMA_STREAM_INIT;
- lzma_ret ret;
lzma_action action = LZMA_RUN;
unsigned char *out_buf;
unsigned char *tmp_buf;
@@ -201,14 +200,13 @@ static int xc_try_lzma_decode(
if ( dom->kernel_size == 0)
{
- DOMPRINTF("LZMA: Input is 0 size");
+ DOMPRINTF("%s: Input is 0 size", what);
return -1;
}
- ret = lzma_alone_decoder(&stream, 128*1024*1024);
if ( ret != LZMA_OK )
{
- DOMPRINTF("LZMA: Failed to init stre...
2013 Dec 04
0
Boot iPXE from syslinux/isolinux
...cmdline_size) & ~15;
+ return min(start - base, max_offset) & ~15;
}
- return 0x10000;
+ dprintf("Unable to find lowmem for cmdline\n");
+ return (0x9ff0 - cmdline_size) & ~15; /* Legacy value: pure hope... */
}
int bios_boot_linux(void *kernel_buf, size_t kernel_size,
@@ -159,7 +156,7 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size,
{
struct linux_header hdr, *whdr;
size_t real_mode_size, prot_mode_size, base;
- addr_t real_mode_base, prot_mode_base;
+ addr_t real_mode_base, prot_mode_base, prot_mode_max;
addr_t irf_size;...
2013 Jul 25
2
Efi64 boot fail during download from kernel and initrd via http
...hich should hopefully print some info from the kernel boot paths.
>
> --
> Matt Fleming, Intel Open Source Technology Center
>
I tried it with pre11, same problem.
I modified the debug append line to the one above.
I get the following output:
efi_boot_linux: kernel_start 0x1000000 kernel_size 0x472390 initramfs 0x7e3dc998 setup_data 0x0 cmdline 0x9f000
efi_boot_linux: setup_sects 32 kernel_size 4662160
Hope this helps
Regards Michael
2013 Dec 04
2
Boot iPXE from syslinux/isolinux
"H. Peter Anvin" <hpa at zytor.com> on Tue, 2013/12/03 20:26:
> On 10/24/2013 01:09 AM, Christian Hesse wrote:
> >>>
> >>> version 6.02-pre5 works, 6.02-pre6 does not.
> >>
> >> Struggled with git bisect, but finally succeeded:
> >>
> >> 8f470e7bfe75f6401f6c5432988c620b863ad274 is the first bad commit
> >>
2012 Dec 09
3
Unable to boot Linux kernel in from Syslinux 6.00-pre efi64
Hi,
Line 762 of efi/main.c (git firmware branch) should be changed to
if (hdr->version < 0x20b) {
Without this change syslinux efi64 gives out "handover protocol
unimplemented error" and fails to boot. With this change syslinux boots the
kernels fine (tested with 3.6.9 and 3.7rc6 kernels). Please fix this.
Thanks in advance.
Regards.
Keshav
2017 Mar 05
0
[PATCH] Fix recognition of keeppxe option
...ux/firmware.h>
#include <syslinux/video.h>
+#include <syslinux/config.h>
#define BOOT_MAGIC 0xAA55
#define LINUX_MAGIC ('H' + ('d' << 8) + ('r' << 16) + ('S' << 24))
@@ -166,6 +167,7 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size,
struct syslinux_memmap *amap = NULL;
uint32_t memlimit = 0;
uint16_t video_mode = 0;
+ uint16_t bootflags = 0;
const char *arg;
cmdline_size = strlen(cmdline) + 1;
@@ -200,6 +202,14 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size,
}
}
+ if (sy...
2005 Sep 29
2
Booting using single image file
Howdy,
I know that syslinux doesn't currently support this, but does anyone
here know how I might go about getting some sort of boot process
together that would have a single firmware image as opposed to seperate
files for initrd, kernel, and root fs?
Thanks.
2016 Mar 20
0
[PATCH 0/1] EFI image booting capabilities
...x/linux.h>
> +#include <syslinux/bootrm.h>
> +#include <syslinux/movebits.h>
> +#include <syslinux/firmware.h>
> +#include <syslinux/video.h>
> +
Seems like a lot of unnecessary #includes.
> +
> +
> +int syslinux_boot_efi(void *kernel_buf, size_t kernel_size,
> + char *cmdline, int cmdlineSize)
> +{
> + if (firmware->boot_efi)
> + return firmware->boot_efi(kernel_buf, kernel_size, cmdline, cmdlineSize);
> +
> + return -1;
> +}
Seems good otherwise.
> diff -uprN a/efi/main.c b/efi...
2013 Jul 25
0
Efi64 boot fail during download from kernel and initrd via http
On Thu, 25 Jul, at 09:18:30AM, Michael Szerencsits wrote:
> I tried it with pre11, same problem.
>
> I modified the debug append line to the one above.
>
> I get the following output:
> efi_boot_linux: kernel_start 0x1000000 kernel_size 0x472390 initramfs 0x7e3dc998 setup_data 0x0 cmdline 0x9f000
> efi_boot_linux: setup_sects 32 kernel_size 4662160
>
> Hope this helps
> Regards Michael
Thanks, that does help. At least we know it's taking the 32-bit entry
path.
I opened the following bug report to track this issu...
2013 Jul 24
2
Efi64 boot fail during download from kernel and initrd via http
> Actually, can you grab the version I built from,
>
> ftp://syslinux.org/pub/syslinux/tests/syslinux-6.02-pre2.tar.gz
>
> And see whether things work for you? I'm just trying to rule out any
> kind of distribution error on the Syslinux build machine.
>
> --
> Matt Fleming, Intel Open Source Technology Center
> _______________________________________________
2015 Feb 05
4
[PATCH] load_linux: correct a type
...1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c
index 06ae2a9..ac73729 100644
--- a/com32/lib/syslinux/load_linux.c
+++ b/com32/lib/syslinux/load_linux.c
@@ -155,8 +155,8 @@ int bios_boot_linux(void *kernel_buf, size_t kernel_size,
char *cmdline)
{
struct linux_header hdr, *whdr;
- size_t real_mode_size, prot_mode_size, base;
- addr_t real_mode_base, prot_mode_base, prot_mode_max;
+ size_t real_mode_size, prot_mode_size;
+ addr_t real_mode_base, prot_mode_base, prot_mode_max, base;
addr_t irf_si...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
...#include <dprintf.h>
+
+#include <syslinux/align.h>
+#include <syslinux/linux.h>
+#include <syslinux/bootrm.h>
+#include <syslinux/movebits.h>
+#include <syslinux/firmware.h>
+#include <syslinux/video.h>
+
+
+
+int syslinux_boot_efi(void *kernel_buf, size_t kernel_size,
+ char *cmdline, int cmdlineSize)
+{
+ if (firmware->boot_efi)
+ return firmware->boot_efi(kernel_buf, kernel_size, cmdline, cmdlineSize);
+
+ return -1;
+}
diff -uprN a/efi/main.c b/efi/main.c
--- a/efi/main.c 2014-10-06 10:27:44.000000000 -0600
+++ b/efi/main.c 2015-02-18 19:48:27...
2016 Jun 10
4
[PATCH] Fix recognition of keeppxe option
PXELINUX has stopped recognizing the keeppxe option on the kernel
command line. Here is a patch to make it work again.
With COM32, it is no longer possible to use preprocessor directives to
determine the SYSLINUX variant. The code inside the #if will never be
compiled. So, I changed it to use syslinux_filesystem() to determine the
variant. Also, I moved the relevant code from
2013 Mar 27
1
[PATCH] Fix support for Linux kernel images with no protected mode code
...es changed, 11 insertions(+), 7 deletions(-)
diff --git a/com32/lib/syslinux/load_linux.c b/com32/lib/syslinux/load_linux.c
index 471d8a5..04a5210 100644
--- a/com32/lib/syslinux/load_linux.c
+++ b/com32/lib/syslinux/load_linux.c
@@ -324,7 +324,8 @@ int syslinux_boot_linux(void *kernel_buf, size_t kernel_size,
/* Place the kernel in memory */
/* First, find a suitable place for the protected-mode code */
- if (syslinux_memmap_type(amap, prot_mode_base, prot_mode_size)
+ if (prot_mode_size &&
+ syslinux_memmap_type(amap, prot_mode_base, prot_mode_size)
!= SMT_FREE) {
const s...
2007 May 31
1
[patch rfc wip] first cut of ELF bzImage
...# p_paddr
+ .int _filesz # p_filesz
+ .int _memsz # p_memsz
+ .int PF_R | PF_W | PF_X # p_flags
+ .int 4 # p_align
+e_phdr1:
+ .int PT_LOAD # p_type
+ .int kernel - bootsect_start # p_offset
+ .int LOAD_PHYSICAL_ADDR # p_vaddr
+ .int LOAD_PHYSICAL_ADDR # p_paddr
+ .int kernel_size # p_filesz
+ .int kernel_size # p_memsz
+ .int PF_R | PF_W | PF_X # p_flags
+ .int CONFIG_PHYSICAL_ALIGN # p_align
+
+ .int PT_NOTE # p_type
+ .int notes - bootsect_start # p_offset
+ .int 0 # p_vaddr
+ .int 0 # p_paddr
+ .int notes_size # p_filesz
+ .int 0 # p_m...
2007 May 31
1
[patch rfc wip] first cut of ELF bzImage
...# p_paddr
+ .int _filesz # p_filesz
+ .int _memsz # p_memsz
+ .int PF_R | PF_W | PF_X # p_flags
+ .int 4 # p_align
+e_phdr1:
+ .int PT_LOAD # p_type
+ .int kernel - bootsect_start # p_offset
+ .int LOAD_PHYSICAL_ADDR # p_vaddr
+ .int LOAD_PHYSICAL_ADDR # p_paddr
+ .int kernel_size # p_filesz
+ .int kernel_size # p_memsz
+ .int PF_R | PF_W | PF_X # p_flags
+ .int CONFIG_PHYSICAL_ALIGN # p_align
+
+ .int PT_NOTE # p_type
+ .int notes - bootsect_start # p_offset
+ .int 0 # p_vaddr
+ .int 0 # p_paddr
+ .int notes_size # p_filesz
+ .int 0 # p_m...
2013 Nov 01
17
[PATCH v2 00/14] xen: arm: 64-bit guest support and domU FDT autogeneration
I''ve addressed all (I think/hope) of the review comments.
The main change is to expose the guest virtual platform (e.g. memory
layout and interrupt usage etc) to the toolstack via the public
interface. This is then used during FDT generation. I have just codified
the current defacto standard layout, it''s probably not the best layout
but any change can be a separate patch/series.
2010 Apr 23
1
Path simple menu integrated progress indicator
...[0] = 0x0016; /* Run kernel image */
- ireg.esi.w[0] = OFFS(kernel);
- ireg.ds = SEG(kernel);
- ireg.ebx.w[0] = OFFS(args);
- ireg.es = SEG(args);
- ireg.edx.l = type - KT_KERNEL;
- /* ireg.ecx.l = 0; *//* We do ipappend "manually" */
+ size_t kernel_size = 0, initrd_size = 0;
+ char* kernel_name;
+ void* kernel_data, *initrd_buf;
+ char *s, *s0, *t, *initrd_arg;
+ struct initramfs *initramfs = NULL;
+
+ char *arg;
+ opt_quiet = false;
+
+ kernel_name = refdup_word(&cmdline);
+ loadfile(kerne...
2007 Jun 15
1
[PATCH RFC] add domain builder support for bzImage kernels
...+
+static unsigned elf_offset(struct boot_params *params)
+{
+ return (params->hdr.setup_sects + 1) * 512;
+}
+
+static int check_bzimage_kernel(struct xc_dom_image *dom, int verbose)
+{
+ struct boot_params *params;
+ const char *elf;
+
+ if ( dom->kernel_blob == NULL || dom->kernel_size < 512*8)
+ {
+ if ( verbose )
+ xc_dom_panic(XC_INTERNAL_ERROR, "%s: no kernel image loaded\n",
+ __FUNCTION__);
+ return -EINVAL;
+ }
+
+ params = dom->kernel_blob;
+
+ if ( memcmp(¶ms->hdr.header, HDR_MAGIC, H...