Patchwork =?iso-8859-1?q?=E5=9B=9E=E5=A4=8D=3A_Advice_how_to_ins?= =?iso-8859-1?q?tall_Linux_to_get_it__working_with_FILO?=

login
register
about
Submitter Joop Boonen
Date 2010-05-19 19:16:26
Message ID <34071321dd51a07d7ad190f4e0819829.squirrel@www.boonen.name>
Download mbox | patch
Permalink /patch/1358/
State Not Applicable
Headers show

Comments

Joop Boonen - 2010-05-19 19:16:26
On Wed, May 19, 2010 7:02 pm, Peter Stuge wrote:
> (Recommend looking into utf-8, guys.)
>
> Joop Boonen wrote:
>> the same fix, is the it already included in the current FILO code?
>
> It was posted by Eric as a patch to mkelfImage today. There is no
> patch for FILO. Feel free to help adapt the mkelfImage patch!
>

I'm trying to implement the patch in filo.
I think a part is done see diff.

<diff>
svn diff
</diff>

I don't have a clue where to put this part

@@ -1503,6 +1506,9 @@ void initialize_linux_params(struct para

         /* No loader flags */
         info->real_mode->loader_flags = 0;
+
+        /* Set it to 16M instead of 4G */
+        info->real_mode->kernel_alignment = 16*1024*1024;

         /* Ramdisk address and size ... */
         info->real_mode->initrd_start = 0;


>
> //Peter
>
> --
> coreboot mailing list: coreboot@coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot
>

Patch

Index: i386/linux_load.c
===================================================================
--- i386/linux_load.c   (revision 131)
+++ i386/linux_load.c   (working copy)
@@ -82,6 +82,10 @@ 
        u32 cmd_line_ptr;       /* 0x228 */
        /* 2.03+ */
        u32 initrd_addr_max;    /* 0x22c */
+       /* 2.05+ */
+       u32 kernel_alignment;                /* 0x230 */
+       u8  relocateable_kernel;                /* 0x234 */
+       u8  reserved15[0x2d0 - 0x235];     /* 0x235 */
 } __attribute__ ((packed));

 /* Paramters passed to 32-bit part of Linux
@@ -161,6 +165,9 @@ 
        u8 reserved12_5[8];     /* 0x220 */
        u32 cmd_line_ptr;       /* 0x228 */
        u8 reserved13[164];     /* 0x22c */
+       u32 kernel_alignment;                /* 0x230 */
+       u8 relocateable_kernel;                /* 0x234 */
+       u8 reserved15[0x2d0 - 0x235];     /* 0x235 */
        struct e820entry e820_map[E820MAX];     /* 0x2d0 */
        u8 reserved16[688];     /* 0x550 */
 #define COMMAND_LINE_SIZE 256