All of lore.kernel.org
 help / color / mirror / Atom feed
* SUN8I_EMAC driver wanted (for Orange Pi)
@ 2017-08-13 15:09 Alexey Kardashevskiy
  2017-08-13 15:49 ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Kardashevskiy @ 2017-08-13 15:09 UTC (permalink / raw)
  To: linux-arm-kernel

Hi!

I have been using v4.8 with some driver I found somewhere. Ported to v4.13,
it does not work anymore and I wonder if anyone has an idea where to get a
working one from?

It is for Orange Pi PC v1.3.

Thanks!

"Does not work" means:

root at aikopi3:~# ls -l /sys/class/net/
total 0
lrwxrwxrwx 1 root root 0 Feb 12 04:32 eth0 ->
../../devices/platform/soc/1c30000.ethernet/net/eth0
lrwxrwxrwx 1 root root 0 Feb 12 04:32 lo -> ../../devices/virtual/net/lo
root at aikopi3:~#
root at aikopi3:~#
root at aikopi3:~#
root at aikopi3:~#
root at aikopi3:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN group default qlen 1000
    link/ether 02:20:76:db:bd:25 brd ff:ff:ff:ff:ff:ff
root at aikopi3:~#
root at aikopi3:~# dhclient -v eth0
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/02:20:76:db:bd:25
Sending on   LPF/eth0/02:20:76:db:bd:25
Sending on   Socket/fallback
DHCPREQUEST of 192.168.10.82 on eth0 to 255.255.255.255 port 67
(xid=0x4eef31e4)
DHCPREQUEST of 192.168.10.82 on eth0 to 255.255.255.255 port 67
(xid=0x4eef31e4)
^C



-- 
Alexey

^ permalink raw reply	[flat|nested] 6+ messages in thread

* SUN8I_EMAC driver wanted (for Orange Pi)
  2017-08-13 15:09 SUN8I_EMAC driver wanted (for Orange Pi) Alexey Kardashevskiy
@ 2017-08-13 15:49 ` Andrew Lunn
  2017-08-14  0:54   ` Alexey Kardashevskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2017-08-13 15:49 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Aug 14, 2017 at 01:09:15AM +1000, Alexey Kardashevskiy wrote:
> Hi!
> 
> I have been using v4.8 with some driver I found somewhere. Ported to v4.13,
> it does not work anymore and I wonder if anyone has an idea where to get a
> working one from?

Hi Alexey

A driver for this was added to Linux May 31st. Try 4.13-rcX enabling
DWMAC_SUN8I.

  Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread

* SUN8I_EMAC driver wanted (for Orange Pi)
  2017-08-13 15:49 ` Andrew Lunn
@ 2017-08-14  0:54   ` Alexey Kardashevskiy
  2017-08-14 13:21     ` Alexey Kardashevskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Kardashevskiy @ 2017-08-14  0:54 UTC (permalink / raw)
  To: linux-arm-kernel

On 14/08/17 01:49, Andrew Lunn wrote:
> On Mon, Aug 14, 2017 at 01:09:15AM +1000, Alexey Kardashevskiy wrote:
>> Hi!
>>
>> I have been using v4.8 with some driver I found somewhere. Ported to v4.13,
>> it does not work anymore and I wonder if anyone has an idea where to get a
>> working one from?
> 
> Hi Alexey
> 
> A driver for this was added to Linux May 31st. Try 4.13-rcX enabling
> DWMAC_SUN8I.

Thanks, works nicely!


-- 
Alexey

^ permalink raw reply	[flat|nested] 6+ messages in thread

* SUN8I_EMAC driver wanted (for Orange Pi)
  2017-08-14  0:54   ` Alexey Kardashevskiy
@ 2017-08-14 13:21     ` Alexey Kardashevskiy
  2017-08-14 13:39       ` Corentin Labbe
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Kardashevskiy @ 2017-08-14 13:21 UTC (permalink / raw)
  To: linux-arm-kernel

On 14/08/17 10:54, Alexey Kardashevskiy wrote:
> On 14/08/17 01:49, Andrew Lunn wrote:
>> On Mon, Aug 14, 2017 at 01:09:15AM +1000, Alexey Kardashevskiy wrote:
>>> Hi!
>>>
>>> I have been using v4.8 with some driver I found somewhere. Ported to v4.13,
>>> it does not work anymore and I wonder if anyone has an idea where to get a
>>> working one from?
>>
>> Hi Alexey
>>
>> A driver for this was added to Linux May 31st. Try 4.13-rcX enabling
>> DWMAC_SUN8I.
> 
> Thanks, works nicely!


Aaand it stopped with the only message in dmesg (I was trying to enable
video on that pi but I removed DRM and everything and still seeing this):


114 [    0.816334] dwmac-sun8i 1c30000.ethernet: MAC IRQ configuration
information not found

eth0 does not appear in the system, what am I missing now? Thanks!


-- 
Alexey

^ permalink raw reply	[flat|nested] 6+ messages in thread

* SUN8I_EMAC driver wanted (for Orange Pi)
  2017-08-14 13:21     ` Alexey Kardashevskiy
@ 2017-08-14 13:39       ` Corentin Labbe
  2017-08-14 15:07         ` Alexey Kardashevskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Corentin Labbe @ 2017-08-14 13:39 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Aug 14, 2017 at 11:21:05PM +1000, Alexey Kardashevskiy wrote:
> On 14/08/17 10:54, Alexey Kardashevskiy wrote:
> > On 14/08/17 01:49, Andrew Lunn wrote:
> >> On Mon, Aug 14, 2017 at 01:09:15AM +1000, Alexey Kardashevskiy wrote:
> >>> Hi!
> >>>
> >>> I have been using v4.8 with some driver I found somewhere. Ported to v4.13,
> >>> it does not work anymore and I wonder if anyone has an idea where to get a
> >>> working one from?
> >>
> >> Hi Alexey
> >>
> >> A driver for this was added to Linux May 31st. Try 4.13-rcX enabling
> >> DWMAC_SUN8I.
> > 
> > Thanks, works nicely!
> 
> 
> Aaand it stopped with the only message in dmesg (I was trying to enable
> video on that pi but I removed DRM and everything and still seeing this):
> 
> 
> 114 [    0.816334] dwmac-sun8i 1c30000.ethernet: MAC IRQ configuration
> information not found
> 
> eth0 does not appear in the system, what am I missing now? Thanks!
> 

Hello

Do you use the maintline dtb or an external one ?
The error message seems to say that you do not use the right DTB.

Regards

^ permalink raw reply	[flat|nested] 6+ messages in thread

* SUN8I_EMAC driver wanted (for Orange Pi)
  2017-08-14 13:39       ` Corentin Labbe
@ 2017-08-14 15:07         ` Alexey Kardashevskiy
  0 siblings, 0 replies; 6+ messages in thread
From: Alexey Kardashevskiy @ 2017-08-14 15:07 UTC (permalink / raw)
  To: linux-arm-kernel

On 14/08/17 23:39, Corentin Labbe wrote:
> On Mon, Aug 14, 2017 at 11:21:05PM +1000, Alexey Kardashevskiy wrote:
>> On 14/08/17 10:54, Alexey Kardashevskiy wrote:
>>> On 14/08/17 01:49, Andrew Lunn wrote:
>>>> On Mon, Aug 14, 2017 at 01:09:15AM +1000, Alexey Kardashevskiy wrote:
>>>>> Hi!
>>>>>
>>>>> I have been using v4.8 with some driver I found somewhere. Ported to v4.13,
>>>>> it does not work anymore and I wonder if anyone has an idea where to get a
>>>>> working one from?
>>>>
>>>> Hi Alexey
>>>>
>>>> A driver for this was added to Linux May 31st. Try 4.13-rcX enabling
>>>> DWMAC_SUN8I.
>>>
>>> Thanks, works nicely!
>>
>>
>> Aaand it stopped with the only message in dmesg (I was trying to enable
>> video on that pi but I removed DRM and everything and still seeing this):
>>
>>
>> 114 [    0.816334] dwmac-sun8i 1c30000.ethernet: MAC IRQ configuration
>> information not found
>>
>> eth0 does not appear in the system, what am I missing now? Thanks!
>>
> 
> Hello
> 
> Do you use the maintline dtb or an external one ?
> The error message seems to say that you do not use the right DTB.


Yes, that was it, I was under impression I am not changing it but it was
overwritten by the pizero's one. All good now, thanks for the hint.

By any chance, do you have a webpage link handy about making pi-pc video
work? :) I found quite many howtos, all outdated, copied
script.bin.OPI-PC_1080p60_dvi to /boot/script.bin but I am pretty sure I am
missing the kernel support as there is only "fbcon" in /sys/class/graphics/
CONFIG_DRM_MALI_DISPLAY and CONFIG_HDMI are enabled, what else?


-- 
Alexey

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-14 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-13 15:09 SUN8I_EMAC driver wanted (for Orange Pi) Alexey Kardashevskiy
2017-08-13 15:49 ` Andrew Lunn
2017-08-14  0:54   ` Alexey Kardashevskiy
2017-08-14 13:21     ` Alexey Kardashevskiy
2017-08-14 13:39       ` Corentin Labbe
2017-08-14 15:07         ` Alexey Kardashevskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.