From owner-freebsd-arm@freebsd.org Wed Jan 27 16:17:15 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 38D344FD3BB for ; Wed, 27 Jan 2021 16:17:15 +0000 (UTC) (envelope-from mgorny@gentoo.org) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DQpf2250Jz4j82 for ; Wed, 27 Jan 2021 16:17:14 +0000 (UTC) (envelope-from mgorny@gentoo.org) Message-ID: Subject: Re: Hang while trying to boot armv7 on qemu-system-arm From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: "Dr. Rolf Jansen" Cc: freebsd-arm@freebsd.org Date: Wed, 27 Jan 2021 17:17:07 +0100 In-Reply-To: <24458513-E2EC-45DF-809C-D4F047BE232B@obsigna.com> References: <24458513-E2EC-45DF-809C-D4F047BE232B@obsigna.com> Organization: Gentoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4DQpf2250Jz4j82 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=gentoo.org; spf=pass (mx1.freebsd.org: domain of mgorny@gentoo.org designates 140.211.166.183 as permitted sender) smtp.mailfrom=mgorny@gentoo.org X-Spamd-Result: default: False [-3.53 / 15.00]; ARC_NA(0.00)[]; R_MIXED_CHARSET(0.77)[subject]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[140.211.166.183:from]; R_SPF_ALLOW(-0.20)[+ip4:140.211.166.183]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gentoo.org,none]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3701, ipnet:140.211.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; RCVD_IN_DNSWL_HI(-0.50)[140.211.166.183:from] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2021 16:17:15 -0000 On Wed, 2021-01-27 at 12:29 -0300, Dr. Rolf Jansen wrote: > > Am 27.01.2021 um 11:21 schrieb Michał Górny : > > > > Hi, > > > > I'm currently working on improving LLDB support for FreeBSD. As > > part > > of that, I would like to do some testing on all platforms that are > > supported by LLDB on FreeBSD. I've been trying to boot armv7 via > > qemu > > following the recipe on wiki [1] but without success. > > > > I've been trying the armv7 images from FTP, 12.2 in GENERICSD and > > RPI2 > > variants, and 12.1 in GENERICSD variant. In all cases, the system > > seemed to hang at 'spinner'. While qemu used 100% of one of the CPU > > threads, nothing new was output for a few minutes (FWICS FreeBSD's > > CI > > sets a timeout of 60 seconds), so I suppose it actually hanged. > > > > The last screen of output I got is: > > > > ``` > > Loading kernel... > > /boot/kernel/kernel text=0x8b757c data=0xa4d90 data=0x0+0x1f4000 > > syms=[0x4+0xa42d0+0x4+0x106515] > > Loading configured modules... > > can't find '/boot/entropy' > > /boot/kernel/umodem.ko text=0x1520 text=0xf10 data=0x234+0x4 > > syms=[0x4+0xe70+0x4+0xa74] > > loading required module 'ucom' > > /boot/kernel/ucom.ko text=0x1714 text=0x2c6c data=0x3c4+0x838 > > syms=[0x4+0x13e0+0x4+0xbac] > > can't find '/etc/hostid' > > > > Hit [Enter] to boot immediately, or any other key for command > > prompt. > > Booting [/boot/kernel/kernel]... > > Using DTB provided by EFI at 0x47dfd000. > > Kernel entry at 0x57e00180... > > Kernel args: (null) > > > > > ``` > > > > Does anyone have any idea what I am doing wrong? Or have any recent > > successes booting FreeBSD on qemu-system-arm? > > > > Alternatively, would someone with real hardware or working VM be > > able to > > offer me shell access for a few days? I only need to transfer my > > cross- > > built LLDB, run one unit test and test a bit of debugging on a > > trivial > > program, so I won't use many resources. > > > > > > [1] https://wiki.freebsd.org/QemuRecipes#armv7 > > [2] > > http://ftp.freebsd.org/pub/FreeBSD/releases/arm/armv7/ISO-IMAGES/ > > > > -- > > Best regards, > > Michał Górny > > I cannot be of help with QUEMU, but I could give you ssh access to one > of my BeagleBone Blacks. This one is currently running 13.0-ALPHA2. > Frequently I build world with WORLD_FLAGS="MK_LLDB=yes". LLDB builds > fine for ARMv7 and it is usable to a certain extend on a BBB, but > there are some issues. Perhaps we may discuss this later on. Thank you, that would certainly be helpful. I can't promise that I'll be able to tackle more than bare minimum right now but I can certainly add more goals to my TODO ;-). My SSH key is: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCnt/PgGo7aBehonpdQZYcx7MsT7vteS32R2cc4BhL+pLsS8gBRG7mOe/PRr7CsGUu9zEsXxdFVR8OfIbynX8We/Z97pAVskme8QZgeoO/9/1cuxFhcRd3AlCCCDk99dbA8vTGAiva/lGPJnwU4+R86jv3nhOLtfredvCvJEjXRdClTjir1KwZV80u6bGuDaszt86FG+uWz4MLvVujFZDzIR9iQGwBySYOAMqZMxpCprEMeJdw52XGdO482ldC9CEEODIHVYIkwfcezkxDHKaTHOkKp14w4+2eMqFA8NBTSUivx1kJ7gZ2goSURZRP3PmllQvsnLyymR0H5c9kqKofsloHba+Q4oIRXEGghVJtgAkWizWC1pA+uiaA/TChcEEz07LVtmT/AHo3q+4BW0cEF9eHVcdEl73Kff9LdOXIam+HH1WZ6KJZX3MPKK58/QioW2oVJEIm73476NJIUdg1+WKF2CUErpScC/BHwG7Tuu9TU9ggXwOuacSIuvoInAlJNQVxVUsQ1+Svpm5Hgvpd7ljQ1NFk0qZN4yXojNXed3Dm7Hpv0Z3yegSjw0fzP1+oKG9WwH2wCPQPCESCLuBe6P7I2Sqn+wBMDNO8VqWD54Ncp/rNdgHzT4AJhyEIxzCVJd/tl1DTRV7ph9LccVSU3HLAwe8aksFXAfE9VJwkDEw== -- Best regards, Michał Górny