Message ID | 1594878971-26050-1-git-send-email-bmeng.cn@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=vUdM=A3=nongnu.org=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@kernel.org> 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 82B3B1392 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 16 Jul 2020 05:57:30 +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 178A02065E for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 16 Jul 2020 05:57:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="goWwghPd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 178A02065E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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]:57504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1jvwtd-0006uJ-1s for patchwork-qemu-devel@patchwork.kernel.org; Thu, 16 Jul 2020 01:57:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <bmeng.cn@gmail.com>) id 1jvwsp-0005eQ-C5; Thu, 16 Jul 2020 01:56:39 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:37686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <bmeng.cn@gmail.com>) id 1jvwsl-0000Kh-1a; Thu, 16 Jul 2020 01:56:39 -0400 Received: by mail-wm1-x343.google.com with SMTP id o2so9758731wmh.2; Wed, 15 Jul 2020 22:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=VmQ8KG4KxlmtSjQLqLIp5lwLhou3sGlnKUJncz6EPuA=; b=goWwghPdkFW8huRH1b2t2uTeHiwhArDTEw4tlyMRKfzfkPuKLgiouXXYDb/tP29MUF 3lZzdWlaDshMzIuSoqZ8LMhfKDRlIJFS1btFkNuzFIMmMMI2dcX/+mj0QhHFPmwqlR37 13wyQdSk40T01TZSbVrIiQOdRVG8KzQLpdm6+A0L917Dy6atMi2nx3Y2hcqRXMIzvS1R OZOSdFXreqGxOdxcMO5vE93DZdikVzWl3MH88rhZRFf4Jt5VcFcjABfPB1eHsiFV2rKt AJqWzS04Atrue3m8+p4npigqffoiymrScokTrFCjlEMnxXxwmuHfAFi1igjY0nxnw8cF /ZFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VmQ8KG4KxlmtSjQLqLIp5lwLhou3sGlnKUJncz6EPuA=; b=lw/Kc/HXPwgUpQ3DrUj3MXOdOW7LFqC1pucVg4TLxlp6ofzHjPpIm7Y9geBB1xrpki lZQWGqbzbr2Ui2Y7wBPux7Cuc+bWGOIwz4w2KyhFpoFkGrd2d1iP5VQr3JjEgffdGK1l UWFqUCylX2Ei3sZkww7971KfcODkJxpRc3ZImSZmYBRlAV2aBJLi2REJ4LlRt4+9GRTq ljJsXvNL645rv6lq5IzDG+v9nmhsQdlVQJpmObLPlxLzjN05QEIC/h5rD113uOcRosSo 9MzhZyXDmxehOkJaSTVZVyVMOfj30Gy/aNSysq2rjVqNCJCsut1wihjzo4Fl6cvaOtyc Offg== X-Gm-Message-State: AOAM530P+uNejBcCKwh/1IeOlWBN60ET4agxC1rAfoA6DTbDGAsxkkTH QgoQM056jqGrhXviswywFhM= X-Google-Smtp-Source: ABdhPJy1pUC1/C1UIcI4/dkcqR//aouMVaWFDVsqg/vyRNJXLa1/S+gaPH0b6ejef82MnkSyGeCcsQ== X-Received: by 2002:a1c:2257:: with SMTP id i84mr2755347wmi.158.1594878992854; Wed, 15 Jul 2020 22:56:32 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id f12sm7193458wrw.53.2020.07.15.22.56.30 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 15 Jul 2020 22:56:32 -0700 (PDT) From: Bin Meng <bmeng.cn@gmail.com> To: Alistair Francis <Alistair.Francis@wdc.com>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>, Palmer Dabbelt <palmerdabbelt@google.com>, Sagar Karandikar <sagark@eecs.berkeley.edu>, qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [PATCH v5 0/7] riscv: Switch to use generic platform fw_dynamic type opensbi bios images Date: Wed, 15 Jul 2020 22:56:04 -0700 Message-Id: <1594878971-26050-1-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 Received-SPF: pass client-ip=2a00:1450:4864:20::343; envelope-from=bmeng.cn@gmail.com; helo=mail-wm1-x343.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Anup Patel <anup@brainfault.org>, Bin Meng <bin.meng@windriver.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> |
Series |
riscv: Switch to use generic platform fw_dynamic type opensbi bios images
|
expand
|
From: Bin Meng <bin.meng@windriver.com> The RISC-V generic platform is a flattened device tree (FDT) based platform where all platform specific functionality is provided based on FDT passed by previous booting stage. The support was added in the upstream OpenSBI v0.8 release recently. This series updates QEMU to switch to use generic platform of opensbi bios images. With the recent fw_dynamic image support, let's replace the fw_jump images with fw_dynamic ones too. The patch emails do not contain binary bits, please grab all updates at https://github.com/lbmeng/qemu.git bios branch. Note to test 32-bit Linux kernel on QEMU 'sifive_u' 32-bit machine, the following patch is needed: http://lists.infradead.org/pipermail/linux-riscv/2020-July/001213.html Changes in v5: - Include the generic fw_dynamic.bin in the Makefile for `make install` bisection - Ship generic fw_dynamic.elf images in the Makefile Changes in v4: - Remove old binaries in the Makefile for `make install` bisection Changes in v3: - Change fw_jump to fw_dynamic in the make rules - Change to fw_dynamic.bin for virt & sifive_u - Change to fw_dynamic.elf for Spike - Generate fw_dynamic images in the artifacts - change fw_jump to fw_dynamic in the Makefile Changes in v2: - new patch: configure: Create symbolic links for pc-bios/*.elf files - Upgrade OpenSBI to v0.8 release - Copy the ELF images too in the make rules - Include ELF images in the artifacts - new patch: Makefile: Ship the generic platform bios images for RISC-V Bin Meng (7): configure: Create symbolic links for pc-bios/*.elf files roms/opensbi: Upgrade from v0.7 to v0.8 roms/Makefile: Build the generic platform for RISC-V OpenSBI firmware hw/riscv: Use pre-built bios image of generic platform for virt & sifive_u hw/riscv: spike: Change the default bios to use generic platform image gitlab-ci/opensbi: Update GitLab CI to build generic platform Makefile: Ship the generic platform bios ELF images for RISC-V .gitlab-ci.d/opensbi.yml | 28 ++++++++-------------- Makefile | 4 ++-- configure | 1 + hw/riscv/sifive_u.c | 4 ++-- hw/riscv/spike.c | 9 +++++-- hw/riscv/virt.c | 4 ++-- pc-bios/opensbi-riscv32-generic-fw_dynamic.bin | Bin 0 -> 62144 bytes pc-bios/opensbi-riscv32-generic-fw_dynamic.elf | Bin 0 -> 558668 bytes pc-bios/opensbi-riscv32-sifive_u-fw_jump.bin | Bin 49520 -> 0 bytes pc-bios/opensbi-riscv32-virt-fw_jump.bin | Bin 49504 -> 0 bytes pc-bios/opensbi-riscv64-generic-fw_dynamic.bin | Bin 0 -> 70792 bytes pc-bios/opensbi-riscv64-generic-fw_dynamic.elf | Bin 0 -> 620424 bytes pc-bios/opensbi-riscv64-sifive_u-fw_jump.bin | Bin 57936 -> 0 bytes pc-bios/opensbi-riscv64-virt-fw_jump.bin | Bin 57920 -> 0 bytes roms/Makefile | 32 ++++++++----------------- roms/opensbi | 2 +- 16 files changed, 35 insertions(+), 49 deletions(-) create mode 100644 pc-bios/opensbi-riscv32-generic-fw_dynamic.bin create mode 100644 pc-bios/opensbi-riscv32-generic-fw_dynamic.elf delete mode 100644 pc-bios/opensbi-riscv32-sifive_u-fw_jump.bin delete mode 100644 pc-bios/opensbi-riscv32-virt-fw_jump.bin create mode 100644 pc-bios/opensbi-riscv64-generic-fw_dynamic.bin create mode 100644 pc-bios/opensbi-riscv64-generic-fw_dynamic.elf delete mode 100644 pc-bios/opensbi-riscv64-sifive_u-fw_jump.bin delete mode 100644 pc-bios/opensbi-riscv64-virt-fw_jump.bin