<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fbos/README.md, 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-12-03T13:56:17Z</updated>
<entry>
<title>Write down the requirement for the Zaamo extension</title>
<updated>2024-12-03T13:56:17Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-12-03T13:52:13Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=75fc0bb454b6da14ca42168006af65577fbdfc39'/>
<id>urn:sha1:75fc0bb454b6da14ca42168006af65577fbdfc39</id>
<content type='text'>
Since 2eead36f97fa ("Run a hart lottery on SMP") the kernel is making
use of the 'amoadd.w' instruction, which requires the Zaamo
extension (included in the base A extension). This is notable and is
worth a mention on the list of requirements.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Simplify the qemu target by removing QEMU_BIOS</title>
<updated>2024-11-30T20:16:54Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-30T20:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=891742e62d79aeaf7dfd052df87777c2e4826357'/>
<id>urn:sha1:891742e62d79aeaf7dfd052df87777c2e4826357</id>
<content type='text'>
The QEMU_BIOS parameter was meant to help on old QEMU installations
which did not support the proper fw_dynamic workflow. That being said,
old QEMU versions might also not implement the proper SBI specification,
or it may have other unexpected issues.

Hence, just remove the option and force people to have a sufficiently
recent QEMU version.

Finally, I have updated the SVG showing off a QEMU run.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Organize the credits better</title>
<updated>2024-11-29T21:56:51Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-29T21:54:39Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=d87d29efc33236e847518b99b835fed783fc7395'/>
<id>urn:sha1:d87d29efc33236e847518b99b835fed783fc7395</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Allow the kernel to run as a Linux image</title>
<updated>2024-11-29T21:17:13Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-29T21:17:13Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=d51665904faa31c39106e4b2afa7541615072e72'/>
<id>urn:sha1:d51665904faa31c39106e4b2afa7541615072e72</id>
<content type='text'>
In order to run on real hardware, it's actually easier to re-use
workflows from existing bootloaders than loading things in memory
manually. In order to achieve this two things had to be settled:

1. The image has to have a Linux header as defined in the RISC-V port.
   This header will be taken into consideration by bootloaders in order to
   know where to jump, the image offset, the endianness of the image, etc.
2. The image cannot just be an ELF executable. Rather, we must translate
   it into binary form via `objcopy`.

With all of this at hand, I was able to make the kernel run on a
Starfive VisionFive 2 board, and I have recorded an example so it's
available as documentation.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add a video example running on QEMU</title>
<updated>2024-11-25T10:40:22Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-25T10:31:39Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=2429f8aaf1584084b4d8c7c85c27c1d78ccab153'/>
<id>urn:sha1:2429f8aaf1584084b4d8c7c85c27c1d78ccab153</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add a note on requirement a little-endian system</title>
<updated>2024-11-20T11:03:25Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-20T11:03:25Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=1fd76135e0a52805884645431c7447231f373025'/>
<id>urn:sha1:1fd76135e0a52805884645431c7447231f373025</id>
<content type='text'>
The dt parsing algorithm assumes that a little-endian system is in place
and hence most numbers on the DTB blob have to be converted from
big-endian to little-endian. I am not planning on changing that any time
soon, so let's add this as a requirement.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Setup the stack for an init task</title>
<updated>2024-11-19T14:05:59Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-19T13:55:32Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=52a4afca71aee5c150c6c63e7c1a510501fce6f3'/>
<id>urn:sha1:52a4afca71aee5c150c6c63e7c1a510501fce6f3</id>
<content type='text'>
Bootstrap an init task which holds at least the initial stack that is to
be used when setting up the registers (such as `sp` and `tp`).

In order to guarantee that the stack and the rest of the registers are
set up correctly, this commit also provides a raw implementation of a
`printk` function.

Moreover, this commit also adds an argument that must be passed to
`start_kernel`, which is the pointer to the embedded `fdt` blob. This
argument will be used by later work so to fetch, at least, the base
address for the initial ram disk. This was also used to test that the
stack was working as expected.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>usr: Bootstrap the initramfs for the kernel</title>
<updated>2024-11-18T14:56:37Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-18T14:56:37Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=d79436a1170e4d5ffde77416313587f320c8e590'/>
<id>urn:sha1:d79436a1170e4d5ffde77416313587f320c8e590</id>
<content type='text'>
Introduce a sample `foo` program which already calls the
`write_and_block` system call which is yet to be implemented by this
kernel. Moreover, the same CPIO format is used for the initramfs as with
Linux, so we can pass it with QEMU without worries.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Load debug symbols on the gdb target</title>
<updated>2024-09-24T20:45:00Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-09-24T20:45:00Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=54cf703d13bddbe81e15858b1bfdb7111a3f56de'/>
<id>urn:sha1:54cf703d13bddbe81e15858b1bfdb7111a3f56de</id>
<content type='text'>
Load the debug symbols into the gdb session by simply passing the
executable file into gdb directly. Moreover, allow users of the gdb
target to provide an extra variable so to pass extra flags to gdb.

Moreover, this commit comes with other small cleanups on the Makefile,
like a proper ABI specifier,

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add CI job</title>
<updated>2024-09-24T20:40:31Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-08-26T08:34:20Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=052f73e4e5c7f6266bf80f392ac593046e2d8d2c'/>
<id>urn:sha1:052f73e4e5c7f6266bf80f392ac593046e2d8d2c</id>
<content type='text'>
This will ensure that the code style is preserved and that commits being
pushed at least build successfully.

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