---------- Forwarded message ----------
From:
qroxana via freebsd-arm <freebsd-arm%freebsd.org@localhost>Date: Sun, Nov 19, 2017 at 11:56 AM
Subject: orangepi-plus-2e.dtb not working any more
To:
freebsd-arm%freebsd.org@localhost
Hi,
I also tried to boot my OrangePi Plus2E board with nanopi-neo.dtb and
it worked, except the awg0 status stays "no carrier" anyway.
Here's the log of booting with orangepi-plus-2e.dtb:
U-Boot 2017.09 (Nov 10 2017 - 19:38:12 +0000) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Plus 2E
DRAM: 2 GiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: phy interface7
eth0: ethernet@1c30000
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: USB EHCI 1.00
USB3: USB OHCI 1.0
USB4: USB EHCI 1.00
USB5: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found FreeBSD U-Boot Loader (bin)
reading ubldr.bin
237996 bytes read in 40 ms (5.7 MiB/s)
## Starting application at 0x42000000 ...
Consoles: U-Boot console
Compatible U-Boot API signature found @0xb9f477e0
FreeBSD/armv7 U-Boot loader, Revision 1.2
(Tue Oct 24 23:34:02 UTC 2017 root@orangepi)
DRAM: 2048MB
MMC Device 2 not found
MMC Device 3 not found
Number of U-Boot devices: 2
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 text=0x7bfe98 data="" syms=[0x4+0x8e560+0x4+0xcf437]
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 2 seconds...
Type '?' for a list of commands, 'help' for more detailed help.
loader> load -t dtb /boot/dtb/orangepi-plus-2e.dtb
/boot/dtb/orangepi-plus-2e.dtb size=0x53cd
loader> boot
Booting...
Using DTB from loaded file '/boot/dtb/orangepi-plus-2e.
dtb'.
Kernel entry at 0x42200180...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2017 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 r324846: Wed Oct 27 05:20:15 UTC 2017
root@orangepi:/usr/obj/usr/src/sys/GENERIC-NODEBUG arm
FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn)
VT: init without driver.
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 = 2147483648 (2048 MB)
avail memory = 2089316352 (1992 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
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 30 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
aw_ccung1: <Allwinner Clock Control Unit NG> mem 0x1f01400-0x1f014ff on simplebus0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
regfix2: <Fixed Regulator> on ofwbus0
regfix3: <Fixed Regulator> on ofwbus0
regfix4: <Fixed Regulator> on ofwbus0
regfix5: <Fixed Regulator> on ofwbus0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
aw_sid0: <Allwinner Secure ID Controller> mem 0x1c14000-0x1c143ff on simplebus0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
awusbphy0: <Allwinner USB PHY> mem 0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803,0x1c1c800-0x1c1c803,0x1c1d800-0x1c1d803 on simplebus0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 33 on simplebus0
gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
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 37 on simplebus0
gpiobus1: <OFW GPIO bus> on gpio1
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
rtc0: <Allwinner RTC> mem 0x1f00000-0x1f00053 irq 34,35 on simplebus0
rtc0: registered as a time-of-day clock, resolution 1.000000s
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
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
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1f02400-0x1f027ff irq 39 on simplebus0
iichb1: could not find clock
device_attach: iichb1 attach returned 2
a31dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 4 on simplebus0
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 5 on simplebus0
mmc0: <MMC/SD bus> on a10_mmc0
a10_mmc1: <Allwinner Integrated MMC/SD controller> mem 0x1c10000-0x1c10fff irq 6 on simplebus0
a10_mmc1: cannot reset the controller
device_attach: a10_mmc1 attach returned 6
a10_mmc1: <Allwinner Integrated MMC/SD controller> mem 0x1c11000-0x1c11fff irq 7 on simplebus0
mmc1: <MMC/SD bus> on a10_mmc1
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c1b000-0x1c1b0ff irq 11 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 13 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
ehci2: <Allwinner Integrated USB 2.0 controller> mem 0x1c1d000-0x1c1d0ff irq 15 on simplebus0
usbus2: EHCI version 1.0
usbus2 on ehci2
gpioc0: <GPIO controller> on gpio0
aw_wdog0: <Allwinner A31 Watchdog> mem 0x1c20ca0-0x1c20cbf irq 23 on simplebus0
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22fff irq 25 on simplebus0
Fatal kernel mode data abort: 'Translation Fault (L1)' on read
trapframe: 0xc0c13bc8
FSR=00000005, FAR=00000004, spsr=600000d3
r0 =c53ed000, r1 =00000000, r2 =00000080, r3 =00000000
r4 =c53ed000, r5 =c528b500, r6 =c53ed000, r7 =00000000
r8 =00000007, r9 =00000000, r10=ffffffff, r11=c0c13c78
r12=00000080, ssp=c0c13c58, slr=c05ec914, pc =c05eca24
[ thread pid 0 tid 100000 ]
Stopped at h3_pr_set_clear+0x20: ldmib r1, {r0-r1}
db> bt
Tracing pid 0 tid 100000 td 0xc0960b80
db_trace_self() at db_trace_self
pc = 0xc05bae00 lr = 0xc005eb90 (db_stack_trace+0x108)
sp = 0xc0c138d8 fp = 0xc0c138f0
db_stack_trace() at db_stack_trace+0x108
pc = 0xc005eb90 lr = 0xc005e7ec (db_command+0x268)
sp = 0xc0c138f8 fp = 0xc0c13998
r4 = 0x00000001 r5 = 0x00000000
r6 = 0xc0705ed2 r10 = 0x00000000
db_command() at db_command+0x268
pc = 0xc005e7ec lr = 0xc005e574 (db_command_loop+0x74)
sp = 0xc0c139a0 fp = 0xc0c139b0
r4 = 0xc06bb568 r5 = 0xc06e2a7b
r6 = 0xc095df9c r7 = 0xc0c13bc8
r8 = 0xc08321dc r9 = 0xc07c7a38
r10 = 0xc094f620
db_command_loop() at db_command_loop+0x74
pc = 0xc005e574 lr = 0xc0062010 (db_trap+0x12c)
sp = 0xc0c139b8 fp = 0xc0c13ad0
r4 = 0x00000000 r5 = 0xc095dfa8
r6 = 0xc094f640 r10 = 0xc094f620
db_trap() at db_trap+0x12c
pc = 0xc0062010 lr = 0xc02d9a6c (kdb_trap+0x168)
sp = 0xc0c13ad8 fp = 0xc0c13b00
r4 = 0x00000000 r5 = 0x00000005
r6 = 0xc094f640 r7 = 0xc0c13bc8
kdb_trap() at kdb_trap+0x168
pc = 0xc02d9a6c lr = 0xc05de28c (abort_fatal+0x20c)
sp = 0xc0c13b08 fp = 0xc0c13b28
r4 = 0xc0c13bc8 r5 = 0x00000013
r6 = 0x00000004 r7 = 0x00000005
r8 = 0x00000005 r9 = 0xc0960b80
r10 = 0xc0c13bc8
abort_fatal() at abort_fatal+0x20c
pc = 0xc05de28c lr = 0xc05ddef0 (abort_handler+0x318)
sp = 0xc0c13b30 fp = 0xc0c13bc0
r4 = 0x00000005 r5 = 0x00000005
r6 = 0x00000000 r7 = 0x00000005
r8 = 0x00000013 r10 = 0xc0c13bc8
abort_handler() at abort_handler+0x318
pc = 0xc05ddef0 lr = 0xc05bd7f8 (exception_exit)
sp = 0xc0c13bc8 fp = 0xc0c13c78
r4 = 0xc53ed000 r5 = 0xc528b500
r6 = 0xc53ed000 r7 = 0x00000000
r8 = 0x00000007 r9 = 0x00000000
r10 = 0xffffffff
exception_exit() at exception_exit
pc = 0xc05bd7f8 lr = 0xc05ec914 (h3_mixer_init+0x58)
sp = 0xc0c13c58 fp = 0xc0c13c78
r0 = 0xc53ed000 r1 = 0x00000000
r2 = 0x00000080 r3 = 0x00000000
r4 = 0xc53ed000 r5 = 0xc528b500
r6 = 0xc53ed000 r7 = 0x00000000
r8 = 0x00000007 r9 = 0x00000000
r10 = 0xffffffff r12 = 0x00000080
h3_pr_set_clear() at h3_pr_set_clear+0x20
pc = 0xc05eca24 lr = 0xc05ec914 (h3_mixer_init+0x58)
sp = 0xc0c13c80 fp = 0xc0c13c88
r4 = 0xc53ed000 r5 = 0xc528b500
r6 = 0xc528b500 r7 = 0x00000000
r8 = 0xc53ed000 r9 = 0x00000000
r10 = 0xffffffff
h3_mixer_init() at h3_mixer_init+0x58
pc = 0xc05ec914 lr = 0xc01008e0 (mixer_obj_create+0x124)
sp = 0xc0c13c90 fp = 0xc0c13ca8
r4 = 0xc53ee000 r5 = 0x00000000
mixer_obj_create() at mixer_obj_create+0x124
pc = 0xc01008e0 lr = 0xc0100a0c (mixer_init+0xac)
sp = 0xc0c13cb0 fp = 0xc0c13ce0
r4 = 0xc518fa00 r5 = 0x00000000
r6 = 0xc53ed000 r7 = 0xc081ae7c
r8 = 0x00000000 r9 = 0xc528b500
mixer_init() at mixer_init+0xac
pc = 0xc0100a0c lr = 0xc05ec378 (a10codec_attach+0x2fc)
sp = 0xc0c13ce8 fp = 0xc0c13d78
r4 = 0xc528b500 r5 = 0xc53ed000
r6 = 0xc53ed004 r7 = 0xffffffff
r8 = 0x00000000 r9 = 0x00002084
r10 = 0xc528b550
a10codec_attach() at a10codec_attach+0x2fc
pc = 0xc05ec378 lr = 0xc02cbb18 (device_attach+0x4ec)
sp = 0xc0c13d80 fp = 0xc0c13dc8
r4 = 0xc528b500 r5 = 0xc528cb80
r6 = 0xc528cb80 r7 = 0x00000000
r8 = 0xc095d80c r9 = 0xc02cfd58
device_attach() at device_attach+0x4ec
pc = 0xc02cbb18 lr = 0xc02cd69c (bus_generic_new_pass+0x118)
sp = 0xc0c13dd0 fp = 0xc0c13de8
r4 = 0xc528b500 r5 = 0xc07ecc5c
r6 = 0xc0961cfc r7 = 0xc5167000
r8 = 0xc094f4b0 r9 = 0xc0720bd4
r10 = 0xc0960f48
bus_generic_new_pass() at bus_generic_new_pass+0x118
pc = 0xc02cd69c lr = 0xc02cd664 (bus_generic_new_pass+0xe0)
sp = 0xc0c13df0 fp = 0xc0c13e08
r4 = 0xc528cb80 r5 = 0xc07ecc5c
r6 = 0xc0961cfc r7 = 0x00000000
r8 = 0xc094f4b0 r10 = 0xc0960f48
bus_generic_new_pass() at bus_generic_new_pass+0xe0
pc = 0xc02cd664 lr = 0xc02cd664 (bus_generic_new_pass+0xe0)
sp = 0xc0c13e10 fp = 0xc0c13e28
r4 = 0xc528cd00 r5 = 0xc07ecc5c
r6 = 0xc0961cfc r7 = 0x00000000
r8 = 0xc094f4b0 r10 = 0xc0960f48
bus_generic_new_pass() at bus_generic_new_pass+0xe0
pc = 0xc02cd664 lr = 0xc02cd664 (bus_generic_new_pass+0xe0)
sp = 0xc0c13e30 fp = 0xc0c13e48
r4 = 0xc528cd80 r5 = 0xc07ecc5c
r6 = 0xc0961cfc r7 = 0x00000000
r8 = 0xc094f4b0 r10 = 0xc0960f48
bus_generic_new_pass() at bus_generic_new_pass+0xe0
pc = 0xc02cd664 lr = 0xc02cf0f8 (root_bus_configure+0x80)
sp = 0xc0c13e50 fp = 0xc0c13e68
r4 = 0xc07ecc5c r5 = 0xc528d000
r6 = 0xc094f4b0 r7 = 0xc5292000
r8 = 0xc096190c r10 = 0xc0960f48
root_bus_configure() at root_bus_configure+0x80
pc = 0xc02cf0f8 lr = 0xc0223cb4 (mi_startup+0xfc)
sp = 0xc0c13e70 fp = 0xc0c13e90
r4 = 0xc0961044 r5 = 0x00000001
r6 = 0xc071fc6c r7 = 0x00000000
r8 = 0xc0961040 r10 = 0xc0960f48
mi_startup() at mi_startup+0xfc
pc = 0xc0223cb4 lr = 0xc00002c4 (btext+0x144)
sp = 0xc0c13e98 fp = 0x00000000
r4 = 0xc00003f8 r5 = 0xc09b0000
r6 = 0x4205a400 r7 = 0x00c52078
r8 = 0xc0b1f000 r9 = 0x00000014
r10 = 0x0000000a
btext() at btext+0x144
pc = 0xc00002c4 lr = 0xc00002c4 (btext+0x144)
sp = 0xc0c13e98 fp = 0x00000000
db>
_______________________________________________
freebsd-arm%freebsd.org@localhost mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"