[coreboot] 回复: Advice how to install Linux to get it working with FILO

Joop Boonen joop_boonen at web.de
Wed May 19 21:16:26 CEST 2010


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
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
</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 at coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot
>






More information about the coreboot mailing list