[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linuxbios
Subject:    Re: [coreboot] How can extract descriptor.bin from bios image?
From:       WANG FEI <wangfei.jimei () gmail ! com>
Date:       2016-06-20 21:50:23
Message-ID: CAGH0wH26-S6Xq0edS7Jjky7cYhx7Qe6qEkbODXk2tCmWSShG-A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Looking at the logs you've got, the final bios only have BIOS/coreboot and
descriptor.bin, the GbE/ME areas are not used, I think as long as your
enable the descripor.bin, it should be good enough.

  poplinux@raw rangeley $ > ./tools/ifdtool -x ./oem_dumped.bin
  File ./oem_dumped.bin is 8388608 bytes
    Flash Region 0 (Flash Descriptor): 00000000 - 0000ffff
    Flash Region 1 (BIOS): 00010000 - 007fffff
    Flash Region 2 (Intel ME): 00fff000 - 00000fff* (unused)*
    Flash Region 3 (GbE): 00fff000 - 00000fff *(unused)*
    Flash Region 4 (Platform Data): 00fff000 - 00000fff* (unused)*

On Mon, Jun 20, 2016 at 3:16 AM, =EA=B9=80=EC=9C=A0=EC=84=9D <poplinux0@gma=
il.com> wrote:

> Dear Sir.
>
> Thank's your advise. It is very useful to me.
>
> My work log is see below.
>
>   poplinux@raw rangeley $ > ./tools/ifdtool -x ./oem_dumped.bin
>   File ./oem_dumped.bin is 8388608 bytes
>     Flash Region 0 (Flash Descriptor): 00000000 - 0000ffff
>     Flash Region 1 (BIOS): 00010000 - 007fffff
>     Flash Region 2 (Intel ME): 00fff000 - 00000fff* (unused)*
>     Flash Region 3 (GbE): 00fff000 - 00000fff *(unused)*
>     Flash Region 4 (Platform Data): 00fff000 - 00000fff* (unused)*
>
> *The Flash Region 2~3 is (unused). Is it corrent?*
>
>
> And descriptor.bin's content is see below.
>
> poplinux@raw rangeley $ > ./tools/ifdtool -d ./descriptor.bin
> File ./descriptor.bin is 65536 bytes
> FD signature Offset 0x10
> FD signature Offset 0x10
> FLMAP0:    0x01040003
>   NR:      1
>   FRBA:    0x40
>   NC:      1
>   FCBA:    0x30
> FLMAP1:    0x09100206
>   ISL:     0x09
>   FPSBA:   0x100
>   NM:      2
>   FMBA:    0x60
> FLMAP2:    0x00210020
>   PSL:     0x2100
>   FMSBA:   0x200
> FLUMAP1:   0x000002e0
>   Intel ME VSCC Table Length (VTL):        2
>   Intel ME VSCC Table Base Address (VTBA): 0x000e00
>
> ME VSCC table:
>   JID0:  0x001740ef
>     SPI Componend Device ID 1:          0x17
>     SPI Componend Device ID 0:          0x40
>     SPI Componend Vendor ID:            0xef
>   VSCC0: 0x20052005
>     Lower Erase Opcode:                 0x20
>     Lower Write Enable on Write Status: 0x50
>     Lower Write Status Required:        No
>     Lower Write Granularity:            64 bytes
>     Lower Block / Sector Erase Size:    4KB
>     Upper Erase Opcode:                 0x20
>     Upper Write Enable on Write Status: 0x50
>     Upper Write Status Required:        No
>     Upper Write Granularity:            64 bytes
>     Upper Block / Sector Erase Size:    4KB
>
> OEM Section:
> 00: 31 31 35 32 31 35 30 39 32 30 00 00 00 00 00 00
> 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
> Found Region Section
> FLREG0:    0x000f0000
>   Flash Region 0 (Flash Descriptor): 00000000 - 0000ffff
> FLREG1:    0x07ff0010
>   Flash Region 1 (BIOS): 00010000 - 007fffff
> FLREG2:    0x00000fff
>   Flash Region 2 (Intel ME): 00fff000 - 00000fff (unused)
> FLREG3:    0x00000fff
>   Flash Region 3 (GbE): 00fff000 - 00000fff (unused)
> FLREG4:    0x00000fff
>   Flash Region 4 (Platform Data): 00fff000 - 00000fff (unused)
>
> Found Component Section
> FLCOMP     0x09200024
>   Dual Output Fast Read Support:       not supported
>   Read ID/Read Status Clock Frequency: 33MHz
>   Write/Erase Clock Frequency:         33MHz
>   Fast Read Clock Frequency:           33MHz
>   Fast Read Support:                   not supported
>   Read Clock Frequency:                20MHz
>   Component 2 Density:                 8MB
>   Component 1 Density:                 8MB
> FLILL      0x00000000
>   Invalid Instruction 3: 0x00
>   Invalid Instruction 2: 0x00
>   Invalid Instruction 1: 0x00
>   Invalid Instruction 0: 0x00
> FLPB       0x00000000
>   Flash Partition Boundary Address: 0x000000
>
> Found PCH Strap Section
> PCHSTRP0:  0x00080002
> PCHSTRP1:  0x00000000
> PCHSTRP2:  0x00000000
> PCHSTRP3:  0x00000003
> PCHSTRP4:  0x0000007f
> PCHSTRP5:  0x007fffc0
> PCHSTRP6:  0x0001c7c0
> PCHSTRP7:  0x00000624
> PCHSTRP8:  0x00000000
> PCHSTRP9:  0xffffffff
> PCHSTRP10: 0xffffffff
> PCHSTRP11: 0xffffffff
> PCHSTRP12: 0xffffffff
> PCHSTRP13: 0xffffffff
> PCHSTRP14: 0xffffffff
> PCHSTRP15: 0xffffffff
> PCHSTRP16: 0xffffffff
> PCHSTRP17: 0xffffffff
>
> Found Master Section
> FLMSTR1:   0x1f1f0000 (Host CPU/BIOS)
>   Platform Data Region Write Access: enabled
>   GbE Region Write Access:           enabled
>   Intel ME Region Write Access:      enabled
>   Host CPU/BIOS Region Write Access: enabled
>   Flash Descriptor Write Access:     enabled
>   Platform Data Region Read Access:  enabled
>   GbE Region Read Access:            enabled
>   Intel ME Region Read Access:       enabled
>   Host CPU/BIOS Region Read Access:  enabled
>   Flash Descriptor Read Access:      enabled
>   Requester ID:                      0x0000
>
> FLMSTR2:   0x08090118 (Intel ME)
>   Platform Data Region Write Access: disabled
>   GbE Region Write Access:           enabled
>   Intel ME Region Write Access:      disabled
>   Host CPU/BIOS Region Write Access: disabled
>   Flash Descriptor Write Access:     disabled
>   Platform Data Region Read Access:  disabled
>   GbE Region Read Access:            enabled
>   Intel ME Region Read Access:       disabled
>   Host CPU/BIOS Region Read Access:  disabled
>   Flash Descriptor Read Access:      enabled
>   Requester ID:                      0x0118
>
> FLMSTR3:   0xffffffff (GbE)
>   Platform Data Region Write Access: enabled
>   GbE Region Write Access:           enabled
>   Intel ME Region Write Access:      enabled
>   Host CPU/BIOS Region Write Access: enabled
>   Flash Descriptor Write Access:     enabled
>   Platform Data Region Read Access:  enabled
>   GbE Region Read Access:            enabled
>   Intel ME Region Read Access:       enabled
>   Host CPU/BIOS Region Read Access:  enabled
>   Flash Descriptor Read Access:      enabled
>   Requester ID:                      0xffff
>
> Found Processor Strap Section
> ????:      0xffffffff
> ????:      0xffffffff
> ????:      0xffffffff
> ????:      0xffffffff
>
>
> *Is this descrptor.bin  enought to support GbE interface?*
>
> Thank you.
>
>
>
> 2016-06-18 =EC=98=A4=EC=A0=84 7:07=EC=97=90 Alexander Couzens =EC=9D=B4(=
=EA=B0=80) =EC=93=B4 =EA=B8=80:
>
> Hi,
> use
>  ifdtool -x <file>
>
> best,
> lynxis
>
>
>
> --
> coreboot mailing list: coreboot@coreboot.org
> https://www.coreboot.org/mailman/listinfo/coreboot
>

[Attachment #5 (text/html)]

<div dir="ltr">Looking at the logs you&#39;ve got, the final bios only have \
BIOS/coreboot and descriptor.bin, the GbE/ME areas are not used, I think as long as \
your enable the descripor.bin, it should be good enough.<div><br></div><div><span \
style="font-size:12.8px">   poplinux@raw rangeley $ &gt; ./tools/ifdtool -x \
./oem_dumped.bin</span><br style="font-size:12.8px"><span style="font-size:12.8px">   \
File ./oem_dumped.bin is 8388608 bytes</span><br style="font-size:12.8px"><span \
style="font-size:12.8px">      Flash Region 0 (Flash Descriptor): 00000000 - 0000ffff \
</span><br style="font-size:12.8px"><span style="font-size:12.8px">      Flash Region \
1 (BIOS): 00010000 - 007fffff  </span><br style="font-size:12.8px"><span class="im" \
style="font-size:12.8px">      Flash Region 2 (Intel ME): 00fff000 - 00000fff<b>  \
(unused)</b><br></span><span class="im" style="font-size:12.8px">      Flash Region 3 \
(GbE): 00fff000 - 00000fff  <b>(unused)</b><br></span><span class="im" \
style="font-size:12.8px">      Flash Region 4 (Platform Data): 00fff000 - 00000fff<b> \
(unused)</b></span><br></div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Mon, Jun 20, 2016 at 3:16 AM, 김 석 <span dir="ltr">&lt;<a \
href="mailto:poplinux0@gmail.com" target="_blank">poplinux0@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Dear Sir. <br>
      <br>
      Thank&#39;s your advise. It is very useful to me. <br>
      <br>
      My work log is see below.<br>
      <br>
         poplinux@raw rangeley $ &gt; ./tools/ifdtool -x ./oem_dumped.bin<br>
         File ./oem_dumped.bin is 8388608 bytes<br>
            Flash Region 0 (Flash Descriptor): 00000000 - 0000ffff <br>
            Flash Region 1 (BIOS): 00010000 - 007fffff <br><span class="">
            Flash Region 2 (Intel ME): 00fff000 - 00000fff<b> \
                (unused)</b><br></span><span class="">
            Flash Region 3 (GbE): 00fff000 - 00000fff <b>(unused)</b><br></span><span \
class="">  Flash Region 4 (Platform Data): 00fff000 - 00000fff<b>
        (unused)</b><br>
      <br>
      </span><font color="#ff0000"><b>The Flash Region 2~3 is (unused). Is it
          corrent?</b></font><br>
      <br>
      <br>
      And descriptor.bin&#39;s content is see below.<br>
      <br>
      poplinux@raw rangeley $ &gt; ./tools/ifdtool -d ./descriptor.bin <br>
      File ./descriptor.bin is 65536 bytes<br>
      FD signature Offset 0x10<br>
      FD signature Offset 0x10<span class=""><br>
      FLMAP0:       0x01040003<br>
         NR:           1<br>
         FRBA:       0x40<br>
         NC:           1<br>
         FCBA:       0x30<br>
      FLMAP1:       0x09100206<br>
         ISL:         0x09<br>
         FPSBA:     0x100<br>
         NM:           2<br>
         FMBA:       0x60<br>
      FLMAP2:       0x00210020<br>
         PSL:         0x2100<br>
         FMSBA:     0x200<br></span>
      FLUMAP1:     0x000002e0<br>
         Intel ME VSCC Table Length (VTL):               2<span class=""><br>
         Intel ME VSCC Table Base Address (VTBA): 0x000e00<br>
      <br>
      ME VSCC table:<br>
         JID0:   0x001740ef<br>
             SPI Componend Device ID 1:                   0x17<br>
             SPI Componend Device ID 0:                   0x40<br>
             SPI Componend Vendor ID:                       0xef<br>
         VSCC0: 0x20052005<br>
             Lower Erase Opcode:                                 0x20<br>
             Lower Write Enable on Write Status: 0x50<br>
             Lower Write Status Required:               No<br>
             Lower Write Granularity:                       64 bytes<br>
             Lower Block / Sector Erase Size:       4KB<br>
             Upper Erase Opcode:                                 0x20<br>
             Upper Write Enable on Write Status: 0x50<br>
             Upper Write Status Required:               No<br>
             Upper Write Granularity:                       64 bytes<br>
             Upper Block / Sector Erase Size:       4KB<br>
      <br></span>
      OEM Section:<br>
      00: 31 31 35 32 31 35 30 39 32 30 00 00 00 00 00 00<br>
      10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
      20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
      30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
      <br>
      Found Region Section<br>
      FLREG0:       0x000f0000<br>
         Flash Region 0 (Flash Descriptor): 00000000 - 0000ffff <br>
      FLREG1:       0x07ff0010<br>
         Flash Region 1 (BIOS): 00010000 - 007fffff <br><span class="">
      FLREG2:       0x00000fff<br>
         Flash Region 2 (Intel ME): 00fff000 - 00000fff (unused)<br>
      FLREG3:       0x00000fff<br>
         Flash Region 3 (GbE): 00fff000 - 00000fff (unused)<br>
      FLREG4:       0x00000fff<br>
         Flash Region 4 (Platform Data): 00fff000 - 00000fff (unused)<br>
      <br>
      Found Component Section<br></span>
      FLCOMP         0x09200024<span class=""><br>
         Dual Output Fast Read Support:             not supported<br>
         Read ID/Read Status Clock Frequency: 33MHz<br>
         Write/Erase Clock Frequency:                 33MHz<br>
         Fast Read Clock Frequency:                     33MHz<br></span>
         Fast Read Support:                                     not supported<span \
class=""><br>  Read Clock Frequency:                               20MHz<br>
         Component 2 Density:                                 8MB<br>
         Component 1 Density:                                 8MB<br>
      FLILL           0x00000000<br>
         Invalid Instruction 3: 0x00<br>
         Invalid Instruction 2: 0x00<br>
         Invalid Instruction 1: 0x00<br>
         Invalid Instruction 0: 0x00<br>
      FLPB             0x00000000<br>
         Flash Partition Boundary Address: 0x000000<br>
      <br>
      Found PCH Strap Section<br></span>
      PCHSTRP0:   0x00080002<span class=""><br>
      PCHSTRP1:   0x00000000<br>
      PCHSTRP2:   0x00000000<br>
      PCHSTRP3:   0x00000003<br>
      PCHSTRP4:   0x0000007f<br>
      PCHSTRP5:   0x007fffc0<br>
      PCHSTRP6:   0x0001c7c0<br>
      PCHSTRP7:   0x00000624<br>
      PCHSTRP8:   0x00000000<br>
      PCHSTRP9:   0xffffffff<br>
      PCHSTRP10: 0xffffffff<br>
      PCHSTRP11: 0xffffffff<br>
      PCHSTRP12: 0xffffffff<br>
      PCHSTRP13: 0xffffffff<br>
      PCHSTRP14: 0xffffffff<br>
      PCHSTRP15: 0xffffffff<br>
      PCHSTRP16: 0xffffffff<br>
      PCHSTRP17: 0xffffffff<br>
      <br>
      Found Master Section<br></span>
      FLMSTR1:     0x1f1f0000 (Host CPU/BIOS)<span class=""><br>
         Platform Data Region Write Access: enabled<br>
         GbE Region Write Access:                     enabled<br>
         Intel ME Region Write Access:           enabled<br>
         Host CPU/BIOS Region Write Access: enabled<br>
         Flash Descriptor Write Access:         enabled<br>
         Platform Data Region Read Access:   enabled<br>
         GbE Region Read Access:                       enabled<br>
         Intel ME Region Read Access:             enabled<br>
         Host CPU/BIOS Region Read Access:   enabled<br>
         Flash Descriptor Read Access:           enabled<br>
         Requester ID:                                           0x0000<br>
      <br></span>
      FLMSTR2:     0x08090118 (Intel ME)<br>
         Platform Data Region Write Access: disabled<span class=""><br>
         GbE Region Write Access:                     enabled<br></span>
         Intel ME Region Write Access:           disabled<br>
         Host CPU/BIOS Region Write Access: disabled<br>
         Flash Descriptor Write Access:         disabled<br>
         Platform Data Region Read Access:   disabled<span class=""><br>
         GbE Region Read Access:                       enabled<br></span>
         Intel ME Region Read Access:             disabled<br>
         Host CPU/BIOS Region Read Access:   disabled<span class=""><br>
         Flash Descriptor Read Access:           enabled<br>
         Requester ID:                                           0x0118<br>
      <br>
      FLMSTR3:     0xffffffff (GbE)<br>
         Platform Data Region Write Access: enabled<br>
         GbE Region Write Access:                     enabled<br>
         Intel ME Region Write Access:           enabled<br>
         Host CPU/BIOS Region Write Access: enabled<br>
         Flash Descriptor Write Access:         enabled<br>
         Platform Data Region Read Access:   enabled<br>
         GbE Region Read Access:                       enabled<br>
         Intel ME Region Read Access:             enabled<br>
         Host CPU/BIOS Region Read Access:   enabled<br>
         Flash Descriptor Read Access:           enabled<br>
         Requester ID:                                           0xffff<br>
      <br>
      Found Processor Strap Section<br>
      ????:           0xffffffff<br>
      ????:           0xffffffff<br>
      ????:           0xffffffff<br>
      ????:           0xffffffff<br>
      <br>
      <br>
      </span><font color="#ff0000"><b>Is this descrptor.bin   enought to support
          GbE interface?</b></font><br>
      <br>
      Thank you.<br>
      <br>
      <br>
      <br>
      2016-06-18 오  7:07에 Alexander Couzens 이(가) 쓴 글:<br>
    </div><span class="">
    <blockquote type="cite">
      <pre>Hi, 
use
 ifdtool -x &lt;file&gt;

best,
lynxis
</pre>
    </blockquote>
    <p><br>
    </p>
  </span></div>

<br>--<br>
coreboot mailing list: <a \
href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br> <a \
href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" \
target="_blank">https://www.coreboot.org/mailman/listinfo/coreboot</a><br></blockquote></div><br></div>




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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic