4 ms·
Porting QEMU to RedoxOS
- FunnyLookinHat 5y agoWhat an awesome Summer of Code project! I wish opportunities had been around when I was learning to program. I remember constantly looking for open source projects to contribute to, but each had such a high bar for entry that there was no low-hanging-fruit that I could cherry-pick (sic) to get involved. While it's certainly useful to learn by rolling projects from the ground up, you can learn a whole lot more by contributing to an established project and experiencing how their code standards, review process, etc. all feel in comparison to other projects. One big thing I lacked was simply having someone say "We write static functions LIKE THIS because they have THAT ROLE within the scope of this project."
- panny 5y ago>I wish opportunities had been around when I was learning to program. And yet now, we have plenty of projects and nobody contributing. https://github.com/redox-os/redox/graphs/contributors https://github.com/redox-os/redox/graphs/contributors This graph doesn't look so healthy. Projects with one major contributor tend to die the moment that contributor loses interest. Which leads me to wonder, if rust is so popular, and this is one of the most relevant rust projects in the wild, why is this essentially a single contributor repo? Linus didn't write Linux by himself. Redox is never going to happen with a single developer. Doesn't anyone want a memory safe OS and micro kernel? What does this say about the demand for memory safe systems languages?
- hobo_mark 5y agoRust's learning curve is a wall, there is little doubt about it [1]. I am well aware people love to hate on C++ but compare to another (even younger) operating system project written in a more mainstream language: https://github.com/serenityos/serenity/graphs/contributors https://github.com/serenityos/serenity/graphs/contributors [1] An example I like, try to make sense of this https://cosmic.mearie.org/2014/01/periodic-table-of-rust-types/ https://cosmic.mearie.org/2014/01/periodic-table-of-rust-typ...
- a-dub 5y agois POSIX on the roadmap for redox or are they intentionally avoiding that? (to encourage more experimentation and ground up in-rust software development) i've been watching with interest for a while, there's a lot to like about this project!
- Intermernet 5y agoFrom https://doc.redox-os.org/book/ch01-03-our-goals.html https://doc.redox-os.org/book/ch01-03-our-goals.html >"The non-goals of Redox" >"We are not a Linux clone, or POSIX-compliant, nor are we crazy scientists, who wish to redesign everything. Generally, we stick to well-tested and proven correct designs. If it ain't broken don't fix it." >"This means that a large number of standard programs and libraries will be compatible with Redox. Some things that do not align with our design decisions will have to be ported." >"The key here is the trade off between correctness and compatibility. Ideally, you should be able achieve both, but unfortunately, you can't always do so."
- nixpulvis 5y agoJust curious, because I'd love to run redox for real one day :D, Is the biggest issue around real hardware support the drivers/firmware? Would it make sense / be possible to reuse the Linux code?
- dijit 5y agoThe biggest issue _I_ had as a user was getting redox to compile itself. It is fun as a toy but developing on it is difficult. Or I missed something.
- Macha 5y agoYeah, I looked into it in the past couple of months. Ultimately it wouldn't compile because my system has GCC 11. They have a vendored copy of ring that's about 2 years out of date, and has some issue with array type confusion where a field is defined as a fixed length array in one field and a pointer in the other. Since GCC 11, that's been a warning, and their build system compiles their fork of ring with -Werror, so that new warning in GCC 11 breaks the build. Sadly their gitlab instance at the time was "email the dev to set up an account", so I just left it there.
- est31 5y ago> Sadly their gitlab instance at the time was "email the dev to set up an account", so I just left it there. The Gitlab had a "sign in with Github" feature at least since August 2019, which is when I created my account there.
- nixpulvis 5y agoWell you ignored my question, if that counts as something.
- dijit 5y agoWell the answer is no, you can't reuse kernel drivers and, no, that isn't the biggest barrier to adoption. Which is what I'm responding to. The biggest barrier to adoption is lack of a working compiler.
- bonzini 5y agoQEMU build system guy here. If you have any questions about the configure and meson scripts, you can catch me on the #qemu channel on OFTC. Of the features you disabled, the main one to be reinstated seems to be slirp. --enable-tools builds qemu-img, qemu-nbd and other tools. --enable-coroutine-pool is an optimization that should not be a problem for portability.
- tempodox 5y agoIf only I understood how to use QEMU in practice. Are there any tutorials that come with all the parts necessary to get something actually running (and explaining it), without me having to go off in search for missing components that I have no idea where to find?
- bonzini 5y agoQEMU is complicated. You're probably better off using virt-manager, it provides a GUI front-end and also improves on security by using libvirt (with support for SELinux or AppArmor).
- btdmaster 5y agoDrew DeVault has a nice introduction[1]. ArchWiki has coverage on the many options not mentioned[2]. [1] https://drewdevault.com/2018/09/10/Getting-started-with-qemu.html https://drewdevault.com/2018/09/10/Getting-started-with-qemu... [2] https://wiki.archlinux.org/title/QEMU https://wiki.archlinux.org/title/QEMU
- stefanha 5y agoIt depends what you want to do. When QEMU is used for virtualization it's typically a component in a larger stack like GNOME Boxes or virt-manager, two UIs that rely on libvirt to run QEMU. When QEMU is used for emulating ARM boards or retro computing you can launch it from the command-line specifying just a few things like the path to a disk image file or the amount of RAM. There are a lot of command-line options and it can be overwhelming, but luckily they are usually not needed for these use cases. Documentation is here but it's easier to start with a QEMU command-line recommended by the software (e.g. exotic OSes) you want to try out: https://qemu-project.gitlab.io/qemu/ https://qemu-project.gitlab.io/qemu/