From nobody Thu Mar 03 21:50:30 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 DB77019FD622 for ; Thu, 3 Mar 2022 21:50:43 +0000 (UTC) (envelope-from julien.cassette@gmail.com) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (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 4K8l6C3CBQz3pf5 for ; Thu, 3 Mar 2022 21:50:43 +0000 (UTC) (envelope-from julien.cassette@gmail.com) Received: by mail-lf1-x133.google.com with SMTP id m14so10849174lfu.4 for ; Thu, 03 Mar 2022 13:50:43 -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 :content-transfer-encoding; bh=9/Ywoth2gnz0oQBbpb5ilicRa4CHYwmVbtQCCljc7v8=; b=D2rB3OR/HID+flxkm9Cx0aL+XR+JrP556O/J8hdDyD38QVuZwo9rnaLkmqOQj0iQ1k uP5xMZHAPFcUGBEvY/z6oZvHt/yQvm5oKSeietCtslAidwHzhvtjSzYRD3LUX9i91QIU ir5d3/CCiwQccmRHapEzt8p5OQkHZIjbD2hmllnN//ygqu2eADsVYDjCJv8CldGkkGVf eFXO3WDfalU3b8jF69VOrm6foclYHUb71U0ktpzbormxM9KL02Y1PUz8VV5iru3AstqN ene90qZXRns6tjHM7WIIR/JtrIe0MEPc6ixFrIpNsnaeqSWilxDPkvQm1WEeoQxn8msq +Qew== 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=9/Ywoth2gnz0oQBbpb5ilicRa4CHYwmVbtQCCljc7v8=; b=GskOlVvrOQQmePeouyy6IHqLvZx2EYWLROPMcKeC5fsqY5aqueomIkPpBYvT3d57uf d828T0o7he7xTpvm49l+I5lGBipeDXMrbffUdVqxPIGr5266o+Wk9AzfLKrXaBCkzbUw 4NcJn+y3sPjwz/yZSk7Q1KABKuw+odDZoBv+vGslwZkbVG8OROotpOX7OrzuuA3ItmR5 nIH/Kt175NOEdr17dLXQpm4adGMNQ+YTGzwNWjt7XsLI0g0HrMqr96YCaIAS00GHMP29 RI/WBaD1FFTm6U5uJbGWYRAzW30lrpzRj6gPWekZQYHf3vVJfowHBFgcZcdvxCJ0rkeD jQDA== X-Gm-Message-State: AOAM531VfCmIUbkUy9Bc8w9NUVLZxUZJT7HJOypIIDzWp6fJuOELzfmD lozDyLJO5Hsym7O3CNbg9a/WaiYYVnPbbXJ9qlUe8UzvqeM= X-Google-Smtp-Source: ABdhPJxGqyYntF7ytmVtWSAZK7Ho2iVJAiE8M/yhDKO+05AV6cj5us222nfSfDIydWkUFaVKOdVs/k48KThkkFpTHFY= X-Received: by 2002:a05:6512:2811:b0:447:3ed3:1fab with SMTP id cf17-20020a056512281100b004473ed31fabmr1532489lfb.638.1646344242105; Thu, 03 Mar 2022 13:50:42 -0800 (PST) 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> In-Reply-To: <20220228184826.5bdfe7d9@zeta.dino.sk> From: Julien Cassette Date: Thu, 3 Mar 2022 22:50:30 +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: 4K8l6C3CBQz3pf5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="D2rB3OR/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of juliencassette@gmail.com designates 2a00:1450:4864:20::133 as permitted sender) smtp.mailfrom=juliencassette@gmail.com X-Spamd-Result: default: False [-2.50 / 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]; 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)[]; 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]; NEURAL_SPAM_SHORT(0.50)[0.502]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::133:from]; MLMMJ_DEST(0.00)[freebsd-riscv]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Le lun. 28 f=C3=A9vr. 2022 =C3=A0 18:48, Milan Obuch a =C3=A9crit : > > On Mon, 28 Feb 2022 18:19:46 +0100 > Julien Cassette wrote: > > [ snip ] > > > Now the boot is failing while mouting the rootfs: > > > > Hit [Enter] to boot immediately, or any other key for command prompt. > > Booting [/boot/kernel/kernel]... > > Using DTB provided by EFI at 0x47ef6000. > > Kernel entry at 0x56a0002e... > > Kernel args: (null) > > ---<>--- > > Copyright (c) 1992-2021 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > > 1994 The Regents of the University of California. All rights reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 > > 03:30:22 UTC 2021 > > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/riscv.riscv64/sys/GEN= ERIC > > riscv > > FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git > > llvmorg-11.0.1-0-g43ff75f2c3fe) > > SBI: OpenSBI v0.9 > > SBI Specification Version: 0.3 > > CPU(0): Unknown Implementer Unknown Processor > > real memory =3D 536870912 (512 MB) > > avail memory =3D 507383808 (483 MB) > > arc4random: WARNING: initial seeding bypassed the cryptographic random > > device because it was not yet seeded and the knob > > 'bypass_before_seeding' was enabled. > > random: entropy device external interface > > WARNING: Device "openfirm" is Giant locked and may be deleted before > > FreeBSD 14.0. > > ofwbus0: > > clk_fixed0: on ofwbus0 > > simplebus0: on ofwbus0 > > timer0: > > Timecounter "RISC-V Timecounter" frequency 24000000 Hz quality 1000 > > Event timer "RISC-V Eventtimer" frequency 24000000 Hz quality 1000 > > rcons0: > > cpulist0: on ofwbus0 > > cpu0: on cpulist0 > > cryptosoft0: > > Timecounters tick every 1.000 msec > > Trying to mount root from ufs:/dev/ufs/rootfs [rw]... > > mountroot: waiting for device /dev/ufs/rootfs... > > Mounting from ufs:/dev/ufs/rootfs failed with error 19. > > > > The full boot log is here: https://pastebin.com/BVaqnRh9 > > > > Hi, > > I have zero knowledge about Allwinner D1, however your console log is > really short, almost no devices here. As it is not possible to mount > root this way (no device where any file system could reside on), it > is possible to use memory filesystem (mfs) embedded in kernel for small > root. > > Also, at 'mountroot>' prompt, try pressing '?' to get valid disk boot > devices list, probably it is empty because lack of devices. Using mfs > allows boot to multiuser with some minimal filesystem, which is > important milestone when working on support for new system, in my eyes. > > Regards, > Milan > Hi Milan and thanks for your help > Also, at 'mountroot>' prompt, try pressing '?' to get valid disk boot > devices list, probably it is empty because lack of devices. Yes it is empty. I guess there is no MMC driver for the D1 right now. > is possible to use memory filesystem (mfs) embedded in kernel for small > root. I have managed to boot from an mfs root containing /rescue and some symlink= s. I have got a shell prompt but then the D1 resets a few seconds after that. The log is here: https://pastebin.com/HMCVaHFa Regards, Julien