Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2024 14:44:14 +0100
From:      Mario Marietto <marietto2008@gmail.com>
To:        freebsd-arm <freebsd-arm@freebsd.org>,  FreeBSD Mailing List <freebsd-questions@freebsd.org>,  freebsd-hackers <freebsd-hackers@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>,  Warner Losh <imp@bsdimp.com>
Subject:   How to use the L4 Microkernel with a FreeBSD userland.
Message-ID:  <CA%2B1FSijq0ez9%2BJXCSJP2rfWUXLjcTaEPJo-3NcO5Vu3H26L=hg@mail.gmail.com>

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

Hello to everyone.

I'm trying to understand how to use the L4 Microkernel with a FreeBSD
userland. I've asked the same to a L4 developer,but he told me that he does
not know FreeBSD,so I'm here to ask the same question. First of all I'm
sure that it can be done,because it is written clearly on their website :


http://os.inf.tu-dresden.de/L4Re/download/snapshots/


on the section :
Host system requirements

The host system shall be a 64bit-based system with a recent Linux
distribution installed and at least 2GB of free disk space.

All necessary tools required by the build are available from the provided
packages of the Linux distributions, including cross compilers. But there
are also other cross compiler packages available (see below). You might
want to run make check_build_tools in the src/l4 directory to verify the
common tools are installed.

*You are free to use any Linux distribution you like, or even BSDs or any
of its derivatives.* But then you should know the game. Especially tool
versions should be recent, as installed on the listed distributions below.

We are confident that the snapshot works on the following distributions:

   - Debian 11 or later
   - Ubuntu 22.04 or later


Let's say I want to use the L4 microkernel + FreeBSD 14 on my Raspberry Pi
4,the first step I did was to build L4Re for the Rpi,according with this
instructions :


http://os.inf.tu-dresden.de/L4Re/rpi.html


This is the log file of the compilation,that hasn't given any  error :


https://pastebin.ubuntu.com/p/6SwN2mpJBM/


Or I could have taken a pre built image of the L4 microkernel here :


http://os.inf.tu-dresden.de/download/snapshots/pre-built-images/arm64/



At this point the tutorial says that I should use a Linux distro. They
suggest the official distro for the Raspberry Pi 4,that's RaspBian. But I
don't want to use Linux as a userland,I want to use FreeBSD. The question
now is : what should I do to achieve that goal ? How can I link the L4
microkernel with the ubldr bootloader of FreeBSD ? Or should I link it to
the kernel of FreeBSD ? Can someone explain to me the missing step ? thanks.

-- 
Mario.

--000000000000888e3c06111b5da2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello to everyone.</div><div><br></div><div>I&#39;m t=
rying to understand how to use the L4 Microkernel with a FreeBSD userland. =
I&#39;ve asked the same to a L4 developer,but he told me that he does not k=
now FreeBSD,so I&#39;m here to ask the same question. First of all I&#39;m =
sure that it can be done,because it is written clearly on their website :</=
div><div><br></div><div><br></div><div><a href=3D"http://os.inf.tu-dresden.=
de/L4Re/download/snapshots/">http://os.inf.tu-dresden.de/L4Re/download/snap=
shots/</a></div><div><br></div><div><br></div><div>on the section :<br></di=
v><h1><span style=3D"font-weight:normal">Host system requirements</span></h=
1>

<p>The host system shall be a 64bit-based system with a recent
Linux distribution installed and at least 2GB of free disk space.</p>

<p>All necessary tools required by the build are available from the provide=
d
packages of the Linux distributions, including cross compilers. But
there are also other cross compiler packages available (see below).
You might want to run <code>make check_build_tools</code> in the src/l4
directory to verify the common tools are installed.</p>

<p><b>You are free to use any Linux distribution you like, or even BSDs or =
any of
its derivatives.</b> But then you should know the game. Especially tool
versions should be recent, as installed on the listed distributions below.<=
/p>

<p>We are confident that the snapshot works on the following distributions:=
</p>

<ul><li>Debian 11 or later</li><li>Ubuntu 22.04 or later</li></ul><div><br>=
</div><div>Let&#39;s say I want to use the L4 microkernel + FreeBSD 14 on m=
y Raspberry Pi 4,the first step I did was to build L4Re for the Rpi,accordi=
ng with this instructions :</div><div><br></div><div><br></div><div><a href=
=3D"http://os.inf.tu-dresden.de/L4Re/rpi.html">http://os.inf.tu-dresden.de/=
L4Re/rpi.html</a>

</div><div><br></div><div><br></div><div>This is the log file of the compil=
ation,that hasn&#39;t given any=C2=A0 error :<br></div><div><br></div><div>=
<br></div><div><a href=3D"https://pastebin.ubuntu.com/p/6SwN2mpJBM/">https:=
//pastebin.ubuntu.com/p/6SwN2mpJBM/</a></div><div><br></div><div><br></div>=
<div>Or I could have taken a pre built image of the L4 microkernel here : <=
br></div><div><br></div><div><br></div><div><a href=3D"http://os.inf.tu-dre=
sden.de/download/snapshots/pre-built-images/arm64/">http://os.inf.tu-dresde=
n.de/download/snapshots/pre-built-images/arm64/</a></div><div><br></div><di=
v><br></div><div><br></div><div>At this point the tutorial says that I shou=
ld use a Linux distro. They suggest the official distro for the Raspberry P=
i 4,that&#39;s RaspBian. But I don&#39;t want to use Linux as a userland,I =
want to use FreeBSD. The question now is : what should I do to achieve that=
 goal ? How can I link the L4 microkernel with the ubldr bootloader of Free=
BSD ? Or should I link it to the kernel of FreeBSD ? Can someone explain to=
 me the missing step ? thanks.<br></div><br><span class=3D"gmail_signature_=
prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature" data-smart=
mail=3D"gmail_signature">Mario.<br></div></div>

--000000000000888e3c06111b5da2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijq0ez9%2BJXCSJP2rfWUXLjcTaEPJo-3NcO5Vu3H26L=hg>