369 points · by josteink · 4y ago · 176 comments
This machine uses the Allwinner D1[0] SoC, which is pre-standard V, incompatible with the standard V extension ratified in December.
Even if not enabling/using the V, and thus considering it just RV64GC, it is a fairly slow one relative to what's already available in the market, and it comes with just one core.
I already have the ~$21 LicheeRV w/Dock[1], which uses the same D1 SoC. IMHO much more cost efficient if you want to play with D1.
Essentially it is shortform for standardising a set of optional instruction sets into a bundle. RV for RISC-V, A for "applcation supporting" (as opposed to being used in embedded or microcontroller) and 22 for 2022 (in 2100 it'll be 100)
This is a common misconception. RVA22 is not just a bunch of profiles, but 2022's OS-A Platform.
Platforms do, among many things, require profiles, which are what you've described. In this particular case the RVA22 platform requires the RVA22 profiles.
From your link, documenting profiles, there's an entire section[0] addressing the difference.
The actual platform specification can be found here[1].
[0]: https://github.com/riscv/riscv-profiles/blob/main/profiles.a...
[1]: https://github.com/riscv/riscv-platform-specs/blob/main/risc...
Is this an actual open source processor? I can't find any info on it either way. A lot of the conversation around RISC-V seems to conflate the open source nature of the ISA with the the actual implementation. Even the reference implementations are BSD licensed so people are allowed to distribute proprietary derivatives to say nothing of completely proprietary implementations.
If all or most of the implementations are propriety, I feel like it is a mostly lateral move from ARM as, although it is not open source, the ARM ISA is readily available [1], and the same kinds of rarified CPU engineering and academic circles that will have influence in the RISC-V Foundation, already influence ARM.
[1] https://developer.arm.com/architectures/cpu-architecture/a-p...
AIUI the SoC is not open, but the CPU design it contains, XuanTie C906, is.
It would even be decent if it had standard V extension, but sadly it uses an incompatible pre-standard draft.
They just open-source a light version of the C906, the OpenC906. For instance OpenC906 does not contain the vector extension.
But even the OpenC906 is only partially open-source. They only disclosed verilog code generated by an internal tool, so the real design source code is not open. Worse, they don't open source testbenchs which makes any modification or verification very tedious.
> FREEDOM 0: This says that the user has the right to use the software as well as according to his/her needs.
Code containing BSD licensed components doesn't guarantee this to the user, since they are typically further constrained by EULAs and the like.
> FREEDOM 1: This says that the user can study the working of the software and make changes to meet his/her requirements to have the desired results. Here to make changes to a program, having its source code is a precondition.
Code containing BSD licensed components don't require giving the user the source.
> FREEDOM 2: This says that the user has the right to redistribute the copies of the software to help out others that may require the same.
Code containing BSD licensed components commonly restricts users from redistrbuting.
> FREEDOM 3: This is an extended version of Freedom 2 which says that the user can also provide others with copies of the software in which they’ve made modifications by doing this the developer allows the community an opportunity to benefit from his/her changes. Also, having its source code is a precondition here as well.
Once again, code containing BSD components frequently doesn't grant the user access to the source.
Nope. The BSD license does not guarantee source to users. It's very free in that it places minimal restrictions what can be done with, but it doesn't guarantee the four freedoms to people who (for instance) receive binaries of modified works.
I'm not saying it's bad because of this, I don't want to start a flame war here.
Obviously, everybody gets a free license to RISC-V, and most implementations are proprietary. This doesn't mean there aren't any open implementations; C906 is one of many.
"The keyboard is just OK. To be honest, it was the only part of the device I was a bit disappointed about. The keys are small, not spaced apart enough, and can be hard to press." [1]
[1] https://artvsentropy.wordpress.com/2022/01/15/writing-on-the...
From a psychological UX perspective, I'd prefer 1/2 shifts between all the rows, creating a hex grid.
Ortho is also logical and justifiable, although its packing is worse than hex.
But if convention is to be broken, it should not be the 1/4 that this product has chosen, which offers no benefit and creates an unfamiliarity cost. Better to stick with the standard key positions than this.
I've actually got an atom based PC that uses the exact same chassis and trackpad as the pinebook pro, and I've been trying to use the same community firmware. Because it is indeed horrible by default. Random touches, scrolling instead of pointing etc. No palm rekection at all.
Unfortunately I never managed to get it to install :(
https://pocket.popcorncomputer.com/
Edit: I stand corrected, totally missed the blog posts and the videos, happy to see I was wrong; the pandemic has been hard for many businesses unfortunately. If I may, they should put something on the homepage too however, as I recall monitoring it from time to time since probably over two years and it never showed that there were working prototypes. This would help to fuel interest.
There are pictures and videos of development devices on Twitter; for example: https://twitter.com/gajjar04akash1/status/148444172903842611...
Wrong ISA to be on topic.
Allwinner is known as a champion in GPL violations, obfuscating technical details and keeping binary blobs. This defeats the entire purpose of RISC-V and creates an environment similar to what is now for ARM (everything locked down, everything opaque).
The advertisement is basically false advertisement, this is no computer for "free hackers" but another locked down SCB with a non free core.
Hopefully it works!
https://www.digibarn.com/collections/systems/trs80-model100/
I'd buy something like this if it were the size of a normal keyboard (and as long as it cost less than 300, oh, and as long as it has 4gb of ram. yeah, probably I'm not actually the target market).
Then I am thinking how this device could fit into my daily life. I am wondering what are the typical scanrios for portable computers these days?
Android RISC-V port was demonstrated over a year ago. I fully expect some RISC-V smartphones will hit the market as soon as chips with high performance cores are ready.
Realistically, that means RVA22 (TBA in spring) + 6 month (assuming best case scenario immediate tapeout) + whatever time it takes to validate such a device built around the new chip.
I would say 2023H1, if I had to guess.
I think you could make it pretty small but still large enough to fit two small PCI-express cards and replaceable/upgradeable RAM modules. It would be a good format for tinkerers, very amenable to having replaceable parts and being user-serviceable. Throw some GPIO in there and you would have a real winner for the maker crowd.
EDIT: someone build this lunchbox portable with a raspberry pi and it looks really awesome: https://hackaday.com/2020/06/09/lunchbox-cyberdeck-is-a-tast...
Exactly what I'm thinking.
http://www.oldcomputers.net/trs100.html
That can't be a coincidence.
This is like the classic home button on an iPhone being a tool for detaching the screen from the back of the phone.
For RISC-v, on top of worry it is (a) all just trying to support a 10xrussian empire to be so no sanction later; (b) only the hardware guy concern address and even that a bit … we are still face all these bob of non-open things.
Why bother?
Helping evil?
Maybe someone can hack a longer flexible ribbon cable and a hinge? And sell it as an aftermarket kit? Please? (The thing looks pretty cool otherwise).
The Tandy 100, whose design inspired this machine, was very popular among journalists as a note taking machine.
They're still around but I haven't seen one since then.
You are badly wrong here.
I see others are pointing to the Tandy Model 100.
I will add the Cambridge Z88: http://www.computinghistory.org.uk/det/4860/Cambridge-Z88/ https://oldcomputers.net/cambridge-z88.html
Still in use, OS still being updated, spares and addons available new. https://www.rwapsoftware.co.uk/z88.html
And the Amstrad NC100: https://www.ncus.org.uk/intro.htm
I have both. I have written about them: https://www.theregister.com/2011/11/10/portable_writing_tool...
I also have both an AlphaSmart 3000 and a Dana Wireless: https://en.wikipedia.org/wiki/AlphaSmart
There was the QuickPad: https://www.techtoolsforwriters.com/tag/quickpad/
... and the DOS-compatible QuickPad Pro: https://www.victor-notes.com/qppro/
And the Fusion Writer: https://www.at-udl.net/Writer-Fusion_2223
And the Tandy Portable Wordprocessor range: http://www.computinghistory.org.uk/det/2720/Tandy-Portable-W...
In terms of contemporary modern kit...
The Freewrite: https://getfreewrite.com/
There's this modern peripheral: https://www.kickstarter.com/projects/ficihp/ficihp-multifunc...
And this device: https://www.hackster.io/news/the-ready-computer-model-100-bl...
As you can see this is an area of considerable interest for a lot of people, and I'd like an inexpensive modern one myself. For me, the DevTerm is too small.
So that leaves the last 3 links you provide.
#1: The screen is slightly tilted. So it isn't "flush with the keyboard" as I described. Also, this seems to have a typewriter-quality keyboard, which is the selling point there. I'm sure the users are touch-typists who are writing their novel, not someone trying to use BASH and VIM, which I'll have you note, is the target audience of this RISC-V computer.
#2: ...This is a keyboard. Which you connect to an external monitor. Sure, it has an internal monitor, but you can clearly see from the demo that it's meant for preferences and settings. You don't use it standalone. On-the-go seems to be a feature, but it isn't the focus, so it isn't a good example.
#3: ...This is a toy. This is a nostalgia talisman for people who want to go to a techno rave, or people who like the aesthetic of the Tandy 100. It isn't meant for practical use.
Some of those old models were very successful and were very widely available, meaning that they still are today. When I wrote the Register article -- in which I said that I bought both an NC100 and a Z88 to research them, both for about £10 -- I didn't know about the (American) Alphasmart machines. Once I learned, I bought both, and while the 3000 was twice the price, that still means about £25. Easily found, widely available today.
My Dana Wireless cost more: circa £50 with shipping from the USA. Still not a lot.
This falsifies your statement that "nobody ever wanted" such things.
Your disingenuous statement that a tilted screen does not match your criteria is also false: the point here is that there's no hinge. It's one piece, robust and solid and cheap.
All 4 of the devices I have possess "typewriter-quality keyboards".
You are trying to wriggle out by splitting hairs. It's a very poor try at that.
These things are real, they were commercially successful, sold in large numbers, were very popular -- and are widely missed.
While there isn't a cheap decent-spec modern one, that's largely because commodity pricing has made laptops so very cheap now. I have done an ad-hoc feasibility study with a friend and we glumly concluded that we couldn't make one in small numbers for less than the price of a perfectly good ChromeBook.
But I submit that the DevTerm shows there is interest.
Not widely if that's what you meant by "in industry".
Most (like SiFive) did indeed wait for ratification (in case of last minute changes), before announcing their cores.
Pre-standard V chips do of course exist, and this is a good thing (there's better testing in using actual hardware implementations).
They have to use the opcode space reserved for custom extensions, and obviously cannot claim V compatibility. No overlap with actual V opcode space, and therefore no compatibility issues.
These are, nevertheless, fine for embedded uses in which the vendor has control over the whole stack.
It does also mean they have to take on the associated cost of having to maintain it, unless they choose not to actually use the custom extension at all, a choice that realistically will actually suffice for most deployments.
>I decided to install in my DevTerm the simplest module compatible with the popular RaspberryPi Linux distribution. It’s slower than the other “cores” but less power-hungry, and it’s very simple to install pre-compiled software and look up answers for any questions (as the RaspberryPi community is so huge). Yet this core still gives the user an ARM64-bit Quad-Core Cortex-A53 1.2 GHz CPU and 1 GB of RAM — more than enough to run simple writing apps.
How small is it?
I've been trying to figure out what I need for comfortable portable writing. I have an Aspire One that's pretty much at the lower limit for key spacing for my hands, with 17 mm × 16 mm keys. I'm typing this on a cheap USB external keyboard with keys closer to 18.5 mm wide, and I think slightly tighter spacing would be more comfortable. I might be able to make do with 15 mm or even 14 mm horizontal key spacing, but my fingers would collide. Someone with smaller hands could manage a slightly smaller keyboard, but not that much smaller. Touchtyping becomes impossible and you're reduced to typing with two fingers like a five-year-old.
Unfortunately none of https://artvsentropy.wordpress.com/2022/01/15/writing-on-the... https://lunduke.substack.com/p/the-first-risc-v-portable-com... https://www.clockworkpi.com/product-page/devterm-kit-r01 bothers to give any dimensions at all, even when they spend a lot of time talking about how small it is.
From my point of view, this is more important than the information they did give, and it seems like it was pretty important to them too, so I don't understand why they omitted this information.
What I want is:
1. A computer powerful enough to recompile all its own software,
2. which can run a reasonably convenient programming environment (my bar is pretty low here: at least as good as Emacs with GCC on a VAX with a VT100, or MPW on a Macintosh SE),
3. which fits in my pocket,
4. which doesn't need batteries or plugging in,
5. which I can recover if I corrupt its filesystem, and
6. which is usable in direct sunlight.
This laptop fulfills points #1, #2, and #5. My cellphone fulfills points #2, #3, and #6. My solar calculator fulfills points #3, #4, #5 (trivially), and #6. It looks like this "DevTerm" fulfills points #1, #2, and #5, same as my current laptop but maybe slightly more portable. But I don't think any computing device exists, or ever has existed, that hits all of these points. But I think it's attainable now.
I think the conjunction of points #2 and #3 probably requires the thing to unfold or deploy somehow, unless some kind of Twiddler-like device would allow me to do it one-handed. There just isn't room for both of my hands at once on the surface of things that fit in my pocket (about 100 mm × 120 mm). Conceivably a laser projection keyboard could work.
Besides,
> 4. which doesn't need batteries or plugging in
what do you mean by that? Would that include only solar-powered devices?
I really hope not. The closest data center to me is about 70ms on a great day.
Most online games chose to host on servers that are 200-400ms away, it sucks immensely, so I don't play those games.
I agree that making computing power mobile makes it enormously more expensive, especially if you consider batteries unacceptable. But making computing power remote means that you need to spend energy on a radio to access it. That's a good tradeoff for some things, but not for others. In my other comment, note that if we believe Ambiq's datasheet, we can get the CPU speed of a SPARC 20 for 1.8 milliwatts.
It turns out the chip also includes a Bluetooth Low Energy 5 radio, so you can use it to remotely access more powerful stationary workstations via networking, as long as you're within a few meters of a base station. The radio costs 10 milliwatts when you're running it, six times as much as the Pentium-class CPU. Normal radios (Wi-Fi, cellphones) cost orders of magnitude more than that.
So constant remote wireless access to more powerful stationary workstations doesn't start to save energy until the amount of computation you're accessing is close to a gigaflop. Maybe closer to a teraflop if we're talking about streaming full-motion video. Intermittent remote access, of course, is a more reasonable proposition.
It's true that gaming commonly uses teraflops or petaflops of computing power, and plugging in such a beast in a server closet is a huge improvement over trying to somehow cram it into your pocket. But there are a lot of day-to-day things I do with a computer — recompiling my text editor, writing stupid comments on internet message boards, chatting on IRC, simulating an analog circuit, reading Wikipedia — that very much do not require gigaflops of computing power.
(Remote wired access of course can use very little power indeed, but if you're in a position to plug into a wire, you might as well deliver power over that wire too.)
If you take a modern cellphone and take almost all the processing power out of it, you still have a 1000-milliwatt radio and a 1000-milliwatt backlit screen. So you aren't going to get multiple days of battery life that way. 1000 milliwatts is enough to pay for dozens of gigaflops of computing power nowadays.
Myself, I have another reason: I travel, though I've traveled very little during the pandemic. But I am often someplace other than at home: at a café, in a park, at the office, in a bus, in the subway, in a taxi, visiting a friend in another city, at my in-laws' house, and so on. All of these places are out of Bluetooth range of my house. I could obtain internet bandwidth from a commercial provider, but that sacrifices privacy, it's never reliable, and I don't consider it reasonable to make my core exocortical functions dependent on the day-to-day vagaries of mere commerce. Personal autonomy is one of my core values.
So, uh, it has to be solar powered only? That sounds fantastically niche and not like something someone would want to design/build.
I think any reasonable "work" performance level would require too large an area of solar cells in order to be practical, especially if it should work indoors.
But last year I learned about two innovations that have been brought to market that dramatically increase the potential abilities of such a device.
— ⁂ —
It's entirely possible that your definition of 'any reasonable "work" performance level' is orders of magnitude higher than my "reasonably convenient programming environment". The VAX reference point is 1 Dhrystone MIPS, and the Macintosh SE (a 7.8 MHz 68000) was also about 1 Dhrystone MIPS. Current ARM7 Cortex designs deliver about 2 Dhrystone MIPS per MHz, so we're talking about 500kHz of ARM7 instructions here.
Without any fancy circuitry at all I was able to squeeze 8 mW out of a 38-mm-square solar panel from a dollar-store garden light, in direct sunlight. Theory predicts it should be capable of 200+ mW (16% efficiency, 1000 W/m²) so hopefully I can get better results out of other panels. The amorphous solar panels normally used on solar calculators, which work well indoors as well as in direct sunlight, are nominally about 10% efficient, which is to say, 10 mW/cm² in direct sunlight or 100 μW/cm² in office lighting. It's easy to imagine dedicating 30 cm² of surface area to solar panels, which would give you 300 mW outdoors or 3 mW indoors. (38 mm square is 14 cm². 30 cm² in medieval units is about 4⅝ square inches, depending on which inch you use.)
— ⁂ —
So, what kind of computer can you run on a milliwatt or so?
Ambiq sells an ultra-low-power Cortex-M4F called Apollo3 Blue with 1MiB Flash plus 384 KiB RAM; the datasheet claims that, when fully active, at 3.3 volts, it uses 68 μA plus 10 μA per MHz running application code, and it runs at up to 48 MHz bursting to 96 MHz. So at, say, 10 MHz (20 VAXen or Macintosh SEs), it should use 170 μA or 550 μW. At 48 MHz (100 VAXen or Mac SEs), 550 μA or 1.8 mW. I haven't tested it yet. SparkFun sells a devboard for US$22 at https://www.sparkfun.com/products/15444.
Remembering, of course, that benchmarks are always pretty bogus, we can still roughly approximate this 20 DMIPS performance level as being roughly the processing speed of a 386/40, 486/25, or SPARC 2, and the 200 DMIPS peak as being roughly the processing speed of a Pentium Pro, PowerMac 7100, or SPARC 20 — but with enormously less RAM, an enormously lower-latency "disk", and a lower bandwidth budget for the disk. And no MMU, so no fork() and no demand-paged executables. You do get memory protection, hardware floating point, and saturating arithmetic, but no MMX-like SIMD instructions.
— ⁂ —
If the computer's output isn't going to be just an earphone or something, though, you may need to spend substantial energy on a screen as well. Sharp makes a 400×240 "memory LCD" display (0.1 megapixels) used in, for example, Panic's Playdate handheld game console (https://youtu.be/uziFTK5c29k) which seems like it should enable submilliwatt personal computing; the datasheet says it uses 175 μW when being constantly updated with a worst-case update pattern at its maximum of 20 Hz. Adafruit sells a breakout board for the display for US$45: https://www.adafruit.com/product/4694
A VT100's character cell was 8×10 (https://sudonull.com/post/30508-Recreating-CRT-Fonts), so its 80×25 screen was 640×250, 0.16 megapixels, while the Macintosh SE was 512×342, 0.18 megapixels. Both of them were 1 bit deep: a pixel was either on or off. So two of these LCD screens together gives you more pixels than either of these two reference-point computers. However, the pixels are physically a lot smaller, which may compromise readability. (On the other hand, as you can see from the Playdate videos, you can do a lot of things on this display that a VT100 or Mac SE could never dream of doing because of lack of compute and RAM.)
— ⁂ —
So, I think it's eminently feasible now, although it probably wasn't feasible ten years ago. But it's going to be a challenge; I can't just compile Linux and fire up Vim. Even if Linux could run on these super-low-power computers, they don't have enough memory to recompile it.
However, videos of the display hardware like https://youtu.be/zzJjE1VPKjI show that you can get really astonishing things out of 0.1 megapixels when you drive it with current levels of computation instead of, like, an 8085. (That video is a little misleading in that it claims "60 fps animation", while the datasheet claims the max is 20 fps.)
Notably, this is the same chip used in the computer discussed in this story.
But that design is great.
Easier to write compiler backends for? Faster? Simpler?
For me one of the biggest draws is that the privileged spec is enormously simpler than the corresponding morass for most other architectures, especially i386 and amd64. Writing a toy, but working, virtual-memory operating-system kernel for RISC-V seems like the kind of thing you could do in a weekend rather than a semester. And that's enormously freeing.
Trouble is, almost all the actual physical RISC-V hardware I've seen so far seems to be microcontroller-oriented, so it doesn't have an MMU, so it doesn't support this stuff. SiFive has sold some boards called HiFive Unmatched and HiFive Unleashed with multi-core RISC-V CPUs they built that I'm pretty sure did have MMUs (since you could run Linux on them), but they're gone now (https://www.mouser.com/ProductDetail/SiFive/HF105-000?qs=zW3...).
So something like the Allwinner D1 seems really appealing. Just, not saddled with a keyboard that's both too big to fit in my pocket and too small to actually type on. The Clockwork Pi would be a good fit — but 64 MiB is pretty small for running modern Linux.
edit: apparently there are open versions of SPARC and POWER, so... maybe there's not a lot of value in RISC-V except that it's simpler than the other two, drops irritating legacy features (register windows, condition codes...) and is in general designed for modern implementation?
These new designs can then be used commercially- that's a big win for computing in general.
No doubt, because you're going to be cricking your neck over to look at the thing. Looks painful.
Yocto project in https://github.com/T-head-Semi/xuantie-yocto
Instead, we’ve moved to limit their ability to manufacture. All the chip plans in the world are worthless if you can’t fabricate them. ASML was largely funded with US DoD money and they seem to have veto power when it comes to exports.
Russia’s cutting edge tech is something like 180nm with promised for 90/65nm still being pipe dreams.
China has managed small amounts of 32nm and talks about 22/14nm stuff, but they can’t get new equipment and all of that is mostly gleaned from the US outsourcing so much.
This puts these countries 10-20 years behind and that’s if we don’t consider the nodes that are essentially complete, but waiting on the resources to build them out.
China has been effectively cut off from EUV steppers, but has used that fact to put a lot of money into developing their own by any means necessary. They have a pretty decent track record of developing manufacturing experience in something when they get cut off from importing it.
Last I checked, SMIC still wasn’t ramping up 14nm production until later this year.
I believe this was directly impacted to problems getting more equipment. High yields on not much equipment also doesn’t matter too much. If that equipment was easy to design and make, then everyone would be doing it. Even a year or two makes a huge difference in this market.
As a side note though, nodes have very little impact on weapons themselves. Most missiles and similar weapons use positively huge nodes because they are more reliable and less susceptible to interference.
We could land a rocket on the moon with 350 times less compute power than your highschool TI calculator possessed. A handful of 180nm chips are more than up to the task. Even ancient 600nm Pentium designs would be more than enough.
People tend to think about weapons, but the real consequences are in the design and implementation stages.
It prevented RISC-V from being embargoed by this sort of thinking, and did go a long way to promote it among those seeking technological sovereignty.