From owner-freebsd-current@freebsd.org Tue May 2 09:53:51 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DE6FD5AE2A for ; Tue, 2 May 2017 09:53:51 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-50.reflexion.net [208.70.210.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 006001B1E for ; Tue, 2 May 2017 09:53:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 26655 invoked from network); 2 May 2017 09:57:00 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 2 May 2017 09:57:00 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Tue, 02 May 2017 05:53:43 -0400 (EDT) Received: (qmail 24095 invoked from network); 2 May 2017 09:53:43 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 2 May 2017 09:53:43 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id C98FDEC7E18; Tue, 2 May 2017 02:53:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: FYI: [My FreeBSD-12.0-CURRENT-arm64-aarch64.raw ] under qemu-system-aarch64 on odroid-c2 under UbuntuMate : [A combination that boots] From: Mark Millard In-Reply-To: <9D0414D3-7A48-4C37-8710-1AFAA5E2874E@dsl-only.net> Date: Tue, 2 May 2017 02:53:42 -0700 Cc: freebsd-arm , FreeBSD Current , Tom Vijlbrief , "O. Hartmann" Content-Transfer-Encoding: quoted-printable Message-Id: <85D4E274-07FC-4E92-8A23-99712FB50707@dsl-only.net> References: <47F6A67D-2D97-4992-96CE-45751190CA86@dsl-only.net> <61C08AFE-0BE8-4BDE-B50C-09268850AE21@fubar.geek.nz> <9D0414D3-7A48-4C37-8710-1AFAA5E2874E@dsl-only.net> To: Andrew Turner X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2017 09:53:51 -0000 On 2017-Apr-30, at 10:15 AM, Mark Millard wrote: > On 2017-Apr-30, at 9:40 AM, Andrew Turner = wrote: >=20 >>> On 30 Apr 2017, at 12:02, Mark Millard = wrote: >>> . . . >>=20 >> No, the device tree blob comes from UEFI. It seems the current UEFI = only provides the ACPI tables, and not a DTB. >=20 > So you are expecting that the older QEMU_EFI.fd I had > used before provided some sort of fairly generic dtb > (relative to qemu, fairly independent of the host > that was running qemu). Interesting. Thanks again. > . . . > qemu-system-aarch64 -m 1024M -enable-kvm -cpu host -M virt \ > -bios QEMU_EFI.fd -nographic \ > -drive = format=3Draw,if=3Dnone,file=3DFreeBSD-12.0-CURRENT-arm64-aarch64-20170420-= r317181.raw,id=3Dhd0 \ > -device virtio-blk-device,drive=3Dhd0 \ > -device virtio-net-device,netdev=3Dnet0 \ > -netdev user,id=3Dnet0 \ > -smp cpus=3D4 >=20 > based on: >=20 > = http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upst= ream/1917/QEMU-AARCH64/RELEASE_CLANG35/QEMU_EFI.fd Using the following instead lead to booting all the way and being able to login: = https://releases.linaro.org/components/kernel/uefi-linaro/16.02/release/qe= mu64/QEMU_EFI.fd So you were definitely correct. > but this time based on my build of head -r317015 . This combination seemed more stable than the one from back in 2016-Sept. I strongly expect that the official snapshot would boot based on this alternate QEMU_EFI.fd as well, but I've not tried that combination. The boot still gets: usb_needs_explore_all: no devclass during the boot but it does not hang after that message. I have not gotten networking going in FreeBSD in the quick try that I made. So I still do not have a /usr/src in place to try with a buildworld buildkernel . Here is a boot log: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Initializing modules: ZFS UFS Probing 6 block devices.......*. done ZFS found no pools UFS found 1 partition Consoles: EFI console =20 Command line arguments: loader.efi Image base: 0x79c13000 EFI version: 2.60 EFI Firmware: EDK II (rev 1.00) FreeBSD/arm64 EFI loader, Revision 1.1 EFI boot environment Loading /boot/defaults/loader.conf /boot/kernel/kernel text=3D0x7ba068 data=3D0x9e6f8+0x39c3fe = syms=3D[0x8+0x103b60+0x8+0xf8a79] /boot/entropy size=3D0x1000 Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Using DTB provided by EFI at 0x7ffdd000. KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT r317015M arm64 FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on = LLVM 4.0.0) VT: init without driver. Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: on ofwbus0 clk_fixed0: on ofwbus0 psci0: on ofwbus0 gic0: mem = 0x8000000-0x800ffff,0x8010000-0x801ffff on ofwbus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 288 gicv2m0: mem = 0x8020000-0x8020fff on gic0 generic_timer0: irq 34,35,36,37 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 virtio_mmio0: mem 0xa000000-0xa0001ff irq 0 on = ofwbus0 virtio_mmio1: mem 0xa000200-0xa0003ff irq 1 on = ofwbus0 virtio_mmio2: mem 0xa000400-0xa0005ff irq 2 on = ofwbus0 virtio_mmio3: mem 0xa000600-0xa0007ff irq 3 on = ofwbus0 virtio_mmio4: mem 0xa000800-0xa0009ff irq 4 on = ofwbus0 virtio_mmio5: mem 0xa000a00-0xa000bff irq 5 on = ofwbus0 virtio_mmio6: mem 0xa000c00-0xa000dff irq 6 on = ofwbus0 virtio_mmio7: mem 0xa000e00-0xa000fff irq 7 on = ofwbus0 virtio_mmio8: mem 0xa001000-0xa0011ff irq 8 on = ofwbus0 virtio_mmio9: mem 0xa001200-0xa0013ff irq 9 on = ofwbus0 virtio_mmio10: mem 0xa001400-0xa0015ff irq 10 on = ofwbus0 virtio_mmio11: mem 0xa001600-0xa0017ff irq 11 on = ofwbus0 virtio_mmio12: mem 0xa001800-0xa0019ff irq 12 on = ofwbus0 virtio_mmio13: mem 0xa001a00-0xa001bff irq 13 on = ofwbus0 virtio_mmio14: mem 0xa001c00-0xa001dff irq 14 on = ofwbus0 virtio_mmio15: mem 0xa001e00-0xa001fff irq 15 on = ofwbus0 virtio_mmio16: mem 0xa002000-0xa0021ff irq 16 on = ofwbus0 virtio_mmio17: mem 0xa002200-0xa0023ff irq 17 on = ofwbus0 virtio_mmio18: mem 0xa002400-0xa0025ff irq 18 on = ofwbus0 virtio_mmio19: mem 0xa002600-0xa0027ff irq 19 on = ofwbus0 virtio_mmio20: mem 0xa002800-0xa0029ff irq 20 on = ofwbus0 virtio_mmio21: mem 0xa002a00-0xa002bff irq 21 on = ofwbus0 virtio_mmio22: mem 0xa002c00-0xa002dff irq 22 on = ofwbus0 virtio_mmio23: mem 0xa002e00-0xa002fff irq 23 on = ofwbus0 virtio_mmio24: mem 0xa003000-0xa0031ff irq 24 on = ofwbus0 virtio_mmio25: mem 0xa003200-0xa0033ff irq 25 on = ofwbus0 virtio_mmio26: mem 0xa003400-0xa0035ff irq 26 on = ofwbus0 virtio_mmio27: mem 0xa003600-0xa0037ff irq 27 on = ofwbus0 virtio_mmio28: mem 0xa003800-0xa0039ff irq 28 on = ofwbus0 virtio_mmio29: mem 0xa003a00-0xa003bff irq 29 on = ofwbus0 virtio_mmio30: mem 0xa003c00-0xa003dff irq 30 on = ofwbus0 vtnet0: on virtio_mmio30 vtnet0: Ethernet address: 52:54:00:12:34:56 virtio_mmio31: mem 0xa003e00-0xa003fff irq 31 on = ofwbus0 vtblk0: on virtio_mmio31 vtblk0: 32768MB (67110465 512 byte sectors) pcib0: mem 0x3f000000-0x3fffffff on = ofwbus0 pci0: on pcib0 uart0: mem 0x9000000-0x9000fff irq 33 on = ofwbus0 uart0: console (9600,n,8,1) cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 cryptosoft0: Timecounters tick every 10.000 msec usb_needs_explore_all: no devclass Release APs CPU 0: ARM Cortex-A53 r0p4 affinity: 0 Instruction Set Attributes 0 =3D Instruction Set Attributes 1 =3D <0> Processor Features 0 =3D Processor Features 1 =3D <0> Memory Model Features 0 =3D <4k Granule,64k = Granule,MixedEndian,S/NS Mem,16bit ASID,1TB PA> Memory Model Features 1 =3D <> Debug Features 0 =3D <2 CTX Breakpoints,4 Watchpoints,6 = Breakpoints,PMUv3,Debug v8> Debug Features 1 =3D <0> Auxiliary Features 0 =3D <0> Auxiliary Features 1 =3D <0> CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 Trying to mount root from ufs:/dev/ufs/rootfs [rw]... warning: no time-of-day clock registered, system time will not be set = accurately Setting hostuuid: 5f6ed2d1-2dcc-11e7-b81e-f171534e5634. Setting hostid: 0x9f2fff5d. Starting file system checks: /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ufs/rootfs: clean, 6154717 free (4485 frags, 768779 blocks, 0.1% = fragmentation) Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Setting hostname: ODC2FBSD. Setting up harvesting: = [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATT= ACH,CACHED Feeding entropy: . Starting Network: lo0 vtnet0. lo0: flags=3D8049 metric 0 mtu 16384 options=3D600003 inet6 ::1 prefixlen 128=20 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2=20 inet 127.0.0.1 netmask 0xff000000=20 groups: lo=20 nd6 options=3D21 vtnet0: flags=3D8802 metric 0 mtu 1500 options=3D80028 ether 52:54:00:12:34:56 media: Ethernet 10Gbase-T status: active nd6 options=3D29 Starting devd. Starting Network: vtnet0. vtnet0: flags=3D8802 metric 0 mtu 1500 options=3D80028 ether 52:54:00:12:34:56 media: Ethernet 10Gbase-T status: active nd6 options=3D29 add host 127.0.0.1: gateway lo0 fib 0: route already in table add host ::1: gateway lo0 fib 0: route already in table add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Creating and/or trimming log files. Starting syslogd. No core dumps found. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Sun Apr 30 18:41:18 UTC 2017 FreeBSD/arm64 (ODC2FBSD) (ttyu0) login:=20 =3D=3D=3D Mark Millard markmi at dsl-only.net