News for hackers. Stuff that matters.
Re:Raspberry Pi 2 Model B on OpenBSD by throwaway2048 on Wednesday September 02, 2015 @07:12PM (#10162527)
It is a mischaracterization to say they have issues with the firmware, they clearly say they don't have the same objections to firmware running on the peripherals themselves.

The issue here is that the rPI requires driver code running inside OpenBSD that is a closed source blob.

Re:Raspberry Pi 2 Model B on OpenBSD by Bluerise on Wednesday September 02, 2015 @07:17PM (#10162547)
I'm sorry, but that is wrong.

The main blobs are being run on the GPU, as bootloaders, even before the actual operating system is loaded. OpenBSD does not need to run _any_ blob itself.

There used to be a 3d graphics driver blob, but afaik that got open sourced. Also, if you don't do 3d, you wouldn't even need it.

Re:Raspberry Pi 2 Model B on OpenBSD by tedunangst on Wednesday September 02, 2015 @09:43PM (#10162957)
So, to summarize, if somebody makes a port that doesn't use a blob, all is good. The question seems to be not so much if the blob runs before or after OpenBSD, but whether we would need to distribute it. If it's in the ROM, then this isn't even a question. But if it's something we are expected to write to the flash drive, that's a potential problem. Anyway, the question isn't very interesting given that the magic porting elves haven't yet gifted us with an OpenBSD RPi port.

I don't know exactly what the situation is. Don't care. I have a BeagleboneBlack if I wanted to watch the paint dry doing a build. :)

Re:Raspberry Pi 2 Model B on OpenBSD by LukeShu on Wednesday September 02, 2015 @11:29PM (#10163220)
What's OpenBSD's policy on when something needs to be included?

The rPi boot process requires several files to be on a FAT partition on an sd-card: bootcode.bin, fixup.dat, start.elf, config.txt and the OS kernel; the first 3 of which are blobs.

Would those blobs need to be included, or would OpenBSD be fine saying "use your existing boot card, just drop in our kernel", or "go grab these files from https://github.com/raspberrypi/firmware/tree/master/boot when formatting the sd-card."?

Re:Raspberry Pi 2 Model B on OpenBSD by tedunangst on Thursday September 03, 2015 @12:35AM (#10163361)
If the blobs are preexisting that's less of a problem. But it also makes the hardware less interesting.
Re:Raspberry Pi 2 Model B on OpenBSD by Narishma on Wednesday September 02, 2015 @07:31PM (#10162603)
The blob runs on a different processor (the GPU), not inside OpenBSD.
Re:Raspberry Pi 2 Model B on OpenBSD by wolfgke on Wednesday September 02, 2015 @09:03PM (#10162854)
But the GPU has access to the RAM.
Re:Raspberry Pi 2 Model B on OpenBSD by GauntletWizard on Wednesday September 02, 2015 @09:22PM (#10162904)
Re:Raspberry Pi 2 Model B on OpenBSD by zurn on Thursday September 03, 2015 @02:55AM (#10163648)
Depends on how your firmware or OS sets up the memory protection hardware; see https://en.wikipedia.org/wiki/IOMMU
Re:Raspberry Pi 2 Model B on OpenBSD by throwaway7767 on Thursday September 03, 2015 @08:10AM (#10164453)
The same applies to the GPU. The rPi does not have an IOMMU, but most platforms OpenBSD supports do not have one either.

That said, based on other discussion here it seems this whole thread is a red-herring and there is no problem with the blobs, it's just that noone has written support for it.

Re:Raspberry Pi 2 Model B on OpenBSD by wolfgke on Thursday September 03, 2015 @08:22AM (#10164485)
If OpenBSD delivers the blob as part of their OS, they take moral responsibility for it (which, for good reasons, they don't want to take). On the other hand, you don't have to deliver a blob to support, say, a hard disk.
Re:Raspberry Pi 2 Model B on OpenBSD by throwaway7767 on Thursday September 03, 2015 @09:02AM (#10164639)
I agree 100% with the stance of not distributing blobs.

But you can put it on the user to provide it. A lot of linux distros have gone this route, if you want to boot debian on RPi you either need to create the FAT partition and put the blobs there yourself, or fetch a third-party image which includes them.

Re:Raspberry Pi 2 Model B on OpenBSD by wolfgke on Thursday September 03, 2015 @07:24PM (#10168078)
That's the mentality difference between mainstream GNU/Linux distributions (though Richard Stallman considers them as unethical and only endorses 100% free software distributions, such as Trisquel GNU/Linux (cf. [1])) and OpenBSD (for the OpenBSD mentality cf. [2]).

[1] https://stallman.org/stallman-computing.html

[2] http://www.openbsd.org/lyrics.html#39

Re:Raspberry Pi 2 Model B on OpenBSD by rasz_pl on Thursday September 03, 2015 @05:05PM (#10167521)
you dont need to deliver any blobs, binary blob is a bootloader in rpi, once it loads you dont need additional blobs to run your code
Re:Raspberry Pi 2 Model B on OpenBSD by duaneb on Wednesday September 02, 2015 @07:31PM (#10162606)
To my understanding, no distribution of a binary blob would be necessary. It is already flashed onto the raspberry pi. The original drivers are open source but not free, but it would be easy to at least get vga working.
Re:Raspberry Pi 2 Model B on OpenBSD by LukeShu on Wednesday September 02, 2015 @11:13PM (#10163183)
My knowledge is based on the rPi1, but cursory investigation suggests that this is also true on the rPi2:

There are several blobs that are necessary to be on the sd-card for boot: bootcode.bin, fixup.dat, and start.elf. Any bootable sd-card image for the Pi has them.

What's kind of interesting is that most of what start.elf is is actually an entire OS (ThreadX, I believe), that is running on the VC4 GPU in parallel to the OS on the ARM CPU; and that most of the Linux GPU drivers for it are just shims that send messages saying "hey, ThreadX, would you mind doing this for me?"

Re:Raspberry Pi 2 Model B on OpenBSD by david-given on Thursday September 03, 2015 @05:52AM (#10164046)
My understanding of the boot process is that:

- the VC4 starts up and a ROM starts executing - the ROM loads bootcode.bin into the SRAM - bootcode.bin sets up the DRAM and loads the start.elf and fixup.dat - the start.elf sets up the ARM core and loads the Linux kernel

ARM code only starts executing at the last stage.

The only bit that's actually necessary on the SD card is the bootcode.bin --- everything else is under the control of whatever's in there.

Re:Raspberry Pi 2 Model B on OpenBSD by sklogic on Thursday September 03, 2015 @04:21AM (#10163832)
The open source driver does not run on the VPU.

And the bootloader had been reverse engineered (quite accurately, btw., although all the ISA mnemonics are totally made up). It should be possible now to rebuild it from assembly source.