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