[Letux-kernel] jz4730 Ethernet

H. Nikolaus Schaller hns at goldelico.com
Tue Mar 9 17:46:24 CET 2021


Hi Paul,
have you had success building and booting an SD card?

> Am 26.02.2021 um 22:10 schrieb Paul Boddie <paul at boddie.org.uk>:
> 
>> So I have pushed my working tree here if you want to take a looks
>> and maybe invent some fixes:
>> 
>> 	https://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work-jz4730-ethernet
> 
> I'll try and take a look.

I have pushed a new version (same link):

* based on v5.12-rc2
* based on latest fixes for CI20
* includes patches for pinctrl to support MII (based on patches by Yanjie
* code made compile (with remaining warnings)by fixing some things and commenting out some parts

It loads but then:

[   53.148964] genirq: Flags mismatch irq 19. 00000003 (eth0) vs. 00000003 (matrix-keypad)
[   53.157718] eth0: unable to get IRQ 19 .

...

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
receive_packet failed on eth0: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
send_packet: Network is down

...

root at letux:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:ef:a3:c1:00:03  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 

...

What needs to be fixed:
- missing: get IRQ from device tree
- missing: get hardware address of MII controller from device tree
- needs working DMA (at least the driver allocates DMA memory)
- needs substitute for a background thread to detect cable plug/unplug
- needs to resolve all FIXME

Still a lot of work until all gaps for the jz4730 are closed:

* futex (or what ever the sysbench and X11 issue is)
* i2c
* sound
* dma
* mii
* dma based mmc

But we are closing them one-by-one and the list has become quite short :)

BR,
Nikolaus



More information about the Letux-kernel mailing list