Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2022 20:09:02 +0800
From:      Archimedes Gaviola <archimedes.gaviola@gmail.com>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: UFS in a USB flash drive (ufs:/dev/da0s1a)
Message-ID:  <CAJFbk7FTuV3eikhQaRAp8OgRmK7JpSWRxZ9DiBgMiQMwY2Nx_g@mail.gmail.com>
In-Reply-To: <1630032913.129053.1665400270350@localhost>
References:  <CAJFbk7G%2BULUbhOpjFiZZ_szEFzdTkw=FLdzHrrwFnZ7sz3u1oA@mail.gmail.com> <1630032913.129053.1665400270350@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000000ca4a705eaad07a4
Content-Type: text/plain; charset="UTF-8"

On Mon, Oct 10, 2022 at 7:11 PM Ronald Klop <ronald-lists@klop.ws> wrote:

>
>
> *Van:* Archimedes Gaviola <archimedes.gaviola@gmail.com>
> *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:
>   <fstype>:<device> [options]
>       Mount <device> using filesystem <fstype>
>       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)
>   <empty line>    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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, Oct 10, 2022 at 7:11 PM Ronal=
d Klop &lt;<a href=3D"mailto:ronald-lists@klop.ws">ronald-lists@klop.ws</a>=
&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div=
>=C2=A0
<p><b>Van:</b> Archimedes Gaviola &lt;<a href=3D"mailto:archimedes.gaviola@=
gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</a>&gt;<br>
<b>Datum:</b> maandag, 10 oktober 2022 12:40<br>
<b>Aan:</b> <a href=3D"mailto:freebsd-fs@freebsd.org" target=3D"_blank">fre=
ebsd-fs@freebsd.org</a><br>
<b>Onderwerp:</b> UFS in a USB flash drive (ufs:/dev/da0s1a)</p>

<blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor=
der-left:2px solid rgb(0,0,0);margin-right:0px">
<div id=3D"m_3250660044061444343P">
<div>
<div id=3D"m_3250660044061444343P.P.P">
<div>
<div>
<div>Hi,</div>

<div>=C2=A0</div>

<div>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 -&gt; ufs:/dev/da0s1a. Are there any available step-b=
y-step reference(s) that can help and guide me in the building process?</di=
v>

<div>=C2=A0</div>

<div>...</div>

<div>=C2=A0</div>

<div>=C2=A0</div>

<div>Trying to mount root from cd9660:/dev/map/rootfs.uzip []...<br>
mountroot: waiting for device /dev/map/rootfs.uzip...<br>
Mounting from cd9660:/dev/map/rootfs.uzip failed with error 19.<br>
<br>
Loader variables:<br>
<br>
Manual root filesystem specification:<br>
=C2=A0 &lt;fstype&gt;:&lt;device&gt; [options]<br>
=C2=A0 =C2=A0 =C2=A0 Mount &lt;device&gt; using filesystem &lt;fstype&gt;<b=
r>
=C2=A0 =C2=A0 =C2=A0 and with the specified (optional) option list.<br>
<br>
=C2=A0 =C2=A0 eg. ufs:/dev/da0s1a<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 zfs:tank<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd9660:/dev/cd0 ro<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (which is equivalent to: mount -t cd9660=
 -o ro /dev/cd0 /)<br>
<br>
=C2=A0 ? =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 List valid disk b=
oot devices<br>
=C2=A0 . =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Yield 1 second (f=
or background tasks)<br>
=C2=A0 &lt;empty line&gt; =C2=A0 =C2=A0Abort manual input<br>
<br>
mountroot&gt;</div>

<div>=C2=A0</div>

<div>...</div>

<div>=C2=A0</div>

<div>Thanks and best regards,</div>

<div>Archimedes</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
Hi,<br>
<br>
>From your mail I don&#39;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.<br>
<br>
Does this help: <a href=3D"https://docs.freebsd.org/en/books/handbook/bsdin=
stall/" target=3D"_blank">https://docs.freebsd.org/en/books/handbook/bsdins=
tall/</a> ?<br>
<br>
Regards,<br>
Ronald.<br>
=C2=A0</div></blockquote><div><br></div><div>Hi Ronald,</div><div></div><di=
v><br></div><div>No, it&#39;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&#39;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.<br></div><div><br></div><div>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.</div><div>=
<br></div><div>Thanks and best regards,</div><div>Archimedes<br></div><br><=
/div></div>

--0000000000000ca4a705eaad07a4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7FTuV3eikhQaRAp8OgRmK7JpSWRxZ9DiBgMiQMwY2Nx_g>