4 ms·
Wow that's awesome that they want everything in the mainline Linux kernel. Here's hoping they pull it off!
by tdicola 11y ago
Wow that's awesome that they want everything in the mainline Linux kernel. Here's hoping they pull it off!
- acqq 11y agoIf I understand, that would be their major advantage to Raspberry Pi? But is the graphics of CHIP comparable to the one on Raspberry Pi?
- wolfgke 11y ago> But is the graphics of CHIP comparable to the one on Raspberry Pi? The CHIP uses an Allwinner R8 SoC, which uses a Mali400 GPU (source: http://www.cnx-software.com/2015/06/07/allwinner-r8-module-datasheet-and-price-is-the-9-c-h-i-p-computer-selling-at-a-loss/ http://www.cnx-software.com/2015/06/07/allwinner-r8-module-d...). RPi uses a VideoCore IV GPU. While there is no open source driver for Mali400 available, it has been partially reverse-engineered (lima). For the VideoCore IV there is an open source driver available, but the SoC on the RPi is special in the sense that when booting the VideoCore IV is the core to start, which later in the boot process starts the ARM core(s). On the VideoCore IV there runs a proprietary OS (probably RTOS) that is based on ThreadX. So most things the open source driver does are simply calls to this RTOS via a mailbox. Nevertheless the RPI developers market the VideoCore IV GPU as the most open embedded GPU available. Indeed it is the only one, where an official open source driver is available and thus it is more friendly towards bare-metal programmers that want to write their own OS. On the other hand, the RTOS running on the VideoCore IV is a large blob in an instruction set that has not yet been deciphered.
- acqq 11y agoThanks! So RPi is still more "open source" than CHIP? And how big is that whole binary blob running on VideoCore IV? Good thing there is: https://github.com/hermanhermitage/videocoreiv https://github.com/hermanhermitage/videocoreiv
- wolfgke 11y agoFirst: What I wrote it only for the GPU, since you only asked about that part. I wrote nothing about the other parts of the SoC or Raspbian, though there are lots of things to say, for example: No public documentation (without NDA) is available for the USB controller of the RPi (there is still an open source driver in the Linux kernel for it that is based on this non-public datasheets) made by Broadcom. I personally consider the action that the Linux developers also include drivers based on secret datasheets into the kernel as a violation of the spirit of open source, but I digress. Also the Raspbian developers (from the Raspberry Pi foundation) include proprietary software into Raspbian, say, Mathematica. While probably useful, this surely isn't open source. So there are more criteria on which to judge a SoC than whether it is open source, say, whether there are complete and free datasheets (no NDA) available or whether the SoC is also available in small amounts for hackers (Broadcom is said to be very compicated in this area). Or how much open-source the de-facto standard GNU/Linux distribution (since this is what you'll probably want to use) for the SoC is. TLDR: Openness or open-sourceness is much more complicated.
- acqq 11y agoThanks again! Actually I asked about the size of the whole blob you mentioned to get some idea how hard would it be to disassemble it fully. What do you think?
- wolfgke 11y agoThe blob for the default VideoCore IV blob in the version from yesterday (commit 369d99df38de4c33b648ac864dd42e185461b477) has a size of 2708.504 kB: https://github.com/raspberrypi/firmware/blob/369d99df38de4c33b648ac864dd42e185461b477/boot/start.elf https://github.com/raspberrypi/firmware/blob/369d99df38de4c3... All the blobs are in https://github.com/raspberrypi/firmware/tree/master/boot https://github.com/raspberrypi/firmware/tree/master/boot and carry the name start.*\.elf . There are four versions of this firmware blob that can be used: start.elf: the default version start_cd.elf: a minimal version of the firmware that must be used if you set the GPU memory below some threshold, and only supports few features. start_x.elf: an extended version of the firmware blob which included some extra free codecs (source: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=19334&start=275 https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=1933...). start_db.elf: A version of start_x.elf with additional debug assertions (source: https://github.com/raspberrypi/firmware/issues/408 https://github.com/raspberrypi/firmware/issues/408).
- makomk 11y agoThat's not quite accurate anymore - there's an open-source OpenGL ES driver for the Pi that isn't just a wrapper around the binary blob on the VPU. However, you still need the proprietary blob in order to boot the Pi and actually enable the display outputs, and for accelerated video decoding. (Oh, and it has an interesting license that forbids you from using it on non-Raspberry Pi hardware.) On the Allwinner chips, it's the other way around - you can boot them, enable the display outputs and do modesetting and I think even hardware video decoding with open-source code, but OpenGL ES requires a proprietary blob. Though I think the Allwinner 2D graphics overlay hardware is fully documented, which may be enough for some applications.
- wolfgke 11y ago> That's not quite accurate anymore - there's an open-source OpenGL ES driver for the Pi that isn't just a wrapper around the binary blob on the VPU. Where can I find it?
- makomk 11y agoSee http://dri.freedesktop.org/wiki/VC4/ http://dri.freedesktop.org/wiki/VC4/ I think - not quite sure where the latest version lives these days.
- phkahler 11y ago>> Oh, and it has an interesting license that forbids you from using it on non-Raspberry Pi hardware. Does that mean you can't use the Pi as a dev board for the SoC and then build a product based on that? Or I suppose you'd license the video driver when you go to buy the SoC for production?
- makomk 11y agoIt does, but chances are Broadcom won't sell you the SoC either so it matters less than you think. I expect it's mostly just aimed at anyone who attempts to re-purpose existing hardware based on the same Broadcom SoC.
- rjsw 11y agoAllwinner SoCs also have a 2D graphics accelerator which can speed up things like text and line drawing and scrolling.