Re: [coreboot] Question on VGA BIOS extraction

2015-04-12 Thread Stefan Reinauer
* Iru Cai mytbk920...@gmail.com [150330 18:24]:
 Hi,
 
 I'm trying to build Coreboot for ThinkPad X220. I first backup the vendor 
 BIOS,
 then use UEFITool to extract a VBIOS. The romheader program detects the ROM's
 PCI data structure and reports the device id is 8086:0106, but the VGA
 controller's device id is 8086:0126. I extracted the video ROM from a running
 X220 memory and use romheader to test it, the result is still 8086:0106. How
 could this happen?

The same VGA OPROM binary is used for a whole set of different chipsets.
However, the PCI header specification does not have a way to express
that. The main system firmware has to know that, for a 0x0126 device it
has to look for the 0x0106 OPROM. Hence coreboot has a mapping function
for most newer (Intel) chipsets.

Stefan


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


[coreboot] Question on VGA BIOS extraction

2015-03-30 Thread Iru Cai
Hi,

I'm trying to build Coreboot for ThinkPad X220. I first backup the vendor
BIOS, then use UEFITool to extract a VBIOS. The romheader program detects
the ROM's PCI data structure and reports the device id is 8086:0106, but
the VGA controller's device id is 8086:0126. I extracted the video ROM from
a running X220 memory and use romheader to test it, the result is still
8086:0106. How could this happen?

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

Re: [coreboot] Question on VGA BIOS extraction

2015-03-30 Thread Timothy Pearson

On 03/30/2015 11:24 AM, Iru Cai wrote:

Hi,

I'm trying to build Coreboot for ThinkPad X220. I first backup the
vendor BIOS, then use UEFITool to extract a VBIOS. The romheader program
detects the ROM's PCI data structure and reports the device id is
8086:0106, but the VGA controller's device id is 8086:0126. I extracted
the video ROM from a running X220 memory and use romheader to test it,
the result is still 8086:0106. How could this happen?

Iru



Some PCI devices can change their device ID based on a configuration 
register or two (I know the XGI Volari can do this for instance).  It is 
possible that the proprietary BIOS changes the ID for some reason.


--
Timothy Pearson
Raptor Engineering
+1 (415) 727-8645
http://www.raptorengineeringinc.com

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


Re: [coreboot] Question on VGA BIOS extraction

2015-03-30 Thread Charles Devereaux
Likewise on thinkpad tablets the name of the digitizer (WACF004) can be
changed by the ACPI DSDT depending on things detected by the BIOS or not.

You may want to check the DSDT

On Mon, Mar 30, 2015 at 12:29 PM, Timothy Pearson 
tpear...@raptorengineeringinc.com wrote:

 On 03/30/2015 11:24 AM, Iru Cai wrote:

 Hi,

 I'm trying to build Coreboot for ThinkPad X220. I first backup the
 vendor BIOS, then use UEFITool to extract a VBIOS. The romheader program
 detects the ROM's PCI data structure and reports the device id is
 8086:0106, but the VGA controller's device id is 8086:0126. I extracted
 the video ROM from a running X220 memory and use romheader to test it,
 the result is still 8086:0106. How could this happen?

 Iru


 Some PCI devices can change their device ID based on a configuration
 register or two (I know the XGI Volari can do this for instance).  It is
 possible that the proprietary BIOS changes the ID for some reason.

 --
 Timothy Pearson
 Raptor Engineering
 +1 (415) 727-8645
 http://www.raptorengineeringinc.com

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

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

Re: [coreboot] Question on VGA BIOS extraction

2015-03-30 Thread WANG FEI
TP X220 suppose to have a UEFI compatible BIOS, is it possible it has a
UEFI DXE VGA driver (not sure what's the proper name of it) except a legacy
video?

Maybe you should boot up system with original BIOS and check the content in
0xC000 segment, is it a legacy VBIOS or it's empty...

On Mon, Mar 30, 2015 at 7:10 PM, Charles Devereaux coreb...@guylhem.net
wrote:

 Likewise on thinkpad tablets the name of the digitizer (WACF004) can be
 changed by the ACPI DSDT depending on things detected by the BIOS or not.

 You may want to check the DSDT

 On Mon, Mar 30, 2015 at 12:29 PM, Timothy Pearson 
 tpear...@raptorengineeringinc.com wrote:

 On 03/30/2015 11:24 AM, Iru Cai wrote:

 Hi,

 I'm trying to build Coreboot for ThinkPad X220. I first backup the
 vendor BIOS, then use UEFITool to extract a VBIOS. The romheader program
 detects the ROM's PCI data structure and reports the device id is
 8086:0106, but the VGA controller's device id is 8086:0126. I extracted
 the video ROM from a running X220 memory and use romheader to test it,
 the result is still 8086:0106. How could this happen?

 Iru


 Some PCI devices can change their device ID based on a configuration
 register or two (I know the XGI Volari can do this for instance).  It is
 possible that the proprietary BIOS changes the ID for some reason.

 --
 Timothy Pearson
 Raptor Engineering
 +1 (415) 727-8645
 http://www.raptorengineeringinc.com

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



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

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