[COMMIT] VGABIOS support for EPIA

SONE Takeshi ts1 at tsn.or.jp
Thu May 22 17:55:00 CEST 2003


On Thu, May 22, 2003 at 09:05:38PM +0800, Andrew Ip wrote:
> Thanks for Takeshi.  We now have better ram detection and vgabios support.

Thank you for committing.

> I also applied hcyun's serial debug patch and epia support for ADLO.

It doesn't contain any of my work to ADLO. It's just serial patch.
EPIA runs just fine anyway.

> Takeshi, would you mind to verify the tree.  Since I still have problem,
> I might have missed something.  However, it still looks much beter than
> before.

You missed an important line.
Attached vgabios.patch fixes it.

To build ADLO with "make epia" you introduced, pirq table blob is
needed, but you didn't add it to the tree.

Also, you need to modify some part of loader.s.
My working example is attached adlo-epia.patch.
Without it, ADLO screws some part of PCI controller registers. 
You might also want to change memory size in loader.s.

With above changes, my EPIA runs fine with VGABIOS+memtest86 payload
(memtest86 runs on VGA screen), and ADLO which boots to GRUB->Linux.
(BOOT_IDE didn't work this morning...)

--
Takeshi
-------------- next part --------------
Index: src/arch/i386/lib/vgabios.c
===================================================================
RCS file: /cvsroot/freebios/freebios/src/arch/i386/lib/vgabios.c,v
retrieving revision 1.7
diff -u -r1.7 vgabios.c
--- src/arch/i386/lib/vgabios.c	22 May 2003 12:59:58 -0000	1.7
+++ src/arch/i386/lib/vgabios.c	22 May 2003 21:31:17 -0000
@@ -164,7 +164,7 @@
 
 #ifdef VGABIOS_START
   // Use VGA BIOS blob at specified address
-  // rom = VGABIOS_START;
+  rom = VGABIOS_START;
 #else
   pci_read_config_dword(dev, PCI_ROM_ADDRESS, &rom);
   // paranoia
-------------- next part --------------
Index: util/ADLO/loader.s
===================================================================
RCS file: /cvsroot/freebios/freebios/util/ADLO/loader.s,v
retrieving revision 1.1
diff -u -r1.1 loader.s
--- util/ADLO/loader.s	25 Nov 2002 02:07:53 -0000	1.1
+++ util/ADLO/loader.s	22 May 2003 21:31:18 -0000
@@ -50,13 +50,13 @@
 ;*****************************************************
 ; B) shadow - ON (enable/read/write)
 
-mov eax, #0x80000070
-mov dx,  #0x0cf8
-out dx,  eax
-
-mov eax, #0xFFFFFFFF
-mov dx,  #0x0cfc
-out dx,  eax
+;mov eax, #0x80000070
+;mov dx,  #0x0cf8
+;out dx,  eax
+;
+;mov eax, #0xFFFFFFFF
+;mov dx,  #0x0cfc
+;out dx,  eax
 
 ;*****************************************************
 nop
@@ -166,14 +166,14 @@
 ;*****************************************************
 ; E) shadow - OFF (write)
 
-mov eax, #0x80000070
-mov dx,  #0x0cf8
-out dx,  eax
+;mov eax, #0x80000070
+;mov dx,  #0x0cf8
+;out dx,  eax
 
 ;mov eax, #0xFFFFFFFF
-mov eax, #0x0000FFFF
-mov dx,  #0x0cfc
-out dx,  eax
+;mov eax, #0x0000FFFF
+;mov dx,  #0x0cfc
+;out dx,  eax
 
 ;*****************************************************
 nop


More information about the coreboot mailing list