Hi,
On Monday, 19.03.2018 at 11:59, Andre Przywara wrote:
> > Any ideas on what I need to do to get working Ethernet based on the other
> > information I sent last week? Or at least USB -- might that work with just
> > the relevant bits from the Pine64 DTB? If so, which ones?
>
> I pushed a branch with the DT changes (DRAM voltage, USB, Ethernet):
> https://github.com/apritzel/linux/commits/olinuxino
>
> It's probably wrong, but a reasonable experimentation base. Would be
> glad if you could give it a try.
I've built this tree and have had a play with it, combined with the ATF
from the Github issue and the CONFIG_DRAM_ZQ value mentioned there. Here
are the results so far:
PMIC setup: Success on cold and warm boot, DRAM voltage matches on cold and
warm boot (1.36V).
USB: Controllers show up in dmesg and /sys/bus/usb, but plugging an USB
flash drive into USB1 gives no results. I've not tried USB0.
Relevant bits of the dmesg:
[ 0.192746] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.228741] ehci-platform: EHCI generic platform driver
[ 0.228993] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.229021] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus
number 1
[ 0.229591] ehci-platform 1c1a000.usb: irq 11, io mem 0x01c1a000
[ 0.244296] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.244981] hub 1-0:1.0: USB hub found
[ 0.245023] hub 1-0:1.0: 1 port detected
[ 0.245554] ehci-orion: EHCI orion driver
[ 0.245715] ehci-exynos: EHCI EXYNOS driver
[ 0.245802] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.245841] ohci-pci: OHCI PCI platform driver
[ 0.245928] ohci-platform: OHCI generic platform driver
[ 0.246099] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.246123] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus
number 2
[ 0.246407] ohci-platform 1c1a400.usb: irq 12, io mem 0x01c1a400
[ 0.309107] hub 2-0:1.0: USB hub found
[ 0.309144] hub 2-0:1.0: 1 port detected
[ 0.310511] musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property
[ 0.310530] musb-sunxi: probe of 1c19000.usb failed with error -22
[ 0.337520] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 1.640114] ehci-platform 1c1b000.usb: EHCI Host Controller
[ 1.645741] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus
number 3
[ 1.653954] ehci-platform 1c1b000.usb: irq 13, io mem 0x01c1b000
[ 1.672308] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[ 1.679114] hub 3-0:1.0: USB hub found
[ 1.682914] hub 3-0:1.0: 1 port detected
[ 1.688328] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[ 1.694999] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus
number 4
[ 1.703420] ohci-platform 1c1b400.usb: irq 14, io mem 0x01c1b400
[ 1.776923] hub 4-0:1.0: USB hub found
[ 1.780725] hub 4-0:1.0: 1 port detected
Ethernet: Interface shows up, with MAC address of all zeroes. Setting to
02:02:02:02:02:02 with 'ip link set dev eth0 address' succeeds. After
setting link up, the interface then appears to receive both broadcast and
unicast packets, confirmed by tcpdump and IPv6 SLAAC assigning an address.
However, transmitted packets appear to be silently dropped on the floor and
do not show up at the other end (checked with tcpdump, direct connection to
my laptop, no difference when connected via a switch).
Relevant bits of the dmesg:
[ 4.882760] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 4.888627] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 4.894527] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 4.900233] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register
supported
[ 4.907537] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 4.920990] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine
supported
[ 4.928304] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 4.933300] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 4.940415] libphy: stmmac: probed
root@olinuxino:~# ip link set dev eth0 address 02:02:02:02:02:02
root@olinuxino:~# ip addr add 10.70.20.99/24 dev eth0
root@olinuxino:~# ip link set dev eth0 up
[ 157.542554] Micrel KSZ9031 Gigabit PHY stmmac-0:01: attached PHY driver
[Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[ 157.557197] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters
available
[ 157.564895] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 157.571949] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@olinuxino:~# [ 160.645222] dwmac-sun8i 1c30000.ethernet eth0: Link is Up
- 1Gbps/Full - flow control rx/tx
[ 160.653654] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
The following from dmesg may or may not be relevant:
[ 0.192394] sunxi-rsb 1f03400.rsb: could not find pctldev for node
/soc/pinctrl@1f02c00/rsb, deferring probe
[ 0.212269] dw-apb-uart 1c28000.serial: could not find pctldev for node
/soc/pinctrl@1c20800/uart0, deferring probe
[ 0.316949] sunxi-mmc 1c0f000.mmc: could not find pctldev for node
/soc/pinctrl@1c20800/mmc0-pins, deferring probe
[ 0.316989] sunxi-mmc 1c10000.mmc: could not find pctldev for node
/soc/pinctrl@1c20800/mmc1-pins, deferring probe
Cheers,
-mato
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.