Nice! Looks like an interesting mid-point between xv6 (modern reimplementation of Sixth Edition Unix from 1975 e.g. Lion book) and a full Linux kernel.
Great to see it runs on the LicheeRV Nano, a $9 RISC-V board with 1.0 GHz 64 bit CPU (C906) with MMU, FPU, 128 bit vector unit (RVV draft 0.7.1) and 256 MB of in-package DDR3. That's comparable to a midlife Pentium III or PowerPC G4.
It should be a very easy port to the Milk-V Duo 256M (same SG2002 SoC) or Duo S (SG2000 with 512 MB RAM for $9.90) or original Duo (closely related CV1800B with 64 MB RAM for $5).
No network or block device support at present, and no multi-core either, by the looks.
"No network or block device support at present, and no multi-core either, by the looks."
The first versions of Linux I used did not have multi-core support and I can imagine a Linux without networking, but no block devices?
Does that mean just character devices? How does the FAT driver work then?
It supports a read-only boot drive, but other than that just tempfs -- just like running a LiveCD version of Ubuntu etc.
Implementing those things is on the TODO list.
The earliest versions of Linux were pretty much just a terminal emulator for the PC console. Gotta start somewhere!
It looks like TILCK uses RAM images to provide FAT support, which is mainly used for initrd.
A G4 with Altivec was almost on par on a PIV with SSE2 for multimedia.
Multimedia is important for some uses, not for others.
And what speed G4, against what speed Pentium 4?
G4 started from 450 MHz and went to 1.6 GHz, with several different µarch along the way.
Conversely, the Pentium 4 ranged from 1.3 GHz to 3.8 GHz.
G4 and P3 at least covered a nearly identical MHz range, and with similar MHz in the market at the same times.
Pentium 4 had an exceptionally long pipeline to be able to hit higher frequencies, trading-off high IPC numbers in the process, most of the time. On top of that, Pentium 4 also “looped” the same instruction while waiting data resulting in lower efficiency and higher heat output.
So, I assume, they are “step by step” comparable. i.e. slowest P4 equal to slowest G3 and they are again equal at next stepping and so on.
Core Duo's are almost duct-taped PIIIs.
Isn't Core Duo is an evolution of Pentium-M which is an evolution of Pentium 3, omitting Pentium 4 in the process like an unwanted child?
Feels like they rolled back a couple of commits, forked to a new branch and started over...
It actually was between PIII and IV on capabilities. Altivec allows to play h264 videos on some settings. A Pentium III, well, SSE and FFMPEG can do magic, but not as well as Altivec. SSE2 it's better, much better. Basically the minimum for x86 and 'modern' browsers.
On the architecture itself, PowerPC did far more per cycle.
The a version of the Pentium 4 was slower than the Pentium IIi per clock (launch model) and used goofy rambus memory
Every couple of months a new "Operating System" kernel which does not provide hardware abstraction and only runs in a VM pops up.
Tilck is not like that!
Tilck is a real operating system. It runs on real hardware.
The space for the former is overly crowded but I think Tilck really fills a gap that has been mostly unoccupied before.
For us, the "elderly", who grew up with Minix in the educational space, how useful is Tilck in this regard?
Very nice. Its great to see how fast it boots, and it can run doom (framebuffer): https://www.youtube.com/watch?v=Ce1pMlZO_mI (also nice to see the dev takes the time to reply to an aspiring CS student on what it takes to grow in this field - comments in youtube)
Nice and short video. Demonstrates Vim, which seems like a sizable piece of software to get compiled with a subset of all Linux syscalls.
Previous discussions:
3 years ago, 75 comments. https://news.ycombinator.com/item?id=34295165 (no riscv64 then)
5 years ago, 7 comments. https://news.ycombinator.com/item?id=28040210
I can see it's marked "educational", but would it be also suitable for smallish embedded devices ? Assuming the bootloader part is swapped out, etc.
The README was surprisingly lengthy and interesting. Worth a read for osdev people!
It is interesting, although the lack of multiuser support is unfortunate. I really hope that the author reconsiders his stance on multiuser support, even if it is merely to allow things like chmod/chgrp to set file ownership to other users and groups. That would open the door to hosting a NFS server.
Its file system compatibility story is a bigger hurdle there.
To be honest, you’re much better off with a battle hardened platform for your use case. Tilck is meant to be educational, not secure in either the InfoSec nor data robustness sense.
Upon seeing this, thoughts keep occurring to me such as:
* “It could be fun to be the author of a block layer, VFS and an AHCI driver for SATA. NCQ support is a must if I do.”
* “It could be fun to port ZFS: ztest and zdb, plus the userland version of the driver into which they hook need pthreads, but the important userland utilities do not. Having to statically link everything would be a pain. I would probably have to reimplement the entire SPL for this to work and that would probably be at least 10,000 lines of code.”
* “If I port ZFS, a NFS server needs to follow so ZFS has an application. This will need support for setting/getting user/group ownership and mode bits. If I rewrite the VFS, I could maybe sneak that feature into it for a NFS server to use while preserving the documented syscall behavior that requires everything be root. If I port the NFS server from illumos, it could share the SPL code with ZFS. NFSv4 permissions will be needed to make it fully happy. Beyond that, I will need a network stack.”
* “It could be fun to port a network stack. Maybe LwIP could be used.”
* “It could be fun to write an e1000 driver.”
I have already found the documentation I need if I actually were to implement AHCI and e1000 drivers:https://www.intel.com/content/dam/www/public/us/en/documents...
https://www.intel.com/content/dam/doc/manual/pci-pci-x-famil...
If I were to do all of this, I would likely try my best to make it a production platform. The purpose would be fun.
Anyway, I wonder if these thoughts will continue if I sleep on them.
Won't be big and professional like GNU
Could probably just record user:group in the filesystem and ignore it at runtime except when serving clients? Ex. a Linux file server running as root can still check permissions and ownership without having to change its own user. (Although as an interesting thought experiment, forking per session and switching to the client user would give you file permissions for "free" by way of the kernel imposing them on you...)
As long as the VFS permits those calls to go to the filesystem driver, that is doable. A casual inspction of the documentation suggests that doing this will return an error from the syscall. I am not sure what a kernel driver calling the VFS can do in terms of getting/setting these yet.
A kernel is mostly "hardware drivers" with an ABI.
That's why performant "standard" hardware programing interfaces are so much important. Those interfaces should be the simple and stable in time as much as possible.
Many hardware realms have such _performant_ interface: nvme, usb, etc.
Basically it means DMA, doorbells/IRQ "ring buffers", command ring buffers("queues").
Because for those alternative kernel initiatives, this would allow them to become 'real-life' much faster.
And a NOTE related to RISC-V hardware: keep an eye on arm piggybacking RISC-V chips(they are the bad guys with their blocking/$$$ intellectual property), but the target goal does include AV1 video dec/enc blocks instead of mpeg, and DisplayPort instead of hdmi, because those are hardly less worse than arm.
And some hardware is going even further, the "next step": user level hardware queues (look at AMD GPUs which started to implement those). I know there is 3D pipeline programming behind this hardware interface, but I believ that if they started to clean the base hardware interface, they will cleanup their 3D pipeline programming too.
Doesn't look like you can run WINE on it, which would make for an interesting Windows replacement.
Why would you just not use Linux to run WINE. It's not realistic to replace all the drivers that make Linux so universally usable as it is. If you specifically want it as a Windows replacement, the Linux distro that Valve is building seems like the best bet.
The readme explicitly states it’s not suitable for desktop usage. For staters, it doesn’t support all the features needed to run x11.
This looks like a very interesting project for OS devs but if you’re after a Windows replacement then there’s already a few options out there from ReactOS to Linux-distros that come with Wine configured as part of the base install.
Details on what is missing that a X11 server needs are here:
Once you're running something as heavy as a desktop application or game, then the full Linux kernel is not the heavy part anymore.
This is fantastic. The problem with Linux is the dev culture at the top. I've long wished for an alternative kernel project that might serve as a better dev model. This has the potential.
> I've long wished for an alternative kernel project that might serve as a better dev model.
Do you have something against FreeBSD, NetBSD, OpenBSD, illumos, Redox, or (if you don't need a unix-like) Haiku?
Linux syscall compatibility.
FreeBSD, NetBSD, and illumos have that.
Doesn't BSD have that?
The kernel dev culture is excellent, it's pure meritocracy.
We all know that Rust in the kernel is a political operation to change this to woke.
I'm not even sure what that's supposed to mean. Is it a joke that I'm not getting?