From owner-freebsd-arm@freebsd.org Mon Dec 18 07:40:29 2017 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 6BAEFEA4479 for ; Mon, 18 Dec 2017 07:40:29 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 027176F618 for ; Mon, 18 Dec 2017 07:40:28 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id b199so27392056wme.1 for ; Sun, 17 Dec 2017 23:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Lh0CJ3FE4QDC+01HYFyIkZhlEtWXmbKOWPVf4zFFuYI=; b=YqqMa10SBdHJcTayYbaU7j8xzfv/iEhyniV+Vyyrti+hkiJ0+y+OU3TAG4xMKuREUg PpdmvRu6ojurghXh2QJxehuS1tTZ6G9iaHcsEahc9TuJv41ho7o/R7q8npNaGiKF90aj wcVCehNwjLF87GMVTjiC7CdD1uicM9DsOrMryvriPigfqYw5g537vVts/lw9wuTJjI2S SXpW9J4758F5dudrZ63L1+yMe8O5pb/7OFZKqgIGtbYXXpqUCbX6e3V+aVjNaAj+EtNa kTddyhY92poqcl4igfBbpn0THh3kMCI+2MRjADkx1/EpN5+4nV1FrInbiWACeYTBVvWd oPeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Lh0CJ3FE4QDC+01HYFyIkZhlEtWXmbKOWPVf4zFFuYI=; b=rfURBXwO9/4v3ERP9eduXYWH2iU9EZ+VPganJOevZ9mCpr6Ttjf9kroKXFF8TwZvy+ 2sddBz4eBgtRZsteHtQFQL+QY0tIR+4elthvg5qpo0XUFiFkO5kwXcWFpEmVC7sguCW9 L1TfpanWcaMqPNPUaGb0ma/7aNH+ARXltMHZNlOc3Q3rQQ2QDAEufYI6Srofp5xIWL0t UmJawg+qgnBHv6q6gNRCJvKbJcioE+V/bQuef1w7Osln9jIJEiQ3h5VSbQ5r0YlacQwE +PgkeudQY54v34DhBbwD2QdZYC/GZzJZkiif/DxSHiMKpxTPOFWR9R36q4kO0aUJp7iL ymcw== X-Gm-Message-State: AKGB3mKuOntpfLdKKs7sr+sJ988uHf7NdsALGBp2TqmsisMx+YTpryt1 vw7xi4epFYH8k7WmH25IlrwMAIodt6ER6OKpH8EHVg== X-Google-Smtp-Source: ACJfBos25hIz5flOlIbV5NDho0CoPDCeNgg5tFyMPqUnAfBVLIzbnrTh2dOLhZMgZ/znHhuOooDPKO9lJHVZ4msmuRo= X-Received: by 10.80.140.237 with SMTP id r42mr27932300edr.299.1513582826873; Sun, 17 Dec 2017 23:40:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.219.73 with HTTP; Sun, 17 Dec 2017 23:40:26 -0800 (PST) In-Reply-To: References: <20171215170619.8021fb253a15f3e54a356f9a@bidouilliste.com> From: =?UTF-8?B?6Zi/6YeR?= Date: Mon, 18 Dec 2017 15:40:26 +0800 Message-ID: Subject: Re: Orange pi one plug network cable after booted , network will not active To: Emmanuel Vadot , freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 07:40:29 -0000 In /head/sys/arm/allwinner/if_awg.c awg_reset function I comment this line,then when I power on board ,kernel loaded . after that, I plug network cable ,this time I can ping network normally. /* Soft reset all registers and logic */ // WR4(sc, EMAC_BASIC_CTL_1, BASIC_CTL_SOFT_RST); 2017-12-18 13:56 GMT+08:00 =E9=98=BF=E9=87=91 : > > in if_awg.c awg_reset function > soft reset(EMAC_BASIC_CTL_1) will not be 0 till network cable plug . > (EMAC_BASIC_CTL_1 will remain 1 till network cable plug) > > so this seem orange pi one hardware bug?, > could I fix this from software?? > (In my test, I watch relative EMAC registers,seem not different when > network cable plug in or off) > > > > 2017-12-16 0:06 GMT+08:00 Emmanuel Vadot : > >> On Fri, 15 Dec 2017 16:41:56 +0800 >> ?? wrote: >> >> > Dear all, >> > >> > I think ,this maybe is the problem of u-boot.dtb?? >> > >> > scenario1:plug network cable first then power on,kernel had loaded. >> > network will work well. >> > even if I plug off cable then plug on again .network work well too. >> > >> > scenario2:network cable not plug till kernel had loaded and prompt >> login >> > message. >> > >> > booting message=3D>awg0:soft reset timed out >> > >> > then I plug network cable ,network will not work. >> > ifconfig will not show awg0. >> > /etc/netstart will show =3D> ifconfig: interface awg0 does not exist >> > >> > blow is my u-boot source >> > https://github.com/evadot/u-boot/tree/freebsd >> > >> > export CROSS_COMPILE=3Darm-none-eabi- >> > gmake orangepi_one_defconfig >> > gmake menuconfig >> > vi .config >> > CONFIG_API=3Dy >> > gmake >> > >> > how could I fixed this problem ?? >> > thanks all. >> >> I'll look into it but note that emac (if_awg) isn't in the dts for now >> and only will be when we pull the Liunx 4.15 dts (early january). >> >> -- >> Emmanuel Vadot >> > >