From patchwork Fri Jul 17 06:02:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Havard Skinnemoen X-Patchwork-Id: 11669039 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 59895618 for ; Fri, 17 Jul 2020 06:10:00 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 2B0B2206BE for ; Fri, 17 Jul 2020 06:10:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="dl8L0zAV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B0B2206BE Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:58640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jwJZH-0006Sq-Cr for patchwork-qemu-devel@patchwork.kernel.org; Fri, 17 Jul 2020 02:09:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3Kz8RXwsKCuwVgYWbbSacSbUccUZS.QcaeSai-RSjSZbcbUbi.cfU@flex--hskinnemoen.bounces.google.com>) id 1jwJSw-0003dQ-SA for qemu-devel@nongnu.org; Fri, 17 Jul 2020 02:03:26 -0400 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]:38519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3Kz8RXwsKCuwVgYWbbSacSbUccUZS.QcaeSai-RSjSZbcbUbi.cfU@flex--hskinnemoen.bounces.google.com>) id 1jwJSv-0005GZ-8o for qemu-devel@nongnu.org; Fri, 17 Jul 2020 02:03:26 -0400 Received: by mail-yb1-xb4a.google.com with SMTP id 124so10323155ybb.5 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=T+43pADCdVNebZZWIstbtQ8mzgaLwguawmk69fE+5abo0qIJ6CevM/4ah7Vqqk2nBb r2hOy9w8gl4Q8HtCA8jnKCTjDLQZT4UIak789grbi+1u57Dz7bHK4+cH6rZ2SvtYa4+1 3vCF4kUz7iuAZ46JzehdYR0+wOTBB/bdYiJOIVHMiUHV+AlPm+2u3LSs223a7WNJXTwS X9E1Hom7pizFfGwz6YrkJkLrBYE2tHuA6ErSbY+kqqbDzq22qvY7+tIuLDbRtAaAhOXl hvyXCPEF5Oqud6+Iat43wyPrjDYyogPqeqkdQU5WJEAuqYfb7wC+PEawic7Pp6HnpvAP wnZA== X-Gm-Message-State: AOAM532YqnYMA+REm4Cl0zeGOko5kVwYXr7eJli3jeanPwc/C7ie3MDQ oWLjIfOWaXHao7cKi4K+/0nSXNAuS/sYAHXQaNePx309FsR/kgWRik0vKsZVKpq6cg0nlIPG/Zy +SmRev1BIwKW3nfIWJtdJK2EqINhvkJXwEE35PJFLDecwOC30vzD5odcg8CzMCciOdJxN9oQ8Ew == X-Google-Smtp-Source: ABdhPJzIPes5ARqBTwRSQh/yiSG/In/XPsoc71cWr3Uyzhbud/7oK1FJ7f/+rkO5VI3TdxWlMhOfF6af5q+ECgcyHg== 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 Received-SPF: pass client-ip=2607:f8b0:4864:20::b4a; envelope-from=3Kz8RXwsKCuwVgYWbbSacSbUccUZS.QcaeSai-RSjSZbcbUbi.cfU@flex--hskinnemoen.bounces.google.com; helo=mail-yb1-xb4a.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=unavailable 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" 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