Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2018 18:45:25 +0800
From:      Ganbold Tsagaankhuu <ganbold@gmail.com>
To:        Milan Obuch <freebsd-arm@dino.sk>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Orange Pi R1 ethernet #2 + SDIO question
Message-ID:  <CAGtf9xO=Tf-5d1j3csU0obRmcQWWtAp%2BVusGDCqoGFein08HYg@mail.gmail.com>
In-Reply-To: <20180119211953.5140bb57@zeta.dino.sk>
References:  <20180119211953.5140bb57@zeta.dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 20, 2018 at 4:19 AM, Milan Obuch <freebsd-arm@dino.sk> wrote:

> Hi,
>
> today I looked over some docs about Orange Pi R1's second ethernet
> interface. Actually it is basically the same board as Orange Pi Zero,
> just onboard USB connector is replaced with some Realtek USB ethernet
> chip. With our current kernel and Orange Pi Zero DTB there is nothing
> in usbconfig output.
>
> Most probably we are missing some initialization step. After finding
> mention of GPIO pin 20 in some Linux DTS, I decided simply try
>
> # gpioctl -f /dev/gpioc0 20 1
>
> and voila, it works:
>

Nice finding, I should try it on OPNsense image and see how it works when I
get a chance.
It is bit old image though.

Ganbold



>
> ugen2.2: <Realtek USB 10100 LAN> at usbus2
> ure0 on uhub1
> ure0: <Realtek USB 10100 LAN, class 0/0, rev 2.10/20.00, addr 2> on usbus2
> random: harvesting attach, 8 bytes (4 bits) from ure0
> miibus1: <MII bus> on ure0
> rlphy0: <RTL8201E 10/100 media interface> PHY 0 on miibus1
> rlphy0: OUI 0x00e04c, model 0x0008, rev. 2
> rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> random: harvesting attach, 8 bytes (4 bits) from rlphy0
> random: harvesting attach, 8 bytes (4 bits) from miibus1
> ue0: <USB Ethernet> on ure0
> ue0: bpf attached
> ue0: Ethernet address: c0:74:2b:ff:e5:ff
> ue0: link state changed to DOWN
>
> After
>
> # dhclient ue0
>
> I was able to use this USB ethernet interface.
>
> Maybe this activation could be inserted in DTS, but for now I consider
> this ethernet usable (I tried some ping, ssh and some such over it with
> success).
>
> And now the question - both Orange Pi Zero and Orange Pi R1 have SDIO
> connected wifi/bluetooth chip. I know there was some work on SDIO
> framework in FreeBSD, but what about current status? Do we have
> anything available for test? For me it is by no means urgent, just
> these boards are available for cheap and quite good for tests...
>
> Regards,
> Milan
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xO=Tf-5d1j3csU0obRmcQWWtAp%2BVusGDCqoGFein08HYg>