Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

General advice on how to make an OS?

JosiahMaybe

Platinum Coder
I am looking at how to build an operating system, probably with Rust and assembly. To make this short, all are lead by woke librals or communists except some game console systems. I just want to know about what I need to do to make this thing. I don't want a Linux or *BSD kernel and others are proprietary. That leaves just building from ground up everything. Rust definitely supports assembly calls and seems like an ideal choice for building an operating system in my opinion. This is a vast topic I know but have to start somewhere. Collaborators welcome. X E.
 
Last edited:
Building an OS from scratch with Rust and assembly is a great challenge but very doable. Start by studying low-level programming concepts like bootloaders, memory management, and interrupts. Use Rust's no_std and no_main features to avoid dependencies, and leverage x86_64-unknown-none as your target. Write a basic bootloader with Assembly and Rust (using bootimage for bootable binaries) and develop essential kernel features like task scheduling, drivers, and file systems. For inspiration, check out rust-osdev projects like blog_os. You'll need QEMU or real hardware for testing.

If you want some insipiration check out other open source operating systems such as: Linux, AndroidOS, etc.
 
Building an OS from scratch with Rust and assembly is a great challenge but very doable. Start by studying low-level programming concepts like bootloaders, memory management, and interrupts. Use Rust's no_std and no_main features to avoid dependencies, and leverage x86_64-unknown-none as your target. Write a basic bootloader with Assembly and Rust (using bootimage for bootable binaries) and develop essential kernel features like task scheduling, drivers, and file systems. For inspiration, check out rust-osdev projects like blog_os. You'll need QEMU or real hardware for testing.

If you want some insipiration check out other open source operating systems such as: Linux, AndroidOS, etc.
So far I decided to start on mobile, get another Revvl 7 with ARMv8-A, about $90 used, and Rust simply won't do this so I might use Zig. Thanks for trying to help. Looks like first is bootloader, then kernel. I have no idea what I am supposed to make. Reading wiki.osdev.org and ARM reference manuals. X E.
 
So far I decided to start on mobile, get another Revvl 7 with ARMv8-A, about $90 used, and Rust simply won't do this so I might use Zig. Thanks for trying to help. Looks like first is bootloader, then kernel. I have no idea what I am supposed to make. Reading wiki.osdev.org and ARM reference manuals. X E.

Awesome! I wish you luck with your endevaurs. I have never tried to make an OS so I wouldn't personally know where to start. I am sure that you can find a lot of content on it over the web though for insipration.
 
Awesome! I wish you luck with your endevaurs. I have never tried to make an OS so I wouldn't personally know where to start. I am sure that you can find a lot of content on it over the web though for insipration.
Odd but true, no one makes from scratch, it is a lot of slightly modified Linux mostly, like my problem is I don't know what to learn from now. Zig has a target that Rust does not have which is why I am using it. Well someone has to know or something but so far there are little to no learning resources I know. X E.
 
Odd but true, no one makes from scratch, it is a lot of slightly modified Linux mostly, like my problem is I don't know what to learn from now. Zig has a target that Rust does not have which is why I am using it. Well someone has to know or something but so far there are little to no learning resources I know. X E.
There are some OSes online made in Zig for mobile though. X E.
 
If you’re starting from scratch, I’d begin with a small bootable kernel rather than trying to build the whole OS at once: learn the boot process, memory management, interrupts, and basic drivers, then add scheduling and user-space programs. Rust is a solid choice for the kernel, with a little assembly where you need direct hardware control, and projects like writing a simple kernel for x86_64 in QEMU can give you a manageable first milestone.
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom