Received: by 2002:ac2:5042:0:0:0:0:0 with SMTP id a2csp2144953lfm; Thu, 16 Jul 2020 23:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK5xnl/VgS+jtlFqN8cc6WNaFCZCHTWTsLUzMQYRZd79Tupr9WlKiWIifD8N/pMRZCvQqv X-Received: by 2002:a25:21d6:: with SMTP id h205mr11273388ybh.460.1594965868518; Thu, 16 Jul 2020 23:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594965868; cv=none; d=google.com; s=arc-20160816; b=wVPd7z7F0bV/iXUY7pMmIdwikTBhVSIh1Pgj6/YHjc9k2la7eDhftbLhH4Bp+EXv7T JC6L+m3gjbDRi9x/pmEkIEhOgAcIKMvYo7cGVymVVCzpCaUFkr7OHgDZYikHrRAqIDVi BqkpcRE0X7B1Uphw70hqSIQ8F+s6l5rDuy1395xQps0OKGyuil9cz5u70Jt7A2E5DpZK s4Cpuv2hAKX+EcHdqPD8p9hCueubB0pt9rtrXbd7LYlQyNfpvMHPtnyQ0Z5oCjVUFxMB rT+8/1As9akmdj3scgcUxLUmzJlMh8FN4qFRXSVyC2WrNm5eChJ5qZWR7F0sB9dqh2Oz DYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=zj8bIibIdnQybBaGQVDBz5aPKtzt2hn+lBo9PsbHCSU=; b=JWL0YCjMBRfLoRyjb2GY2miQpjmM/GJn/OJ8ixs5em8kyKRIyU5SFRUgnuQRqqfk2H KLsUvmHbdF3y3223RPD3e8/xeSGyPxIMGSjykwYOPN3M8+E9k0465ypcrehixxSsYgaj lQPzv5CDKyjdPsqfIiBfFw0EJ2gURTM8Eyfb8eOC+nwiZqZYTs0gtLWn4BTriIrHEz7w CjKkqXOp6E8KY3XL+G/HDISswBj3eq21lk/SSpbYbicOZfhXjiVrgVbAs4SWJdnBdbW2 c+d0xkuMygIUt/ypnrrzWRPHg+kzfKYXnXzYeSoArnmDeudF91WXcYqoudqRkIXh3Ub/ cbHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dl8L0zAV; 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"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f187si7802243ybf.372.2020.07.16.23.04.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Jul 2020 23:04:28 -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=pass header.i=@google.com header.s=20161025 header.b=dl8L0zAV; 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"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from localhost ([::1]:34746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jwJTv-00055I-Rq for alex.bennee@linaro.org; Fri, 17 Jul 2020 02:04:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3Kz8RXwsKCOwVgYWbbSacSbUccUZS.QcaeSai-OfabcbUbi.cfU@flex--hskinnemoen.bounces.google.com>) id 1jwJSw-0003ce-JQ for qemu-arm@nongnu.org; Fri, 17 Jul 2020 02:03:26 -0400 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]:45742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3Kz8RXwsKCOwVgYWbbSacSbUccUZS.QcaeSai-OfabcbUbi.cfU@flex--hskinnemoen.bounces.google.com>) id 1jwJSu-0005GX-Lu for qemu-arm@nongnu.org; Fri, 17 Jul 2020 02:03:26 -0400 Received: by mail-yb1-xb49.google.com with SMTP id d202so10127583ybh.12 for ; Thu, 16 Jul 2020 23:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=zj8bIibIdnQybBaGQVDBz5aPKtzt2hn+lBo9PsbHCSU=; b=dl8L0zAV5p9vyPHtd2jPDRxweLQ0c8kKpugeUt/93A3FJF6Ap9mAi41K3wB9Z6LtLe hmsRCp6FtY8Q8t/pD1brTV/92Y2Iur9KiPpJZxh1L5PuRRExEuW4EkUOQQqtK5qobE1f eZ/JdG9pIbdr++98CmpHH7GQmE9UhXZs20hHZPNVyp11Jfs/Wq6fi2LTT22m778k0SXA xmZshiu5KeL34gASswhlOodTBgxdYPCI+9oy4MFvmXMcXU6veg4QgKWz/BqfiR7xEaZC qkRVVHS4ibOLktbJXjRa9LQnuX2iJXqWOCBzp17117liAB3bayOrviIb7f9QrQNo6lVn JPtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=zj8bIibIdnQybBaGQVDBz5aPKtzt2hn+lBo9PsbHCSU=; b=pgmoWn03vy1B6Epyyamk29gm+42lj6bbG4TVDXBC7KPjsztp26c6H7yZfv6LWAmaZ0 QDLh4gO+ykVdrilVRQp1a+ds1EAhC7D2yZ3hD9Lm8G2FNJYT8cZizd0DSTvJ5WMcy+re 9uSuwsaT47Zv81Jay8r0TDR7cPjA9+/ttDKbxwDthSF6GQSxxu986NuKFRBRAKphtLTT PBLMNJ+2Ehmg2/AZNHX4+M1yws3YmKrgi7c77bTIqQ2JdtWVt63zOmrwnTYfMgs3xMpi o2jGNYu9NrCnB0XMdauoFIqtP6rkhEHsGYUOOlmZTG9F16a45ahvkf9AkLnAFRuLv6nc YpQQ== X-Gm-Message-State: AOAM532omUnR/he28K2mZ2Zt9J7W/vNYt+DZXnm73yAxg5fspxjT2xvP QJWydV0JNjoXwtx0XIG0e7rCfG2hrKz/R3mItg== X-Received: by 2002:a25:3752:: with SMTP id e79mr11533382yba.263.1594965803184; Thu, 16 Jul 2020 23:03:23 -0700 (PDT) Date: Thu, 16 Jul 2020 23:02:51 -0700 In-Reply-To: <20200717060258.1602319-1-hskinnemoen@google.com> Message-Id: <20200717060258.1602319-7-hskinnemoen@google.com> Mime-Version: 1.0 References: <20200717060258.1602319-1-hskinnemoen@google.com> X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog Subject: [PATCH v6 06/13] roms: Add virtual Boot ROM for NPCM7xx SoCs From: Havard Skinnemoen To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: 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::b49; envelope-from=3Kz8RXwsKCOwVgYWbbSacSbUccUZS.QcaeSai-OfabcbUbi.cfU@flex--hskinnemoen.bounces.google.com; helo=mail-yb1-xb49.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: -105 X-Spam_score: -10.6 X-Spam_bar: ---------- X-Spam_report: (-10.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-1, 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" X-TUID: 1xi8TBexVZHi 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 +++ pc-bios/npcm7xx_bootrom.bin | Bin 0 -> 768 bytes roms/Makefile | 7 +++++++ roms/vbootrom | 1 + 5 files changed, 12 insertions(+) create mode 100644 pc-bios/npcm7xx_bootrom.bin create mode 160000 roms/vbootrom diff --git a/Makefile b/Makefile index 32345c610e..56473c788d 100644 --- a/Makefile +++ b/Makefile @@ -838,6 +838,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 9c0501a4d4..c95eaf8284 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,3 +58,6 @@ [submodule "roms/qboot"] path = roms/qboot url = https://github.com/bonzini/qboot +[submodule "roms/vbootrom"] + path = roms/vbootrom + url = https://github.com/google/vbootrom.git 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