From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pJt7m-0001fl-Oy for mharc-grub-devel@gnu.org; Mon, 23 Jan 2023 04:28:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJt7g-0001fJ-69 for grub-devel@gnu.org; Mon, 23 Jan 2023 04:28:16 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJt7e-00008U-2V for grub-devel@gnu.org; Mon, 23 Jan 2023 04:28:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674466092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hzjXU3ywP64vmpStvy0VR0B6jhWt92PrwZoZS5AtEVA=; b=TIolKxDkkg/IgpV1HY8Qsq0HxtORuRSj/ZN7qNyRmzAkJVo4ofseUWVFjvVkE2zSZuExw5 aDlhysaHSah/PaaP6e+rUETlyAsbDm/5kMqEOcRMncsjOXq9oiba6q63xYlMLegkrFi0kM 6tpWgt7zgX8WurDJfjBNlQhkGOSXvXA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-528-zThwPwEgNFiidr1heIDTRw-1; Mon, 23 Jan 2023 04:28:11 -0500 X-MC-Unique: zThwPwEgNFiidr1heIDTRw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2342B3C0F221; Mon, 23 Jan 2023 09:28:11 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.186]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B201E492C3E; Mon, 23 Jan 2023 09:28:10 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 513DE180060E; Mon, 23 Jan 2023 10:28:09 +0100 (CET) Date: Mon, 23 Jan 2023 10:28:09 +0100 From: Gerd Hoffmann To: The development of GNU GRUB Cc: Daniel Kiper , Glenn Washburn Subject: Re: [PATCH] grub-shell: Add flexibility in QEMU firmware handling Message-ID: <20230123092809.sycmpu4iu5hn6b6n@sirius.home.kraxel.org> References: <20230121061520.1619840-1-development@efficientek.com> MIME-Version: 1.0 In-Reply-To: <20230121061520.1619840-1-development@efficientek.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=170.10.133.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com 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, DKIMWL_WL_HIGH=-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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2023 09:28:16 -0000 On Sat, Jan 21, 2023 at 12:15:20AM -0600, Glenn Washburn wrote: > The current qemu firmware paths for arm-efi and arm64-efi are not available > on Ubuntu/Debian but are hardcoded. Switch to first looking for firmware > files in the source directory and if not found, look for them in locations > where Debian installs them. I'd suggest to inspect the *.json files in /usr/share/qemu/firmware/ to find distro-installed firmware files. > Do not load the system 32-bit ARM firmware VARS file because it must be > writable to prevent a data exception and boot failure. So in order to use > the VARS file, it must be copied to a writable location, but its quite large > at 64M and is not needed to boot successfully. You can load the VARS file with snapshot=on (and drop readonly=on) to make things work without copying the file. take care, Gerd