From nobody Thu Jan 20 22:51:28 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 C40121970A8A for ; Thu, 20 Jan 2022 22:51:40 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JfyRv0bk7z4RhY for ; Thu, 20 Jan 2022 22:51:38 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by mailhost.netlabit.sk with ESMTPSA; Thu, 20 Jan 2022 23:51:30 +0100 id 00DD63AD.61E9E772.00001561 Date: Thu, 20 Jan 2022 23:51:28 +0100 From: Milan Obuch To: freebsd-arm@freebsd.org Subject: Re: Trouble booting RELENG 13.0 on a Zynq XC7Z010 (Zybo-like) board Message-ID: <20220120235128.0e7fb82d@zeta.dino.sk> In-Reply-To: References: X-Mailer: Claws Mail 3.18.0git329 (GTK+ 2.24.33; i386-portbld-freebsd11.4) 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: 4JfyRv0bk7z4RhY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-arm@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-arm@dino.sk X-Spamd-Result: default: False [-1.31 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.988]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 20 Jan 2022 14:41:10 -0500 Lee D wrote: > Hi Everyone, > > I am trying to get FreeBSD RELENG 13.0 to boot on a custom Xilinx Zynq > (XC7Z010) board, based loosely on a Zybo. I am using a custom boot > loader that loads and launches the kernel. > Hi, how is this boot loader made? All Zynq based boards I know about use U-Boot customized according the board's design. > I figured out how to do this back in 2016 with FreeBSD 10 and 11, and > the product that uses this load has been working well ever since. > Back then I used Thomas Skibo's examples as a reference, but those > have not been updated for 13.0. > > Just to start with, I have compiled a 13.0 kernel using a slightly > modified ZEDBOARD config, and am attempting to boot that with my > existing 11.0.1-compatible bootloader, and 11.0.1 dtb file. I > modified the bootloader to jump to 0x02000200 instead of 0x02000100. > I am not sure, but I think there was some change in boot process, so your 11-compatible bootloader is probably no longer compatible with 13.0 kernel. Also, you may need to create new dtb, some modification is probably necessary. > Tracing through, I can see that it is panicking in > platform_probe_and_attach(), with the message "No platform module > found!". > > Also, incidentally, it doesn't seem to be printing messages to the > serial port like it used to. > Could you verify your serial port settings? If I am not mistaken, some critical board setup is expected to be done in bootloader, FreeBSD kernel just uses what is already set. This is valid especially for serial port used as console. > Could anyone tell me what a platform module is and where it is set? > > Also, where is the ubldr (or equivalent) code that sets up the > environment for the kernel launch now located? > There is some push towards using efiloader for loading kernel. I have no specific answer on kernel environment... Regards, Milan