Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF5D4C432BE for ; Mon, 30 Aug 2021 21:53:37 +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 7547660ED4 for ; Mon, 30 Aug 2021 21:53:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7547660ED4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=eik.bme.hu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:47372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKpDk-0006RJ-DU for qemu-devel@archiver.kernel.org; Mon, 30 Aug 2021 17:53:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKp8c-0000Sh-2S; Mon, 30 Aug 2021 17:48:18 -0400 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:27691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKp8P-0008G9-L9; Mon, 30 Aug 2021 17:48:16 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id DDC8F746399; Mon, 30 Aug 2021 23:47:58 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id BB0737457EE; Mon, 30 Aug 2021 23:47:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id B904A745708; Mon, 30 Aug 2021 23:47:58 +0200 (CEST) Date: Mon, 30 Aug 2021 23:47:58 +0200 (CEST) From: BALATON Zoltan To: Peter Maydell Subject: Re: [PATCH] Report any problems with loading the VGA driver for PPC Macintosh targets In-Reply-To: Message-ID: <269a250-93ec-2e6-8813-5b65aa9fb76@eik.bme.hu> References: <20210827181429.23609-1-programmingkidx@gmail.com> <2d87adfb-c612-8d36-4c97-50f07a82beeb@ilande.co.uk> <8ED650E0-5874-4AE6-85E3-631E7B76D37A@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=2001:738:2001:2001::2001; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) SPF_HELO_NONE=0.001, SPF_PASS=-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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Developers , Greg Kurz , Programmingkid , qemu-ppc , Howard Spoelstra , David Gibson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, 30 Aug 2021, Peter Maydell wrote: > On Mon, 30 Aug 2021 at 21:29, Programmingkid wrote: >> I found out that there are two pc-bios folders. One in the root directory >> and one in the build directory. QEMU is looking in the pc-bios folder >> located inside the build folder. The qemu_vga.ndrv file is only located >> in the root directory pc-bios folder. I think a good solution to this >> issue is to first remove one of the pc-bios folders. I'm not sure if it >> is just me who has two pc-bios folders or if everyone does. > > Having two pc-bios folders is expected. The one in the source tree is > the one which has the files we actually carry around in git. The one > in the build tree is created by 'configure' and populated with symbolic > links back to the files in the source tree. We need this one because > the QEMU executable doesn't (and shouldn't) know where the source tree is: > when it is looking for files it will look in places relative to the > location of the executable itself (ie relative to the build tree) > as well as places set by configure (used when you install QEMU and > its various supporting files). > > The reason qemu_vga.ndrv is not in the pc-bios folder in the build > tree is because when that file was added we forgot to add handling > for it in configure. I'm not sure why nobody else has fallen over > this in the intervening 3 years: running QEMU from the build tree > will never find the file, and it will not be installed via > 'make install' either. This file is a driver for MacOS and not many people run that old OS. Those who do probably use Howard's binaries and follow his guides that tell you to use -L pc-bios on command line. I always wondered why that's needed when it should find it by default but this explains it and probably also your question why nobody complained. Regards, BALATON Zoltan