OpenBSD on Raspberry pi 3 model B

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenBSD on Raspberry pi 3 model B

Archzilon Eshun-Davies-2
Hi

Has anyone tried running openbsd on raspberry pi model b?

Regards

--
I have seen the Future and I want to code it.
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Fred
On 12/12/17 22:58, Archzilon Eshun-Davies wrote:
> Hi
>
> Has anyone tried running openbsd on raspberry pi model b?
>
> Regards
>

OpenBSD 6.2-beta (GENERIC) #18: Tue Sep 19 03:48:00 MDT 2017
     [hidden email]:/usr/src/sys/arch/arm64/compile/GENERIC
real mem  = 964988928 (920MB)
avail mem = 909037568 (866MB)
mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2

is running: http://rpi3.crowsons.com/ with OpenBSD.

So yes the Raspberry Pi 3 Model B does work with OpenBSD.

Cheers

Fred
PS I've been lazy so it's not running the latest snapshot :~)

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Archzilon Eshun-Davies-2
Hi Fred

Can I get soe guidance to make this happen.

Regards
PS: Lovely setup

On Tue, Dec 12, 2017 at 11:06 PM, Fred <[hidden email]> wrote:

> On 12/12/17 22:58, Archzilon Eshun-Davies wrote:
>
>> Hi
>>
>> Has anyone tried running openbsd on raspberry pi model b?
>>
>> Regards
>>
>>
> OpenBSD 6.2-beta (GENERIC) #18: Tue Sep 19 03:48:00 MDT 2017
>     [hidden email]:/usr/src/sys/arch/arm64/compile/GENERIC
> real mem  = 964988928 (920MB)
> avail mem = 909037568 (866MB)
> mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
>
> is running: http://rpi3.crowsons.com/ with OpenBSD.
>
> So yes the Raspberry Pi 3 Model B does work with OpenBSD.
>
> Cheers
>
> Fred
> PS I've been lazy so it's not running the latest snapshot :~)
>



--
I have seen the Future and I want to code it.

 "To have a black person exploiting me just like a white person, that's no
easier pain." - Charles Baron(7/11/09)
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

R0me0 ***
https://www.openbsd.org/arm64.html

2017-12-12 21:16 GMT-02:00 Archzilon Eshun-Davies <[hidden email]>:

> Hi Fred
>
> Can I get soe guidance to make this happen.
>
> Regards
> PS: Lovely setup
>
> On Tue, Dec 12, 2017 at 11:06 PM, Fred <[hidden email]> wrote:
>
> > On 12/12/17 22:58, Archzilon Eshun-Davies wrote:
> >
> >> Hi
> >>
> >> Has anyone tried running openbsd on raspberry pi model b?
> >>
> >> Regards
> >>
> >>
> > OpenBSD 6.2-beta (GENERIC) #18: Tue Sep 19 03:48:00 MDT 2017
> >     [hidden email]:/usr/src/sys/arch/arm64/compile/GENERIC
> > real mem  = 964988928 (920MB)
> > avail mem = 909037568 (866MB)
> > mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
> >
> > is running: http://rpi3.crowsons.com/ with OpenBSD.
> >
> > So yes the Raspberry Pi 3 Model B does work with OpenBSD.
> >
> > Cheers
> >
> > Fred
> > PS I've been lazy so it's not running the latest snapshot :~)
> >
>
>
>
> --
> I have seen the Future and I want to code it.
>
>  "To have a black person exploiting me just like a white person, that's no
> easier pain." - Charles Baron(7/11/09)
>
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Archzilon Eshun-Davies-2
Thanks R0me0

On Wed, Dec 13, 2017 at 12:15 AM, R0me0 *** <[hidden email]> wrote:

> https://www.openbsd.org/arm64.html
>
> 2017-12-12 21:16 GMT-02:00 Archzilon Eshun-Davies <[hidden email]
> >:
>
>> Hi Fred
>>
>> Can I get soe guidance to make this happen.
>>
>> Regards
>> PS: Lovely setup
>>
>> On Tue, Dec 12, 2017 at 11:06 PM, Fred <[hidden email]> wrote:
>>
>> > On 12/12/17 22:58, Archzilon Eshun-Davies wrote:
>> >
>> >> Hi
>> >>
>> >> Has anyone tried running openbsd on raspberry pi model b?
>> >>
>> >> Regards
>> >>
>> >>
>> > OpenBSD 6.2-beta (GENERIC) #18: Tue Sep 19 03:48:00 MDT 2017
>> >     [hidden email]:/usr/src/sys/arch/arm64/compile/GENERIC
>> > real mem  = 964988928 (920MB)
>> > avail mem = 909037568 (866MB)
>> > mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
>> >
>> > is running: http://rpi3.crowsons.com/ with OpenBSD.
>> >
>> > So yes the Raspberry Pi 3 Model B does work with OpenBSD.
>> >
>> > Cheers
>> >
>> > Fred
>> > PS I've been lazy so it's not running the latest snapshot :~)
>> >
>>
>>
>>
>> --
>> I have seen the Future and I want to code it.
>>
>>  "To have a black person exploiting me just like a white person, that's no
>> easier pain." - Charles Baron(7/11/09)
>>
>
>


--
I have seen the Future and I want to code it.

 "To have a black person exploiting me just like a white person, that's no
easier pain." - Charles Baron(7/11/09)
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Hannu Vuolasaho
Hello!

I have OpenBSD running on the RPi 3. Unfortunately SD card isn't supported
so I run from USB stick like everybody else. My blazing fast USB stick is
really slow on RPi :( So I have some motivation to scratch my itch.

I have some really early porting success with NetBSD SD card driver (my
first in OpenBSD) from:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/broadcom/bcm2835_sdhost.c?rev=1.4&content-type=text/x-cvsweb-markup&only_with_tag=MAIN

Currently it does one thing. It shows up in dmesg. I would like to have
some help. How the bus which the NetBSD driver talks to is implemented in
OpenBSD is the main question. Do I have to make a lot of changes for it?

And yes it is old...

Best regards,
Hannu Vuolasaho

OpenBSD 6.2-current (GENERICSD) #7: Sun Oct 15 12:20:21 EEST 2017
    vuolasah@openrpi.********.duckdns.org:
/usr/src/sys/arch/arm64/compile/GENERICSD
real mem  = 964972544 (920MB)
avail mem = 909017088 (866MB)
mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
cpu0 at mainbus0: ARM Cortex-A53 r0p4
simplefb0 at mainbus0: 656x416
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0 added (std, vt100 emulation)
simplebus0 at mainbus0: "soc"
bcmintc0 at simplebus0
bcmdog0 at simplebus0
pluart0 at simplebus0
bcmaux0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
dwctwo0 at simplebus0
sdhost0 at simplebus0: SD HOST controller
agtimer0 at simplebus0: tick rate 19200 KHz


2017-12-13 2:49 GMT+02:00 Archzilon Eshun-Davies <[hidden email]>:

> Thanks R0me0
>
> On Wed, Dec 13, 2017 at 12:15 AM, R0me0 *** <[hidden email]> wrote:
>
> > https://www.openbsd.org/arm64.html
> >
> > 2017-12-12 21:16 GMT-02:00 Archzilon Eshun-Davies <
> [hidden email]
> > >:
> >
> >> Hi Fred
> >>
> >> Can I get soe guidance to make this happen.
> >>
> >> Regards
> >> PS: Lovely setup
> >>
> >> On Tue, Dec 12, 2017 at 11:06 PM, Fred <[hidden email]> wrote:
> >>
> >> > On 12/12/17 22:58, Archzilon Eshun-Davies wrote:
> >> >
> >> >> Hi
> >> >>
> >> >> Has anyone tried running openbsd on raspberry pi model b?
> >> >>
> >> >> Regards
> >> >>
> >> >>
> >> > OpenBSD 6.2-beta (GENERIC) #18: Tue Sep 19 03:48:00 MDT 2017
> >> >     [hidden email]:/usr/src/sys/arch/arm64/compile/GENERIC
> >> > real mem  = 964988928 (920MB)
> >> > avail mem = 909037568 (866MB)
> >> > mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
> >> >
> >> > is running: http://rpi3.crowsons.com/ with OpenBSD.
> >> >
> >> > So yes the Raspberry Pi 3 Model B does work with OpenBSD.
> >> >
> >> > Cheers
> >> >
> >> > Fred
> >> > PS I've been lazy so it's not running the latest snapshot :~)
> >> >
> >>
> >>
> >>
> >> --
> >> I have seen the Future and I want to code it.
> >>
> >>  "To have a black person exploiting me just like a white person, that's
> no
> >> easier pain." - Charles Baron(7/11/09)
> >>
> >
> >
>
>
> --
> I have seen the Future and I want to code it.
>
>  "To have a black person exploiting me just like a white person, that's no
> easier pain." - Charles Baron(7/11/09)
>
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Artturi Alm
On Wed, Dec 13, 2017 at 09:51:43PM +0200, Hannu Vuolasaho wrote:

> Hello!
>
> I have OpenBSD running on the RPi 3. Unfortunately SD card isn't supported
> so I run from USB stick like everybody else. My blazing fast USB stick is
> really slow on RPi :( So I have some motivation to scratch my itch.
>
> I have some really early porting success with NetBSD SD card driver (my
> first in OpenBSD) from:
>
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/broadcom/bcm2835_sdhost.c?rev=1.4&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
>
> Currently it does one thing. It shows up in dmesg. I would like to have
> some help. How the bus which the NetBSD driver talks to is implemented in
> OpenBSD is the main question. Do I have to make a lot of changes for it?
>
> And yes it is old...
>
> Best regards,
> Hannu Vuolasaho
>
> OpenBSD 6.2-current (GENERICSD) #7: Sun Oct 15 12:20:21 EEST 2017
>     vuolasah@openrpi.********.duckdns.org:
> /usr/src/sys/arch/arm64/compile/GENERICSD
> real mem  = 964972544 (920MB)
> avail mem = 909017088 (866MB)
> mainbus0 at root: Raspberry Pi 3 Model B Rev 1.2
> cpu0 at mainbus0: ARM Cortex-A53 r0p4
> simplefb0 at mainbus0: 656x416
> wsdisplay0 at simplefb0 mux 1
> wsdisplay0: screen 0 added (std, vt100 emulation)
> simplebus0 at mainbus0: "soc"
> bcmintc0 at simplebus0
> bcmdog0 at simplebus0
> pluart0 at simplebus0
> bcmaux0 at simplebus0
> com0 at simplebus0: ns16550, no working fifo
> com0: console
> dwctwo0 at simplebus0
> sdhost0 at simplebus0: SD HOST controller
> agtimer0 at simplebus0: tick rate 19200 KHz
>

Hi,

not enough info to help, really.
i suppose you have the first line, but
how about the second + in the diff below?
what have you added to sys/dev/fdt/files.fdt?
just post the diff to tech@, is my advice:)

-Artturi



diff --git a/sys/arch/armv7/conf/GENERIC b/sys/arch/armv7/conf/GENERIC
index 2377eb31ad6..8968290e4a7 100644
--- a/sys/arch/armv7/conf/GENERIC
+++ b/sys/arch/armv7/conf/GENERIC
@@ -148,6 +148,8 @@ bcmintc* at fdt?
 bcmdog* at fdt?
 dwctwo* at fdt?
 usb* at dwctwo?
+sdhost* at fdt?
+sdmmc* at sdhost?
 
 # Marvell SoC
 mvacc* at fdt? early 1

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Mark Kettenis
In reply to this post by Hannu Vuolasaho
> From: Hannu Vuolasaho <[hidden email]>
> Date: Wed, 13 Dec 2017 21:51:43 +0200
>
> Hello!
>
> I have OpenBSD running on the RPi 3. Unfortunately SD card isn't supported
> so I run from USB stick like everybody else. My blazing fast USB stick is
> really slow on RPi :( So I have some motivation to scratch my itch.
>
> I have some really early porting success with NetBSD SD card driver (my
> first in OpenBSD) from:
>
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/broadcom/bcm2835_sdhost.c?rev=1.4&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
>
> Currently it does one thing. It shows up in dmesg. I would like to have
> some help. How the bus which the NetBSD driver talks to is implemented in
> OpenBSD is the main question. Do I have to make a lot of changes for it?

Warning!  The Pi has *two* different SD/SDIO controllers.  Which one
is actually used to drive the card in the uSD slot depends on the
firmware and/or the device tree.  You probably should check that the
controller you're writing the driver for is indeed used for the uSD
slot.  I also believe only one of the controllers has a DMA engine,
which is pretty much essential for getting decent performance.  I
think the other controller can use an external DMA engine, but at that
point things become really complicated.

That said, NetBSD's SD/MMC stack is derived from OpenBSD's code so
porting drivers should be relatively easy.