From nobody Mon May 16 09:23:40 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C316D1ADF342 for ; Mon, 16 May 2022 09:23:42 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L1v256hznz3pZL; Mon, 16 May 2022 09:23:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1652693020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IZwjSs6ttROPnB7QCSfFdiWo9Lnqr9H6fEUxqvMSWa0=; b=Vi2SIsRNRHFZg+XmwOA9rRrJJbY13B8d1OrkeLw3vxnK+9UjcAyNwP8c+SINFMQp67flN+ RklIEAf+3/GowZRikeJ2rIfOWw0gP/Rq/uEhUf3vxUvfMINlXw/gYh6joMdAkgHZGDkaAX 1PBa463XcWR/CbYmxljxcRSCMcHyVcE= Received: from amy.home (lfbn-mon-1-549-108.w2-4.abo.wanadoo.fr [2.4.130.108]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 9c9e517d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 16 May 2022 09:23:40 +0000 (UTC) Date: Mon, 16 May 2022 11:23:40 +0200 From: Emmanuel Vadot To: Emmanuel Vadot Cc: Alexey Dokuchaev , Micha?? G??rny , freebsd-arm@freebsd.org Subject: Re: Hang while trying to boot armv7 on qemu-system-arm Message-Id: <20220516112340.9fc053562f598708700f4df4@bidouilliste.com> In-Reply-To: <20220516112022.d806878fff7fb35d1decd774@bidouilliste.com> References: <20220516112022.d806878fff7fb35d1decd774@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4L1v256hznz3pZL X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=Vi2SIsRN; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.96)[-0.961]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[2.4.130.108:received] X-ThisMailContainsUnwantedMimeParts: N On Mon, 16 May 2022 11:20:22 +0200 Emmanuel Vadot wrote: > On Mon, 16 May 2022 09:11:05 +0000 > Alexey Dokuchaev wrote: > > > On Wed, Jan 27, 2021 at 03:21:50PM +0100, Micha?? G??rny wrote: > > > Hi, > > > > > > [...] 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 [after these lines]: > > > > > > 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) > > > > I've just tried following the same wiki recipe with GENERICSD images > > for 12.3 and 13.1-RC4, with the same outcome, regardless of the QEMU > > version. How to proceed from here? Is wiki recipe missing important > > details? If it works for someone, could you guys share exact versions > > of QEMU, U-Boot, FreeBSD version and image type you're using? Thanks, > > > > ./danfe > > > > > [1] https://wiki.freebsd.org/QemuRecipes#armv7 > > > > GENERICSD doesn't have the QEMU u-boot. > We cannot add it as it have the same name than the u-boot file for > RPI-B. > So what you need to do is to pkg install u-boot-qemu-arm and copy the > u-boot.bin from there in the image. > > Cheers, Mhm no that might not be the problem now that I've looked at the first mail. I've never used qemu for armv7 but hanging here could be a lot of things. It could be that we do not recognize the serial in the DTB (if something have changed in qemu and we do not support it for example), that's the first thing I'd look at if I was interested in this problem. -- Emmanuel Vadot