If I don't plug network cable first before booting then network will fail in orange pi one

Kyle Evans kevans91 at ksu.edu
Thu Jan 18 12:57:29 UTC 2018


(Apologies for the broken quoting and format; on mobile)

Hey, I just noticed that same problem the other day. =)

It'd probably be ok to comment it out for now, I'm going to put some time
in to track down the cause soon so we can have a real fix.


On Jan 18, 2018 12:59 AM, "阿金" <unto.foru13 at gmail.com> wrote:

Thanks a lot,those link and shell script help me compile dts from linux
source.

but the new revision also has network problem from orange pi one.
Is it a hardware bugs??
the problem is => I must plug in network cable first before kernel booting.
If I don't ,the network will fail.

In my testing ,in if_awg.c -> awg_reset function we

if ((RD4(sc, EMAC_BASIC_CTL_1) & BASIC_CTL_SOFT_RST) == 0)
will always be 1 ,until I pluged  in network cable then It will be 0;

my solution is comment below line
* Soft reset all registers and logic */
//    WR4(sc, EMAC_BASIC_CTL_1, BASIC_CTL_SOFT_RST);
then work fine.

so is it ok I comment this line?.
Is it a hardware bugs??

below is the error situation when I didn't plug network cable then booting.


U-Boot SPL 2017.07 (Oct 20 2017 - 12:55:15)
DRAM: 512 MiB
Trying to boot from MMC1


U-Boot 2017.07 (Oct 20 2017 - 12:55:15 +0000) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi One
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet at 1c30000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
reading ubldr.bin
232932 bytes read in 33 ms (6.7 MiB/s)
## Starting application at 0x42000000 ...
Consoles: U-Boot console
Compatible U-Boot API signature found @0x59f4c490

FreeBSD/armv6 U-Boot loader, Revision 1.2
(Mon Jan 15 04:39:27 CST 2018 root at VirtualBox pi)

DRAM: 512MB
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Number of U-Boot devices: 1
U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: disk
  Probing all disk devices...
  Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0s2a:
/boot/kernel/kernel data=0x87931c+0x1dece4 syms=[0x4+0x98300+0x4+0xdd00e]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
/boot/dtb/u-boot.dtb size=0x5361
Loaded DTB from file 'u-boot.dtb'.
Kernel entry at 0x42200100...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 r328085: Tue Jan 16 17:51:05 CST 2018
    root at VirtualBox
pi:/opt/head_328085_obj/obj/opt/head_328085/arm.armv6/sys/GENERIC arm
FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM
6.0.0)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
module_register: cannot register simplebus/ahci from kernel; already loaded
from kernel
Module simplebus/ahci failed to register: 17
module_register: cannot register simplebus/ehci from kernel; already loaded
from kernel
Module simplebus/ehci failed to register: 17
module_register: cannot register simplebus/pcib from kernel; already loaded
from kernel
Module simplebus/pcib failed to register: 17
module_register: cannot register simplebus/ehci from kernel; already loaded
from kernel
Module simplebus/ehci failed to register: 17
CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000)
CPU Features:
  Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7,
  PXN, LPAE, Coherent Walk
Optional instructions:
  SDIV/UDIV, UMULL, SMULL, SIMD(ext)
LoUU:2 LoC:3 LoUIS:2
Cache level 1:
 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
 32KB/32B 2-way instruction cache Read-Alloc
Cache level 2:
 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 536870912 (512 MB)
avail memory = 508014592 (484 MB)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
arc4random: no preloaded entropy cache
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
aw_ccu0: <Allwinner Clock Control Unit> on ofwbus0
clk_fixed0: <Fixed clock> on aw_ccu0
clk_fixed1: <Fixed clock> on aw_ccu0
clk_fixed2: <Fixed clock> on aw_ccu0
simplebus0: <Flattened device tree simple bus> on ofwbus0
aw_ccung0: <Allwinner Clock Control Unit NG> mem 0x1c20000-0x1c203ff on
simplebus0
aw_ccung1: <Allwinner Clock Control Unit NG> mem 0x1f01400-0x1f014ff on
simplebus0
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
regfix2: <Fixed Regulator> on ofwbus0
regfix3: <Fixed Regulator> on ofwbus0
awusbphy0: <Allwinner USB PHY> mem
0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803,
0x1c1c800-0x1c1c803,0x1c1d800-0x1c1d803
on simplebus0
gic0: <ARM Generic Interrupt Controller> mem
0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,
0x1c86000-0x1c87fff
irq 36 on simplebus0
gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 17,18
on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
gpio1: <Allwinner GPIO/Pinmux controller> mem 0x1f02c00-0x1f02fff irq 40 on
simplebus0
gpiobus1: <OFW GPIO bus> on gpio1
rtc0: <Allwinner RTC> mem 0x1f00000-0x1f00053 irq 37,38 on simplebus0
rtc0: registered as a time-of-day clock, resolution 1.000000s
generic_timer0: <ARMv7 Generic Timer> irq 0,1,2,3 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
aw_syscon0: <Allwinner syscon> mem 0x1c00000-0x1c00fff on simplebus0
a31dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 4 on
simplebus0
aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff
irq 5 on simplebus0
mmc0: <MMC/SD bus> on aw_mmc0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c1a000-0x1c1a0ff
irq 9 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ohci0: <Generic OHCI Controller> mem 0x1c1a400-0x1c1a4ff irq 10 on
simplebus0
usbus1 on ohci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1b000-0x1c1b0ff
irq 11 on simplebus0
usbus2: EHCI version 1.0
usbus2 on ehci1
ohci1: <Generic OHCI Controller> mem 0x1c1b400-0x1c1b4ff irq 12 on
simplebus0
usbus3 on ohci1
gpioc0: <GPIO controller> on gpio0
awg0: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c3ffff irq 21 on
simplebus0
awg0: soft reset timed out
device_attach: awg0 attach returned 60
aw_wdog0: <Allwinner A31 Watchdog> mem 0x1c20ca0-0x1c20cbf irq 24 on
simplebus0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 29 on simplebus0
uart0: console (115384,n,8,1)
gpioc1: <GPIO controller> on gpio1
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu1: <Open Firmware CPU> on cpulist0
cpu2: <Open Firmware CPU> on cpulist0
cpu3: <Open Firmware CPU> on cpulist0
gpioled0: <GPIO LEDs> on ofwbus0
cryptosoft0: <software crypto>
Timecounters tick every 1.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
ugen0.1: <Allwinner EHCI root HUB> at usbus0
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Generic OHCI root HUB> at usbus1
uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Allwinner EHCI root HUB> at usbus2
uhub2: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
usbus3: 12Mbps Full Speed USB v1.0
ugen3.1: <Generic OHCI root HUB> at usbus3
uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
mmcsd0: 16GB <SDHC USDU1 2.0 SN 42F16FBC MFG 12/2017 by 116 J`> at mmc0
50.0MHz/4bit/65535-block
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
mmc0: ACMD42 failed, RESULT: 4
arc4random: no preloaded entropy cache
mmc0: Card at relative address 22964 failed to set bus width
Trying to mount root from ufs:/dev/mmcsd0s2a [rw]...
uhub1: 1 port with 1 removable, self powered
uhub3: 1 port with 1 removable, self powered
arc4random: no preloaded entropy cache
uhub0: 1 port with 1 removable, self powered
uhub2: 1 port with 1 removable, self powered
arc4random: no preloaded entropy cache
Setting hostuuid: 6d3bf911-f66a-11de-a736-654ca6ff4704.
Setting hostid: 0x96f9f996.
No suitable dump device was found.
Starting file system checks:
Mounting local filesystems:.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
random: unblocking device.
Soft Float compatibility ldconfig path:
Setting hostname: head_328085.
Setting up harvesting:
[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,
MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
Starting Network: lo0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Starting devd.
add host 127.0.0.1: gateway lo0 fib 0: route already in table
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.78.1 fib 0: Network is unreachable
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Generating host.conf.
Creating and/or trimming log files.
Clearing /tmp (X related).
Updating motd:.
Mounting late filesystems:.
Performing sanity check on sshd configuration.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.

Fri Jan  1 00:00:32 UTC 2010

FreeBSD/arm (head_328085) (ttyu0)
_______________________________________________
freebsd-arm at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"


More information about the freebsd-arm mailing list