HNHacker News
TopNewBestAskShowJobs

johndoe0815

2,010 karma · joined October 20, 2019

https://multicores.org https://github.com/michaelengel
submissionscomments
johndoe0815··on BolgenOS – Fundamentally New Operating System from Russian Developer
"created on the basis of Ubuntu Linux"... obviously fundamentally new... /s
johndoe0815··on Liberux: Linux phone with 32 GB RAM
This uses the Rockchip RK3588 SoC with an ARM Mali-G610 GPU. In general, that's a nice chip.

My concerns are

- are there open source (Linux) drivers for that GPU available now?

- is this CPU really suited for battery-powered mobile applications? I couldn't find details on the power consumption right away...

johndoe0815··on Operating System in 1,000 Lines – Intro
Are you planning to also provide an English translation of your microkernel book? That sounds very interesting...
johndoe0815··on Operating System in 1,000 Lines – Intro
Virtio is not qemu only. For example, the macOS virtualization framework on Apple Silicon Macs (and x86 machines IIRC) also provides virtio devices, other hypervisors.

An overview of the available devices can be found in this presentation:

https://crc.dev/blog/Container%20Plumbing%202023%20-%20vfkit...

johndoe0815··on Operating System in 1,000 Lines – Intro
Comer was also my introduction to OS design and I still like the approach used in his Xinu books.

I had a quick glance at the OS in the linked article. This seems to be based on a 32-bit RISC-V with MMU. However, AFAIK, all available RISC-V SoCs with MMU are 64-bit. The 32-bit cores are only used for embedded controllers (unless you want to start designing an FPGA-based system).

The 32 and 64 bit versions of RISC-V are _not_ binary compatible, but the differences are rather small. Porting the MMU code from 64 to 32 bit or the other way round is not very complex, see my RV32 port of xv6 at https://github.com/michaelengel/xv6-rv32 (the regular MIT xv6 version only supports RV64).

The major difference is that virtual address translation on RV32, sv32, uses a two-level page table (10 bit index for the first level, 10 bit index for the second and 12 bit offset) whereas there are several modes of translation for RV64. The most common one, sv39, uses 39 bits of the virtual address split into three 9-bit indexes (so you need a three-level page table for 4 kB pages) plus 12 bit offset.

If you make the modifications, running the OS on real hardware should not be too difficult. The Allwinner D1 is a relatively simply RV64 single code SoC (boards can be found for $20 upwards from aliexpress) and getting the CPU and a UART to work is not that difficult. You can check out my xv6 port to the D1 as a reference: https://github.com/michaelengel/xv6-d1

johndoe0815··on Computer Cousins: The Atari ST and DOS PCs
Not quite, the ST floppies were DD (double density). One problem that could occur is that low-end ST configurations - especially the 260ST - were delivered with a single sided floppy drive (SF354, 1 side, 80 tracks, 9 sectors of 512 byte per track, giving 360 kB) instead of a double-sided drive (SF314 with 720 kB).

PC HD floppy drives also have 80 tracks per side, but use twice the data rate (storing 18 sectors of 512 byte each per track) and thus require floppy disks with a different magnetic coating that can handle the higher frequencies. This can also cause problems with data retention and reliability when using 1.44 MB HD disks in DD drives for the ST.

One problem with floppies formatted with early TOS releases (1.0 and 1.02) was that these used a Media Description Byte (offset 0x15) in the boot sector which confuses DOS/Windows system even though the file system format used is FAT12 or FAT16. This was fixed in TOS 1.04.

Details at https://www-user.tu-chemnitz.de/~heha/basteln/PC/usbfloppy/f...

johndoe0815··on Why Some Satellites Use NetBSD? – André Machado – Blog
It would be interesting to learn more about the hardware and CPU platforms used - e.g. radiation hardened SPARC (Gaisler Leon-based?) or PowerPC systems - and if the source code for the satellite platforms' NetBSD port is available.

While there's a lot of information about the described satellites online, I was unable to find details on these details.

johndoe0815··on Pomostudy.io
No comment on your website, sorry - but at first glance I thought there was bad kerning ("keming") involved and your domain name is actually "pornostudy.io"... maybe a slight name variation would help to reduce that confusion.

See also https://en.wiktionary.org/wiki/keming and https://www.ironicsans.com/2011/11/keming_revisited.html

johndoe0815··on Can You Hate Everyone in Rome?
"This post is for paid subscribers". Flagged.
johndoe0815··on Ask HN: Good books about DSL creation
"Domain-Specific Languages" by Martin Fowler and Rebecca Parson might be interesting: https://martinfowler.com/books/dsl.html
johndoe0815··on MIPS32 Emulator
A open source MIPS emulator that can run Linux and Ultrix (and even runs on an Arm-based microcontroller) is part of Dmitry Grinberg's LinuxCard project: https://dmitry.gr/?r=05.Projects&proj=33.%20LinuxCard
johndoe0815··on Asus bombards Windows 11 with christmas.exe malware-like Christmas wreath banner
An OS onto which software can be installed without the system owner's (or at least user's) consent is malware...
johndoe0815··on X deletes all pro-Israel posts from Germany Christmas market attacker profile
This should be seen as destruction of evidence, a felony under German law.
johndoe0815··on Norway Shrugged
He could have left the country before he became rich... no taxes in that case.
johndoe0815··on Microsoft built a PC that can't run local apps – Windows 365 Link starts at $349
Unfortunately, this thing still costs more than half the price of a basic M4 Mac Mini... Even though it looks a bit like the Arm-based Windows Dev Kit 2023 PCs (which the tomshardware article mentions) it seems to be based on some Intel CPU. This probably makes sense if it's remote booting over the network and not only a standalone remote desktop terminal.
johndoe0815··on Framework laptops get modular makeover with RISC-V main board
Dupe, see https://news.ycombinator.com/item?id=42171124

As I mentioned in my comment to that article, the JH7110 is not an ideal platform for a mobile device, since suspend to RAM is not supported.

johndoe0815··on Framework laptops get modular RISC-V main board
There is, but you have to select the M1 SoC to get it.
johndoe0815··on Etymology of "Nice"
Nice!
johndoe0815··on Framework laptops get modular RISC-V main board
Unfortunately, the JH7110 SoC is not an ideal choice for powering a mobile device, since suspend to RAM is not supported.

See section 1.6 of the errata: https://doc-en.rvspace.org/JH7110/PDF/JH7110_Errata.pdf

"This issue will be fixed in StarFive next generation SoC JH-8100"... let's see.

The Musebook, featuring the SpaceMit K1 or M1 SoC, seems to be the better choice, but the device has not been available from aracetech for several months: https://arace.tech/products/muse-book-risc-v-laptop

I have one of the Musebooks here which works fairly well - it's not very fast compared to, e.g. a Raspberry Pi 5 - and the price of ~300€ is similar to the ARM (Rockchip RK3399)-based Pinebook Pro, but with better display and keyboard as well as being offered with up to 16 GB of RAM.

The MilkV Jupiter board uses the same SoC as the Musebook and is relatively inexpensive (and available right now) if you want to experiment with the K1/M1 SoC: https://arace.tech/products/milk-v-jupiter-spacemit-m1-k1-oc...

johndoe0815··on M4 Mac mini's efficiency
In Germany you can get the cheapest (base version, 16GB RAM/256GB SSD) M4 Mini for 579€ via Unidays edu discount (also including VAT).

I picked mine up from the post office yesterday, it's 50% faster in Geekbench single/multi-core CPU benchmarks than my M1 Pro Macbook Pro and about as fast in GPU performance. Impressive.

johndoe0815··on M4 and M4 Pro Mac minis are probably Apple's best Mac minis
The 2014 Mac Minis were such a downgrade, the entry model was downgraded from a 2.5 GHz dual-core Ivy Bridge Core i5 (3210M) in the 2012 models to a 1.4 GHz dual-core Haswell Core i5 (4260U).
johndoe0815··on QNX is now free for anything non-commercial, plus there's an RPi image
To add some details - the source code for QNX was available from 2007 until the takeover by RIM/Blackberry in 2010.

So do you plan to offer access to QNX source code again in the future?

https://www.qnx.com/news/pr_2471_1.html

johndoe0815··on Bill Atkinson doxxed Douglas Adams in 1987
Looks like it were the real addresses, see https://www.housebeautiful.com/uk/lifestyle/property/news/a1...
johndoe0815··on Ask HN: Are There Any Fully-Documented Computers
Most popular modern SoCs are not fully documented - one part that usually lacks any documentation is the GPU. For most ARM-based SoCs, it's either one of ARM's Mali series or an Imagination Technologies product, most RISC-V based SoCs (e.g. the JH7110) also use Imagination Technologies GPUs.

Additional components also have documentation that's hard to find, especially those based on Synopsys' DesignWare IP. These are sometimes at least... strange (or should I say buggy?) effects such as with their "standard" 16550-compatible UART: https://lupyuen.github.io/articles/plic

The Vivante GPU in Freescale's i.MX8 SoCs was reverse engineered and is probably the closest you can find to a somewhat documented GPU (STM32MP SoCs also have a Vivante GPU). In general, the i.MX8 is well documented - one of the reasons why it is used in Purism's Librem 5 phone.

You can "cheat" and improve the GPU situation a bit by using a RISC-V board with a PCIe slot and an old AMD GPU.

When there's no documentation available, all you can do is reverse engineer the functionality of existing open source drivers. Linux drivers are often quite complex, I recommend looking at Net/OpenBSD and Plan9 drivers instead. For some RISC-V SoCs (SiFive Freedom U740 on the Unmatched board and JH7110), Haiku is also worth looking at.

An alternative which provides documented hardware is to use an FPGA-based SoC builder, e.g. LiteX: https://github.com/enjoy-digital/litex

Of course, this results in a significant degradation of performance...

Another option would be to use a regular x86-based PC and rely on the documented interfaces, such as VESA graphics, but then you have to deal with x86 and all the baggage of almost 45 years of PC evolution...

johndoe0815··on Budget Android (€99) vs. Expensive iPhone (€1000) (2018)
This article was written in 2018... Android one is long dead, now the owners of inexpensive Android phones again have to guarantee that they will ever receive security fixes or updates.
johndoe0815··on Germany: Will city of Wolfsburg survive Volkswagen's crisis?
VW only offers significantly overpriced electric cars, still expensive and mediocre quality ICE cars, and the company tries to push the government to extend the phasing-out date of new internal combustion engine cars. In addition, we still remember VW's cheating in the Diesel affair... what can go wrong?

VW had an attractive and relatively affordable small electric car, the E-Up, but its production was stopped last year.

So, good riddance, German car industry. Let's concentrate on future-proof technologies like... IT, cryptocurrency, NFTs, AI... wait...

johndoe0815··on Computer Organization, free online textbook
This book by Stephen Marz seems to be a great addition to the Arpaci-Dousseau's "Operating Systems: Three Easy Pieces" (https://pages.cs.wisc.edu/~remzi/OSTEP/).

Stephen also wrote a great blog article series on building your own RISC-V OS in Rust (https://osblog.stephenmarz.com), so I'm really looking forward to reading his computer architecture book (and probably using it in my course).

johndoe0815··on Nokia N9 (2011) GUI Demo [video]
I still own a working N9 and think it's a shame that the Linux-based mobile phones by Nokia were killed by the hostile Microsoft takeover. Some of the old OS still lives on at Sailfish running on Sony Xperia phones, but it doesn't feel the same as a tightly integrated solution.
johndoe0815··on Ask HN: Outstanding PhD thesis from Computer Science in last 40 years
CS is wie a complex field today, are you interested in a specific topic (such as algorithms, computer architecture, SW engineering, …)?

For a good overview, I can recommend to check out the ACM doctoral dissertation awards: https://awards.acm.org/doctoral-dissertation

johndoe0815··on OpenBSD 7.6 released
Thanks - I was grepping through the kernel sources and could not find any references to the Pioneer, Milk-V or the SG2042 SoC. It makes sense it's mentions in the commit logs instead, especially if the hardware is rather similar to existing supported components... I didn't know about the freshbsd site, nice to have this!
← PreviousPage 4 of 26Next →