From nobody Mon Feb 28 17:48:26 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 987A819EEEF9 for ; Mon, 28 Feb 2022 17:48:30 +0000 (UTC) (envelope-from freebsd-riscv@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4K6nt54w9kz3mkn for ; Mon, 28 Feb 2022 17:48:29 +0000 (UTC) (envelope-from freebsd-riscv@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by mailhost.netlabit.sk with ESMTPSA; Mon, 28 Feb 2022 18:48:27 +0100 id 00DD63AA.621D0AEB.0000E88C Date: Mon, 28 Feb 2022 18:48:26 +0100 From: Milan Obuch To: freebsd-riscv@freebsd.org Subject: Re: Sipeed Lichee RV (Allwinner D1) Message-ID: <20220228184826.5bdfe7d9@zeta.dino.sk> In-Reply-To: References: <54a1fb0c-1128-a9fc-a96d-fe973bd2cabc@alvermark.net> <41855845-4e9f-deb9-386c-3e98b99692e9@alvermark.net> X-Mailer: Claws Mail 3.18.0git333 (GTK+ 2.24.33; i386-portbld-freebsd11.4) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4K6nt54w9kz3mkn X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-riscv@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-riscv@dino.sk X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-riscv]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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/GENERIC > 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 = 536870912 (512 MB) > avail memory = 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