From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZQUyi-0004oE-CT for mharc-grub-devel@gnu.org; Sat, 15 Aug 2015 02:30:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQUyg-0004n2-0R for grub-devel@gnu.org; Sat, 15 Aug 2015 02:30:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQUyc-0008Gj-Ln for grub-devel@gnu.org; Sat, 15 Aug 2015 02:30:01 -0400 Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:34057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQUyc-0008FZ-CZ for grub-devel@gnu.org; Sat, 15 Aug 2015 02:29:58 -0400 Received: by lbbtg9 with SMTP id tg9so56740638lbb.1 for ; Fri, 14 Aug 2015 23:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=8uXrSobHE53PvD7Hm0GBaL9WKBfilztseqmWyW7uqkE=; b=Cb1Pi8YFnLrQfud9hL7rbQNPysgB1fwRnKF6UIbAF3H9N8J+zLHupRXaa6jFTQDBRY 6apzinbQFTJkLCsMS5d631SlM6QZhdT3pSBBDHDtDEMfHLVwYR5NCKXhKooVevlgAsGW pgCRA2FKU76rudD6ni4T+ALpCFQM7WudH+bO3PUKMeipHXSUTQJiNE1WQBhO81hPlPVk f1nyiI/VrCQ4F1DkR6/GPZApurEP9ocVYNllNwe9Z3R+2EgoGNjdnLSLdy7wlzxIM7xJ tGOl39rjWVP+9+1+GMv/aiNLDzUx8up+RzLF5KesjbZ9fxCqetIZMgZ1D0WelLriRtYj iidA== X-Received: by 10.112.125.136 with SMTP id mq8mr8129742lbb.110.1439620197437; Fri, 14 Aug 2015 23:29:57 -0700 (PDT) Received: from [192.168.1.43] (ppp91-76-5-127.pppoe.mtu-net.ru. [91.76.5.127]) by smtp.gmail.com with ESMTPSA id nz4sm2009380lbb.38.2015.08.14.23.29.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 23:29:56 -0700 (PDT) Message-ID: <55CEDC63.7010604@gmail.com> Date: Sat, 15 Aug 2015 09:29:55 +0300 From: Andrei Borzenkov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Kernel panics (in QEMU) when booting with GRUB2 + OVMF + QEMU. References: <16954915.kKtRLGMXJZ@melech-hp> In-Reply-To: <16954915.kKtRLGMXJZ@melech-hp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Aug 2015 06:30:03 -0000 On 14.08.2015 09:45, Mark Lee wrote: > To all, > > I've encountered a bug when using GRUB2 + OVMF + QEMU on Arch Linux 64 bit. > The issue can be reproduced when running the latest git code from grub as > well. > > ISSUE: Kernel panics (in QEMU) when booting with GRUB2 + OVMF + QEMU. Once kernel is loaded, GRUB task is over. Why do you think it is GRUB issue? > ------ > When booting using OVMF (ovmf_x64.bin) + QEMU, GRUB2 manages to load but > kernel panics when loading its menu entry. This issue is not observed in > hardware or via bios boot. > > DOWNLOADS: test.img > ---------- > To speed up testing, one can skip reproducing test.img and grab a copy at > > > REPRODUCE test.img: > ------------------- > # fallocate -l 3G test.img > # gdisk test.img <<<( > o > y > n > 1 > > +1M > ef02 > > n > 2 > > +100M > ef00 > > n > 3 > > > > > w > y > ) > # kpartx -l test.img /* Get the name of loop device */ > # kpartx -a test.img > # mkfs.fat /dev/mapper/p2 > # mkfs.ext4 /dev/mapper/p3 > # mount /dev/mapper/p3 /mnt > # mkdir /mnt/boot > # mount /dev/mapper/p2 /mnt/boot > > /* This part is Arch Linux specific */ > # pacstrap /mnt base grub > /* End Arch Linux specific */ > > # grub-install --target=i386-pc --boot-directory=/mnt/boot /dev/ > # grub-install --target=x86_64-efi --efi-directory=/mnt/boot --boot- > directory=/mnt/boot --removable > # echo " > insmod all_video > menuentry "Arch Linux" { > linux /vmlinuz-linux rw root=/dev/sda3 > initrd /initramfs-linux-fallback.img > } > " > /mnt/boot/grub/grub.cfg > # umount -R /mnt > # kpartx -d test.img > > REPRODUCE QEMU ERROR: > --------------------- > /* Bios works */ > # qemu-system-x86_64 -enable-kvm -cpu host test.img > > /* UEFI doesn't */ > # qemu-system-x86_64 -enable-kvm -cpu host -bios /usr/share/ovmf/ovmf_x64.bin > test.img > > /* I get the following error */ > Kernel panic - not syncing : VFS: Unable to mount root fs on Unknown- > block(0,0) > CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.4-1-ARCH #1 > Hardware name : QEMU Standard PC (i440FX + PIIX, 1996), BIOS > 0000000000000000 000000007fac344c ffff880006527db8 ffffffff815865be > 0000000000000000 ffffffff816f61b0 ffff880006527e38 ffffffff81585453 > ffff880000000010 ffff880006527e48 ffff880006527de8 000000007fac344c > Call Trace: > [] dump_stack+0x4c/0x6e > [] panic+0xd0/0x203 > [] mount_block_root+0x297/0x2a6 > [] mount_root+0x54/0x58 > [] prepare_namespace+0x138/0x171 > [] kernel_init_freeable+0x1ec/0x215 > [] ? rest_init+0x90/0x90 > [] kernel_init+0xe/0xf0 > [] ret_fromt_fork+0x42/0x70 > [] ? rest_init+0x90/0x90 > Kernel Offset: disabled > ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown- > block(0,0) > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >