From nobody Fri Jan 21 19:39:09 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 B3C581969B1E for ; Fri, 21 Jan 2022 19:39:47 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) (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 4JgV825c1Vz3sTC for ; Fri, 21 Jan 2022 19:39:46 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: by mail-ot1-x330.google.com with SMTP id k13-20020a056830150d00b0059c6afb8627so10851430otp.5 for ; Fri, 21 Jan 2022 11:39:46 -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; bh=nShQec5R6OUc0bwN6oHjj+kaehlUXGkGxh+wNtPlq/s=; b=gMDMb9qWG+GvdCW8PZzTUm+HRvPwA9lv3zUmHs55K6bdGSkmx9eHuBxeVW647oG0l5 7npETJJG50tBJyf/oMlJd6pbyvvTgOZBSMmN4jH06OssdKaMZcVatoID0/LsmGuTfezB b1iGd5XlVXNsVzSPSqI+mexlpMUc0fJpyqAangxdmJWzFiRSXkXwLa/8uCAYtcAdj/q5 76hwPx0ZU7qLisXMG8xiYxThJieMDhTGw0cKfP3Bx9LZyCI5d5uAWZCHE3U5JEdAbsKM tNzfvfp2UM3WPoQjkmOZ/14VDypiYVxu8pPDaRBX7l9mYcpO96QyA7qFWM7khCqAiCYq SPkw== 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; bh=nShQec5R6OUc0bwN6oHjj+kaehlUXGkGxh+wNtPlq/s=; b=N28V4RWIIlaUFB7JUpz48sULUirxDORrrf4oxXKvd1CEggSl0so3qdaNIPO+Y0GZ8E y5ki0mH9CIz4XI0oxreakC+LmeGbmEny+DRqgvSsEOiGveSnF/c0n/49cT1dOsqQc8iv 0wvfm+B/v8jyT9e7L54makJkh+IzcxvaMd55Vbg7bdvV706KIwryIpP/xkP+OgLIUEcI hE53muEk/qxKtCtCQmDPIuY6JZhkN7nJA9Q3c8X0+beVlp+A7DJAc1cBAQKZXxoCYNav OiyJL9x+Xzx7dBvRfaLytngr5wuQOueswaUCO5rkgvB/A8KcnJ0ht4m15LsVOB5uMT6f uCyg== X-Gm-Message-State: AOAM532yTDKMblWFa4I77cNRT0C/QYp75fxQuPsiTdCHN9MU6fJoQEmu 27GHlTIiwqGYh4jubxrgh9mfLega7cBu7/oHg16+8+hUWFU= X-Google-Smtp-Source: ABdhPJw3nGX5/kQjQdUKPegwZK/t6tjo+9pBRxbCQ/UbZHsSS1VKa0Fnur5DTYeGTImS4t3cmoAclqvN8vkS1nuvHwY= X-Received: by 2002:a9d:53c8:: with SMTP id i8mr3964116oth.166.1642793985898; Fri, 21 Jan 2022 11:39:45 -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> <20220121072746.6e530a87@zeta.dino.sk> In-Reply-To: <20220121072746.6e530a87@zeta.dino.sk> From: Lee D Date: Fri, 21 Jan 2022 14:39:09 -0500 Message-ID: Subject: Re: Trouble booting RELENG 13.0 on a Zynq XC7Z010 (Zybo-like) board To: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4JgV825c1Vz3sTC X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=gMDMb9qW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of embaudarm@gmail.com designates 2607:f8b0:4864:20::330 as permitted sender) smtp.mailfrom=embaudarm@gmail.com X-Spamd-Result: default: False [1.98 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_SPAM_SHORT(0.98)[0.984]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::330:from]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MLMMJ_DEST(0.00)[freebsd-arm]; NEURAL_SPAM_LONG(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 On Fri, Jan 21, 2022 at 1:28 AM Milan Obuch wrote: > > What about 'bt' output here? Knowing where the crash is occuring along > with callstack should help abit... > > Regards, > Milan > Typing bt at the KDB prompt does nothing useful. Depending on how I have the kernel options set, it either produces no stack trace or one that is limited to a couple of functions inside the debugger. I was tracing through with xsct this morning, with conflicting results as to where the crash happens. It's somewhere either in the call to dbg_monitor_init() (from initarm()), or shortly after that call. Sometimes I can get it to crash in dbg_reset_state(), but other times it doesn't crash until later. I think there is conflict between running the xsct debugger and FreeBSD trying to configure the hardware debug registers. I think it is wiping out my xsct breakpoints in hardware. It still crashes even if I don't run it under the xsct debugger at all. If I don't include "options DDB" in the kernel config file, and just include KDB and KDB_TRACE, it doesn't crash until much later in the boot process (due to a different issue). For now I am pretty happy just excluding DDB from the config, but I'd like to get it working eventually. As for my earlier questions about boot code, I was looking through the src/stand directory, and found a lot of useful info in there which I am going to explore. Thanks, Lee