OpenBSD on Raspberry pi 3 model B

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 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.

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Juan J. Natera
Hi,

Have there been any progress in this regard? I would love to help out if it
hasn't.

I just got a raspberry pi 3b+ that I would like to use with OpenBSD.

Also, what about the wireless interface, is it supported?

Thanks,

JJ



On Wed, Dec 13, 2017 at 2:54 PM, Mark Kettenis <[hidden email]>
wrote:

> > 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.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B

Jonathan Gray-11
On Wed, Mar 28, 2018 at 06:44:10PM -0700, Juan J. Natera wrote:

> Hi,
>
> Have there been any progress in this regard? I would love to help out if it
> hasn't.
>
> I just got a raspberry pi 3b+ that I would like to use with OpenBSD.
>
> Also, what about the wireless interface, is it supported?
>
> Thanks,
>
> JJ

There is no driver for either sd controller and the wireless is attached
via sdio.

Firmware and a device tree for the 3b+ are included in arm64 snapshots,
but I've not heard of anyone verifying a 3b+ boots yet.

The integrated USB Ethernet is only supported on the 3b, the 3b+ changed
to a chip there isn't a driver for yet.  Supposedly USB boot is enabled
by default on the 3b+ without having to first have a config.txt on an
sd card with a special setting like the 3b.

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD on Raspberry pi 3 model B+

Michael Plura
> There is no driver for either sd controller and the wireless is
> attached via sdio.
>
> Firmware and a device tree for the 3b+ are included in arm64
> snapshots, but I've not heard of anyone verifying a 3b+ boots yet.
>
> The integrated USB Ethernet is only supported on the 3b, the 3b+
> changed to a chip there isn't a driver for yet.  Supposedly USB boot
> is enabled by default on the 3b+ without having to first have a
> config.txt on an sd card with a special setting like the 3b.

The 3B+ is booting OpenBSD 6.3-current (snapshot 2018-04-06), but
without network (3B has LAN9514, 3B+ has LAN7515). And yes, 3B+
seems to boot from USB too by default.

I tried NetBSD 8.99.14 from Jun Ebihara with the 2018-03-24-updates.
Network is detected, but not working there:

 ugen0: SMSC (0x424) LAN7800 USB 3.1 gigabit ethernet device (0x7800), rev 2.10/3.00, addr 4

More infos and the boot-image at:
http://mail-index.netbsd.org/port-arm/2018/03/24/msg004692.html

Its odd: The LAN7515 identifies as a 0424/7800, so it seems to
need the LAN7800-driver (smsc78xx?), not a LAN7500. See
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=208399
and
https://www.riscosopen.org/forum/forums/9/topics/10637?page=2

And finally the dmesg of OpenBSD 6.3-current on Raspberry Pi 3
Model B+ (PLUS). The lines different to the 3B (without +) booted
with the same image are marked with an asterisk "*":


OpenBSD 6.3-current (RAMDISK) #224: Fri Apr  6 03:13:14 MDT 2018
    [hidden email]:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem  = 959107072 (914MB)
avail mem = 892600320 (851MB)
*mainbus0 at root: Raspberry Pi 3 Model B Plus Rev 1.3
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
efi0 at mainbus0: UEFI 2.7
efi0: Das U-Boot rev 0x0
simplefb0 at mainbus0: 656x416
wsdisplay0 at simplefb0
wsdisplay0: screen 0 added (std, vt100 emulation)
simplebus0 at mainbus0: "soc"
bcmintc0 at simplebus0
bcmdog0 at simplebus0
bcmrng0 at simplebus0
pluart0 at simplebus0
bcmaux0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
dwctwo0 at simplebus0
simplebus1 at mainbus0: "clocks"
agtimer0 at mainbus0: tick rate 19200 KHz
usb0 at dwctwo0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Broadcom DWC2 root hub" rev 2.00/1.00 addr 1
uhub1 at uhub0 port 1 configuration 1 interface 0 "Standard Microsystems product 0x2514" rev 2.00/b.b3 addr 2
*uhub2 at uhub1 port 1 configuration 1 interface 0 "Standard Microsystems product 0x2514" rev 2.00/b.b3 addr 3
bootfile: sd0a:/bsd
boot device: lookup sd0a:/bsd failed
root on rd0a swap on rd0b dump on rd0b
WARNING: CHECK AND RESET THE DATE!