From owner-freebsd-arm@FreeBSD.ORG Thu Oct 21 09:06:04 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D67411065673 for ; Thu, 21 Oct 2010 09:06:04 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 637448FC0C for ; Thu, 21 Oct 2010 09:06:04 +0000 (UTC) Received: by fxm12 with SMTP id 12so3438327fxm.13 for ; Thu, 21 Oct 2010 02:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:x-mailer:mime-version :content-type:content-transfer-encoding; bh=H1q8Z5av+uSaDF3eCCZ+P9Q1yTSR/9X23sxhV2wKn6Q=; b=DlwPxXyxBIuX6ka0vFTjtDiYd4ApYR2GAgpmt7jTItQqHnYvvhixyLPnfczgVTQTph EnmhfPBVyyS5gyYGlE9LNDqYBqdLnVH3iAiHpXp9cfeyG0Rb1YOAJwtWHXL3+ivdTUZh M3z/ZXOmr3j5ondzFXp9bw295NOXEuQZkYb40= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=seTXrKe2jaCadKzrVwG1VWj3xfRAvgv0EA2c4L7yNb7Ul1lHGdUftpnotAMSbOIYC8 60sxhOpj/k/FDfoCvNMpaZAx4mLQRWH/zGGUiPl07TQ/e618urDI6wjY6bc1l6nmwFra izRUHCsm9nAOLC1wm1yjh2OpKkE+YMDPccS7o= Received: by 10.103.8.15 with SMTP id l15mr440405mui.128.1287650634850; Thu, 21 Oct 2010 01:43:54 -0700 (PDT) Received: from ernst.jennejohn.org (p578E18A7.dip.t-dialin.net [87.142.24.167]) by mx.google.com with ESMTPS id 10sm643701fax.42.2010.10.21.01.43.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Oct 2010 01:43:54 -0700 (PDT) Date: Thu, 21 Oct 2010 10:43:52 +0200 From: Gary Jennejohn To: Milan Obuch Message-ID: <20101021104352.588c6a5f@ernst.jennejohn.org> In-Reply-To: <201010202309.40148.freebsd-arm@dino.sk> References: <201010202309.40148.freebsd-arm@dino.sk> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: Guruplug Server Plus working to some extent... X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 09:06:05 -0000 On Wed, 20 Oct 2010 23:09:37 +0200 Milan Obuch wrote: [snip] > Second ethernet interface could be created uncommenting its definition in .dts > file. With this configuration active, interface gets detected and created, > but still something is wrong. Maybe my phy definition should be changed, but > I do not have much knowledge in this part of system. I did not found much > information detailing creation of .dts files, either. > > Actually it looks like receiving packets works but not sending. Interface > status changes on plugging/unplugging cable, tcpdump shows packets coming in > and replies coming out on guruplug, but no reply is seen on wire. If arp > packet is coming in, it is seen in arp table on guruplug device. On the other > side, it is not. > > Also, mge1 does not have ethernet link address (MAC) initialised, they are > all-zero: > > # ifconfig mge1 > mge1: flags=8802 metric 0 mtu 1500 > options=8000b > ether 00:00:00:00:00:00 > media: Ethernet autoselect (100baseTX ) > status: active > > When devd is active on startup, system hangs when mge1 is detected. No > difference whether cable is plugged or not. > > If someone has any idea or patches to test, I am all ears. What I already > found, does not aplly well to current status, but having unusable interface > does not make me happy :( > The first thing that occurs to me is to assign a fake ETHADDR to this interface in the driver (or u-boot or .dts) and see whether it starts working. That could at least narrow down where to look for the source of the problem. IIRC it used to be possible to do that with ifconfig, but I can't find it in the current man page. -- Gary Jennejohn