From nobody Mon Oct 10 12:09:02 2022 X-Original-To: freebsd-fs@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 4MmHlG6D8sz4fHcb for ; Mon, 10 Oct 2022 12:09:14 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) (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 4MmHlG07B7z3rvb for ; Mon, 10 Oct 2022 12:09:14 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-35711e5a5ceso98270767b3.13 for ; Mon, 10 Oct 2022 05:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Y83avL+/UpLDj7hVJlVlYOselKm+vRehxcpNBQzQ7AM=; b=oKm22m3DLu+O+HvSERotu+iOHhFO1WsRX+mXu2ZkRLT5mkQCcLg0I67x5/byLXj7sl odL9ecT/6EvgwRIU4zs9+LBCw8Jjoq8DYGOpcgBVosyxxK9/xMBJdnQWQUcjt8VDnWVc k6DGV5GpXTPUFDkR89qHFbeI1yIOKV8WkahKYZlAQK+3Id6Xf6Yfgst6sUx0WVFkgZlb EbWMhtvPbDenUwnfDLaKtThhtyf4Q2/eNTqC0CV0FyxlnJYj+LR2OYBgWEj9Ctunmgv0 /OCtp0gSFbwbTZixaehbZbJiJWSA5NhwXs5NI+tXYKwoo3vM1082v06S6JOVFpnszXlm 9i3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y83avL+/UpLDj7hVJlVlYOselKm+vRehxcpNBQzQ7AM=; b=o1TlVtRH8ae2TBCcYTl9R3gQnKY7mTsD8NcnJnIuwC0lpz+Doftx+l3ZLQZuCyS2br KTcOjkYGRTdAoLZDVIgYsBQv7YGVPToRHGanoOEpoSOFU52BU8nZA4VSi0Lg3DNzJRnn SnJ3Pj05AbEa6j6MpsTTYNoW1+4P+ghbiJKX2gFsZbZDOKZioMkZ5siD+NfE2VkpcRUD YEZYC7KFKVxXTWQqwQ3yp/6nQZEQcZkhMO8SdBpq8eB5prYtzZMLpa106Ern0A3h7uhJ N7dkumjBUEdl3Mn1N1bLJN2OPt97hlFzHoBbI1RoRrrSLVbUQX+mZWzOGDwgneGApY0g 1PWQ== X-Gm-Message-State: ACrzQf2HbTbggcHXpx6yl85SZYGBBcj0sLT1HU/7bv6NzM3j6KjePTQ7 W47rp4xmufYLrA4X9fap5s74CmeZK/wQKKyyvtvSnpxY+p4= X-Google-Smtp-Source: AMsMyM5qjxcNgYH+hYcaOzyACe1Gt+XpNtvbmRnUwyb7iY/p4PWp/ACG/jqCeR2NfmpfQ6357nj4WAJfrPU2DIRD1J8= X-Received: by 2002:a81:1b41:0:b0:360:84ff:4409 with SMTP id b62-20020a811b41000000b0036084ff4409mr9201105ywb.233.1665403752062; Mon, 10 Oct 2022 05:09:12 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 References: <1630032913.129053.1665400270350@localhost> In-Reply-To: <1630032913.129053.1665400270350@localhost> From: Archimedes Gaviola Date: Mon, 10 Oct 2022 20:09:02 +0800 Message-ID: Subject: Re: UFS in a USB flash drive (ufs:/dev/da0s1a) To: Ronald Klop Cc: freebsd-fs@freebsd.org Content-Type: multipart/alternative; boundary="0000000000000ca4a705eaad07a4" X-Rspamd-Queue-Id: 4MmHlG07B7z3rvb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=oKm22m3D; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of archimedes.gaviola@gmail.com designates 2607:f8b0:4864:20::112c as permitted sender) smtp.mailfrom=archimedes.gaviola@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112c:from]; ARC_NA(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --0000000000000ca4a705eaad07a4 Content-Type: text/plain; charset="UTF-8" On Mon, Oct 10, 2022 at 7:11 PM Ronald Klop wrote: > > > *Van:* Archimedes Gaviola > *Datum:* maandag, 10 oktober 2022 12:40 > *Aan:* freebsd-fs@freebsd.org > *Onderwerp:* UFS in a USB flash drive (ufs:/dev/da0s1a) > > Hi, > > I have a scenario (see below) after which the FreeBSD kernel boots-up in > my embedded system, it is looking for the root filesystem. Now, I want to > build one from scratch based on the examples below using a UFS filesystem > in a USB flash drive -> ufs:/dev/da0s1a. Are there any available > step-by-step reference(s) that can help and guide me in the building > process? > > ... > > > Trying to mount root from cd9660:/dev/map/rootfs.uzip []... > mountroot: waiting for device /dev/map/rootfs.uzip... > Mounting from cd9660:/dev/map/rootfs.uzip failed with error 19. > > Loader variables: > > Manual root filesystem specification: > : [options] > Mount using filesystem > and with the specified (optional) option list. > > eg. ufs:/dev/da0s1a > zfs:tank > cd9660:/dev/cd0 ro > (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) > > ? List valid disk boot devices > . Yield 1 second (for background tasks) > Abort manual input > > mountroot> > > ... > > Thanks and best regards, > Archimedes > > > > Hi, > > From your mail I don't really understand what your level of skills with > FreeBSD is. I assume the scenario with cd9660 and error 19 is not your > biggest concern. You just want to install on a USB flash drive. > > Does this help: https://docs.freebsd.org/en/books/handbook/bsdinstall/ ? > > Regards, > Ronald. > > Hi Ronald, No, it's not about installing FreeBSD from scratch using a USB flash drive as I already flashed and installed the FreeBSD kernel in the SPI flash RAM using trivial FTP in the U-boot loader. What I want is mounting the root filesystem that's been created in the USB flash drive (this hardware has USB port) using the ufs:/dev/da0s1a method but before that happens, I need to create that root filesystem (/) from scratch in the USB flash drive so that it can be mounted right after the kernel is loaded. Not sure what level I am as a FreeBSD user but I can install and setup FreeBSD system, networking, install packages and re-build or compile a kernel. Thanks and best regards, Archimedes --0000000000000ca4a705eaad07a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Oct 10, 2022 at 7:11 PM Ronal= d Klop <ronald-lists@klop.ws= > wrote:
=C2=A0

Van: Archimedes Gaviola <archimedes.gaviola@gmail.com>
Datum: maandag, 10 oktober 2022 12:40
Aan: fre= ebsd-fs@freebsd.org
Onderwerp: UFS in a USB flash drive (ufs:/dev/da0s1a)

Hi,
=C2=A0
I have a scenario (see below) after which the FreeBSD kernel boots-up = in my embedded system, it is looking for the root filesystem. Now, I want t= o build one from scratch based on the examples below using a UFS filesystem= in a USB flash drive -> ufs:/dev/da0s1a. Are there any available step-b= y-step reference(s) that can help and guide me in the building process?
=C2=A0
...
=C2=A0
=C2=A0
Trying to mount root from cd9660:/dev/map/rootfs.uzip []...
mountroot: waiting for device /dev/map/rootfs.uzip...
Mounting from cd9660:/dev/map/rootfs.uzip failed with error 19.

Loader variables:

Manual root filesystem specification:
=C2=A0 <fstype>:<device> [options]
=C2=A0 =C2=A0 =C2=A0 Mount <device> using filesystem <fstype> =C2=A0 =C2=A0 =C2=A0 and with the specified (optional) option list.

=C2=A0 =C2=A0 eg. ufs:/dev/da0s1a
=C2=A0 =C2=A0 =C2=A0 =C2=A0 zfs:tank
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd9660:/dev/cd0 ro
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (which is equivalent to: mount -t cd9660= -o ro /dev/cd0 /)

=C2=A0 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 List valid disk b= oot devices
=C2=A0 . =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Yield 1 second (f= or background tasks)
=C2=A0 <empty line> =C2=A0 =C2=A0Abort manual input

mountroot>
=C2=A0
...
=C2=A0
Thanks and best regards,
Archimedes


Hi,

From your mail I don't really understand what your level of skills with= FreeBSD is. I assume the scenario with cd9660 and error 19 is not your big= gest concern. You just want to install on a USB flash drive.

Does this help: https://docs.freebsd.org/en/books/handbook/bsdins= tall/ ?

Regards,
Ronald.
=C2=A0

Hi Ronald,

No, it's not about installing FreeBSD from scratch usi= ng a USB flash drive as I already flashed and installed the FreeBSD kernel = in the SPI flash RAM using trivial FTP in the U-boot loader. What I want is= mounting the root filesystem that's been created in the USB flash driv= e (this hardware has USB port) using the ufs:/dev/da0s1a method but before that happens, I need to create that root = filesystem (/) from scratch in the USB flash drive so that it can be mounte= d right after the kernel is loaded.

Not sure w= hat level I am as a FreeBSD user but I can install and setup FreeBSD system= , networking, install packages and re-build or compile a kernel.
=
Thanks and best regards,
Archimedes

<= /div> --0000000000000ca4a705eaad07a4--