From nobody Sun Mar 13 16:30:43 2022 X-Original-To: freebsd-riscv@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 286D61A09B22 for ; Sun, 13 Mar 2022 16:30:57 +0000 (UTC) (envelope-from julien.cassette@gmail.com) Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 4KGlXc3Nk3z3lfp for ; Sun, 13 Mar 2022 16:30:56 +0000 (UTC) (envelope-from julien.cassette@gmail.com) Received: by mail-lj1-x22a.google.com with SMTP id q5so18634490ljb.11 for ; Sun, 13 Mar 2022 09:30:56 -0700 (PDT) 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 :content-transfer-encoding; bh=9CZ+8MPmfIuo9fe9uAjvED0emhL7A7QSC9vnUcNe8/M=; b=e57jsDzTQlm6abz6JDK42XmNlBGuUV1HrWEhss7sGHWRRsA4b9N4ehAUr20WSSch+K 9+Ul/r6f0mOUcKPYvneoewsfv4iAonA76gHC8PIQv/yqmUrEJ+yjFkKKWV/zHTGQp9La KIwKorFR/Kw5btLLkZjqQoM7M856qpRpSRGp6Gh+OD5KJUui5RnQLUAbLm8IfQzOOaVB CkyTVKvDhtXLjuFre6NnaaEadylCUfHHqiKfAKkRWvpTF/2IDLxRKM74c1M7y6SvslRl Pt/PzioNmsLrQNk3QcYulm/NwInG+9Vtxs1T3pO393TBqCIbF9MPOg/QQrVh5IcE12CO XxUw== 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:content-transfer-encoding; bh=9CZ+8MPmfIuo9fe9uAjvED0emhL7A7QSC9vnUcNe8/M=; b=UFGS1GFqhB3oYG1rHSBbUylx/pnEpuqPi7NdGkqs/Hx6yddac9j82u76xz1yj+CZO1 vEMQreikxgrmDdUhANg7Txz7v1evpr1XyOR5GCEmt4LI9F3KPfrHSdJ/HZnGkeGmZbc8 3yTiRNbPZV/QmcP/9ZQ+OUZnQA3f+rSvXCon6ei7rRyDvYzd+BYwd1NtdSZNrYMWJqst XhcyOF0cFffXXizy9ZvPYRFlFwmX6iHCQHOP0Wx8BwxN6rAIDCyvgHVsRkatiA+wdpEl u1Ymv4hQOMCy060Kiui4DyZPK6WXuMSbTKIA9qLiX3jrQdAR2vvFVhyVRTcSnCGYrwA6 jN7Q== X-Gm-Message-State: AOAM533kWpD7YK+Qqy5rE79Mxa4L10PbcoE/RZ3UYNrWZeJh6abphkFw 5k68lXmiezDa4e2w8i+YMvoIZ9hqvh7X66DElGNkw4AUoi8= X-Google-Smtp-Source: ABdhPJwXvzS9DaKu0vADN2zNCHUWXX5yx/Om/uIu4+zFuTtoR3dBdquXaOmQ9rtW9ChQO/Au25UQA4jinKaaTNQT+xY= X-Received: by 2002:a05:651c:1404:b0:244:32ad:42e8 with SMTP id u4-20020a05651c140400b0024432ad42e8mr11445823lje.7.1647189054986; Sun, 13 Mar 2022 09:30:54 -0700 (PDT) List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 References: <54a1fb0c-1128-a9fc-a96d-fe973bd2cabc@alvermark.net> <41855845-4e9f-deb9-386c-3e98b99692e9@alvermark.net> <20220228184826.5bdfe7d9@zeta.dino.sk> <20220303232547.316daa2d@zeta.dino.sk> In-Reply-To: <20220303232547.316daa2d@zeta.dino.sk> From: Julien Cassette Date: Sun, 13 Mar 2022 17:30:43 +0100 Message-ID: Subject: Re: Sipeed Lichee RV (Allwinner D1) To: freebsd-riscv@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4KGlXc3Nk3z3lfp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=e57jsDzT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of juliencassette@gmail.com designates 2a00:1450:4864:20::22a as permitted sender) smtp.mailfrom=juliencassette@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; 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:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; 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)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.91.184.120:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DBL_PROHIBIT(0.00)[0.91.184.120:email]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22a:from]; MLMMJ_DEST(0.00)[freebsd-riscv]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Le jeu. 3 mars 2022 =C3=A0 23:25, Milan Obuch a =C3= =A9crit : > > > Well, this is probably watchdog firing reset. From U-Boot: > > WDT: Started watchdog@6011000 with servicing (16s timeout) > > You need either write a watchdog driver to prevent timeout occuring, or > disable the watchdog (if possible, this could not be the case). Also, > it would help to see FDT (from U-Boot, command 'fdt print', but this > needs probably 'fdt addr xxxx' with correct address first). Log > presented is too short, suggesting FDT used is incomplete for some > reason. > > Also, you can load root filesystem from embedded image automatically, > using > > options ROOTDEVNAME=3D\"ufs:/dev/md0\" > > in kernel config. > > Regards, > Milan > Hi Milan and thanks for the help I have modified the `aw_wdog` driver to support the D1, and now the device does not reset after executing `watchdog -t 0`. I am trying to make the `aw_mmc` driver work but it is failing on getting ressources, I guess the IRQ one. Source code: https://github.com/jcassette/freebsd-src/tree/sun20i-d1 Boot log: https://pastebin.com/1MDWtymS Output of FDT print: https://pastebin.com/CkKmej7s Regards, Julien