From nobody Fri Dec 19 04:30:05 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1600093625; cv=none; d=zohomail.com; s=zohoarc; b=fKRxZTss5DL0q5kKlKVjJPevx4WRezwt2vGnKtrvehaTwaLdvvE3zidxqqH05MgXz+KWT6MF9ppkOPcWGxYvBxxPntrOhdOViDJmJjgVY/cuMaJsoznhzJ33XTDXUow7GsWwckFrCQeJZmUAG9CqUxC4QJJWrH5TWI5AG9BBWy4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600093625; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TR7g/XOXg0ArMBsKi4z4nvRcU8XcdUFb0nODVD4YAB4=; b=GnerZKXscIQJxW8febWq3NB2iE6MhMCMKjTzmDL+bFA9qkMcHZPYqi5bcpyE+cE2gZKGTQMRSdVkHsZrkHqaARheg9+R+iJBkAVKJj2W/vxs6L/NH5qLR7jesXhvwd9tYV0j46/L4A1TxMEYMeBNTe0wbzJOh4PCEYFxmGSXHOI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1600093625437978.606969366835; Mon, 14 Sep 2020 07:27:05 -0700 (PDT) Received: from localhost ([::1]:56990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHpRf-0003Ya-9I for importer@patchew.org; Mon, 14 Sep 2020 10:27:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHp8U-00032k-IF for qemu-devel@nongnu.org; Mon, 14 Sep 2020 10:07:14 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:47058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHp8S-0007cN-FK for qemu-devel@nongnu.org; Mon, 14 Sep 2020 10:07:14 -0400 Received: by mail-wr1-x42b.google.com with SMTP id o5so18849394wrn.13 for ; Mon, 14 Sep 2020 07:07:12 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id x16sm20834041wrq.62.2020.09.14.07.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 07:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=TR7g/XOXg0ArMBsKi4z4nvRcU8XcdUFb0nODVD4YAB4=; b=ZwDEg4+hNTjAifVjO7eYSDq1yDJLrkoWo1AtrHgD9am9baWQizQXw7awgF49y8ByOk krltMt4lcH7UzGFVcBWORBYCfq0Ru4hfuCQ94VrrKbHMXlevDoRuzbMRuGZcHzCVvyOT CcckQBuwepmN8dEkneJnOwL8JU/k536QpASufLhdU2rrOTomvhL+puC8hYgH9GWtunAi 24VjlQjykn/j7aSagoIw87unPK48IAo/vFL+XLDshzMpx3AVgzmqlC9Lctcka6zZwhBi WWgyN2+e+4d4rYcgqk2nWrfZPlGiduiIDkael0IPmBN6zbUYnpRyLspyqajWAbKc7OOU /B1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TR7g/XOXg0ArMBsKi4z4nvRcU8XcdUFb0nODVD4YAB4=; b=t/jc+PqliF9O/Pk9qZctDqUiQ7kGI2A0KlNOoR55WPAgfktkvWgfr/aCCyY9Ayo6KW kLZ8pd2WUn+rtDuuoahNXJSqw2Sl8HXC2OBV9ynqQLniM70Q3Wf/loneG0VaEasbgyR0 28rV/vPjIGAKSpdZ3K75OYfse4xnrOwjcfeMKI2EDEChleWXdn5IHKUv0JOqdTF9XlVl H6NYUhrImr2lBtX7a5aW4kYSstzihqOsf6EOQ0eCK0qpRi0KjTmi0Rvc64zB4vyH/Nzr iQ1yi0xfO7J2GVcmc74L95qhBE/KV9WAXN8NfjIfqM++ZJ+owULE5p1ZvY5mzT0NGt2q lEkg== X-Gm-Message-State: AOAM531lARjId+fP/USe9Wj3CGR+mCQ0ePhPAJ/pAEYNPsYMcB1yROQO 57M8INCrNa1hsnP3EEGCkiSYyRj0MJaeYILG X-Google-Smtp-Source: ABdhPJwsufMMBXBAG1oBEg2CV5wghODLlqaearNB6Y4JkDQaiaVT0Hs91fjgTb06t1tRuIJpJ3iogw== X-Received: by 2002:adf:efc9:: with SMTP id i9mr16807472wrp.187.1600092430743; Mon, 14 Sep 2020 07:07:10 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 24/36] roms: Add virtual Boot ROM for NPCM7xx SoCs Date: Mon, 14 Sep 2020 15:06:29 +0100 Message-Id: <20200914140641.21369-25-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200914140641.21369-1-peter.maydell@linaro.org> References: <20200914140641.21369-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Havard Skinnemoen This is a minimalistic boot ROM written specifically for use with QEMU. It supports loading the second-stage loader from SPI flash into RAM, SMP boot, and not much else. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Havard Skinnemoen Message-id: 20200911052101.2602693-7-hskinnemoen@google.com Signed-off-by: Peter Maydell --- .gitmodules | 3 +++ MAINTAINERS | 2 ++ pc-bios/README | 6 ++++++ pc-bios/meson.build | 1 + pc-bios/npcm7xx_bootrom.bin | Bin 0 -> 768 bytes roms/Makefile | 7 +++++++ roms/vbootrom | 1 + 7 files changed, 20 insertions(+) create mode 100644 pc-bios/npcm7xx_bootrom.bin create mode 160000 roms/vbootrom diff --git a/.gitmodules b/.gitmodules index ce979398a87..9ffb9f3f4f3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -61,3 +61,6 @@ [submodule "meson"] path =3D meson url =3D https://github.com/mesonbuild/meson/ +[submodule "roms/vbootrom"] + path =3D roms/vbootrom + url =3D https://github.com/google/vbootrom.git diff --git a/MAINTAINERS b/MAINTAINERS index c95a00c12dd..3d17cad19aa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -757,6 +757,8 @@ L: qemu-arm@nongnu.org S: Supported F: hw/*/npcm7xx* F: include/hw/*/npcm7xx* +F: pc-bios/npcm7xx_bootrom.bin +F: roms/vbootrom =20 nSeries M: Andrzej Zaborowski diff --git a/pc-bios/README b/pc-bios/README index 2e49be607e0..33f9754ad30 100644 --- a/pc-bios/README +++ b/pc-bios/README @@ -71,3 +71,9 @@ ("Simplified BSD License" or "FreeBSD License", SPDX: BSD-2-Clause). Ope= nSBI source code also contains code reused from other projects desribed here: https://github.com/riscv/opensbi/blob/master/ThirdPartyNotices.md. + +- npcm7xx_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for Nuvo= ton + NPCM7xx BMC devices. It currently implements the bare minimum to load, p= arse, + initialize and run boot images stored in SPI flash, but may grow more + features over time as needed. The source code is available at: + https://github.com/google/vbootrom diff --git a/pc-bios/meson.build b/pc-bios/meson.build index 8087e5c0a7a..182d5ebb35d 100644 --- a/pc-bios/meson.build +++ b/pc-bios/meson.build @@ -81,6 +81,7 @@ blobs =3D files( 'opensbi-riscv64-generic-fw_dynamic.bin', 'opensbi-riscv32-generic-fw_dynamic.elf', 'opensbi-riscv64-generic-fw_dynamic.elf', + 'npcm7xx_bootrom.bin', ) =20 if install_blobs diff --git a/pc-bios/npcm7xx_bootrom.bin b/pc-bios/npcm7xx_bootrom.bin new file mode 100644 index 0000000000000000000000000000000000000000..38f89d1b97b0c2e133af2a9fbed= 0521be132065b GIT binary patch literal 768 zcmd5)JxClu6n-9S05p1#kf90Sj5Z(jG8}+)IZIp~iXK=3DT&)dL`%d-q*8aR#mq{7 z9`=3D6;Dr(H0ACe72R5x?!)^86Qj-X%{+!K9iZNA@*wkBAV&iZ(l^I9?!Gz=3DS2I_*1d zr+tTQDHjvyzKnw(hu00yX`u!FvC;DilBe_YlkeSUVHA-crNk+k jtiF_MudA