Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lenovo.com (client-ip=67.219.250.2; helo=mail1.bemta24.messagelabs.com; envelope-from=pengms1@lenovo.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=lenovo.com Received: from mail1.bemta24.messagelabs.com (mail1.bemta24.messagelabs.com [67.219.250.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45p0Bw0B48zDqRX for ; Tue, 16 Jul 2019 22:31:50 +1000 (AEST) Received: from [67.219.251.54] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-5.bemta.az-c.us-west-2.aws.symcld.net id 68/B7-14524-0B3CD2D5; Tue, 16 Jul 2019 12:31:44 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJKsWRWlGSWpSXmKPExsWS8eIhr+6Gw7q xBlOfMFmcannBYrH3wEYWByaPBZtKPc7PWMgYwBTFmpmXlF+RwJrxpbmPveDtMcaKLw09rA2M jTsZuxi5OIQE2pkk7l+azw7hrGWUaOmbzAzhvGKUWN+4iLWLkRPI2cMoMXWWAojNJqAlsfD/H iYQW0RAV6Lt4kswm1kgQmL79W4gm4NDWMBN4tbCFIgSb4mtD1exQNh6Ej8P72IEsVkEVCW+P1 8EFucVsJRY3L4KbBWjgKzEtEf3oUaKS8ydNgssLiEgILFkz3lmCFtU4uXjf1BxBYkZb7dA1Sd IPF5wjBVipqDEyZlPWCYwCs9CMmoWkrJZSMog4joSC3Z/YoOwtSWWLXzNDGOfOfCYCVl8ASP7 KkaLpKLM9IyS3MTMHF1DAwNdQ0MjXUNjc11DIwu9xCrdZL3SYt3y1OISXSO9xPJiveLK3OScF L281JJNjMD4SynobNjB+OrIa71DjJIcTEqivMd26MYK8SXlp1RmJBZnxBeV5qQWH2KU4eBQku BdcAgoJ1iUmp5akZaZA0wFMGkJDh4lEd67B4HSvMUFibnFmekQqVOMyRwTXs5dxMyx8+g8IHk QTF5ZtQRIfgST38Hkm7Ug8i2YbLt3F0i2g0ghlrz8vFQpcd4ukM0CIKMzSvPgFsNS4CVGWSlh XkYGBgYhnoLUotzMElT5V4ziHIxKwrw/QQ7kycwrgbsPmL6AvhbhlXfRAjm9JBEhJdXAtPN23 CPXOyrznv6fcuab059H4gIPuau4JMN29HpHFmyOMggTNdtmvrZXVHuuqCXPZx72NwIqK7d6v8 js9Z7TfHJBZnxgjZ3qYU6LZ5Y5j9a41E28Y3aFxcPZ8HBFs2S2QdwfrSCHjqltN+9UB0V7xic V9k3YqalsGFeksKlTLHHiLqYal4gMSYFCX/f+ZbrKlkqzL3oUKM20rdPx33vGYGli/L49l/Zw LW2tEJpsUyK7an0zZ+nZ5/0T7X8LKlpbXCmavsKle4PB8swIUReRg0fYJ86x5ZSPfJEjULxA+ /Dma8nNy1WizJaxGVcamnwLn2iu+0jo+s/ypfe2HXiwMbrr37NpHo633qrcaFJiKc5INNRiLi pOBACLHTe//AMAAA== X-Env-Sender: pengms1@lenovo.com X-Msg-Ref: server-20.tower-366.messagelabs.com!1563280302!1459191!1 X-Originating-IP: [104.232.225.13] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.31.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24195 invoked from network); 16 Jul 2019 12:31:43 -0000 Received: from unknown (HELO aesmtp.lenovo.com) (104.232.225.13) by server-20.tower-366.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 16 Jul 2019 12:31:43 -0000 Received: from CNMAILCH01.lenovo.com (unknown [10.96.97.129]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by Forcepoint Email with ESMTPS id 360651B32F2A26EEBD9C; Tue, 16 Jul 2019 08:31:40 -0400 (EDT) Received: from pekwpmail09.lenovo.com (10.96.81.78) by CNMAILCH01.lenovo.com (10.96.97.129) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 16 Jul 2019 20:31:38 +0800 Received: from pekwpmail05.lenovo.com (10.96.81.230) by pekwpmail09.lenovo.com (10.96.81.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Tue, 16 Jul 2019 20:31:38 +0800 Received: from pekwpmail05.lenovo.com ([fe80::c91f:415c:90bb:3ddf]) by pekwpmail05.lenovo.com ([fe80::c91f:415c:90bb:3ddf%7]) with mapi id 15.01.1591.008; Tue, 16 Jul 2019 20:31:38 +0800 From: Andrew MS1 Peng To: "venture@google.com" CC: "openbmc@lists.ozlabs.org" , Duke KH Du Subject: configure error and the image content seems to be incorrect Thread-Topic: configure error and the image content seems to be incorrect Thread-Index: AdU7wED6lXzOnHWTS/+oPAAS8wHIOA== Date: Tue, 16 Jul 2019 12:31:38 +0000 Message-ID: <55738808da484183a4fb1a59f7097e9c@lenovo.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.96.12.251] Content-Type: multipart/alternative; boundary="_000_55738808da484183a4fb1a59f7097e9clenovocom_" MIME-Version: 1.0 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2019 12:31:53 -0000 --_000_55738808da484183a4fb1a59f7097e9clenovocom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Patrick, 1. I downloaded the latest version of phosphor-ipmi-flash to build hos= t tool with the SDK environment you provide, but encounter configure error = as below, could you help to take a look at it? Source code hash id Compile Status Error message b90cacdd0c1ab8ea7576d4ca9f20aa5828a84e42 configure successful fd182168d9d1c852b1047b9eccea56812b614586 1999eef0e6ad3ab4ad6fcf58cce47f352ca5e137 fa06a5f0056e91bfada390c4007fbd3472d75a56 7c2a00e02f1f0169b3e80ef1715002cefc6fa0d0 c9792e75361c86da7f674976eacd03c761021d2f configure failed checking whether C++ compiler accepts -lgtest... yes checking whether C++ compiler accepts -pthread... (cached) yes checking for main in -lgtest... yes checking whether C++ compiler accepts -lgmock... yes checking whether C++ compiler accepts -pthread... (cached) yes checking for main in -lgmock... yes checking for valgrind... no checking whether to build with code coverage support... no configure: Enabling OE-SDK at /home/pengms1/SDK/openbmc-sdk/2.8.0/sysroots/= core2-64-openbmc-linux configure: error: conditional "HAVE_SYSTEMD" was never defined. Usually this means the macro was only invoked conditionally. 2. The host tool compiled with phosphor-ipmi-flash hash id b90cacdd0c1= ab8ea7576d4ca9f20aa5828a84e42 and BMC flash library compiled with phosphor-= ipmi-flash hash id c9792e75361c86da7f674976eacd03c761021d2f, the BMC image = can transfer from host side to BMC side via LPC bridge. The image size is c= orrect, but the image content seems to be incorrect as below, could you giv= e us some clues to solve it if this is an issue? Image of host side Image of BMC side pengms1@hsbmc:/flash_tool$ hexdump -n 64 ./630.mtd 0000000 00be ea00 f014 e59f f014 e59f f014 e59f 0000010 f014 e59f f014 e59f f014 e59f f014 e59f 0000020 0060 0000 00c0 0000 0120 0000 0180 0000 0000030 01e0 0000 0240 0000 02a0 0000 beef dead root@hr630:~# hexdump -n 64 /run/initramfs/bmc-image 0000000 abc4 ef4e 11f2 b128 2538 fd9c 9f7a 2e00 0000010 78c4 af6e 01f2 a92a 7438 759c 8e76 2e00 0000020 f397 05f0 84e4 6546 0ac6 b6d0 ef19 cb80 0000030 e9d7 82f0 c4e4 75dc 1bc6 a295 7319 49c4 DTS setting: flash_memory: region@98000000 { no-map; reg =3D <0x98000000 0x00100000>; /* 1M */ }; BMC configuration setting: EXTRA_OECONF +=3D " --enable-reboot-update --enable-static-layout --enable= -aspeed-lpc MAPPED_ADDRESS=3D0x98000000 --enable-reboot-update" Host tool setting: ./burn_my_bmc --command update --interface ipmilpc --image ./630.mtd --sig = ./sig.txt --type static --address 2550136832 --length 65536 Thanks, Andrew --_000_55738808da484183a4fb1a59f7097e9clenovocom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Patrick,

1.     = ; I downloaded the latest version o= f phosphor-ipmi-flash to build host tool with the SDK environment you provi= de, but encounter configure error as below, could you help to take a look at it?

Source code hash id

Compile Status

Error message

b90cacdd0c1ab8ea7576d4ca9f20aa5828a84e42=

configure successful

fd182168d9d1c852b1047b9eccea56812b614586
1999eef0e6ad3ab4ad6fcf58cce47f352ca5e137=
fa06a5f0056e91bfada390c4007fbd3472d75a56
7c2a00e02f1f0169b3e80ef1715002cefc6fa0d0
c9792e75361c86da7f674976eacd03c761021d2f

configure failed

c= hecking whether C++ compiler accepts -lgtest... yes
checking whether C++ compiler accepts -pthread... (cached) yes
checking for main in -lgtest... yes
checking whether C++ compiler accepts -lgmock... yes
checking whether C++ compiler accepts -pthread... (cached) yes
checking for main in -lgmock... yes
checking for valgrind... no
checking whether to build with code coverage support... no
configure: Enabling OE-SDK at /home/pengms1/SDK/openbmc-sdk/2.8.0/sysroots/= core2-64-openbmc-linux
configure: error: conditional "HAVE_SYSTEMD&= quot; was never defined.
Usually this means the macro was only invoked conditionally.

2.&n= bsp;     The ho= st tool compiled with phosphor-ipmi-flash hash id b90cacdd0c1ab8ea7576d4ca9f20aa5828a84e42 and BMC flash li= brary compiled with phosphor-ipmi-flash hash id c9792e75361c86da7f674976eacd03c761021d2f= , the BMC image can transfer from host side to BMC side via LPC bridge. The= image size is correct, but the image content seems to be incorrect as below, could you give us some clues to solve it if this is an issue?

Image of host side<= /p>

Image of BMC side

pengms1@hsbmc:/flash_tool$ hexdump -n= 64 ./630.mtd

0000000 00be ea00 f014 e59f f014 e59f= f014 e59f

0000010 f014 e59f f014 e59f f014 e59f= f014 e59f

0000020 0060 0000 00c0 0000 0120 0000= 0180 0000

0000030 01e0 0000 0240 0000 02a0 0000= beef dead

root@hr630:~# hexdump -n 64 /run/init= ramfs/bmc-image

0000000 abc4 ef4e 11f2 b128 2538 fd9c= 9f7a 2e00

0000010 78c4 af6e 01f2 a92a 7438 759c= 8e76 2e00

0000020 f397 05f0 84e4 6546 0ac6 b6d0= ef19 cb80

0000030 e9d7 82f0 c4e4 75dc 1bc6 a295= 7319 49c4

DTS setting:
     =         flash_memory: region@98000000 {<= br>              &n= bsp;      no-map;
            &nb= sp;       reg =3D <0x98000000 0x00100000&g= t;; /* 1M */
             };=

BMC configuration setting:
EXTRA_OECONF +=3D " --enable-reboot-update  --enable-static-l= ayout --enable-aspeed-lpc MAPPED_ADDRESS=3D0x98000000 --enable-reboot-updat= e"

Host tool setting:
./burn_my_bmc --command update --interface ipmilpc --image ./630.mtd --sig = ./sig.txt --type static --address 2550136832 --length 65536

Thanks,
Andrew

--_000_55738808da484183a4fb1a59f7097e9clenovocom_--