DokuWiki

It's better when it's simple

User Tools

Site Tools


wiki:faq

This is an old revision of the document!


How to make CBIOS flash image INSTRUCTIONS

1. BIOS COMPILATION

1) Logon to your account on simpsons.3pardata.com or flanders.3pardata.com

2) Go to your workspace by cd to /export/ws/bart/<YourUserId> or /export/ws/lisa/<YourUserId>

<YourUserId> is the name of directory created by user. e-g: yaseen@flanders:/export/ws/bart/yaseen

3) Get the bios_manchester from git repository as below git clone git@repomaster:bios_manchester

4) Change directory to /export/ws/bart/<YourUserId>/bios_manchester/

5) Before compilation of BIOS make sure to do 'buildenv 3.1.1' as <YourUserId>@flanders:/export/ws/bart/<YourUserId>/bios_manchester$ buildenv 3.1.1 Using /chroots/lenny64 for 3.1.1 build.

6) Compile BIOS:- flanders:/home/usr/gchen/bios_manchester 54% make Building src… Creating…/objs/bios_min.bin …… Running flexelint Running cstyle Building cmd… Creating ../cobjs/harrier2_pcie_phy.o Creating ../cobjs/lwhack

This will generate bios_uefi.bin which can be find under as below: /export/ws/bart/<YourUserId>/bios_manchester/objs/bios_uefi.bin

7) Send the above bios_ufei.bin to Ted Brooks (tbrooks@hp.com) from BIOS team to help make the CBIOS image. When you get the BIOS Image from them, you may have to flash it and go straight to the last topic section which is → 5. Flash your new CBIOS image.

OR

8) Follow the instructions below if one wants to make their own CBIOS image instead of going through BIOS team. But the drawback is that one might need to install several other software, get Jenkins access and it might take some time to generate. If one don’t want to go through all those things, then the previous step# 7 is recommended.

2. UEFI COMPILATION USING UDK2010

Get the bios_uefi.bin under <YourUserId>@flanders:/export/ws/bart/<YourUserId>/bios_manchester/objs/bios_uefi.bin

Get the UDK2010 on your windows machine: Clone UDK from udk2010_manchester.git to windows system and Using Tortoise git.

1)	Clone new udk2010 UEFI from the git repository(udk2010_manchester.git) code base, 
First compile the UDK's, UEFI portion on a windows system using VC++. Make sure to install VC++2008.	
2)	From DOS prompt, run edksetup batch file, 
C:\BUILDS\udk2010_manchester>edksetup.bat
3)	On the DOS command prompt, do a make as below, 
C:\BUILDS\udk2010_manchester>make 64
4)	Copy the bios_uefi.bin from <YourUserId>@flanders:/export/ws/bart/<YourUserId>/bios_manchester/objs/bios_uefi.bin

into C:\BUILDS\udk2010_manchester\Build\CBIOS\.

3. COMBINE CBIOS & UEFI IMAGES

1) To Combine the CBIOS and UEFI images and label it using Using Intel FITC version: Make sure to get the BuildSpiImage.bat from the tortoise git. From DOS CMD line run BuildSPiImage.bat.

Using BuildSPiImage which has intel's fit tool to put everything together as below: C:\BUILDS\udk2010_manchester>.\Hp3ParPkg\Scripts\BuildSpiImage.bat ver 15.05.12

The image will be created under Target File: C:\BUILDS\udk2010_manchester\Build\bin\uefi_spi_CHIMERA_15.05.21.bin

2) Copy the combined build file uefi_spi_CHIMERA_15.05.21.bin from C:\BUILDS\udk2010_manchester\Build\bin\uefi_spi_CHIMERA_15.05.21.bin into Linux env. /home/usr/<YourUserId>/CHIMERA

<YourUserId>@flanders:~/CHIMERA$ ls -lat total 17681 drwxr-xr-x+ 6 <YourUserId> eng 13 2015-05-22 11:29 .. -rwxr–r–+ 1 <YourUserId> eng 16777472 2015-05-21 14:11 May12_uefi_spi_CHIMERA_15.05.21.bin

4. SIGN THE IMAGE

Signing the BIOS: 1) Get access for the Jenkins from Brian Turner (brian.s.turner@hp.com) from BIOS team and goto this link and logon to Jenkins:

http://covblddeb.3pardata.com:8080/view/BIOS/job/BIOS_Signing_Master/

2) Then click build now (you need to make sure you're logged into Jenkins, or you won't see the 'build now' link) There will be an input box where enter the path to the image as

/home/usr/<YourUserId>/CHIMERA/uefi_spi_CHIMERA_15.05.21.bin

3) Then click the 'Build' button

Started by user <YourUserId>
[EnvInject] - Loading node environment variables.
Building remotely on flanders in workspace         /export/ws/homer/jenkins/workspace/BIOS_Signing_Master
[BIOS_Signing_Master] $ /bin/csh -e /tmp/hudson48720.sh

Waiting for the completion of BIOS_Signing_Slave
BIOS_Signing_Slave #99 completed. Result was SUCCESS
Build step 'Trigger/call builds on other projects' changed build result to SUCCESS
Finished: SUCCESS

4) When this job completes, your signed image can be found here: /share/engineering/software/private/bios_signing/uefi_spi_CHIMERA_15.05.21.signed.bin

3) You're BIOS can be found here: /share/engineering/software/private/bios_signing/uefi_spi_CHIMERA_15.05.21.signed.bin

5. FLASH YOUR NEW CBIOS IMAGE

Flash the new CBIOS after the you have create it or from BIOS team. This is just an example: This is meant for Chimera platform and similar steps can be followed for other platforms. 1) Start with new image from UWhack> prompt. Getting into the UWhack prompt in CBIOS by CTRL+W

2) Power cycle Nemoe with

reset ps

3) Use flash net command to flash the BIOS UWhack>flash net /share/engineering/software/private/bios_signing/uefi_spi_CHIMERA_15.05.21.signed.bin Dhcp4 configuration in progress, this may take a few minutes… Success

DHCP My Address:   192:168:7:167 
DHCP Network Mask: 255:255:252:0 
DHCP Gateway addr: 192:168:4:1 
DHCP DNS Server:   192:168:81:5 
DHCP Host Name:    gnodec271371
DHCP Domain Name:  3pardata.com
TFTP Server:       192:168:4:18 
TFTP: "/share/engineering/software/private/bios_signing/uefi_spi_CHIMERA_15.05.21.signed.bin"

File size 16 MB: […………………………..] Currently in flash memory:

HP SPI Image 15.05.12.  Built by <YourUserId>. 12:14:57 May 12 2015.

About to be written into main flash memory:

HP SPI Image 15.05.21.  Built by <YourUserId>. 11:33:23 May 22 2015.

Flash this image… Are you sure? (Y/N) Yes Disabled FSBC boot watchdog.

UEFI-OpenSSL BIOS signature validation :

  1. Signature Index : 0, Public Key Index : 0
  2. Generate RSA Context ………….. [Pass]
  3. Set RSA Key Components ………… [Pass]
  4. Hash Original Message …………. [Pass]
  5. PKCS#1 Signature Verification ….. [Pass]
  6. Release RSA Context …………… [Pass]

When all status is pass then the newly build BIOS has been flashed successfully

wiki/faq.1438926275.txt.gz · Last modified: 2015-08-07 07:44 by 141.65.129.192

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki