Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2017 15:40:26 +0800
From:      =?UTF-8?B?6Zi/6YeR?= <unto.foru13@gmail.com>
To:        Emmanuel Vadot <manu@bidouilliste.com>, freebsd-arm@freebsd.org
Subject:   Re: Orange pi one plug network cable after booted , network will not active
Message-ID:  <CAKpwDm34Gcf5sJGeGXdfmfF%2B1eFr6kARWCyxByuS860NNCbr%2BA@mail.gmail.com>
In-Reply-To: <CAKpwDm3n2LNw3hRV6TL_FZTFbE-aDWjz0rLmOxb08vPKAA=dJg@mail.gmail.com>
References:  <CAKpwDm28jTx%2BrRWDwzDK2oO=MjVL8N0NuCbgyc3nJP0Y7xmxuw@mail.gmail.com> <20171215170619.8021fb253a15f3e54a356f9a@bidouilliste.com> <CAKpwDm3n2LNw3hRV6TL_FZTFbE-aDWjz0rLmOxb08vPKAA=dJg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <unto.foru13@gmail.com>:

>
> 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 <manu@bidouilliste.com>:
>
>> On Fri, 15 Dec 2017 16:41:56 +0800
>> ?? <unto.foru13@gmail.com> 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 <manu@bidouilliste.com> <manu@freebsd.org>
>>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKpwDm34Gcf5sJGeGXdfmfF%2B1eFr6kARWCyxByuS860NNCbr%2BA>