Date: Wed, 04 Dec 2019 10:21:51 +0900 From: KIRIYAMA Kazuhiko <kiri@truefc.org> To: Warner Losh <imp@bsdimp.com> Cc: KIRIYAMA Kazuhiko <kiri@truefc.org>, freebsd-arm@freebsd.org Subject: Re: Can't boot arm64 image by qemu-system-aarch64 Message-ID: <201912040121.xB41LpIp062796@kx.truefc.org> In-Reply-To: <CANCZdfrnEd3Y7r3LzqqUP7f2PjMgbeNpwpgek_FDO_X1c_p5mA@mail.gmail.com> References: <201912032300.xB3N0FGC061069@kx.truefc.org> <CANCZdfrnEd3Y7r3LzqqUP7f2PjMgbeNpwpgek_FDO_X1c_p5mA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Warner On Wed, 04 Dec 2019 09:55:30 +0900, Warner Losh wrote: >=20 > [1 <text/plain; UTF-8 (7bit)>] >=20 > [2 <text/html; UTF-8 (quoted-printable)>] >=20 >=20 >=20 >=20 > On Tue, Dec 3, 2019, 4:00 PM KIRIYAMA Kazuhiko <kiri@truefc.org> wrote: >=20 >=20 > Hi, all > =20 > # I've posted freebsd-virtualization,but any responces. > # Sorry for same posting. > =20 > I've installed successfully by qemu-system-aarch64 below: > =20 > root@vm:/vm/test # truncate -s 16g test.img > root@vm:/vm/test # qemu-system-aarch64 -machine virt -m 4096M -cpu c= ortex-a57 -name test > -bios QEMU_EFI.fd -nographic -hda test.img -hdc > FreeBSD-13.0-CURRENT-arm64-aarch64-20191127-r355121-memstick.img > =20 > and rebooted successfully and login with root: > =20 > root@test:~ # uname -a > FreeBSD test.tfc 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r355121: Wed N= ov 27 03:49:21 UTC 2019=A0 > =A0 =A0root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/s= ys/GENERIC=A0 arm64 > root@test:~ # df -h > Filesystem=A0 =A0 =A0 Size=A0 =A0 Used=A0 =A0Avail Capacity=A0 Mount= ed on > /dev/vtbd0p2=A0 =A0 =A014G=A0 =A0 1.3G=A0 =A0 =A012G=A0 =A0 10%=A0 = =A0 / > devfs=A0 =A0 =A0 =A0 =A0 =A01.0K=A0 =A0 1.0K=A0 =A0 =A0 0B=A0 =A0100= %=A0 =A0 /dev > root@test:~ # ifconfig > vtnet0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric = 0 mtu 1500 > =A0 =A0 =A0 =A0 options=3D80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> > =A0 =A0 =A0 =A0 ether 52:54:00:12:34:56 > =A0 =A0 =A0 =A0 inet 192.168.1.196 netmask 0xffffff00 broadcast 192.= 168.1.255 > =A0 =A0 =A0 =A0 media: Ethernet 10Gbase-T <full-duplex> > =A0 =A0 =A0 =A0 status: active > =A0 =A0 =A0 =A0 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCA= L> > lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 > =A0 =A0 =A0 =A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6= ,TXCSUM_IPV6> > =A0 =A0 =A0 =A0 inet6 ::1 prefixlen 128 > =A0 =A0 =A0 =A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > =A0 =A0 =A0 =A0 inet 127.0.0.1 netmask 0xff000000 > =A0 =A0 =A0 =A0 groups: lo > =A0 =A0 =A0 =A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> > root@test:~ # > =20 > So, I shutdowned and run by qemu-system-aarch64: > =20 > root@vm:/vm/test # qemu-system-aarch64 -machine virt -m 4096M -cpu c= ortex-a57 -name test > -bios QEMU_EFI.fd -nographic -drive if=3Dnone,format=3Draw,file=3Dte= st.img,id=3Dhd0 -device > virtio-blk-device,drive=3Dhd0 -device virtio-net-device,netdev=3Dnet= 0 -netdev > tap,id=3Dnet0,ifname=3Dtap2 > =20 > But failed to boot: > =20 > BdsDxe: failed to load Boot0001 "UEFI Misc Device" from > VenHw(93E34C7E-B50E-11DF-9223-2443DFD72085,00): Not Found > BdsDxe: failed to load Boot0002 "UEFI Misc Device 2" from > VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000): Not Fo= und > =20 > >>Start PXE over IPv4. > =20 > =20 > where, tap2 is ready to use: > =20 > root@vm:/vm/test # ifconfig tap2 > tap2: flags=3D8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu= 1500 > =A0 =A0 =A0 =A0 description: vmnet-test-0-local > =A0 =A0 =A0 =A0 options=3D80000<LINKSTATE> > =A0 =A0 =A0 =A0 ether 58:9c:fc:10:ec:02 > =A0 =A0 =A0 =A0 groups: tap qemu-port > =A0 =A0 =A0 =A0 media: Ethernet autoselect > =A0 =A0 =A0 =A0 status: no carrier > =A0 =A0 =A0 =A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> > root@vm:/vm/test # > =20 > What's wrong ? > =20 >=20 >=20 >=20 >=20 > Where did the efi firmware come from? I've got from [1]. [1] http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-u= pstream/latest/QEMU-AARCH64/RELEASE_CLANG35/QEMU_EFI.fd >=20 >=20 >=20 > Warner >=20 >=20 >=20 >=20 >=20 > Best regards. > --- > Kiriyama Kazuhiko <kiri@truefc.org> > =20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.or= g" > =20 >=20 >=20 --- Kiriyama Kazuhiko <kiri@truefc.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912040121.xB41LpIp062796>