Orange pi one plug network cable after booted , network will not active

阿金 unto.foru13 at gmail.com
Mon Dec 18 07:40:29 UTC 2017


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 阿金 <unto.foru13 at 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 at bidouilliste.com>:
>
>> On Fri, 15 Dec 2017 16:41:56 +0800
>> ?? <unto.foru13 at 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=>awg0:soft reset timed out
>> >
>> > then I plug network cable ,network will not work.
>> > ifconfig will not show awg0.
>> > /etc/netstart will show => ifconfig: interface awg0 does not exist
>> >
>> > blow is my u-boot source
>> > https://github.com/evadot/u-boot/tree/freebsd
>> >
>> > export CROSS_COMPILE=arm-none-eabi-
>> > gmake orangepi_one_defconfig
>> > gmake menuconfig
>> >      vi .config
>> >      CONFIG_API=y
>> > 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 at bidouilliste.com> <manu at freebsd.org>
>>
>
>


More information about the freebsd-arm mailing list