Re: [coreboot] Coreboot for Apollolake

2018-09-20 Thread Nico Huber
Hi Antony,

On 20.09.2018 09:28, Antony AbeePrakash X V wrote:
> Thanks for the response , we extracted the flash descriptor from the
> BIOS Image using the ifdtool as below

if you already have a working firmware combination for your board (I
assume the BIOS Image you mention is one), I can only advice against
tinkering with any flash region but the BIOS region. If you have wor-
king IFD/ME regions in flash, better treat them as read-only (if you
use flashrom, use a layout or --ifd and only include the BIOS region).

It's ok to ignore the Firmware Descriptor warning, as long as you only
flash the BIOS region. Writing the whole flash at once on an Intel
platform is rather error-prone.

> CBFSLAYOUT  coreboot.rom
> 
> This is a legacy image composed entirely of a single CBFS.

It's hard to tell where things went wrong. At some step above the FMAP
in the coreboot image must have been corrupted. One way to figure out
would be to run `cbfstool  layout` on each intermediate file.
You can see all the steps and file names if you run make with V=1. Yet
again, I can only advice to skip the descriptor integration and flash
regions individually instead.

Nico

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


Re: [coreboot] Coreboot for Apollolake

2018-09-20 Thread Antony AbeePrakash X V
Hi All,

Thanks for the response , we extracted the flash descriptor from the BIOS Image 
using the ifdtool as below

./ifdtool -x ~/.bin

Peculiar firmware descriptor, assuming Ibex Peak compatibility.
  Flash Region 0 (Flash Descriptor):  - 0fff
  Flash Region 1 (BIOS): 1000 - 00efefff
  Flash Region 2 (Intel ME): 07fff000 - 0fff (unused)
 Flash Region 3 
(GbE): 07fff000 - 0fff (unused)
  Flash Region 
4 (Platform Data): 07fff000 - 0fff (unused)
  Flash Region 
5 (Reserved): 00eff000 - 00ffefff
  Flash Region 
6 (Reserved): 07fff000 - 0fff (unused)
  Flash Region 
7 (Reserved): 07fff000 - 0fff (unused)
  Flash Region 
8 (EC): 07fff000 - 0fff (unused)

when we compile the core boot with the  Flash Descriptor , we are getting the 
below error

CBFS   fallback/postcar
CBFS   fallback/dsdt.aml
CBFS   fallback/payload
DD Adding Intel Firmware Descriptor
IFDTOOLUnlocking Management Engine
Platform is: aplk
File build/coreboot.pre is 2097152 bytes
Peculiar firmware descriptor, assuming Ibex Peak compatibility.
Writing new image to build/coreboot.pre.new
CBFS   coreboot.rom
CBFSLAYOUT  coreboot.rom

This is a legacy image composed entirely of a single CBFS.
make: *** [build/coreboot.rom] Error 1
make: *** Deleting file `build/coreboot.rom'


Could you please point out where it went wrong , have we missed something

Thanks & Regards,
Antony
From: David Hendricks [mailto:david.hendri...@gmail.com]
Sent: Tuesday, September 18, 2018 8:48 PM
To: Antony AbeePrakash X V 
Cc: Coreboot 
Subject: Re: [coreboot] Coreboot for Apollolake

Hi Antony,
There are a few components which compose a complete firmware image for Intel 
platforms: coreboot, FSP, microcode, management engine blob, and flash 
descriptor are the most common ones.

For the flash descriptor, refer to the Apollo Lake SoC SPI and signed Master 
Image Profile (SMIP) Programming Guide, docid 559702. Chapter 4 explains the 
flash descriptor for Apollo Lake in detail.

Once you have created a flash descriptor, you can add it to the firmware image 
using coreboot's config system (under "Chipset").

On Tue, Sep 18, 2018 at 1:43 AM Antony AbeePrakash X V 
mailto:antonyabee.prakas...@lnttechservices.com>>
 wrote:
Hi,

We would like to build coreboot image for Apollo lake platform. We are using

  *   Coreboot-4.8.1
  *   Apollo lake Intel FSP_2_0

We have built the coreboot source and created coreboot.rom image with the below 
warning message:
** WARNING **
coreboot will be built without an Intel Firmware Descriptor.
Never write a complete coreboot.rom without an IFD to your
board's flash chip! You can use flashrom's IFD or layout
parameters to flash only to the BIOS region.

Is the coreboot.rom image is enough to flash ? Could you please provide 
feedback on this ?

Thanks & Regards,
Antony


L Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.
--
coreboot mailing list: coreboot@coreboot.org<mailto:coreboot@coreboot.org>
https://mail.coreboot.org/mailman/listinfo/coreboot

L Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.
-- 
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot

Re: [coreboot] Coreboot for Apollolake

2018-09-18 Thread Angel Pons
Resending because I forgot to mail it to the list:

Hello Antony,

Firstly, the quoted message matches the one added by CB:28382 [1],
which makes me think you are not using 4.8.1, but master instead. This
is not the primary issue, though it is worth noting.

With regard to the message you mentioned, its purpose is to warn
unsuspecting people against flashing a *complete* coreboot.rom when it
lacks an IFD (Intel Flash Descriptor). AFAIK, most modern systems will
fail to function properly without it. That does not mean the image is
unbootable, but it is not usable on its own.

If you want to flash it to a flash chip, your flasher software must be
able to write only to the BIOS region (defined by the IFD). flashrom
[2] is capable of doing so, with the IFD or layout options. The former
uses the existing flash chip contents to determine the region to
flash.

Another option is to extract the IFD and other regions from the flash
chip, add them to coreboot (either using coreboot's Kconfig options or
manually splicing the files) and flash the resulting, complete image.
I do not recommend this unless absolutely necessary (it rewrites the
whole flash chip instead of the desired region, which is more
error-prone).

Best regards,

Angel Pons Pons

[1]: https://review.coreboot.org/c/coreboot/+/28382
[2]: https://www.flashrom.org/Flashrom (I do not know about Chromium
flashrom's capabilities)

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


Re: [coreboot] Coreboot for Apollolake

2018-09-18 Thread David Hendricks
Hi Antony,
There are a few components which compose a complete firmware image for
Intel platforms: coreboot, FSP, microcode, management engine blob, and
flash descriptor are the most common ones.

For the flash descriptor, refer to the Apollo Lake SoC SPI and signed
Master Image Profile (SMIP) Programming Guide, docid 559702. Chapter 4
explains the flash descriptor for Apollo Lake in detail.

Once you have created a flash descriptor, you can add it to the firmware
image using coreboot's config system (under "Chipset").

On Tue, Sep 18, 2018 at 1:43 AM Antony AbeePrakash X V <
antonyabee.prakas...@lnttechservices.com> wrote:

> Hi,
>
>
>
> We would like to build coreboot image for Apollo lake platform. We are
> using
>
>- Coreboot-4.8.1
>- Apollo lake Intel FSP_2_0
>
>
>
> We have built the coreboot source and created coreboot.rom image with the
> below warning message:
>
> *** WARNING ***
>
> *coreboot will be built without an Intel Firmware Descriptor.*
>
> *Never write a complete coreboot.rom without an IFD to your*
>
> *board's flash chip! You can use flashrom's IFD or layout*
>
> *parameters to flash only to the BIOS region.*
>
>
>
> Is the coreboot.rom image is enough to flash ? Could you please provide
> feedback on this ?
>
>
>
> Thanks & Regards,
>
> Antony
>
>
>
> *L Technology Services Ltd*
>
> www.LntTechservices.com 
>
> This Email may contain confidential or privileged information for the
> intended recipient (s). If you are not the intended recipient, please do
> not use or disseminate the information, notify the sender and delete it
> from your system.
> --
> coreboot mailing list: coreboot@coreboot.org
> https://mail.coreboot.org/mailman/listinfo/coreboot
-- 
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot

[coreboot] Coreboot for Apollolake

2018-09-18 Thread Antony AbeePrakash X V
Hi,

We would like to build coreboot image for Apollo lake platform. We are using

  *   Coreboot-4.8.1
  *   Apollo lake Intel FSP_2_0

We have built the coreboot source and created coreboot.rom image with the below 
warning message:
** WARNING **
coreboot will be built without an Intel Firmware Descriptor.
Never write a complete coreboot.rom without an IFD to your
board's flash chip! You can use flashrom's IFD or layout
parameters to flash only to the BIOS region.

Is the coreboot.rom image is enough to flash ? Could you please provide 
feedback on this ?

Thanks & Regards,
Antony


L Technology Services Ltd

www.LntTechservices.com

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.
-- 
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot