<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fbos/test/test_dt.c, branch main</title>
<subtitle>A RISC-V operating system devoted to running fizz/buzz processes.
</subtitle>
<id>https://git.mssola.com/os/fbos/atom?h=main</id>
<link rel='self' href='https://git.mssola.com/os/fbos/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/'/>
<updated>2024-11-26T20:43:54Z</updated>
<entry>
<title>Show the detected machine model</title>
<updated>2024-11-26T20:43:54Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-26T20:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=87d1a2597ceedd03a7d4005db1bf82b72b423a18'/>
<id>urn:sha1:87d1a2597ceedd03a7d4005db1bf82b72b423a18</id>
<content type='text'>
Originally I was planning to detect the machine model just in case we
needed to do workaround for special cases. But since apparently even
VisionFive2 brings its own CPU frequency base on DT, this is not even
needed. Hence, fetching the model is now a cool message being shown on
boot.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>test: Add a DT test for a VisionFive2 board</title>
<updated>2024-11-26T20:42:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-26T20:42:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=eec442be4d2dd0a1630a820ee43220e635450aa7'/>
<id>urn:sha1:eec442be4d2dd0a1630a820ee43220e635450aa7</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>dt: Fetch the CPU frequency as well</title>
<updated>2024-11-26T12:59:54Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-26T12:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=7870d56b155c2be73cdacfba94eeb893cd55628e'/>
<id>urn:sha1:7870d56b155c2be73cdacfba94eeb893cd55628e</id>
<content type='text'>
If the 'timebase-frequency' property is available under the 'cpus' node
from the DTB blob, it makes sense to try to fetch this value from there
instead of hardcoding it. For other use-cases, where this information is
not available through DT (e.g. ACPI on the VisionFive2 board), we will
have to hardcode it with a default value even if it's not the proper
one.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fetch the initrd address from the DTB blob</title>
<updated>2024-11-20T10:43:08Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-20T10:43:08Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=fb9627cc985912a57de8b4bedc98991e290e4075'/>
<id>urn:sha1:fb9627cc985912a57de8b4bedc98991e290e4075</id>
<content type='text'>
The kernel entry has a pointer to the DTB blob as a parameter. From this
pointer we can parse the the DTB blob to find the properties
"chosen-&gt;linux,initrd-start" and "chosen-&gt;linux,initrd-start". These
properties are guaranteed to have 64-bit addresses which point where the
initrd is in memory, which we need to fetch the binaries to be loaded.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
</feed>
