From patchwork Sun Oct 22 20:08:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artturi Alm X-Patchwork-Id: 829071 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="K2u9txO9"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yKrG62d8gz9sBZ for ; Mon, 23 Oct 2017 07:09:00 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id DB378C21EEB; Sun, 22 Oct 2017 20:08:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=FREEMAIL_FROM, FSL_HELO_FAKE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 560E8C21C71; Sun, 22 Oct 2017 20:08:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9A4A8C21C71; Sun, 22 Oct 2017 20:08:48 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.denx.de (Postfix) with ESMTPS id 5AC29C21C4F for ; Sun, 22 Oct 2017 20:08:47 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id n143so1052580lfb.11 for ; Sun, 22 Oct 2017 13:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=mP1bhu+Iy7OrWPPkQsvzRBhA7lY87WZ0HbEK4xikPZg=; b=K2u9txO9D9NRMBxVG4wYeYTTrWoPwhDhRWWuZ0kIFrP4GsdF1XNqU25HQNWLwAd7xv flhEjt2Qi8o4LVGITvaZn8tpctWCdunivZU1+Ys0k6ZF3NUqT8TEo5J/StqFPC1rwcb8 8W/otJLeyXoh+zq9dOx+E0Uuwmbj1nUOVC/JbixiO3xuorE39fLx2WbzKMUuKUW7WX6R sBzj+HmDX50BggN0kg2uBKFn2EecIVYzddx8uXER6/y256rJQqKVF6sHSrxunJtI2Xuy I6Sc03W6y88J9qKml1HVvTjjzl2p5M4+t7PAxf8IDnbOmSr5Jnp5CboHybBYrxa9xpie uirw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=mP1bhu+Iy7OrWPPkQsvzRBhA7lY87WZ0HbEK4xikPZg=; b=WObgqMt/UlP1peuqE/lpJT6MSZFsrTu/OMG0zn8z18JExpU3kmXux99JjtVL9QbdIc +h9+/jJtKp3AS2/nlkstiJyjtLF5IbXYmXT0YOcd1gU7oJuoa6Iy/1Az0m+EkWCqDCKJ xO6Or43ykOptueo5IqsbuKi0uuXjGI7Rg09233nfDweoSavQQKqvZVMoU6I4YbWg0ZFe irGbOzZEpV33dYQecXM/uCjMa/nB6P1z6O5yzzGUPeMvGm44jiN2JjKu0tF8oY65W14r zdZkO04SSmT3NFnGOILbiBFEgalugkm2jBhHzfAENwPYF/g/oJrFk9dHokXIyJQJsZKR 3m/A== X-Gm-Message-State: AMCzsaUpdGJ1XKCSsLnxZkZsBVr0qJy2Y//F2mAsKlnUS3VCkbmKVT6O zI/RcINbHtEPDT158SHKIdZAECa2 X-Google-Smtp-Source: ABhQp+RjTVNSQcacT4Gc6o957WvlGCa8BJ3OyhbzYSvJwfE9OF5mdiKHKPi13Hdd14GqX0RAec2bew== X-Received: by 10.46.83.25 with SMTP id h25mr4497516ljb.158.1508702926326; Sun, 22 Oct 2017 13:08:46 -0700 (PDT) Received: from gmail.com (37-219-136-91.nat.bb.dnainternet.fi. [37.219.136.91]) by smtp.gmail.com with ESMTPSA id i62sm1382458lji.42.2017.10.22.13.08.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Oct 2017 13:08:45 -0700 (PDT) Date: Sun, 22 Oct 2017 23:08:43 +0300 From: Artturi Alm To: U-Boot Mailing List Message-ID: <20171022200843.GA50892@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) Subject: [U-Boot] sunxi: broken sun4i_emacs, all boards? X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Hi, this has been 'blocking' my attempts to revive the A10-boards i have since early june, or so. now i found this commit abc3e4df59f54cf3dda42a35a75d617fe861f5fe, which left the drivers/net/Makefile untouched, essentially breaking sunxi_emac. the diff below didn't fix it however, i can see how it does arp who-has, and the remote replying, but u-boot does act as if nothing is received back? -Artturi U-Boot SPL 2017.11-rc2-00002-g24b253e-dirty (Oct 22 2017 - 22:07:19) DRAM: 1024 MiB CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC1 U-Boot 2017.11-rc2-00002-g24b253e-dirty (Oct 22 2017 - 22:07:19 +0300) Allwinner Technology CPU: Allwinner A10 (SUN4I) Model: Cubietech Cubieboard I2C: ready DRAM: 1 GiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial SCSI: SATA link 0 timeout. AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part ccc apst Net: eth0: ethernet@01c0b000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 USB2: USB EHCI 1.00 USB3: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 2 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 => env set ipaddr 192.168.2.10 => ping 192.168.2.2 resetting device ENET Speed is 100 Mbps - FULL duplex connection Using ethernet@01c0b000 device ARP Retry count exceeded; starting again ping failed; host 192.168.2.2 is not alive => diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index d67927c..2e35563 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -219,6 +219,7 @@ config SUN7I_GMAC config SUN4I_EMAC bool "Allwinner Sun4i Ethernet MAC support" depends on DM_ETH + select PHYLIB help This driver supports the Allwinner based SUN4I Ethernet MAC. diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 94a4fd8..ac5443c 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -21,7 +21,7 @@ obj-$(CONFIG_DNET) += dnet.o obj-$(CONFIG_E1000) += e1000.o obj-$(CONFIG_E1000_SPI) += e1000_spi.o obj-$(CONFIG_EEPRO100) += eepro100.o -obj-$(CONFIG_SUNXI_EMAC) += sunxi_emac.o +obj-$(CONFIG_SUN4I_EMAC) += sunxi_emac.o obj-$(CONFIG_SUN8I_EMAC) += sun8i_emac.o obj-$(CONFIG_ENC28J60) += enc28j60.o obj-$(CONFIG_EP93XX) += ep93xx_eth.o diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 9175117..b12f7e1 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -291,7 +291,7 @@ extern int soft_i2c_gpio_scl; #endif /* CONFIG_VIDEO */ /* Ethernet support */ -#ifdef CONFIG_SUNXI_EMAC +#ifdef CONFIG_SUN4I_EMAC #define CONFIG_PHY_ADDR 1 #define CONFIG_MII /* MII PHY management */ #endif diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 3037d61..82b927c 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -2272,7 +2272,6 @@ CONFIG_STV0991_HZ CONFIG_STV0991_HZ_CLOCK CONFIG_ST_SMI CONFIG_SUNXI_AHCI -CONFIG_SUNXI_EMAC CONFIG_SUNXI_GPIO CONFIG_SUNXI_MAX_FB_SIZE CONFIG_SUNXI_USB_PHYS