Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 54F3A782B96 for ; Fri, 3 Jan 2020 16:11:48 +0000 (UTC) Received: by mail-lj1-f182.google.com with SMTP id z22so39548645ljg.1 for ; Fri, 03 Jan 2020 08:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/eUmK4qwxpupN1+bUxunGQx07SGiCOfYyQihH0lgFmE=; b=EVS00kPvmYSIz6sws3lBk0TVEYoxfeUS18UN761om1rRVgsjoBAM/iYZbC7WN9Y4o8 R1UZ0UYAGJrqLiKBSkvOfrodv5i4Bkk9B+d0mcMceKoZUKU2uq+waY9Hu3Wmc5YF7XdK J3OLkmGhY1aRkeIyGqM1dzGyT4fcpN1ajyZcU3rDV4jW0mxmYayhu2WNKbpnNGZ9EXLy 31vWbL5pRKSmeZE4DlMH2IIkonIeo7odoEtquymMi5FupYDzjm7n0Z60AjsZj9FltgVP ei3h6xj3HHyM4Lx9OX2bjxi7jxecOD7ir0N2zxh5NKdHfZ92XHcca55nfqKy/gqWLVVQ IelA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/eUmK4qwxpupN1+bUxunGQx07SGiCOfYyQihH0lgFmE=; b=l9NNg8RJZYxKIT7skRK+B6lS8ZNb5JrR6vmKxDFFtTAQAJnRGl50FO5u6eqM5tk5mx 40UD1VzCmIWyaFUNDQc48HeygDM0U6uPWnJldf92rZfrR3gDE+kmXa6gcu49bfziIwoh GjBgmrqjQcfvu5sQTlmOEu/II/fIh6C3iDnSbClGxmqxrtQ3EG6O1yTjGRrg7e0vHOwL 0srp9HNTifl0kA1PsbXKxrknHsH6t6NgJdNa3mw6KEZKoFA3+lwQUxBAozH3ZhL3K2dB 9JBLXtqOZVVCUTSSySxkg14h1EWx8wVOO+UJKgJaCOS8gReFBp1j7ZklvmrmliUJ/YxC WzDg== X-Gm-Message-State: APjAAAVxe7uRbVu16124NfvhoP7aPDXqyIi4LmEQyj04xNpxvgLUd7wv 7DvnHfHGSLH7a4GvjAt0qCO2NCIwJ3R5VkuY2QzpPi67 X-Google-Smtp-Source: APXvYqzOnKeqE8Xg/qiu+xs4djO1Icr+L8w9eXGjAJQEEffNwl7JOniHtgExTpFHwvR+eAVMabGtytavl2pCc8p2J0c= X-Received: by 2002:a2e:870b:: with SMTP id m11mr51371201lji.93.1578067906928; Fri, 03 Jan 2020 08:11:46 -0800 (PST) MIME-Version: 1.0 References: <923bc5f0-6452-7c5f-bc09-4b91c3235802@h6g.de> In-Reply-To: From: PICCORO McKAY Lenz Date: Fri, 3 Jan 2020 07:41:26 -0400 Message-ID: Subject: Re: Using aarch64 ISO with QEMU To: alpine-user Content-Type: multipart/alternative; boundary="000000000000062551059b3e91b4" --000000000000062551059b3e91b4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Use qemu on right OS like linux and said good bye to problems.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El vie., 3 de ene. de 2020 a la(s) 08:33, Peter Hanzel ( hanzelpeter@gmail.com) escribi=C3=B3: > Hello again. > > I have made progress. It looks like efi_vars was missing. I added > empty 64MB img file as second pflash and then it booted to console > line. > My qemu cmd line looks like: > qemu-system-aarch64.exe -M virt -m 1G -cpu cortex-a57 -pflash > edk2-aarch64-code.fd -pflash efi_vars.img -cdrom > alpine-virt-3.11.2-aarch64.iso -vga none -device > virtio-gpu-pci,xres=3D800,yres=3D600 -net nic,model=3Dvirtio -net > user,hostfwd=3Dtcp::2222-:22 -device usb-ehci,id=3Dehci -device > usb-tablet,bus=3Dehci.0 > . > Then I can successfully login on serial console. Other problem is that > on graphic console (virtio-gpu-pci) the keyboard is not working > eventhough I have added usb-tablet. But that's another story. I was > not able to get keyboard and mouse with virtio-gpu-pci on any > distribution I have tried. Maybe some qemu command line parameter is > missing. > > So now I can boot and ISO is working. > > On Fri, Jan 3, 2020 at 12:25 PM Peter Hanzel > wrote: > > > > Hello. > > > > I have used original aarch64 ISO from > > > http://dl-cdn.alpinelinux.org/alpine/v3.11/releases/aarch64/alpine-virt-3= .11.2-aarch64.iso > > I use QEMU 4.1.0 on windows. I use edk2-aarch64-code.fd as UEFI > > bios.and arrch64 ISO as -cdrom. > > It normally boots UEFI and then starts GRUB from above ISO. It > > contains only "Linux virt" menuitem and after I press enter on it it > > fails to start linux. There are some messages but it quickly returns > > to GRUB menu, so I can't read it. Then I used grub command line to try > > to set root and kernel manually, but it fails to read partitions from > > ISO. > > > > So that's the steps I have tried. > > > > > > On Fri, Jan 3, 2020 at 9:52 AM Paul Zillmann wrote: > > > > > > Hello Peter, > > > > > > do you use the GRUB inside the ISO or any other GRUB? > > > On the ISO you are looking to boot /efi/boot/bootaa64.efi - this shou= ld > > > be the GRUB on the ISO with the right configuration file. > > > > > > I don't think you will be able to access an ISOHYBRID with gpt nor hd= 0. > > > > > > - Paul > > > > > > Am 02.01.20 um 14:50 schrieb Peter Hanzel: > > > > Hello. > > > > > > > > I have downloaded aarch64 ISO for virtual. I want to run it inside > QEMU. > > > > I have added edk2 as flash (UEFI). It boots to GRUB but then it fai= ls > > > > to run Linux virt. Has anybody qemu command line to run aarch64 > alpine > > > > ISO. > > > > I don't want to extract kernel and initrd and run it this way. I wa= nt > > > > to try it to boot as UEFI. I used -cdrom parameter for qemu but for > > > > grub inside QEMU it appears as disk with 3 parts: gap1, msdos1 and > > > > gap2 and grub cannot read them from grub command line. (ls > (hd0,gpt1)/ > > > > shows unknown file system). > > > > > > > > Thanks for any hint I could try. > --000000000000062551059b3e91b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Use qemu on right OS like linux and said good bye to = problems..


Lenz McKAY Gerardo (PICCORO)


El vie., 3 de ene. = de 2020 a la(s) 08:33, Peter Hanzel (hanzelpeter@gmail.com) escribi=C3=B3:
Hello again.

I have made progress. It looks like efi_vars was missing. I added
empty 64MB img file as second pflash and then it booted to console
line.
My qemu cmd line looks like:
qemu-system-aarch64.exe -M virt -m 1G -cpu cortex-a57 -pflash
edk2-aarch64-code.fd -pflash efi_vars.img -cdrom
alpine-virt-3.11.2-aarch64.iso -vga none -device
virtio-gpu-pci,xres=3D800,yres=3D600 -net nic,model=3Dvirtio -net
user,hostfwd=3Dtcp::2222-:22 -device usb-ehci,id=3Dehci -device
usb-tablet,bus=3Dehci.0
.
Then I can successfully login on serial console. Other problem is that
on graphic console (virtio-gpu-pci) the keyboard is not working
eventhough I have added usb-tablet. But that's another story. I was
not able to get keyboard and mouse with virtio-gpu-pci on any
distribution I have tried. Maybe some qemu command line parameter is
missing.

So now I can boot and ISO is working.

On Fri, Jan 3, 2020 at 12:25 PM Peter Hanzel <hanzelpeter@gmail.com> wrote:
>
> Hello.
>
> I have used original aarch64 ISO from
> http:= //dl-cdn.alpinelinux.org/alpine/v3.11/releases/aarch64/alpine-virt-3.11.2-a= arch64.iso
> I use QEMU 4.1.0 on windows. I use edk2-aarch64-code.fd as UEFI
> bios.and arrch64 ISO as -cdrom.
> It normally boots UEFI and then starts GRUB from above ISO. It
> contains only "Linux virt" menuitem and after I press enter = on it it
> fails to start linux. There are some messages but it quickly returns > to GRUB menu, so I can't read it. Then I used grub command line to= try
> to set root and kernel manually, but it fails to read partitions from<= br> > ISO.
>
> So that's the steps I have tried.
>
>
> On Fri, Jan 3, 2020 at 9:52 AM Paul Zillmann <p.zillmann@h6g.de> wrote:
> >
> > Hello Peter,
> >
> > do you use the GRUB inside the ISO or any other GRUB?
> > On the ISO you are looking to boot /efi/boot/bootaa64.efi - this = should
> > be the GRUB on the ISO with the right configuration file.
> >
> > I don't think you will be able to access an ISOHYBRID with gp= t nor hd0.
> >
> > - Paul
> >
> > Am 02.01.20 um 14:50 schrieb Peter Hanzel:
> > > Hello.
> > >
> > > I have downloaded aarch64 ISO for virtual. I want to run it = inside QEMU.
> > > I have added edk2 as flash (UEFI). It boots to GRUB but then= it fails
> > > to run Linux virt. Has anybody qemu command line to run aarc= h64 alpine
> > > ISO.
> > > I don't want to extract kernel and initrd and run it thi= s way. I want
> > > to try it to boot as UEFI. I used -cdrom parameter for qemu = but for
> > > grub inside QEMU it appears as disk with 3 parts: gap1, msdo= s1 and
> > > gap2 and grub cannot read them from grub command line. (ls (= hd0,gpt1)/
> > > shows unknown file system).
> > >
> > > Thanks for any hint I could try.
--000000000000062551059b3e91b4--