From nobody Fri Jan 21 00:22:33 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 428261951EE8 for ; Fri, 21 Jan 2022 00:23:17 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jg0Tc3p7xz3FqH for ; Fri, 21 Jan 2022 00:23:16 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: by mail-ot1-x32b.google.com with SMTP id c3-20020a9d6c83000000b00590b9c8819aso9749873otr.6 for ; Thu, 20 Jan 2022 16:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k7YgpIgmhXx7aYASjRX8mVE0+inpHlhD1ROwFlrNiWU=; b=LO9C3fJow4E2pAI0jQDYbLuO/Tzpjw+CKIqMuKaipveip3qzU7WcemdRPrlNssnvMB nABhS54utJWy4G+LRrgtLlmm8KX/n2C4QzF4z3kXeT8OjgvhbvlZRuSQEwjicHjUjZBh KndgOwDgIxjobVvNgDEZD7FtEzZhvPMx8GB9I0S2QaGxhefOAALOFxnmerlYD8m49151 FEEGNscLZnvkv9C1cpIy6jhw5qTsCwc6I+l9kxRmIDxIKaRV3u4IUSctzy223qbVYcyQ 9tZNx6WyHrW7hkjPYcUQjHgI+xYnZU0egE8F07nqg3IU3m5LRDL1ojsyzy16T7vkwd67 YuZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k7YgpIgmhXx7aYASjRX8mVE0+inpHlhD1ROwFlrNiWU=; b=an3W7boUOtY9JwHnrORHcbePMKxVp57HtRANsnjdGkjRT+JGtlK5ymKCHCKqPX6Tpt rpuFlgrt1yrSTbJppjvbO9j6kDVNFSc5kZVubHffLXg1Q3pZ2Z16SGd3ZFtetJfB61X7 2m5U9acjHHhYsOyeaQxZSZrPupg6Dfi/CIXTNanCipIxTAufwSjzuhmD24IpmWnNP+vm Zuk4beE2Fy986p7Gcro6oivuQbqDWrI84tfaru/mAwRgHgKQGuk8Mbygj+yplTmPhreF jlyUPDb/z1qRmCc9FCv5MXn4hiOfFu2Rx7XRVlNNna4WCY9mexaszMphUR/wXabfUojh 8Auw== X-Gm-Message-State: AOAM531YRwSvbiy2M86cvxnNga1Wpi3VDRw0YLCuD7aytb7S7cO4WVTs f31T//7bd/aOVp6u9hEPkksyJD2yWDXEaUVFW1QQJ9PdQPo= X-Google-Smtp-Source: ABdhPJzydzO8g9qVt2NuiEyEQ++1+eia0XCbZtIwgcnW/K0uUU6FJpGBBgcp/3xfMJygVZGFXxAcsBECwGbiaDUoDQg= X-Received: by 2002:a9d:f04:: with SMTP id 4mr1017091ott.326.1642724589888; Thu, 20 Jan 2022 16:23:09 -0800 (PST) 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 References: <20220120235128.0e7fb82d@zeta.dino.sk> In-Reply-To: <20220120235128.0e7fb82d@zeta.dino.sk> From: Lee D Date: Thu, 20 Jan 2022 19:22:33 -0500 Message-ID: Subject: Re: Trouble booting RELENG 13.0 on a Zynq XC7Z010 (Zybo-like) board To: Milan Obuch Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Jg0Tc3p7xz3FqH X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=LO9C3fJo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of embaudarm@gmail.com designates 2607:f8b0:4864:20::32b as permitted sender) smtp.mailfrom=embaudarm@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32b:from]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 2000 Lines: 54 On Thu, Jan 20, 2022 at 5:52 PM Milan Obuch wrote: > Hi, > > how is this boot loader made? All Zynq based boards I know about use > U-Boot customized according the board's design. Thanks for the response. I've fixed a couple of problems, and gotten a little further, but the kernel is still crashing before it prints the banner. This is a custom bootloader, for a custom PCB, that I wrote from scratch back in 2016. > > 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. > Yes, it turns out that a new dtb was needed. I needed to: 1. update my .dts to reflect the default zybo .dts settings, and include "zynq-7000.dtsi" from the source tree. 2. add the "xlnx,zynq-7000" string to the "compatible" key. That solved the problem with the "No platform module found!" panic. 3. add "freebsd,dts-version = "5.9";" to the dts file, which is something that the FreeBSD build system adds automatically when compiling dts files. > 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. After I did #2, above, then the serial output started working, so it seems it is still expecting the same settings (uart 1, 115200/8/n/1) as FreeBSD 11. Now I am to the point of getting another crash, with no panic message, that dumps me into the KDB debugger prompt. > > There is some push towards using efiloader for loading kernel. I have > no specific answer on kernel environment... If anyone could point me to the code that sets up the metadata and environment so the kernel can run, that would be super helpful. Right now I am still using the same metadata structures that I used for FreeBSD 11. Thanks, Lee