From owner-freebsd-arm@freebsd.org Tue Jul 7 17:03:05 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DCBCA365 for ; Tue, 7 Jul 2015 17:03:05 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [IPv6:2607:f8b0:4002:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 00593191B for ; Tue, 7 Jul 2015 17:03:04 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by ykdr198 with SMTP id r198so183386591ykd.3 for ; Tue, 07 Jul 2015 10:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YskaAmJYEAfrCkZyOKrZrFecQDHM0Ap6CiAvNyUr8MM=; b=jK8drd7qgqUrKaj1zfuJSEMoVEyRbmMyCA7+CKsD5vkpdgbHGxCi1hoPNoPIIpUaOi 8LDS67SptYPS9/yRO9LeiY8J7BV2O2pZdpi/ElVIJKuOeNv8BBawSThjK15N454W0Vbw vcKdj6oLen1WYJczQuOHeTu4J983tqmwqban/ZaAdV/yBj4BeLUCSz+RxckW5jJkZ1WP HLcOVjJ7s+oiYnALEskdZxfQD9dRe+6sHU4f/u7G3k8G0ebrirtDuQBMgoqxqajUHj0L zfjlppC6a1z4uIZelCiTK4hjSBemWT0b+mP9GLh9cNZbSJuq1u3XFvvxwg/X9w+nR7Q2 ie8g== MIME-Version: 1.0 X-Received: by 10.129.53.74 with SMTP id c71mr5855371ywa.50.1436288584059; Tue, 07 Jul 2015 10:03:04 -0700 (PDT) Received: by 10.13.198.135 with HTTP; Tue, 7 Jul 2015 10:03:04 -0700 (PDT) In-Reply-To: <20150703234534.GA66208@chilled.skew.org> References: <20150703234534.GA66208@chilled.skew.org> Date: Tue, 7 Jul 2015 14:03:04 -0300 Message-ID: Subject: Re: cpsw0: Failed to read from PHY (on BBB w/11.0-CURRENT) From: Luiz Otavio O Souza To: Mike Brown Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2015 17:03:05 -0000 On 3 July 2015 at 20:45, Mike Brown wrote: > I'm trying to get FreeBSD working on my BeagleBone Black rev. C. > > 10.1-STABLE (20150617 snapshot) wouldn't boot; it couldn't mount rootfs. > http://pastebin.com/7dPQFGH2 is the console log if anyone cares. > > I asked on Freenode #freebsd-embedded and was told to try 11-CURRENT > for now. Well, 11-current boots, but I can't get networking going. > ifconfig only shows the lo0 device, no cpsw0. The boot messages said: > > cpsw0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a1007ff,0x4a101200-0x4a1012ff irq 40,41,42,43 on simplebus0 > cpsw0: CPSW SS Version 1.12 (0) > cpsw0: Initial queue size TX=128 RX=384 > cpsw0: Failed to read from PHY. > cpsw0: attaching PHYs failed > device_attach: cpsw0 attach returned 6 > > I get the same result regardless of whether an ethernet cable is plugged in. > > Is this expected, or is something wrong on my end? > > Let me know if you need any more info. Thanks! Hi, About the cpsw failure on -current, I've seen that before, this still need to be tracked down. Usually you can fix this error with a cold boot (remove the power for a few seconds). This happen randomly at boot (I haven't yet found a reliable way to reproduce this). Luiz