Received: by 2002:ac2:4841:0:0:0:0:0 with SMTP id 1csp2988612lfy; Mon, 24 Aug 2020 17:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVRa4cZnuBXJYX6RZ1FSJ9k+GGXIQnAYSzjzYMLfVhE6KeFVjfpt8RJUgmvC77+nQxSuCp X-Received: by 2002:a25:5784:: with SMTP id l126mr11497461ybb.29.1598314972448; Mon, 24 Aug 2020 17:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598314972; cv=none; d=google.com; s=arc-20160816; b=DukoH39aisO92LQ/kPY8l932wcaBCx1H6m3gNTLcGghOlHBbvCfxotYTOGy+D0Jn4V dkMSbPES4THyflMuq/fDy0LQY9ZJ9gnIoAnXVLzsu5bmxng6nfbzzfl6v17PkozZgVvl PRLS+D6aA+VlXGZFOxJ3RZ3Pn4+VFt8OolOWUN6+LEXKii5FUuIzoin7rye9/HjJIGR8 5JkrQGfrZxIBaFXcS7h4XDDEWy9uQb41nC1OQJKDIJLPFDgxW9Y/WqPqmaYoM1cjqIzW b0UGYyvQK5rgHxGFxNgwEVNOTxoMwZpAz24QDfGC1guqDEOK5FFQIYf6LRFPZ5HZeqBG nGfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=from:reply-to:sender:errors-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:cc:to:subject :references:mime-version:message-id:in-reply-to:date:dkim-signature; bh=uYevUGfZIkhvqGlY6GhgrWEQ7RdmB99+oEnNEV3tBGs=; b=O1+rJ9QnMYLlTOYeSUyicUI7MKTQv8blTgrwPy3rwVTmjwQiDc+4Dbnk0tl4/ix6lq SGyCZhDcwhkKTwjEAqbh3ul68+GleNcJXSry0QVi1Tmv7UV4/7/kMO8Xd8VEjvUGP+r0 0PFAv4oL5R0TIYZU9EzEx+Khdgs9dmIYx1pG5LsABFPPjE/ZpXiFYMGklfmgeKLovapw IXi39uj6ogltTslsA+cWHg4SdYJmjoTgX44BGxQGf783/z7GZzO43ADXGEgGI++7/EIf jGqq8IdBfzkoP0p1010LlsJX+AF8YLYyJcO8Yv5bGNT4ttJcJ16QbSJfuimJDRrkh2ON nftA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=rTFujelO; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l15si13667763ybq.241.2020.08.24.17.22.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Aug 2020 17:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=rTFujelO; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:48448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAMjj-0005lL-PY for alex.bennee@linaro.org; Mon, 24 Aug 2020 20:22:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3nVhEXwsKCGAFQIGLLCKMCLEMMEJC.AMKOCKS-8PKLMLELS.MPE@flex--hskinnemoen.bounces.google.com>) id 1kAMef-00049b-Ib for qemu-arm@nongnu.org; Mon, 24 Aug 2020 20:17:37 -0400 Received: from mail-pf1-x44a.google.com ([2607:f8b0:4864:20::44a]:41553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3nVhEXwsKCGAFQIGLLCKMCLEMMEJC.AMKOCKS-8PKLMLELS.MPE@flex--hskinnemoen.bounces.google.com>) id 1kAMed-00067v-BR for qemu-arm@nongnu.org; Mon, 24 Aug 2020 20:17:37 -0400 Received: by mail-pf1-x44a.google.com with SMTP id x2so4527382pfd.8 for ; Mon, 24 Aug 2020 17:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=uYevUGfZIkhvqGlY6GhgrWEQ7RdmB99+oEnNEV3tBGs=; b=rTFujelO8n3UIY+fUEawiRZWIni7QZwK/68yUCs56OA02Ge16a0PWpDtVpM+gdt/Xy vxFQAMZNKmIyz0RzHj8AJsk47zhuTPZxgP15Rq54jp4sZpj1xUXpkgdYghhe7kNPlQ7o zhpD777cTeDpKMIgFU+MixeiHDTExLzHU4IjXlA7u+LANgQlndc61VovXP0V1g4q0Zqo gYSKVutTrsjaFGhbwhfK2RAipXxFPZry9v73SkbrKWpLg42gzr+GgcMxCD/l1yaq7SgE RYJ5cnMMHFiT9AyFdcDHIJ0j8UYvTye4ymnMU8GkI2SraUCqFGucFwVP5izAfqXCMg7+ 9EfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=uYevUGfZIkhvqGlY6GhgrWEQ7RdmB99+oEnNEV3tBGs=; b=a1LNtlEH1PrV7KbbKJWggAHWdT/nCunqR1cmRk+u69pvbeQINOL/QGuY7tHiP8sZ3w nSzscmDU7tUexbEfwCwgBFrqEjAT65888DbZ2sw4V17wp7y+wPAIPZwdBwxScHsRlyPu PMJ71GspdHATK6y1e1h7VUz1l/GqDsAsTU6bIpB/EcsUnZSvsKI58DuXvPDi6L3dNuF8 I+gArG4J9pAv+Wsskc6PAoOrq5OQmUf9AhuBSfDTRT+qamHLcJZwLE5pfelwDDyEObEk qv+P5d/Bi626s33n9YkU/8brTIC7srDSD5r649/QIdN8bKkhlcLgst2WZsj3kp705sn2 wK4Q== X-Gm-Message-State: AOAM530JpYOqLxDh51dBkm2TWdZdw0Sr0okixZL60Cj4G+cqC3k9eRXU JOwvkF0Z0FBAsayTWjxNWtlrBAnnXc//g6+QuQ== X-Received: from skybert.c.googlers.com ([fda3:e722:ac3:10:24:72f4:c0a8:3107]) (user=hskinnemoen job=sendgmr) by 2002:a17:902:d905:: with SMTP id c5mr5493386plz.34.1598314653278; Mon, 24 Aug 2020 17:17:33 -0700 (PDT) Date: Mon, 24 Aug 2020 17:17:03 -0700 In-Reply-To: <20200825001711.1340443-1-hskinnemoen@google.com> Message-Id: <20200825001711.1340443-7-hskinnemoen@google.com> Mime-Version: 1.0 References: <20200825001711.1340443-1-hskinnemoen@google.com> X-Mailer: git-send-email 2.28.0.297.g1956fa8f8d-goog Subject: [PATCH v8 06/14] roms: Add virtual Boot ROM for NPCM7xx SoCs To: peter.maydell@linaro.org, f4bug@amsat.org Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Avi.Fishman@nuvoton.com, kfting@nuvoton.com, Havard Skinnemoen Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::44a; envelope-from=3nVhEXwsKCGAFQIGLLCKMCLEMMEJC.AMKOCKS-8PKLMLELS.MPE@flex--hskinnemoen.bounces.google.com; helo=mail-pf1-x44a.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: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, 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, USER_IN_DEF_DKIM_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" Reply-to: Havard Skinnemoen From: Havard Skinnemoen via X-TUID: +OzyCPKZnxYe 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. Signed-off-by: Havard Skinnemoen --- Makefile | 1 + .gitmodules | 3 +++ MAINTAINERS | 2 ++ pc-bios/README | 6 ++++++ 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/Makefile b/Makefile index 81794d5c34..08e9af3793 100644 --- a/Makefile +++ b/Makefile @@ -246,6 +246,7 @@ s390-ccw.img s390-netboot.img \ slof.bin skiboot.lid \ palcode-clipper \ u-boot.e500 u-boot-sam460-20100605.bin \ +npcm7xx_bootrom.bin \ qemu_vga.ndrv \ edk2-licenses.txt \ hppa-firmware.img \ diff --git a/.gitmodules b/.gitmodules index ce979398a8..9ffb9f3f4f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -61,3 +61,6 @@ [submodule "meson"] path = meson url = https://github.com/mesonbuild/meson/ +[submodule "roms/vbootrom"] + path = roms/vbootrom + url = https://github.com/google/vbootrom.git diff --git a/MAINTAINERS b/MAINTAINERS index 3f72250630..d71afedc20 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -756,6 +756,8 @@ L: qemu-arm@nongnu.org S: Supported F: hw/*/npcm7xx* F: include/hw/*/npcm7xx* +F: pc-bios/npcm7xx_bootrom.bin +F: roms/vbootrom nSeries M: Andrzej Zaborowski diff --git a/pc-bios/README b/pc-bios/README index fa8b58b797..4d6297fca7 100644 --- a/pc-bios/README +++ b/pc-bios/README @@ -71,3 +71,9 @@ ("Simplified BSD License" or "FreeBSD License", SPDX: BSD-2-Clause). OpenSBI 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 Nuvoton + NPCM7xx BMC devices. It currently implements the bare minimum to load, parse, + 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/npcm7xx_bootrom.bin b/pc-bios/npcm7xx_bootrom.bin new file mode 100644 index 0000000000000000000000000000000000000000..38f89d1b97b0c2e133af2a9fbed0521be132065b GIT binary patch literal 768 zcmd5)JxClu6n-9S05p1#kf90Sj5Z(jG8}+)IZIp~iXK=T&)dL`%d-q*8aR#mq{7 z9`=6;Dr(H0ACe72R5x?!)^86Qj-X%{+!K9iZNA@*wkBAV&iZ(l^I9?!Gz=S2I_*1d zr+tTQDHjvyzKnw(hu00yX`u!FvC;DilBe_YlkeSUVHA-crNk+k jtiF_MudA