From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mx.groups.io with SMTP id smtpd.web10.6955.1628597433448698856 for ; Tue, 10 Aug 2021 05:10:33 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H4/UhlTH; spf=pass (domain: gmail.com, ip: 209.85.214.178, mailfrom: 475.chris.willing@gmail.com) Received: by mail-pl1-f178.google.com with SMTP id a20so20763854plm.0 for ; Tue, 10 Aug 2021 05:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vffh2+/FBucOEuE/zXwksgszRwgZHJb8DDzP0xMW2xg=; b=H4/UhlTHn6sB/E5KOdvoNHbXHIFrI8Fo+U4j2xGEU+pQRtiGL5Jle7FA8hmzus6ijh eZ8PRcqzbQ/GosS+i7VSki9vqL2lYV+RSGJLXTMjmlTFC+KBdUva8YjPFVzSjsz4IhEJ 9cEWAVDtREAwLwMq0wRLdU2R0BDIMGGxwAGE0SGWrn2/LIXcTdhKgsoVfaCDtlecFchT R4bZtxdX6FBtGuaxJxiVeaoZnfRMIj9jZpjxCPPOPxN5EqT4YrUKIO8Pi5GirZLfPo3K 3UCgGRpczZugM76fiw+4oeOrklqbzxtI1lIwd/bZ8QN7Aj/o44N/c67iqZr7DPF8S9HX omVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=vffh2+/FBucOEuE/zXwksgszRwgZHJb8DDzP0xMW2xg=; b=d7DT94WgW6tg+7phH99PvcmdUuC4SYDgndoatZLTQfdQJmjPaL12fp7CsASbMulHlb mTBEO5PT4PlzEXsyTePSFNXOf71IBVknrB/qD9CrhBBW17vQWl1KTKhjODEkiAqQC0io nk4O+QCQQlKZt9q+vzopnJb7vNLJQnAFxT5tkph0xc9I/cd1YZMcc/mVL2fZSArx6TAg l19Ohh7ffacqUeOd0ucpwa1vDwy9mMYgbHs6/m5X7eA6GP0rzpqK3/3YwBAGxLFjuObV d+aCs3wlBkLDV0TGkh+ca2uadW80zT6u5FB+NBc0sHLA9va7aaJChTL40xHNwkfY0nMN iDWg== X-Gm-Message-State: AOAM530NN+xS0gzAZgajMnGnoJ35j2GMxIQbpqPYLbQfm3EcxbckE/YG 8WRof83OSWNE1SAXoBWaJhI= X-Google-Smtp-Source: ABdhPJxbvvhryWA4hwFRZIHfZI3wyBiop3eqG1r4SmD3lIwuQRuNaiDS0Ne6P+fckctRNddnAK10PA== X-Received: by 2002:a17:902:7786:b029:12c:dac0:15ba with SMTP id o6-20020a1709027786b029012cdac015bamr24948772pll.27.1628597432934; Tue, 10 Aug 2021 05:10:32 -0700 (PDT) Return-Path: <475.chris.willing@gmail.com> Received: from d8.hgw.net.au (pa49-197-140-170.pa.qld.optusnet.com.au. [49.197.140.170]) by smtp.gmail.com with ESMTPSA id a21sm24597966pfi.15.2021.08.10.05.10.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Aug 2021 05:10:32 -0700 (PDT) From: "Christoph Willing" X-Google-Original-From: Christoph Willing Reply-To: chris.willing@linux.com Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg PlatformBootManagerLib: Move TryRunningQemuKernel() To: devel@edk2.groups.io, kraxel@redhat.com Cc: James.Bottomley@hansenpartnership.com, ardb+tianocore@kernel.org, jiewen.yao@intel.com References: <20210728020232.127332-1-chris.willing@linux.com> <1695D2E15A92C8E7.3876@groups.io> <62f9ffa0-786f-09dd-9546-c4c118fa2a17@linux.com> <1b544f28-b5b9-c08c-bab7-8c1f41778dce@linux.com> <20210810060150.2fjakuteasiujwmn@sirius.home.kraxel.org> Message-ID: Date: Tue, 10 Aug 2021 22:10:27 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210810060150.2fjakuteasiujwmn@sirius.home.kraxel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 10/8/21 4:01 pm, Gerd Hoffmann wrote: > Hi, > >> insmod /lib/modules/5.13.8/kernel/fs/jbd2/jbd2.ko >> insmod /lib/modules/5.13.8/kernel/fs/mbcache.ko >> insmod /lib/modules/5.13.8/kernel/fs/ext4/ext4.ko >> mount: mounting /dev/sda2 on /mnt failed: No such file or directory >> ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead. >> You can try to fix it. Type 'exit' when things are done. >> >> At that point I'm dropped into a recovery shell to try fixing something >> but there's nothing that can be done since the disk containing the OS is >> not visible. > >> From the above, I think I've done everything possible to verify the >> problem and a possible fix. Is there something fundamentally wrong in >> the way I'm going about this? > > Root cause is not clear. Grab the kernel log ('dmesg') from a good and > a bad boot and comparing them should give a clue. > Thanks for your interest Gerd, I added "-serial mon:stdio" to the qemu invocation and "console=ttyS0" to the -append line to capture all boot output for both good and bad cases and saved the results in files. Rather than spam the list with those outputs, I've added them as attachments to the bz report at https://bugzilla.tianocore.org/show_bug.cgi?id=3504 When I first diff'd them, the slight difference in time stamps meant every line showed up as different - real differences were hard to see. Therefore I amended the files to replace the time stamps with "xxxx", enabling diff to show actual differences more meaningfully. I also attached there the output of a diff between the bad & good cases. To be honest I can't see anything striking to explain the difference in behaviour. To me, the main difference is that in the good case, an QEMU HARDDISK & QEMU DVD-ROM are discovered and allows the system to boot but no obvious indication why they are discovered in one case but not the other. Apart from that, there are a few differences in some memory locations being used but I have insufficient knowledge to judge whether those differences are significant. Is it possible for anyone to have a quick look through those files for anything that may indicate what is causing the defective booting please? Thanks, chris