On Sun, May 17, 2009 at 1:50 PM, ron minnich <[email protected]> wrote:
> On Sun, May 17, 2009 at 12:37 PM, bifferos <[email protected]> wrote:
> Coreboot seems to require a minimum of 64MB to run, but I would like to port 
> it to a platform > with only 32MB.  I noticed in:
>
> targets/emulation/qemu-x86/qemu-x86/normal/crt0.S
This is not the source file.  Changes should be made under the src/ directory.

>> I think it makes sense to use the Coreboot payload system (if not
>> Coreboot itself) to extend the bootloaders with extra functionality.
>> One example is USB boot, another is PXE.  We might be able to use the
>> payloads as-is for many of these devices.
>
> I agree. I love the embedded world.
>
> OK, let's try to fix this coreboot limitation. We need a trouble
> ticket for 32MB or less systems.

This patch lets me boot into filo with down to 8MB of RAM.  Coreboot
was hardcoded to run at 64MB.  I'm not sure that 4MB is the right
place to hard code it.

Signed-off-by: Myles Watson <[email protected]>

Thanks,
Myles
Index: cbv2/src/arch/i386/init/crt0.S.lb
===================================================================
--- cbv2.orig/src/arch/i386/init/crt0.S.lb	2009-05-18 09:10:01.000000000 -0600
+++ cbv2/src/arch/i386/init/crt0.S.lb	2009-05-18 09:11:10.000000000 -0600
@@ -70,7 +70,7 @@
 	 * Normally this is copying from FLASH ROM to RAM.
 	 */
 	movl	%ebp, %esi
-	movl	$0x4000000, %esp
+	movl	$0x400000, %esp
 	movl	%esp, %ebp
 	pushl %esi
 	movl	$_liseg, %esi
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to