Hi,
With the help of Francisco Gaitan, who set up a remote console to the
Banana Pi R1 I donated to him last year, I have put together the driver for
this device. It is based on Paul Irofti's brswphy(4) in part and on
Wolfgang Solfrank's bswphy.c driver. I just put these drivers together and
they worked after reboot. Here is Francisco's mail to openbsd-arm requesting
a driver:
http://marc.info/?l=openbsd-arm&m=147637120802717&w=2
So far as far as I understand it the port on port0 works. I'm unsure if any
port will work really. We're gonna look at setting up this device with vlan's
to the BCM53125 which supports vlans, but that'll take more analysis on my end.
If there is will to put this into OpenBSD by a developer I'm willing to put
this together into a patch. We used sources from -current from a few days
ago so it's fairly up to date.
dmesg follow after my signature.
-peter
rebooting...
U-Boot SPL 2017.03 (Apr 01 2017 - 16:25:44)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1
U-Boot 2017.03 (Apr 01 2017 - 16:25:44 -0600) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
Model: Lamobo R1
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
SCSI: SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net: eth0: ethernet@01c50000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found EFI removable media binary efi/boot/bootarm.efi
reading efi/boot/bootarm.efi
64684 bytes read in 38 ms (1.6 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
## Starting EFI application at 42000000 ...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 6 disks
>> OpenBSD/armv7 BOOTARM 0.5
boot>
booting sd0a:/bsd: 3860936+161388+491228 [80+511648+239985]=0x506f48
OpenBSD/armv7 booting ...
arg0 0xc0806f48 arg1 0x0 arg2 0x48000000
Allocating page tables
freestart = 0x40807000, free_pages = 260089 (0x0003f7f9)
IRQ stack: p0x40835000 v0xc0835000
ABT stack: p0x40836000 v0xc0836000
UND stack: p0x40837000 v0xc0837000
SVC stack: p0x40838000 v0xc0838000
Creating L1 page table at 0x40808000
Mapping kernel
Constructing L2 page tables
undefined page pmap [ using 752128 bytes of bsd ELF symbol table ]
board type: 0
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2017 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 6.1-current (GENERIC) #1: Mon May 22 17:46:54 CEST 2017
[email protected]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1044307968 (995MB)
mainbus0 at root: Lamobo R1
cpu0 at mainbus0: ARM Cortex A7 rev 4 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(32b/l,2way) I-cache, 32KB(64b/l,4way) wr-back D-cache
cortex0 at mainbus0
sxiccmu0 at mainbus0
psci0 at mainbus0
agtimer0 at mainbus0: tick rate 24000 KHz
simplebus0 at mainbus0: "soc"
sxipio0 at simplebus0: 175 pins
sximmc0 at simplebus0
sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00
addr 1
sxiahci0 at simplebus0: AHCI 1.1
scsibus0 at sxiahci0: 32 targets
ehci1 at simplebus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00
addr 1
sxidog0 at simplebus0
sxirtc0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
com1 at simplebus0: ns16550, no working fifo
com2 at simplebus0: ns16550, no working fifo
dwge0 at simplebus0
dwge0: address: 02:d7:08:00:d0:8b
bswphy0 at dwge0 phy 0: BCM53125 1000baseT PHY, rev. 4
ifmedia_set: no match for 0x100/0xfffffffffffeffff
ampintc0 at simplebus0 nirq 160, ncpu 2
gpio0 at sxipio0: 32 pins
gpio1 at sxipio0: 32 pins
gpio2 at sxipio0: 32 pins
gpio3 at sxipio0: 32 pins
gpio4 at sxipio0: 32 pins
gpio5 at sxipio0: 32 pins
gpio6 at sxipio0: 32 pins
gpio7 at sxipio0: 32 pins
gpio8 at sxipio0: 32 pins
scsibus1 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SD/MMC, 00000, 0010> SCSI2 0/direct removable
sd0: 15247MB, 512 bytes/sector, 31225856 sectors
urtwn0 at uhub1 port 1 configuration 1 interface 0 "Realtek 802.11n WLAN
Adapter" rev 2.00/2.00 addr 2
urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R, address 28:f3:66:41:c9:de
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
boot device: sd0
root on sd0a (6394fdd01e4c50e0.a) swap on sd0b dump on sd0b