u-root
tamago
Our great sponsors
u-root | tamago | |
---|---|---|
9 | 13 | |
2,437 | 1,274 | |
1.3% | 1.8% | |
9.7 | 8.5 | |
8 days ago | 19 days ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
u-root
-
Monogon: A Linux userland in pure Go
It looks similar to u-root https://github.com/u-root/u-root, yes, used as part of host firmware. There's a description of u-root in chapter 6 of https://link.springer.com/book/10.1007/978-1-4842-7939-7, too.
-
Gokrazy – Go Appliances
"A fully Go userland with Linux bootloaders! u-root can create a one-binary root file system (initramfs) containing a busybox-like set of tools written in Go." https://github.com/u-root/u-root
- Gokrazy Is Cool
- O que vocês acham da linguagem Goolang?
-
Is it possible to install a linux specific package on osx?
I am trying to build something with github.com/u-root/u-root/pkg/strace, but the issue I am running into is that my dev environment is an ARM Mac, while the package is specific to Unix systems.
-
Coreutils Rewritten in Rust
I've seem a few attempts. This is just one example: https://github.com/u-root/u-root/tree/master/cmds/core
- u-root – many Linux tools in a single Golang binary, initramfs, and bootloader
-
Writing an init with Go (part 1)
Great material! This approach is also used in u-root - Golang busybox created for LinuxBoot. I really enjoy working with it so far!
tamago
- Gokrazy – Go Appliances
-
OS in Go? Why Not
There's two major production-ready Go-based operating system(-ish) projects:
- Google's gVisor[1] (a re-implementation of a significant subset of the Linux syscall ABI for isolation, also mentioned in the article)
- USBArmory's Tamago[2] (a single-threaded bare-metal Go runtime for SOCs)
Both of these are security-focused with a clear trade off: sacrifice some performance for memory safe and excellent readability (and auditability). I feel like that's the sweet spot for low-level Go - projects that need memory safety but would rather trade some performance for simplicity.
[1]: https://github.com/google/gvisor
[2]: https://github.com/usbarmory/tamago
- Does Go work well as a systems language?
- Koji vam je sitan bug najviše ostao upamćen?
-
Rust 2024 the Year of Everywhere?
Of course it can, there are companies shipping products written in bare metal Go.
https://www.withsecure.com/en/solutions/innovative-security-...
https://github.com/usbarmory/tamago
-
Embedded Go finally got the first binary release
For comparison, what are the differences in goals and approach with Tamago? https://github.com/usbarmory/tamago
-
Taking a deep dive into C++ gave me more appreciation for Go's simplicity
I've been keeping an eye on TinyGo (Go compiler that targets microcontrollers and uses LLVM) and also TamaGo (allows you to run Go on bare metal, without any C dependency).
-
A native Go userland for your Raspberry Pi 3 or 4 appliances
If you want to go deeper, there is also bare-metal Go runtime for rpi (among others): https://github.com/f-secure-foundry/tamago
- TamaGo – bare metal Go for ARM SoCs
-
ISO C became unusable for operating systems development
> just proves your lack of knowledge
Tone is not needed.
For TamaGo, it seems to allow developers run their application, not build an OS on the hardware. But I have not played with it, you are right.
> TamaGo is a framework that enables compilation and execution of unencumbered Go applications on bare metal
The environment does not seem to allow building a generic operating system [1]. F-Secure ported the runtime itself to boot natively. But please correct me.
> There is no thread support
The environment you run in is specifically curated for Go applications, such as the memory layout. I'd call this an "appliance" rather than enabling Go to be used for full-fledged generic operating system implementations.
[1] https://github.com/f-secure-foundry/tamago/wiki/Internals
What are some alternatives?
booster - Fast and secure initramfs generator
nerves - Craft and deploy bulletproof embedded software in Elixir
dracut-sshd - Provide SSH access to initramfs early user space on Fedora and other systems that use Dracut
gokrazy - turn your Go program(s) into an appliance running on the Raspberry Pi 3, Pi 4, Pi Zero 2 W, or amd64 PCs!
nhi - :tv: Automatically capture all potentially useful information about each executed command (as well as its output) and get powerful querying mechanism
checkedc - Checked C is an extension to C that lets programmers write C code that is guaranteed by the compiler to be type-safe. The goal is to let people easily make their existing C code type-safe and eliminate entire classes of errors. Checked C does not address use-after-free errors. This repo has a wiki for Checked C, sample code, the specification, and test code.
router7 - router7 is a small home internet router completely written in Go. It is implemented as a gokrazy appliance.
usbarmory - USB armory - The open source compact secure computer
coreutils - Cross-platform Rust rewrite of the GNU coreutils
go - The Go programming language with support for bare-matal programing
nushell - A new type of shell
linux - Linux kernel source tree