From nobody Thu Jan 20 19:41:10 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 BE9D41960C0F for ; Thu, 20 Jan 2022 19:41:47 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 4JftDp75NQz3PlN for ; Thu, 20 Jan 2022 19:41:46 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: by mail-oi1-x22c.google.com with SMTP id s127so10466916oig.2 for ; Thu, 20 Jan 2022 11:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=pif7GKzQYDzYJ/D5jBaZ2pwO18KWE8ZnrBIfmKCawUc=; b=R8+FrU6yoSBK6Ev3Flb1Il57VG7RqIk0V6MvKJbmABvqe32sT5X6NmTJ90HHkZ51Q8 xX2E7e9rnJQBS/qq+9iEsZ1CQ4Ueqy6AWr5Y2eMG7Ob52rrDWia4EsYCQth4MZf6To5b +4x9NYXv/cLt3ygX0WP+0RWp5YGBfBfN54W+hSAF7cSzbV08ouf1AZP3fYVXv3rVBmVp U023XTO1fc0NAC4w6HRa3eieSD2yg5ztWZvj+JH0LYLO0F94bKI1PfbQ5sMWt3yCesLO wgIR8LLuXCKB8FDvUlM0hWujFT43EsSlZWzRI+hdLiInCOr8Z0K/ky0+15Gv+LXiikCh xqSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pif7GKzQYDzYJ/D5jBaZ2pwO18KWE8ZnrBIfmKCawUc=; b=eSpkjNk//GnmoB7/aFjw0/nclK59UKhIKKM602ydn429IfzhMP4F3nMDOmiMFJf0gz GcoQjHCKP3wIffZlUrBoZaxF11PoQiM6XEHDTR4ZSS5d9JDY9nQEGzDD7GrPUgFOeZwq ri9MrJ3g+OJ2JbuYCDfZNnV05zAzguTAC3NjdFown33GdN6aO2ZLkyfIq5GoKjv592lB ateXBlYevkaqR7wv5LdsIKEtj3k/o7AD/da7pfEXq2+R2Euk/+VEgaNL2MDz5ZIiUCkl +IMdr/yhcS9GSEABAGYlPqCUrzSZ4D+bM3Q446ZFRqUMAEnFFVXQXFNNBGKIWfK+yuQD EmNQ== X-Gm-Message-State: AOAM530EQQqbjC0jJIva/1yBC7s0q/dtPCWjJzIlF8MXDAwK7IseM3b8 BHxUrribeTV5V3aHdKahsgDB+qfWDtQzMZU+6DFHX+7B6fw6VA== X-Google-Smtp-Source: ABdhPJyen+L/7krD4nXmROnzXqq/y2ENy7FGmmY6uTH9X98i9PSEciqwQLc2yU0eKnyZQMbXr+vO7Mnk51OkUQEZYtY= X-Received: by 2002:a05:6808:bcc:: with SMTP id o12mr416738oik.66.1642707706080; Thu, 20 Jan 2022 11:41:46 -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 From: Lee D Date: Thu, 20 Jan 2022 14:41:10 -0500 Message-ID: Subject: 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: 4JftDp75NQz3PlN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=R8+FrU6y; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of embaudarm@gmail.com designates 2607:f8b0:4864:20::22c as permitted sender) smtp.mailfrom=embaudarm@gmail.com X-Spamd-Result: default: False [-3.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-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::22c:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm]; 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 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. 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. 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 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? Thanks, Lee