Live data from Hacker News

Operating System Development Tutorials in Rust on the Raspberry Pi

github.com

11–20 of 31 posts

Re: Operating System Development Tutorials in Rust on the Raspberry Pi

#12
post #2

I hope they can make the Pi boot faster ... It's the one thing keeping the Pi from being useful in most of my embedded projects. I like to compare it to webpage load time. In the beginning of the web, 5 seconds used to be ok, but nowadays the user wants sub-second load times or they literally walk away. Similarly, devices that don't turn on instantly lose points on UX as well.

This isn't really relevant to booting Linux faster because it's about bare-metal programming a toy operating system. More of a learning tutorial than a practical replacement for standard Linux.

There are plenty of guides for speeding up Raspberry Pi Linux boot: http://himeshp.blogspot.com/2018/08/fast-boot-with-raspberry...

If you're developing a true embedded product then you'll be making a customized Linux distribution anyway, which will only include the minimum features needed during boot for your application.

Re: Operating System Development Tutorials in Rust on the Raspberry Pi

#13
I love hobbiest operating systems! In a world of billions of software projects, it's sad only a small handful are OSes. I really love to watch what the Serenity[0] project is working on and I've been working to get it running on an older computer. However parts are harder to find & the spec requirements are very specific (drivers are hard).

I love the idea of doing more operating system experiments on RPIs just because of the availability & consistency of the platform. You don't have to worry about thousands of drivers for the most part, plus if you're using the RPI 400[1], basically everything is included in the keyboard!

Rust seems like a good way to get people involved as well, because of it's innate following. Excited to give this tutorial a try.

[0] https://github.com/SerenityOS/serenity [1] https://www.raspberrypi.org/products/raspberry-pi-400/

Re: Operating System Development Tutorials in Rust on the Raspberry Pi

#15
post #5
post #3

Earlier quoted context omitted.

I'm not super familiar with RP, what is the typical boot time?

hardware/bootloader stage take around ~2s. After that it's on the OS, a stripped down Linux can get down to also ~2s on top of that if you don't need all the hardware. The more IO you need ready, the longer it takes.

depends on the version of the bootloader and board too. it varies a LOT and often times will sit for over 5 seconds before even starting linux

Re: Operating System Development Tutorials in Rust on the Raspberry Pi

#18

Tangentially related are there any hobbyist operating systems built on top of the linux kernel, that work radically different from your standard run of the mill OSes like Ubuntu?

NixOS is abnormal, though I don't know if it's hobbyist. But at some level OSes built on the Linux kernel will all have the same "flavor", since the kernel is THE abstraction between hardware and software. So if you want something REALLY radical (I know this is deviating from your original premise), you'll want to look at other kernels. Google's Fuchsia comes mind, as does PhantomOS.

Re: Operating System Development Tutorials in Rust on the Raspberry Pi

#20

I love hobbiest operating systems! In a world of billions of software projects, it's sad only a small handful are OSes. I really love to watch what the Serenity[0] project is working on and I've been working to get it running on an older computer. However parts are harder to find & the spec requirements are very specific (drivers are hard). I love the idea of doing more operating system experiments on RPIs just becau…

What do you think of the notoriously closed/proprietary attitude of Broadcom and the near unavailability of documentation?

I think the standard PC is a far better platform for OS development --- decades of backwards compatibility mean documentation is plentiful, and so is sample code.

Post reply on HN