From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F100C433F5 for ; Wed, 15 Sep 2021 08:17:35 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B67E61166 for ; Wed, 15 Sep 2021 08:17:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2B67E61166 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=yadro.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4H8Y3w4Yznz2yQ9 for ; Wed, 15 Sep 2021 18:17:32 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-01 header.b=TEtXcn8g; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=yadro.com (client-ip=89.207.88.252; helo=mta-01.yadro.com; envelope-from=a.kartashev@yadro.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=yadro.com header.i=@yadro.com header.a=rsa-sha256 header.s=mta-01 header.b=TEtXcn8g; dkim-atps=neutral Received: from mta-01.yadro.com (mta-02.yadro.com [89.207.88.252]) (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 4H8Y362fKsz2yHj for ; Wed, 15 Sep 2021 18:16:50 +1000 (AEST) Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id DA99942747; Wed, 15 Sep 2021 08:16:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-transfer-encoding:mime-version:user-agent:content-type :content-type:organization:references:in-reply-to:date:date:from :from:subject:subject:message-id:received:received:received; s= mta-01; t=1631693805; x=1633508206; bh=NT9fBHmj3Q1CKD+8QnlOuZ9Ak CUCXPujpQvvkVZaqS0=; b=TEtXcn8g3WVl+y0BqnpcMSwqND3Bwi6JPOWCPR4vC yyD/CCWrQ/c25u9G/ly/JZ3ZXF/gT0blCZpSns9XUr5EdeEFxNh8BoPhRw46B0AR +jFvrEEbOIwu56mha2fgAkfUkGk1TKb/Qg3DFqf/m+W8u6TiZ/8Fl93hvaFBfGmF 0s= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1uew8zX3oheH; Wed, 15 Sep 2021 11:16:45 +0300 (MSK) Received: from T-EXCH-04.corp.yadro.com (t-exch-04.corp.yadro.com [172.17.100.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 475D8425F3; Wed, 15 Sep 2021 11:16:45 +0300 (MSK) Received: from [10.199.0.6] (10.199.0.6) by T-EXCH-04.corp.yadro.com (172.17.100.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Wed, 15 Sep 2021 11:16:44 +0300 Message-ID: <4bda1bb5f09395003c95c645518f34828105b160.camel@yadro.com> Subject: Re: Read smbios2 file failed From: Andrei Kartashev To: Thang Nguyen , openbmc Date: Wed, 15 Sep 2021 11:16:43 +0300 In-Reply-To: References: <5f94cf85-6ded-3520-8ad2-592fade91e81@amperemail.onmicrosoft.com> <9ab79bcd06ad6b6cf574a8455247a767df8731ac.camel@yadro.com> Organization: YADRO Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-IP: [10.199.0.6] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-04.corp.yadro.com (172.17.100.104) 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: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" I don't know what is format of "dmidecode --dump-bin", but if it just raw dump of smbios then you only need to add mdr header. See answer for the same question here: https://lists.ozlabs.org/pipermail/openbmc/2021-July/026882.html On Wed, 2021-09-15 at 12:41 +0700, Thang Nguyen wrote: > Hi Andrei, > > I see output of "dmidecode --dump-bin" follows SMBIOS specification. > As > the data for smbios-mdr does not follow this, do you know about the > document or any information I can reference to prepare data to send > to > BMC?? > > > Best Regards, > > Thang Q. Nguyen > > On 14/09/2021 15:51, Andrei Kartashev wrote: > > No, it is not same as "dmidecode --dump-bin". > > > > On Tue, 2021-09-14 at 13:46 +0700, Thang Nguyen wrote: > > > On 13/09/2021 23:56, Andrei Kartashev wrote: > > > > You need to somehow deliver smbios data image to BMC. This > > > > means, > > > > your > > > > BIOS should implementat some logic to transfer this data. > > > > For BMC side see example here: > > > > https://github.com/openbmc/intel-ipmi-oem/blob/master/src/smbiosmdrv2handler.cpp > > > Hi Andrei, > > > > > > What is the format of smbios data to transfer to BMC? Is it the > > > same > > > content of "dmidecode --dump-bin" command from Host Linux? or > > > anything > > > special in formatting the content to send? > > > > > > > On Mon, 2021-09-13 at 17:40 +0300, Alexander Raih wrote: > > > > > Hi guys, I am beginnerĀ in openbmc > > > > > I build openbmc with smbios-mdr repository and I have error: > > > > > > > > > > Read data from flash error - Open MDRV2 table file failure > > > > > > > > > > There isntĀ file in /var/lib/smbios/smbios2 > > > > > > > > > > How I can resolve this problem? > > > > > Help me please!!! -- Best regards, Andrei Kartashev