ARM64 – Odroid C2 – New MMC Driver, Ethernet / USB Still Broken..
After some of the code for the C2 has been removed from various git repositories, there is a new 4.9-rc1-based tree at https://git.kernel.org/cgit/linux/kernel/git/khilman/linux-amlogic.git/?h=v4.10/integ , which now includes the ‘new’ rewritten MMC driver.
To select this, choose ‘Amlogic S905/GX* SD/MMC Host Controller support (MMC_MESON_GX)‘ in the kernel config..
...... Fedora 24 (Workstation Edition) Kernel 4.9.0-rc1-c2 on an aarch64 (ttyAML0) ............... # uname -a Linux rgc2 4.9.0-rc1-c2 #1 SMP PREEMPT Tue Oct 18 17:26:37 PDT 2016 aarch64 aarch64 aarch64 GNU/Linux
The C2 booted OK, but MMC is now at /dev/mmcblk0 – not /dev/mmcblk1
..... mmc0: new HS200 MMC card at address 0001 mmcblk0: mmc0:0001 BGND3R 29.1 GiB mmcblk0boot0: mmc0:0001 BGND3R partition 1 4.00 MiB mmcblk0boot1: mmc0:0001 BGND3R partition 2 4.00 MiB mmcblk0: p1 p2
So, I changed /etc/fstab to
/dev/mmcblk0p1 / ext4 defaults 1 1
– and changed u-boot bootargs to:
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw"
As before, the Ethernet connection works at first, but then hang/stalls. Dropping the speed to 100Mbps improves things a bit, but the hang/stall still occurs…
The meson8b-dwmac driver does throw an error, when loading:
[ 19.515508] eth0: device MAC address 00:1e:06:33:13:6e [ 19.584616] meson8b-dwmac c9410000.ethernet eth0: PTP support cannot init. [ 19.585002] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 19.776363] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 21.669797] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 23.713185] meson8b-dwmac c9410000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 23.715914] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 24.036288] Link is Up - 1000/Full
I tried enabling PTP support where possible in the kernel config, but there was no change..
One workaround would be to use a USB Ethernet device, but USB still does not work, at all.. # lsusb shows nothing..
Robert Gadsdon. October 20, 2016.
Comments
ARM64 – Odroid C2 – New MMC Driver, Ethernet / USB Still Broken.. — No Comments