> Date: Fri, 23 Dec 2016 21:01:38 -0200
> From: Daniel Bolgheroni <dan...@bolgh.eng.br>
> 
> On Thu, Dec 22, 2016 at 12:11:36PM -0200, Luiz Gustavo dos S. Costa wrote:
> > Yesterday, received a new board to a lab with Linux for a product,
> > but, my principal intencion is use with OpenBSD.
> 
> I booted on an Orange Pi One this week, with the Allwinner H3 SoC (the
> same as in C.H.I.P. board). It went fine, however I can't install
> because, iirc, sd/mmc access times out. I will post the full dmesg when
> I get access to the board again.

The H3 support is still somewhat under development.  My H3-based
Banana Pi M2+ had similar sd/mmc issues which I tracked down to a
problem with the lack of pull-ups in the device tree.  See the diff
below.  You might have to make similar changes to the device tree of
the Orange Pi One to make it work.  That requires rebuilding u-boot.

Linux worked because it had a bug and always enabled the pull-ups.
Then they started fixing things and things have become a bit messy.  I
think device trees from a the head of the Linux kernel tree do things
differently now and probably won't work with OpenBSD anymore.  Not
sure of those new trees have landed in u-boot yet.  I any case I
decided to wait a bit for things to stablise in Linux-land.


commit f6ad0c701632a02ec03ea219394c14981abe7aab
Author: Mark Kettenis <kette...@openbsd.org>
Date:   Sun Sep 18 17:49:05 2016 +0200

    ARM: dts: sun8i: Enable pull-ups for bananapi-m2-plus SD slot
    
    Board doesn't seem to have external pull-ups and some (but not all) SD cards
    don't work without pull-ups.
    
    Signed-off-by: Mark Kettenis <kette...@openbsd.org>

diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts 
b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
index 06fddaae8edd..e30ab03f5eee 100644
--- a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
+++ b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
@@ -117,6 +117,10 @@
        status = "okay";
 };
 
+&mmc0_pins_a {
+       allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+};
+
 &mmc1 {
        pinctrl-names = "default";
        pinctrl-0 = <&mmc1_pins_a>;

Reply via email to