[LinuxBIOS] [v3][PATCH] have a static initram improvements.

Stefan Reinauer stepan at coresystems.de
Fri Jul 20 10:41:14 CEST 2007


* ron minnich <rminnich at gmail.com> [070720 06:41]:
> Acked-by: Ronald G. Minnich <rminnich at gmail.com>
>
> if you wish to commit. I think this is acceptable for the short term.
>
> ron

I will work some more on this. I added the stuff for amd norwich, too,
yesterday. It required post_code, too. So I made an extra file
post_code.c (post_code was in stage1.c before)

> On 7/19/07, Stefan Reinauer <stepan at coresystems.de> wrote:
>> This is a simple example how to statically link printk into initram.
>>
>> It grows initram by incredible 2000 bytes here. So yes, this is a
>> solution for now.
>>
>> Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
>>
>> Index: mainboard/emulation/qemu-x86/Makefile
>> ===================================================================
>> --- mainboard/emulation/qemu-x86/Makefile       (revision 459)
>> +++ mainboard/emulation/qemu-x86/Makefile       (working copy)
>> @@ -39,11 +39,14 @@
>>  #
>>
>>  INITRAM_OBJ = $(obj)/mainboard/$(MAINBOARDDIR)/initram.o
>> +INITRAM_OBJ := $(INITRAM_OBJ) $(obj)/lib/console.o
>> +INITRAM_OBJ := $(INITRAM_OBJ) $(obj)/lib/vtxprintf.o
>> +INITRAM_OBJ := $(INITRAM_OBJ) $(obj)/lib/uart8250.o
>>
>>  $(obj)/linuxbios.initram: $(obj)/stage0.init $(obj)/stage0.o 
>> $(INITRAM_OBJ)
>>         $(Q)# initram links against stage0
>>         $(Q)printf "  LD      $(subst $(shell pwd)/,,$(@))\n"
>> -       $(Q)$(LD) -R $(obj)/stage0.o -Ttext 0x80000 $(INITRAM_OBJ) \
>> +       $(Q)$(LD)  -Ttext 0x80000 $(INITRAM_OBJ) \
>>                 --entry=main -o $(obj)/linuxbios.initram.o
>>         $(Q)printf "  OBJCOPY $(subst $(shell pwd)/,,$(@))\n"
>>         $(Q)$(OBJCOPY) -O binary $(obj)/linuxbios.initram.o \
>>
>> --
>> coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
>>       Tel.: +49 761 7668825 • Fax: +49 761 7664613
>> Email: info at coresystems.dehttp://www.coresystems.de/
>>
>

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/




More information about the coreboot mailing list