Thank you for your response.

I think the ethernet works from u-boot:

=> dhcp
BOOTP broadcast 1
DHCP client bound to address 192.168.1.63 (268 ms)
*** Warning: no boot file name; using 'C0A8013F.img'
Using ethernet@1c30000 device
TFTP from server 0.0.0.0; our IP address is 192.168.1.63; sending through
gateway 192.168.1.253
Filename 'C0A8013F.img'.
Load address: 0x42000000
Loading: *
TFTP error: 'illegal (unrecognized) tftp operation' (4)
Starting again

=> ping 192.168.1.10
Using ethernet@1c30000 device
host 192.168.1.10 is alive
=>

In sun8i-h3.dtsi, I found:

                emac: ethernet@1c30000 {
                        compatible = "allwinner,sun8i-h3-emac";
                        reg = <0x01c30000 0x104>, <0x01c00030 0x4>;
                        reg-names = "emac", "syscon";
                        interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
                        resets = <&ccu RST_BUS_EMAC>, <&ccu RST_BUS_EPHY>;
                        reset-names = "ahb", "ephy";
                        clocks = <&ccu CLK_BUS_EMAC>, <&ccu CLK_BUS_EPHY>;
                        clock-names = "ahb", "ephy";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        status = "disabled";
                };


I could not find any reference to ethernet with eeprom -p.

-----Original Message-----
From: owner-...@openbsd.org [mailto:owner-...@openbsd.org] On Behalf Of
Artturi Alm
Sent: Wednesday, August 16, 2017 5:25 PM
To: Stephen Graf <s_g...@telus.net>
Cc: arm@openbsd.org
Subject: Re: some success and problems with orangepi one

On Wed, Aug 16, 2017 at 02:45:30PM -0700, Stephen Graf wrote:
> I was able to install OpenBSD current on my orangepi one today. 
> 
>  
> 
> One small issue is that the u-boot package is not in i386 snapshots.  
> So I used u-boot and dtb packages from amd64.
> 
>  
> 
> The big problem is that the ethernet device did not show up in 
> OpenBSD, neither on the install nor on the built system.
> 
> On linux the driver is sun8i-emac.  Is there a driver for this 
> interface on OpenBSD?
> 
>  
> 
> U-boot seems to suggest the hardware is there:
> 
>  
> 
> Trying to boot from MMC1
> 
>  
> 
>  
> 
> U-Boot 2017.07 (Aug 15 2017 - 07:39:48 -0600) Allwinner Technology
> 
>  
> 
> CPU:   Allwinner H3 (SUN8I 1680)
> 
> Model: Xunlong Orange Pi One
> 
> DRAM:  512 MiB
> 
> MMC:   SUNXI SD/MMC: 0
> 
> *** Warning - bad CRC, using default environment
> 
>  
> 
> In:    serial
> 
> Out:   serial
> 
> Err:   serial
> 
> Net:   phy interface0
> 
> eth0: ethernet@1c30000
> 
> starting USB...
> 
> USB0:   USB EHCI 1.00
> 
> USB1:   USB OHCI 1.0
> 
> scanning bus 0 for devices... 2 USB Device(s) found
> 
>        scanning usb for storage devices... 1 Storage Device(s) found
> 
> Hit any key to stop autoboot:  0
> 
>  
> 
> Creating the mmc is detailed on the attached file, load sd card for 
> current.txt.
> 
>  
> 
> The OpenBSD installation log is also attached.
> 

Hi,

can you ping anything out of u-boot?
also try "# eeprom -p", and see if you can find the ethernet there, but as
far as i can see, i don't see it being defined in any of the files used to
output sun8i-h3-orangepi-one.dtb for obsd dtb pkg i think.
look at sun8i-h3-orangepi-one.dts -> sun8i-h3.dtsi -> sunxi-h3-h5.dtsi, i
might have missed something.

-Artturi


Reply via email to