Bug 207970 - fix Banana Pi USB issues
Summary: fix Banana Pi USB issues
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Many People
Assignee: freebsd-arm (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-03-14 09:53 UTC by Dan MacDonald
Modified: 2016-08-21 12:58 UTC (History)
4 users (show)

See Also:


Attachments
Add usbphy node to bananapi dts (1.30 KB, patch)
2016-03-16 19:23 UTC, Jared McNeill
no flags Details | Diff
Bananapi upstream dtb (30.98 KB, application/octet-stream)
2016-03-16 22:50 UTC, Emmanuel Vadot
no flags Details
test.dts (1.91 KB, text/x-csrc)
2016-03-21 23:51 UTC, Dan MacDonald
no flags Details
patch_pinctrl (531 bytes, patch)
2016-03-22 08:28 UTC, Emmanuel Vadot
no flags Details | Diff
bananapi.dts (1.83 KB, audio/vnd.dts)
2016-03-22 10:24 UTC, Emmanuel Vadot
no flags Details
u-boot-sunxi-with-spl.bin (445.22 KB, application/octet-stream)
2016-03-23 20:28 UTC, Emmanuel Vadot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan MacDonald 2016-03-14 09:53:14 UTC
I have been unable to get any USB devices to work under FreeBSD-11.0-CURRENT-arm-armv6-BANANAPI-20160308-r296485.

I have so far tried a (Apple) USB keyboard (with integrated hub), a USB 2.0 card reader / hub and a USB memory card but none have produced any output to dmesg when they were connected or removed from either of the BPi's USB ports.
Comment 1 Hans Petter Selasky freebsd_committer freebsd_triage 2016-03-14 10:03:48 UTC
Can you check that the USB port supplies +5 Volts ?

--HPS
Comment 2 Dan MacDonald 2016-03-15 20:07:42 UTC
Is the USB voltage regulated by the kernel? If not, there's no need to measure it as all the devices I've tried work fine on my BPi under Linux. It's not a hardware fault. Besides, I don't have a voltmeter.

Jared mentioned this patch https://reviews.freebsd.org/D5481 which may enable OHCI but I know at least my hub is a USB 2 device and so I presume OHCI won't help me there (with EHCI devices).
Comment 3 Hans Petter Selasky freebsd_committer freebsd_triage 2016-03-16 07:25:16 UTC
FYI: All HIGH speed devices support FULL speed (OHCI).
Comment 4 Dan MacDonald 2016-03-16 07:57:39 UTC
HPS:

Yes, but shouldn't EHCI work without any OHCI support to fall back on when the kernel and hardware supports it?
Comment 5 Hans Petter Selasky freebsd_committer freebsd_triage 2016-03-16 08:12:28 UTC
If the board has an OHCI, EHCI needs it. If the board has a high-speed HUB attached to the EHCI, the OHCI is not needed typically.

--HPS
Comment 6 Jared McNeill freebsd_committer freebsd_triage 2016-03-16 19:23:57 UTC
Created attachment 168305 [details]
Add usbphy node to bananapi dts

The Banana Pi custom DTS is missing the node for the USB PHY. This is the change I suggested in bug #207912, comment #24 but it seems that something else is needed as well.
Comment 7 Emmanuel Vadot 2016-03-16 22:50:25 UTC
Created attachment 168308 [details]
Bananapi upstream dtb

Could you test the attached dtb please ?

This dtb use the upstream one, adds the ccm and hdmi node.
Also disable i2c2, uart3 and uart 7 as the clock bits aren't there to support those.
Comment 8 Dan MacDonald 2016-03-17 01:00:53 UTC
Booting with Emmanuel's dtb, renamed:

https://gist.github.com/danboid/a955f4dd319ae121c8c0
Comment 9 Emmanuel Vadot 2016-03-17 02:33:35 UTC
As said on IRC, could you test without anything attached to the board ? (SATA, USB devices etc ...).

Thanks
Comment 10 Dan MacDonald 2016-03-17 08:07:33 UTC
This could be unrelated but I should mention then when I boot with the dtb + kernel currently used in FreeBSD-11.0-CURRENT-arm-armv6-BANANAPI-20160308-r296485.img  often see this during boot:

Starting cron.
Starting background file system checks in 60 seconds.
lock order reversal:
 1st 0xc4373db4 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2498
 2nd 0xd9218ec8 bufwait (bufwait) @ /usr/src/sys/ufs/ffs/ffs_vnops.c:263
 3rd 0xc463ddb4 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2498
stack backtrace:

mount: /dev/ufs/rootfs: Device busy

Tue Mar  8 10:41:14 UTC 2016

FreeBSD/arm (a20) (ttyu0)

login: 

I've just reflashed the image and booted on a BPi with nothing attached apart fron power and the UART cable and thats what I saw on first boot. I've not mentioned this until now.
Comment 11 Dan MacDonald 2016-03-17 08:14:59 UTC
I have now booted my BPi using the new dtb attached to this thread with nothing attached except power and UART (and after having reflashed my SD) and its doing exactly the same as in the above gist ie lots of mmc errors.
Comment 13 Dan MacDonald 2016-03-19 21:19:03 UTC
Today I built my own armv6 FreeBSD kernel for the first time so tomorrow I plan to try the A20 OHCI patch on phab.

I've just booted my 'custom' build (that's not been customised at all) kernel using the regular dtb as used in FreeBSD-11.0-CURRENT-arm-armv6-BANANAPI-20160308-r296485 and when plugging in my Apple USB keyboard / 2-port hub I saw this spewed out onto the console:

gic0: Spurious interrupt detected: last irq: 117 on CPU0
Comment 14 Dan MacDonald 2016-03-19 21:41:00 UTC
I have now also tried using the dtb from my custom build kernel ie the current upstream dtb with the current kernel. The good news is that I can confirm that the framebuffer is working in the latest upstream BPi dtb/kernel but we already knew that. The bad news, as you might've guessed, is there is still no signs of USB in dmesg when inserting or removing devices.

As for my new observations, I tried plugging in my USB optical mouse. No activity in dmesg but tellingly the light didn't come on in the mouse so it looks to me like there is no power being delivered via USB with the latest svn head dtb.

The other thing I noticed is that both the current, default dtb within the latest test image and the newer one that I just built are both approx 5KB in size whilst the one attached to this ticket that I've failed to get to boot is 30KB.
Comment 15 Dan MacDonald 2016-03-19 22:22:54 UTC
I should also mention that - even though I have a well-tested, 5.25V 2A PSU plugged into my BPi that I know can power a SATA HD as well as having a power-hungry USB device connected to each USB port - I conducted these latest tests with no HD attached and only connecting one USB device at a time.

Also, I only saw the

gic0: Spurious interrupt detected: last irq: 117 on CPU0

error appear once when testing USB and that was with the older, original dtb.
Comment 16 Dan MacDonald 2016-03-20 08:46:19 UTC
Emmanuel:

Could you post the dts source to the dtb you attached so I can try rebuilding it please?

Thanks
Comment 17 Dan MacDonald 2016-03-21 08:05:05 UTC
I didn't get to try the OHCI patch yesterday but later today I should.

Prob is that my expectations for getting any USB have gone right down since I spotted I'm not even getting any power over USB. What does say to you FreeBSD ARM kernel devs in regard to stuff being fubar? Is it more likely a prob with my dtb, the kernel or both?

The lack of reaction to my previous several posts is also scaring me a bit too! ;)
Comment 18 Dan MacDonald 2016-03-21 23:51:13 UTC
Created attachment 168470 [details]
test.dts
Comment 19 Dan MacDonald 2016-03-21 23:58:08 UTC
When I boot with test.dts, I get mmc errors as seen in Comment #27 of #207912. However, if I remove the pinctrl-names and pinctrl-0 lines from the &mmc0 section of sun7i-a20-bananapi.dts, then rebuild the dtb the dtb/kernel can boot again like this:

U-Boot 2015.04 (Mar 08 2016 - 10:01:34) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   SUNXI SD/MMC: 0
reading u-boot.env

** Unable to read "u-boot.env" from mmc0:1 **
Using default environment

HDMI connected: Setting up a 1280x1024 dvi console
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports r3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   dwmac.1c50000
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
Booting from: mmc 0 ubldr
reading ubldr
262594 bytes read in 78 ms (3.2 MiB/s)
## Starting application at 0x42000094 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7f235458

FreeBSD/armv6 U-Boot loader, Revision 1.2
(root@releng2.nyi.freebsd.org, Tue Mar  8 10:28:28 UTC 2016)

DRAM: 1024MB
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
MMC Device 1 not found
Number of U-Boot devices: 3
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
  Checking unit=1 slice=<auto> partition=<auto>... good.
Booting from disk1s2a:
/boot/kernel/kernel data=0x61a164+0x125e9c syms=[0x4+0x86a90+0x4+0x99bf0]

Hit [Enter] to boot immediately, or any other key for command prompt.


Type '?' for a list of commands, 'help' for more detailed help.
loader> load -t dtb /boot/dtb/bananapi-fix.dtb
/boot/dtb/bananapi-fix.dtb size=0x7b77
loader> boot -v
Booting...
Using DTB from loaded file '/boot/dtb/bananapi-fix.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: -v
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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 11.0-CURRENT #0 r297052: Sat Mar 19 18:46:33 GMT 2016
    dan@pcbsd-1186:/usr/home/dan/src/obj/arm.arm/usr/home/dan/src/head/sys/A20 arm
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a72000.
Preloaded dtb "/boot/dtb/bananapi-fix.dtb" at 0xc0a72754.
CPU: Cortex A7 rev 4 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB enabled LABT branch prediction disabled
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: 
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
avail memory = 1036029952 (988 MB)
Physical memory chunk(s):
  0x40000000 - 0x7fffffff,  1024 MB ( 262144 pages)
Excluded memory regions:
  0x42200000 - 0x42b53fff,     9 MB (   2388 pages) NoAlloc 
Static device mappings:
  0x01c00000 - 0x01ffffff mapped at VA 0xffb00000
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
ULE: setup cpu 0
ULE: setup cpu 1
snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024]
feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25
random: entropy device external interface
nfslock: pseudo-device
crypto: <crypto core>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
kbd0 at kbdmux0
mem: <memory>
random: harvesting attach, 8 bytes (4 bits) from nexus0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from simplebus0
random: harvesting attach, 8 bytes (4 bits) from ofwbus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 24 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpiobus0
Processing 3 pin-config node(s) in pinctrl-0 for spi@01c05000
Processing 1 pin-config node(s) in pinctrl-0 for phy@01c13400
Processing 1 pin-config node(s) in pinctrl-0 for ir@01c21800
Processing 1 pin-config node(s) in pinctrl-0 for serial@01c28000
Processing 1 pin-config node(s) in pinctrl-0 for i2c@01c2ac00
Processing 1 pin-config node(s) in pinctrl-0 for ethernet@01c50000
Processing 1 pin-config node(s) in pinctrl-0 for usb0-vbus
Processing 1 pin-config node(s) in pinctrl-0 for usb1-vbus
Processing 1 pin-config node(s) in pinctrl-0 for usb2-vbus
Processing 1 pin-config node(s) in pinctrl-0 for leds
Processing 1 pin-config node(s) in pinctrl-0 for gmac-3v3
random: harvesting attach, 8 bytes (4 bits) from gpio0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 54 on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160
random: harvesting attach, 8 bytes (4 bits) from gic0
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
random: harvesting attach, 8 bytes (4 bits) from generic_timer0
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 27 on simplebus0
rtc0: Using external oscillator
rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s)
random: harvesting attach, 8 bytes (4 bits) from rtc0
a10_ccm0: <Allwinner Clock Control Module> mem 0x1c20000-0x1c203ff on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10_ccm0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu0: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu1: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu1
random: harvesting attach, 8 bytes (4 bits) from cpulist0
ofwbus0: <pmu> irq 4,5 compat arm,cortex-a7-pmu (no driver attached)
simplebus0: <sram-controller@01c00000> mem 0x1c00000-0x1c0002f compat allwinner,sun4i-a10-sram-controller (no driver attached)
simplebus0: <interrupt-controller@01c00030> mem 0x1c00030-0x1c0003b irq 6 compat allwinner,sun7i-a20-sc-nmi (no driver attached)
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 7 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10dmac0
simplebus0: <spi@01c05000> mem 0x1c05000-0x1c05fff irq 8 compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <spi@01c06000> mem 0x1c06000-0x1c06fff irq 9 disabled compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <ethernet@01c0b000> mem 0x1c0b000-0x1c0bfff irq 10 disabled compat allwinner,sun4i-a10-emac (no driver attached)
simplebus0: <mdio@01c0b080> mem 0x1c0b080-0x1c0b093 disabled compat allwinner,sun4i-a10-mdio (no driver attached)
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 11 on simplebus0
a10_mmc0: DMA status: enabled
mmc0: <MMC/SD bus> on a10_mmc0
random: harvesting attach, 8 bytes (4 bits) from mmc0
random: harvesting attach, 8 bytes (4 bits) from a10_mmc0
simplebus0: <mmc@01c10000> mem 0x1c10000-0x1c10fff irq 12 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c11000> mem 0x1c11000-0x1c11fff irq 13 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c12000> mem 0x1c12000-0x1c12fff irq 14 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <usb@01c13000> mem 0x1c13000-0x1c133ff irq 15 compat allwinner,sun4i-a10-musb (no driver attached)
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from awusbphy0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 16 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci0: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus0
random: harvesting attach, 8 bytes (4 bits) from ehci0
simplebus0: <usb@01c14400> mem 0x1c14400-0x1c144ff irq 17 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <crypto-engine@01c15000> mem 0x1c15000-0x1c15fff irq 18 compat allwinner,sun4i-a10-crypto (no driver attached)
simplebus0: <spi@01c17000> mem 0x1c17000-0x1c17fff irq 19 disabled compat allwinner,sun4i-a10-spi (no driver attached)
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 20 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahci0: Caps: NCQ SNTF SS ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: Caps:
random: harvesting attach, 8 bytes (4 bits) from ahcich0
random: harvesting attach, 8 bytes (4 bits) from ahci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 21 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
ehci1: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus1
random: harvesting attach, 8 bytes (4 bits) from ehci1
simplebus0: <usb@01c1c400> mem 0x1c1c400-0x1c1c4ff irq 22 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <spi@01c1f000> mem 0x1c1f000-0x1c1ffff irq 23 disabled compat allwinner,sun4i-a10-spi (no driver attached)
gpioled0: <GPIO led> at pin 149 on gpiobus0
random: harvesting attach, 8 bytes (4 bits) from gpioled0
gpioc0: <GPIO controller> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpioc0
simplebus0: <timer@01c20c00> mem 0x1c20c00-0x1c20c8f irq 25,26,27,28,29,30 compat allwinner,sun4i-a10-timer (no driver attached)
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
random: harvesting attach, 8 bytes (4 bits) from aw_wdog0
simplebus0: <pwm@01c20e00> mem 0x1c20e00-0x1c20e0b disabled compat allwinner,sun7i-a20-pwm (no driver attached)
simplebus0: <ir@01c21800> mem 0x1c21800-0x1c2183f irq 31 compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <ir@01c21c00> mem 0x1c21c00-0x1c21c3f irq 32 disabled compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <lradc@01c22800> mem 0x1c22800-0x1c228ff irq 33 disabled compat allwinner,sun4i-a10-lradc-keys (no driver attached)
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 34 on simplebus0
pcm0: Mixer "vol":
pcm0: Mixer "line":
pcm0: Mixer "rec":
random: harvesting attach, 8 bytes (4 bits) from pcm0
simplebus0: <eeprom@01c23800> mem 0x1c23800-0x1c239ff compat allwinner,sun7i-a20-sid (no driver attached)
simplebus0: <rtp@01c25000> mem 0x1c25000-0x1c250ff irq 35 compat allwinner,sun5i-a13-ts (no driver attached)
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 36 on simplebus0
uart0: console (8861,n,8,1)
uart0: fast interrupt
uart0: PPS capture mode: DCDinvalid
random: harvesting attach, 8 bytes (4 bits) from uart0
simplebus0: <serial@01c28400> mem 0x1c28400-0x1c287ff irq 37 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28800> mem 0x1c28800-0x1c28bff irq 38 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28c00> mem 0x1c28c00-0x1c28fff irq 39 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29000> mem 0x1c29000-0x1c293ff irq 40 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29400> mem 0x1c29400-0x1c297ff irq 41 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29800> mem 0x1c29800-0x1c29bff irq 42 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29c00> mem 0x1c29c00-0x1c29fff irq 43 disabled compat snps,dw-apb-uart (no driver attached)
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 44 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
random: harvesting attach, 8 bytes (4 bits) from iic0
axp209_pmu0: <X-Power AXP209 Power Management Unit> at addr 0x68 irq -1064181232 on iicbus0
axp209_pmu0: AXP209 Powered by AC and USB
random: harvesting attach, 8 bytes (4 bits) from axp209_pmu0
random: harvesting attach, 8 bytes (4 bits) from iicbus0
random: harvesting attach, 8 bytes (4 bits) from iichb0
simplebus0: <i2c@01c2b000> mem 0x1c2b000-0x1c2b3ff irq 45 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2b400> mem 0x1c2b400-0x1c2b7ff irq 46 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2b800> mem 0x1c2b800-0x1c2bbff irq 47 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2c000> mem 0x1c2c000-0x1c2c3ff irq 48 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 49 on simplebus0
miibus0: <MII bus> on dwc0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 0 on miibus0
rgephy0: OUI 0x00e04c, model 0x0011, rev. 5
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from rgephy0
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy1: OUI 0x00e04c, model 0x0011, rev. 5
rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from rgephy1
random: harvesting attach, 8 bytes (4 bits) from miibus0
dwc0: bpf attached
dwc0: Ethernet address: 02:09:04:c2:82:f8
random: harvesting attach, 8 bytes (4 bits) from dwc0
simplebus0: <hstimer@01c60000> mem 0x1c60000-0x1c60fff irq 50,51,52,53 compat allwinner,sun7i-a20-hstimer (no driver attached)
simplebus0: <ps2@01c2a000> mem 0x1c2a000-0x1c2a3ff irq 55 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
simplebus0: <ps2@01c2a400> mem 0x1c2a400-0x1c2a7ff irq 56 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
a10hdmi0: <Allwinner HDMI TX> mem 0x1c16000-0x1c16fff on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10hdmi0
pcm1: <Allwinner HDMI Audio> on simplebus0
pcm1: Mixer "pcm":
random: harvesting attach, 8 bytes (4 bits) from pcm1
fb0: <Allwinner Framebuffer> mem 0x1e60000-0x1e6ffff,0x1c0c000-0x1c0cfff on simplebus0
random: harvesting attach, 8 bytes (4 bits) from fb0
ofwbus0: <ahci-5v> disabled compat regulator-fixed (no driver attached)
ofwbus0: <usb0-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <usb1-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <usb2-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <vcc3v0> compat regulator-fixed (no driver attached)
ofwbus0: <vcc3v3> compat regulator-fixed (no driver attached)
ofwbus0: <vcc5v0> compat regulator-fixed (no driver attached)
ofwbus0: <leds> compat gpio-leds (no driver attached)
ofwbus0: <gmac-3v3> compat regulator-fixed (no driver attached)
cryptosoft0: <software crypto>
crypto: assign cryptosoft0 driver id 0, flags 100663296
crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0
random: harvesting attach, 8 bytes (4 bits) from cryptosoft0
procfs registered
Timecounters tick every 10.000 msec
IPsec: Initialized Security Association Processing.
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 8192
lo0: bpf attached
mmc0: Probing bus
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ahcich0: AHCI reset...
ugen0.1: <Allwinner> at usbus0
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Allwinner> at usbus1
uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ahcich0: SATA connect timeout time=10000us status=00000000
ahcich0: AHCI reset: device not found
mmc0: SD 2.0 interface conditions: OK
mmc0: SD probe: OK (OCR: 0x00ff8000)
mmc0: Current OCR: 0x00ff8000
mmc0: Probing cards
mmc0: New card detected (CID 02544d5341303447039c526d1e009aaf)
mmc0: New card detected (CSD 400e00325b5900001d7b7f800a40005d)
mmc0: Card at relative address 0x1234 added:
mmc0:  card: SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM
mmc0:  bus: 4bit, 50MHz, high speed timing
mmc0:  memory: 7729152 blocks, erase sector 8192 blocks
mmc0: setting transfer rate to 50.000MHz (high speed timing)
mmcsd0: 4GB <SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM> at mmc0 50.0MHz/4bit/65535-block
random: harvesting attach, 8 bytes (4 bits) from mmcsd0
edid: max_dotclock according to supported modes: 135000
edid: max_dotclock according to supported modes: 135000
Vendor: [PGE] 
Product: [1705] GNR TS700
Serial number: b30a0000
Manufactured 2005 Week 44
EDID Version 1.3
EDID Comment: 
Video Input: 8c
	Digital
Gamma: 2.20
Max Size: 34 cm x 27 cm
Features: 2e
	DPMS active-off
	RGB
	Standard color space
	Preferred timing
Chroma Info:
	Red X: 0.632
	Red Y: 0.632
	Grn X: 0.299
	Grn Y: 0.585
	Blu X: 0.146
	Blu Y: 0.102
	Wht X: 0.313
	Wht Y: 0.329
Range:
	Horizontal: 31 - 81 kHz
	Vertical: 56 - 75 Hz
	Max Dot Clock: 140 MHz
Video modes:
	720x400 @ 70Hz (28320 738 846 900 412 414 449 -H +V)
	640x480 @ 60Hz (25175 656 752 800 490 492 525 -H -V)
	640x480 @ 73Hz (31500 664 704 832 489 492 520 -H -V)
	640x480 @ 75Hz (31500 656 720 840 481 484 500 -H -V)
	800x600 @ 56Hz (36000 824 896 1024 601 603 625 +H +V)
	800x600 @ 60Hz (40000 840 968 1056 601 605 628 +H +V)
	800x600 @ 72Hz (50000 856 976 1040 637 643 666 +H +V)
	800x600 @ 75Hz (49500 816 896 1056 601 604 625 +H +V)
	832x624 @ 75Hz (57284 864 928 1152 625 628 667 -H -V)
	1024x768 @ 60Hz (65000 1048 1184 1344 771 777 806 -H -V)
	1024x768 @ 70Hz (75000 1048 1184 1328 771 777 806 -H -V)
	1024x768 @ 75Hz (78750 1040 1136 1312 769 772 800 +H +V)
	1280x1024 @ 75Hz (135000 1296 1440 1688 1025 1028 1066 +H +V)
	1280x1024 @ 60Hz (108000 1328 1440 1688 1025 1028 1066 +H +V)
	1280x960 @ 60Hz (108000 1376 1488 1800 961 964 1000 +H +V)
	1152x864 @ 75Hz (108000 1216 1344 1600 865 868 900 +H +V)
Preferred mode: 1280x1024 @ 60Hz
Number of extension blocks: 0
fb0: using 1280x1024
fbd0 on fb0
VT: initialize with new VT driver "fb".
random: harvesting attach, 8 bytes (4 bits) from fbd0
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
GEOM: new disk mmcsd0
mmc0: setting bus width to 4 bits
GEOM_PART: partition 1 on (mmcsd0, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (mmcsd0, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (mmcsd0s2, BSD) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1Es2, BSD) is not aligned on 4194304 bytes
start_init: trying /sbin/init
uhub0: 1 port with 1 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub0
uhub1: 1 port with 1 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub1
Setting hostuuid: 25208802-e51a-11e5-b667-855498dbc380.
Setting hostid: 0xd2072d87.
No suitable dump device was found.
Starting file system checks:
/dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/rootfs: clean, 726587 free (259 frags, 90791 blocks, 0.0% fragmentation)
GEOM_PART: partition 1 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1Es2, BSD) is not aligned on 4194304 bytes
Mounting local file systems:.
Setting hostname: a20.
Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy:random: unblocking device.
.
dwc0: link state changed to DOWN
Starting Network: lo0 dwc0.
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 0x2 
	inet 127.0.0.1 netmask 0xff000000 
	groups: lo 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
dwc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=80008<VLAN_MTU,LINKSTATE>
	ether 02:09:04:c2:82:f8
	media: Ethernet autoselect (none)
	status: no carrier
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Soft Float compatibility ldconfig path:
Starting devd.
dwc0: link state changed to UP
Starting dhclient.
DHCPREQUEST on dwc0 to 255.255.255.255 port 67
DHCPREQUEST on dwc0 to 255.255.255.255 port 67
DHCPREQUEST on dwc0 to 255.255.255.255 port 67
DHCPREQUEST on dwc0 to 255.255.255.255 port 67
ip length 328 disagrees with bytes received 332.
accepting packet with data after udp payload.
DHCPACK from 192.168.0.1
bound to 192.168.0.19 -- renewal in 43200 seconds.
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
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Configuring vt: blanktime.
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting sshd.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting cron.
mixer: unknown device: pcm
Starting background file system checks in 60 seconds.

Thu Jan  1 01:18:09 UTC 1970

FreeBSD/arm (a20) (ttyu0)

login:
Comment 20 Emmanuel Vadot 2016-03-22 08:28:09 UTC
Created attachment 168475 [details]
patch_pinctrl

Hi,

I really don't understand what's happening.
Could you test recompile a kernel with the attached patch and post a boot_verbose without the pinctrl- property removed ?
It will simply print which pin are configured to which func etc ...

Thanks.
Comment 21 Emmanuel Vadot 2016-03-22 10:24:31 UTC
Created attachment 168488 [details]
bananapi.dts

Could you test with the attached dts ?
Uboot setups the mmc pins with pull-up activated while the default pins in the upstream dts configure them with no pull-ups.
This dts fixes this.

Thanks.
Comment 22 Dan MacDonald 2016-03-23 00:19:03 UTC
I've just tried the latest dts attachment.

Before building it I made sure to remove and re-checkout sun7i-a20-bananapi.dts.

This dts boots fine but doesn't make any difference to USB. Still no power or dmesg activity.

I'll try building the kernel with that patch for the pins now.

https://gist.github.com/anonymous/c361682e6f550eec4031
Comment 23 Dan MacDonald 2016-03-23 01:01:11 UTC
When I boot with the last dts, my BPi's ethernet begins to stall and become so slow as to be unusable.

Here is the dmesg using the latest attached dts booting with the patched kernel to show the pin config:

U-Boot SPL 2015.04 (Mar 08 2016 - 10:01:34)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2


U-Boot 2015.04 (Mar 08 2016 - 10:01:34) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   SUNXI SD/MMC: 0
reading u-boot.env

** Unable to read "u-boot.env" from mmc0:1 **
Using default environment

HDMI connected: Setting up a 1280x1024 dvi console
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports r3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   dwmac.1c50000
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
Booting from: mmc 0 ubldr
reading ubldr
262594 bytes read in 78 ms (3.2 MiB/s)
## Starting application at 0x42000094 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7f235458

FreeBSD/armv6 U-Boot loader, Revision 1.2
(root@releng2.nyi.freebsd.org, Tue Mar  8 10:28:28 UTC 2016)

DRAM: 1024MB
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
MMC Device 1 not found
Number of U-Boot devices: 3
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
  Checking unit=1 slice=<auto> partition=<auto>... good.
Booting from disk1s2a:
/boot/kernel/kernel data=0x61e3a4+0x125c5c syms=[0x4+0x86fa0+0x4+0x9a5a6]

Hit [Enter] to boot immediately, or any other key for command prompt.


Type '?' for a list of commands, 'help' for more detailed help.
loader> load -t dtb /boot/dtb/bananapi-pin.dtb
/boot/dtb/bananapi-pin.dtb size=0x7bdf
loader> boot -v
Booting...
Using DTB from loaded file '/boot/dtb/bananapi-pin.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: -v
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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 11.0-CURRENT #1 r297203M: Wed Mar 23 00:32:21 GMT 2016
    dan@pcbsd-1186:/usr/home/dan/src/obj/arm.arm/usr/home/dan/src/head/sys/A20 arm
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a77000.
Preloaded dtb "/boot/dtb/bananapi-pin.dtb" at 0xc0a77754.
CPU: Cortex A7 rev 4 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB enabled LABT branch prediction disabled
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: 
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
avail memory = 1036029952 (988 MB)
Physical memory chunk(s):
  0x40000000 - 0x7fffffff,  1024 MB ( 262144 pages)
Excluded memory regions:
  0x42200000 - 0x42b53fff,     9 MB (   2388 pages) NoAlloc 
Static device mappings:
  0x01c00000 - 0x01ffffff mapped at VA 0xffb00000
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
ULE: setup cpu 0
ULE: setup cpu 1
snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024]
feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25
random: entropy device external interface
nfslock: pseudo-device
crypto: <crypto core>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
kbd0 at kbdmux0
mem: <memory>
random: harvesting attach, 8 bytes (4 bits) from nexus0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from simplebus0
random: harvesting attach, 8 bytes (4 bits) from ofwbus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 24 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpiobus0
Processing 3 pin-config node(s) in pinctrl-0 for spi@01c05000
gpio0: Setting pin 164 to func=2,drv=0,pull=0
gpio0: Setting pin 165 to func=2,drv=0,pull=0
gpio0: Setting pin 166 to func=2,drv=0,pull=0
gpio0: Setting pin 163 to func=2,drv=0,pull=0
gpio0: Setting pin 167 to func=2,drv=0,pull=0
Processing 2 pin-config node(s) in pinctrl-0 for mmc@01c0f000
gpio0: Setting pin 107 to func=2,drv=2,pull=1
gpio0: Setting pin 108 to func=2,drv=2,pull=1
gpio0: Setting pin 109 to func=2,drv=2,pull=1
gpio0: Setting pin 110 to func=2,drv=2,pull=1
gpio0: Setting pin 111 to func=2,drv=2,pull=1
gpio0: Setting pin 112 to func=2,drv=2,pull=1
gpio0: Setting pin 135 to func=0,drv=0,pull=1
Processing 1 pin-config node(s) in pinctrl-0 for phy@01c13400
gpio0: Setting pin 129 to func=0,drv=0,pull=1
Processing 1 pin-config node(s) in pinctrl-0 for ir@01c21800
gpio0: Setting pin 22 to func=2,drv=0,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for serial@01c28000
gpio0: Setting pin 40 to func=2,drv=0,pull=0
gpio0: Setting pin 41 to func=2,drv=0,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for i2c@01c2ac00
gpio0: Setting pin 18 to func=2,drv=0,pull=0
gpio0: Setting pin 19 to func=2,drv=0,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for ethernet@01c50000
gpio0: Setting pin 0 to func=5,drv=3,pull=0
gpio0: Setting pin 1 to func=5,drv=3,pull=0
gpio0: Setting pin 2 to func=5,drv=3,pull=0
gpio0: Setting pin 3 to func=5,drv=3,pull=0
gpio0: Setting pin 4 to func=5,drv=3,pull=0
gpio0: Setting pin 5 to func=5,drv=3,pull=0
gpio0: Setting pin 6 to func=5,drv=3,pull=0
gpio0: Setting pin 7 to func=5,drv=3,pull=0
gpio0: Setting pin 8 to func=5,drv=3,pull=0
gpio0: Setting pin 10 to func=5,drv=3,pull=0
gpio0: Setting pin 11 to func=5,drv=3,pull=0
gpio0: Setting pin 12 to func=5,drv=3,pull=0
gpio0: Setting pin 13 to func=5,drv=3,pull=0
gpio0: Setting pin 15 to func=5,drv=3,pull=0
gpio0: Setting pin 16 to func=5,drv=3,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for usb0-vbus
gpio0: Setting pin 27 to func=1,drv=0,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for usb1-vbus
gpio0: Setting pin 131 to func=1,drv=0,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for usb2-vbus
gpio0: Setting pin 128 to func=1,drv=0,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for leds
gpio0: Setting pin 149 to func=1,drv=0,pull=0
Processing 1 pin-config node(s) in pinctrl-0 for gmac-3v3
gpio0: Setting pin 148 to func=1,drv=0,pull=0
random: harvesting attach, 8 bytes (4 bits) from gpio0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 54 on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160
random: harvesting attach, 8 bytes (4 bits) from gic0
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
random: harvesting attach, 8 bytes (4 bits) from generic_timer0
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 27 on simplebus0
rtc0: Using external oscillator
rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s)
random: harvesting attach, 8 bytes (4 bits) from rtc0
a10_ccm0: <Allwinner Clock Control Module> mem 0x1c20000-0x1c203ff on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10_ccm0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu0: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu1: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu1
random: harvesting attach, 8 bytes (4 bits) from cpulist0
ofwbus0: <pmu> irq 4,5 compat arm,cortex-a7-pmu (no driver attached)
simplebus0: <sram-controller@01c00000> mem 0x1c00000-0x1c0002f compat allwinner,sun4i-a10-sram-controller (no driver attached)
simplebus0: <interrupt-controller@01c00030> mem 0x1c00030-0x1c0003b irq 6 compat allwinner,sun7i-a20-sc-nmi (no driver attached)
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 7 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10dmac0
simplebus0: <spi@01c05000> mem 0x1c05000-0x1c05fff irq 8 compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <spi@01c06000> mem 0x1c06000-0x1c06fff irq 9 disabled compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <ethernet@01c0b000> mem 0x1c0b000-0x1c0bfff irq 10 disabled compat allwinner,sun4i-a10-emac (no driver attached)
simplebus0: <mdio@01c0b080> mem 0x1c0b080-0x1c0b093 disabled compat allwinner,sun4i-a10-mdio (no driver attached)
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 11 on simplebus0
a10_mmc0: DMA status: enabled
mmc0: <MMC/SD bus> on a10_mmc0
random: harvesting attach, 8 bytes (4 bits) from mmc0
random: harvesting attach, 8 bytes (4 bits) from a10_mmc0
simplebus0: <mmc@01c10000> mem 0x1c10000-0x1c10fff irq 12 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c11000> mem 0x1c11000-0x1c11fff irq 13 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c12000> mem 0x1c12000-0x1c12fff irq 14 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <usb@01c13000> mem 0x1c13000-0x1c133ff irq 15 compat allwinner,sun4i-a10-musb (no driver attached)
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from awusbphy0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 16 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci0: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus0
random: harvesting attach, 8 bytes (4 bits) from ehci0
simplebus0: <usb@01c14400> mem 0x1c14400-0x1c144ff irq 17 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <crypto-engine@01c15000> mem 0x1c15000-0x1c15fff irq 18 compat allwinner,sun4i-a10-crypto (no driver attached)
simplebus0: <spi@01c17000> mem 0x1c17000-0x1c17fff irq 19 disabled compat allwinner,sun4i-a10-spi (no driver attached)
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 20 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahci0: Caps: NCQ SNTF SS ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: Caps:
random: harvesting attach, 8 bytes (4 bits) from ahcich0
random: harvesting attach, 8 bytes (4 bits) from ahci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 21 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
ehci1: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus1
random: harvesting attach, 8 bytes (4 bits) from ehci1
simplebus0: <usb@01c1c400> mem 0x1c1c400-0x1c1c4ff irq 22 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <spi@01c1f000> mem 0x1c1f000-0x1c1ffff irq 23 disabled compat allwinner,sun4i-a10-spi (no driver attached)
gpioled0: <GPIO led> at pin 149 on gpiobus0
random: harvesting attach, 8 bytes (4 bits) from gpioled0
gpioc0: <GPIO controller> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpioc0
simplebus0: <timer@01c20c00> mem 0x1c20c00-0x1c20c8f irq 25,26,27,28,29,30 compat allwinner,sun4i-a10-timer (no driver attached)
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
random: harvesting attach, 8 bytes (4 bits) from aw_wdog0
simplebus0: <pwm@01c20e00> mem 0x1c20e00-0x1c20e0b disabled compat allwinner,sun7i-a20-pwm (no driver attached)
simplebus0: <ir@01c21800> mem 0x1c21800-0x1c2183f irq 31 compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <ir@01c21c00> mem 0x1c21c00-0x1c21c3f irq 32 disabled compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <lradc@01c22800> mem 0x1c22800-0x1c228ff irq 33 disabled compat allwinner,sun4i-a10-lradc-keys (no driver attached)
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 34 on simplebus0
pcm0: Mixer "vol":
pcm0: Mixer "line":
pcm0: Mixer "rec":
random: harvesting attach, 8 bytes (4 bits) from pcm0
simplebus0: <eeprom@01c23800> mem 0x1c23800-0x1c239ff compat allwinner,sun7i-a20-sid (no driver attached)
simplebus0: <rtp@01c25000> mem 0x1c25000-0x1c250ff irq 35 compat allwinner,sun5i-a13-ts (no driver attached)
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 36 on simplebus0
uart0: console (8861,n,8,1)
uart0: fast interrupt
uart0: PPS capture mode: DCDinvalid
random: harvesting attach, 8 bytes (4 bits) from uart0
simplebus0: <serial@01c28400> mem 0x1c28400-0x1c287ff irq 37 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28800> mem 0x1c28800-0x1c28bff irq 38 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28c00> mem 0x1c28c00-0x1c28fff irq 39 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29000> mem 0x1c29000-0x1c293ff irq 40 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29400> mem 0x1c29400-0x1c297ff irq 41 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29800> mem 0x1c29800-0x1c29bff irq 42 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29c00> mem 0x1c29c00-0x1c29fff irq 43 disabled compat snps,dw-apb-uart (no driver attached)
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 44 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
random: harvesting attach, 8 bytes (4 bits) from iic0
axp209_pmu0: <X-Power AXP209 Power Management Unit> at addr 0x68 irq 57 on iicbus0
axp209_pmu0: AXP209 Powered by AC and USB
random: harvesting attach, 8 bytes (4 bits) from axp209_pmu0
random: harvesting attach, 8 bytes (4 bits) from iicbus0
random: harvesting attach, 8 bytes (4 bits) from iichb0
simplebus0: <i2c@01c2b000> mem 0x1c2b000-0x1c2b3ff irq 45 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2b400> mem 0x1c2b400-0x1c2b7ff irq 46 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2b800> mem 0x1c2b800-0x1c2bbff irq 47 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2c000> mem 0x1c2c000-0x1c2c3ff irq 48 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 49 on simplebus0
miibus0: <MII bus> on dwc0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 0 on miibus0
rgephy0: OUI 0x00e04c, model 0x0011, rev. 5
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from rgephy0
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy1: OUI 0x00e04c, model 0x0011, rev. 5
rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
random: harvesting attach, 8 bytes (4 bits) from rgephy1
random: harvesting attach, 8 bytes (4 bits) from miibus0
dwc0: bpf attached
dwc0: Ethernet address: 02:09:04:c2:82:f8
random: harvesting attach, 8 bytes (4 bits) from dwc0
simplebus0: <hstimer@01c60000> mem 0x1c60000-0x1c60fff irq 50,51,52,53 compat allwinner,sun7i-a20-hstimer (no driver attached)
simplebus0: <ps2@01c2a000> mem 0x1c2a000-0x1c2a3ff irq 55 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
simplebus0: <ps2@01c2a400> mem 0x1c2a400-0x1c2a7ff irq 56 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
a10hdmi0: <Allwinner HDMI TX> mem 0x1c16000-0x1c16fff on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10hdmi0
pcm1: <Allwinner HDMI Audio> on simplebus0
pcm1: Mixer "pcm":
random: harvesting attach, 8 bytes (4 bits) from pcm1
fb0: <Allwinner Framebuffer> mem 0x1e60000-0x1e6ffff,0x1c0c000-0x1c0cfff on simplebus0
random: harvesting attach, 8 bytes (4 bits) from fb0
ofwbus0: <ahci-5v> disabled compat regulator-fixed (no driver attached)
ofwbus0: <usb0-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <usb1-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <usb2-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <vcc3v0> compat regulator-fixed (no driver attached)
ofwbus0: <vcc3v3> compat regulator-fixed (no driver attached)
ofwbus0: <vcc5v0> compat regulator-fixed (no driver attached)
ofwbus0: <leds> compat gpio-leds (no driver attached)
ofwbus0: <gmac-3v3> compat regulator-fixed (no driver attached)
cryptosoft0: <software crypto>
crypto: assign cryptosoft0 driver id 0, flags 100663296
crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0
random: harvesting attach, 8 bytes (4 bits) from cryptosoft0
procfs registered
Timecounters tick every 10.000 msec
IPsec: Initialized Security Association Processing.
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 8192
lo0: bpf attached
mmc0: Probing bus
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ahcich0: AHCI reset...
ugen0.1: <Allwinner> at usbus0
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Allwinner> at usbus1
uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ahcich0: SATA connect timeout time=10000us status=00000000
ahcich0: AHCI reset: device not found
mmc0: SD 2.0 interface conditions: OK
mmc0: SD probe: OK (OCR: 0x00ff8000)
mmc0: Current OCR: 0x00ff8000
mmc0: Probing cards
mmc0: New card detected (CID 02544d5341303447039c526d1e009aaf)
mmc0: New card detected (CSD 400e00325b5900001d7b7f800a40005d)
mmc0: Card at relative address 0x1234 added:
mmc0:  card: SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM
mmc0:  bus: 4bit, 50MHz, high speed timing
mmc0:  memory: 7729152 blocks, erase sector 8192 blocks
mmc0: setting transfer rate to 50.000MHz (high speed timing)
mmcsd0: 4GB <SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM> at mmc0 50.0MHz/4bit/65535-block
random: harvesting attach, 8 bytes (4 bits) from mmcsd0
edid: max_dotclock according to supported modes: 135000
edid: max_dotclock according to supported modes: 135000
Vendor: [PGE] 
Product: [1705] GNR TS700
Serial number: b30a0000
Manufactured 2005 Week 44
EDID Version 1.3
EDID Comment: 
Video Input: 8c
	Digital
Gamma: 2.20
Max Size: 34 cm x 27 cm
Features: 2e
	DPMS active-off
	RGB
	Standard color space
	Preferred timing
Chroma Info:
	Red X: 0.632
	Red Y: 0.632
	Grn X: 0.299
	Grn Y: 0.585
	Blu X: 0.146
	Blu Y: 0.102
	Wht X: 0.313
	Wht Y: 0.329
Range:
	Horizontal: 31 - 81 kHz
	Vertical: 56 - 75 Hz
	Max Dot Clock: 140 MHz
Video modes:
	720x400 @ 70Hz (28320 738 846 900 412 414 449 -H +V)
	640x480 @ 60Hz (25175 656 752 800 490 492 525 -H -V)
	640x480 @ 73Hz (31500 664 704 832 489 492 520 -H -V)
	640x480 @ 75Hz (31500 656 720 840 481 484 500 -H -V)
	800x600 @ 56Hz (36000 824 896 1024 601 603 625 +H +V)
	800x600 @ 60Hz (40000 840 968 1056 601 605 628 +H +V)
	800x600 @ 72Hz (50000 856 976 1040 637 643 666 +H +V)
	800x600 @ 75Hz (49500 816 896 1056 601 604 625 +H +V)
	832x624 @ 75Hz (57284 864 928 1152 625 628 667 -H -V)
	1024x768 @ 60Hz (65000 1048 1184 1344 771 777 806 -H -V)
	1024x768 @ 70Hz (75000 1048 1184 1328 771 777 806 -H -V)
	1024x768 @ 75Hz (78750 1040 1136 1312 769 772 800 +H +V)
	1280x1024 @ 75Hz (135000 1296 1440 1688 1025 1028 1066 +H +V)
	1280x1024 @ 60Hz (108000 1328 1440 1688 1025 1028 1066 +H +V)
	1280x960 @ 60Hz (108000 1376 1488 1800 961 964 1000 +H +V)
	1152x864 @ 75Hz (108000 1216 1344 1600 865 868 900 +H +V)
Preferred mode: 1280x1024 @ 60Hz
Number of extension blocks: 0
fb0: using 1280x1024
fbd0 on fb0
VT: initialize with new VT driver "fb".
random: harvesting attach, 8 bytes (4 bits) from fbd0
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
GEOM: new disk mmcsd0
mmc0: setting bus width to 4 bits
GEOM_PART: partition 1 on (mmcsd0, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (mmcsd0, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (mmcsd0s2, BSD) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1Es2, BSD) is not aligned on 4194304 bytes
start_init: trying /sbin/init
uhub0: 1 port with 1 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub0
uhub1: 1 port with 1 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub1
Setting hostuuid: 25208802-e51a-11e5-b667-855498dbc380.
Setting hostid: 0xd2072d87.
No suitable dump device was found.
Starting file system checks:
/dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/rootfs: clean, 726589 free (253 frags, 90792 blocks, 0.0% fragmentation)
GEOM_PART: partition 1 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1Es2, BSD) is not aligned on 4194304 bytes
Mounting local file systems:.
Setting hostname: a20.
Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy:random: unblocking device.
.
dwc0: link state changed to DOWN
Starting Network: lo0 dwc0.
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 0x2 
	inet 127.0.0.1 netmask 0xff000000 
	groups: lo 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
dwc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=80008<VLAN_MTU,LINKSTATE>
	ether 02:09:04:c2:82:f8
	media: Ethernet autoselect (none)
	status: no carrier
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Soft Float compatibility ldconfig path:
Starting devd.
dwc0: link state changed to UP
Starting dhclient.
DHCPREQUEST on dwc0 to 255.255.255.255 port 67
ip length 328 disagrees with bytes received 332.
accepting packet with data after udp payload.
DHCPACK from 192.168.0.1
bound to 192.168.0.19 -- renewal in 43200 seconds.
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
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Configuring vt: blanktime.
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting sshd.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting cron.
Starting background file system checks in 60 seconds.

Thu Jan  1 01:06:42 UTC 1970

FreeBSD/arm (a20) (ttyu0)

login:
Comment 24 Emmanuel Vadot 2016-03-23 06:54:24 UTC
You realize that all that was just to upstream dts whle fixing mmc and that we' ve not really looked at usb yet ?

For the gmac Uboot 201504 misses a setting for bananapi, try put : 
&gmac { phy-mode = "rgmii-bpi";}
in the dts
Note that this is only needed for 1000, forcing duplex to auto-100 should work.

Now on the note of usb, you said it works with linux and netbsd, does usb is powered too during uboot stage ?
Could you give me uboot version that you are using for both netbsd and linux ?

Thanks.
Comment 25 Dan MacDonald 2016-03-23 20:03:50 UTC
Centos 7 for the BPi uses U-Boot 2015.10 (Nov 26 2015 - 14:56:37 -0500) for example and USB works fine.

If I have my optical mouse plugged into a USB port on my BPi when booting Centos, the light is lit up during the u-boot phase. When it starts booting the Linux kernel, the light goes off for 10/20s then part way through the init sequence, the USB mouse light comes back on and then stays on until the mouse is unplugged or the BPi is shut down.

Under the current FreeBSD test image, the mouse light doesn't light up during u-boot or during/after the init sequence. Sometimes if I plug and unplug the mouse the light comes on very briefly under FreeBSD but it doesn't stay illuminated and dmesg says nothing.
Comment 26 Emmanuel Vadot 2016-03-23 20:28:36 UTC
Created attachment 168546 [details]
u-boot-sunxi-with-spl.bin

Could you test with the attached uboot ?
dd if=u-boot-sunxi-with-spl.bin of=/dev/device bs=1K seek=8

This is uboot 201601 with the freebsd patches, it only misses the api for net, meaning you can't netboot boards with it.
Otherwise everything should work.

Thanks,
Comment 27 Dan MacDonald 2016-03-23 22:08:19 UTC
The new u-boot has helped some because at least now I get power over USB during the u-boot phase but as soon as I dd the new u-boot into place, FreeBSD stops booting normally. It says

No valid device tree blob found!

and drops me to the loader prompt from which I then have to manually load my dtb file. I'm still using the dtb built from the attached dts - I've not added the suggested gbit tweak yet although I do need that too.

When I boot into FreeBSD, there is still no USB. The light on my mouse turns off a few minutes after boot.

I should note that I've been using dd under Linux to dd the new u-boot onto my FreeBSD SD card although I doubt that makes any difference, right? My SD card reader doesn't work under FreeBSD on my laptop. Maybe I'd be better doing it on the BPi live?
Comment 28 Emmanuel Vadot 2016-03-23 22:13:32 UTC
Sorry I didn't patch enough uboot to load the dtb.

Does USB works now under FreeBSD or only in uboot ?
Comment 29 Dan MacDonald 2016-03-23 22:16:35 UTC
Only in uboot, well at least I get power in the new uboot
Comment 30 Dan MacDonald 2016-03-26 18:54:29 UTC
The following dmesg is from booting using https://www.bidouilliste.com/freebsd/bananapi.dtb and http://www.invisible.ca/tmp/kernel.

USB power seems to be working with this config but I can't properly test USB as it doesn't boot all the way:

U-Boot SPL 2015.04 (Mar 08 2016 - 10:01:34)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2


U-Boot 2015.04 (Mar 08 2016 - 10:01:34) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   SUNXI SD/MMC: 0
reading u-boot.env

** Unable to read "u-boot.env" from mmc0:1 **
Using default environment

HDMI connected: Setting up a 1280x1024 dvi console
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports r3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   dwmac.1c50000
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... cannot reset port 1!?
1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
Booting from: mmc 0 ubldr
reading ubldr
262594 bytes read in 78 ms (3.2 MiB/s)
## Starting application at 0x42000094 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7f235458

FreeBSD/armv6 U-Boot loader, Revision 1.2
(root@releng2.nyi.freebsd.org, Tue Mar  8 10:28:28 UTC 2016)

DRAM: 1024MB
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
MMC Device 1 not found
Number of U-Boot devices: 3
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
  Checking unit=1 slice=<auto> partition=<auto>... good.
Booting from disk1s2a:
/boot/kernel/kernel data=0x6162a4+0x125d5c syms=[0x4+0x868f0+0x4+0x995b2]

Hit [Enter] to boot immediately, or any other key for command prompt.


Type '?' for a list of commands, 'help' for more detailed help.
loader> boot -v
Booting...
/boot/dtb/bananapi.dtb size=0x7a5f
Loaded DTB from file 'bananapi.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: -v
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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 11.0-CURRENT #0 r296485: Tue Mar  8 10:35:28 UTC 2016
    root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/A20 arm
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a6d000.
Preloaded dtb "/boot/dtb/bananapi.dtb" at 0xc0a6d754.
CPU: Cortex A7 rev 4 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB enabled LABT branch prediction disabled
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: 
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
avail memory = 1036029952 (988 MB)
Physical memory chunk(s):
  0x40000000 - 0x7fffffff,  1024 MB ( 262144 pages)
Excluded memory regions:
  0x42200000 - 0x42b53fff,     9 MB (   2388 pages) NoAlloc 
Static device mappings:
  0x01c00000 - 0x01ffffff mapped at VA 0xffb00000
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
ULE: setup cpu 0
ULE: setup cpu 1
snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024]
feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25
random: entropy device external interface
nfslock: pseudo-device
crypto: <crypto core>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
kbd0 at kbdmux0
mem: <memory>
random: harvesting attach, 8 bytes (4 bits) from nexus0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from simplebus0
random: harvesting attach, 8 bytes (4 bits) from ofwbus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 24 on simplebus0
Processing 3 pin-config node(s) in pinctrl-0 for spi@01c05000
Processing 2 pin-config node(s) in pinctrl-0 for mmc@01c0f000
Processing 1 pin-config node(s) in pinctrl-0 for phy@01c13400
Processing 1 pin-config node(s) in pinctrl-0 for ir@01c21800
Processing 1 pin-config node(s) in pinctrl-0 for serial@01c28000
Processing 1 pin-config node(s) in pinctrl-0 for i2c@01c2ac00
Processing 1 pin-config node(s) in pinctrl-0 for i2c@01c2b400
Processing 1 pin-config node(s) in pinctrl-0 for ethernet@01c50000
Processing 1 pin-config node(s) in pinctrl-0 for usb0-vbus
Processing 1 pin-config node(s) in pinctrl-0 for usb1-vbus
Processing 1 pin-config node(s) in pinctrl-0 for usb2-vbus
Processing 1 pin-config node(s) in pinctrl-0 for leds
Processing 1 pin-config node(s) in pinctrl-0 for gmac-3v3
random: harvesting attach, 8 bytes (4 bits) from gpio0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 54 on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160
random: harvesting attach, 8 bytes (4 bits) from gic0
generic_timer0: <ARMv7 Generic Timer> irq 0,1,2,3 on ofwbus0
gic0: unsupported trigger/polarity configuration 0x08
gic0: unsupported trigger/polarity configuration 0x08
gic0: unsupported trigger/polarity configuration 0x08
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
random: harvesting attach, 8 bytes (4 bits) from generic_timer0
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 27 on simplebus0
rtc0: Using external oscillator
rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s)
random: harvesting attach, 8 bytes (4 bits) from rtc0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu0: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu1: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu1
random: harvesting attach, 8 bytes (4 bits) from cpulist0
ofwbus0: <pmu> irq 4,5 compat arm,cortex-a7-pmu (no driver attached)
simplebus0: <sram-controller@01c00000> mem 0x1c00000-0x1c0002f compat allwinner,sun4i-a10-sram-controller (no driver attached)
simplebus0: <interrupt-controller@01c00030> mem 0x1c00030-0x1c0003b irq 6 compat allwinner,sun7i-a20-sc-nmi (no driver attached)
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 7 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10dmac0
simplebus0: <spi@01c05000> mem 0x1c05000-0x1c05fff irq 8 compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <spi@01c06000> mem 0x1c06000-0x1c06fff irq 9 disabled compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <ethernet@01c0b000> mem 0x1c0b000-0x1c0bfff irq 10 disabled compat allwinner,sun4i-a10-emac (no driver attached)
simplebus0: <mdio@01c0b080> mem 0x1c0b080-0x1c0b093 disabled compat allwinner,sun4i-a10-mdio (no driver attached)
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 11 on simplebus0
a10_mmc0: cannot activate mmc clock
device_attach: a10_mmc0 attach returned 6
simplebus0: <mmc@01c10000> mem 0x1c10000-0x1c10fff irq 12 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c11000> mem 0x1c11000-0x1c11fff irq 13 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c12000> mem 0x1c12000-0x1c12fff irq 14 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <usb@01c13000> mem 0x1c13000-0x1c133ff irq 15 compat allwinner,sun4i-a10-musb (no driver attached)
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from awusbphy0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 16 on simplebus0
ehci0: Could not activate clock
device_attach: ehci0 attach returned 6
simplebus0: <usb@01c14400> mem 0x1c14400-0x1c144ff irq 17 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <crypto-engine@01c15000> mem 0x1c15000-0x1c15fff irq 18 compat allwinner,sun4i-a10-crypto (no driver attached)
simplebus0: <spi@01c17000> mem 0x1c17000-0x1c17fff irq 19 disabled compat allwinner,sun4i-a10-spi (no driver attached)
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 20 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahci0: Caps: NCQ SNTF SS ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: Caps:
random: harvesting attach, 8 bytes (4 bits) from ahcich0
random: harvesting attach, 8 bytes (4 bits) from ahci0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 21 on simplebus0
ehci0: Could not activate clock
device_attach: ehci0 attach returned 6
simplebus0: <usb@01c1c400> mem 0x1c1c400-0x1c1c4ff irq 22 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <spi@01c1f000> mem 0x1c1f000-0x1c1ffff irq 23 disabled compat allwinner,sun4i-a10-spi (no driver attached)
gpiobus0: <OFW GPIO bus> on gpio0
gpioled0: <GPIO led> at pin 149 on gpiobus0
random: harvesting attach, 8 bytes (4 bits) from gpioled0
random: harvesting attach, 8 bytes (4 bits) from gpiobus0
gpioc0: <GPIO controller> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpioc0
simplebus0: <timer@01c20c00> mem 0x1c20c00-0x1c20c8f irq 25,26,27,28,29,30 compat allwinner,sun4i-a10-timer (no driver attached)
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
random: harvesting attach, 8 bytes (4 bits) from aw_wdog0
simplebus0: <pwm@01c20e00> mem 0x1c20e00-0x1c20e0b disabled compat allwinner,sun7i-a20-pwm (no driver attached)
simplebus0: <ir@01c21800> mem 0x1c21800-0x1c2183f irq 31 compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <ir@01c21c00> mem 0x1c21c00-0x1c21c3f irq 32 disabled compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <lradc@01c22800> mem 0x1c22800-0x1c228ff irq 33 disabled compat allwinner,sun4i-a10-lradc-keys (no driver attached)
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 34 on simplebus0
pcm0: Mixer "vol":
pcm0: Mixer "line":
pcm0: Mixer "rec":
random: harvesting attach, 8 bytes (4 bits) from pcm0
simplebus0: <eeprom@01c23800> mem 0x1c23800-0x1c239ff compat allwinner,sun7i-a20-sid (no driver attached)
simplebus0: <rtp@01c25000> mem 0x1c25000-0x1c250ff irq 35 compat allwinner,sun5i-a13-ts (no driver attached)
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 36 on simplebus0
uart0: console (8861,n,8,1)
uart0: fast interrupt
uart0: PPS capture mode: DCDinvalid
random: harvesting attach, 8 bytes (4 bits) from uart0
simplebus0: <serial@01c28400> mem 0x1c28400-0x1c287ff irq 37 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28800> mem 0x1c28800-0x1c28bff irq 38 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28c00> mem 0x1c28c00-0x1c28fff irq 39 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29000> mem 0x1c29000-0x1c293ff irq 40 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29400> mem 0x1c29400-0x1c297ff irq 41 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29800> mem 0x1c29800-0x1c29bff irq 42 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29c00> mem 0x1c29c00-0x1c29fff irq 43 disabled compat snps,dw-apb-uart (no driver attached)
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 44 on simplebus0
iichb0: could not activate i2c clock
device_attach: iichb0 attach returned 6
simplebus0: <i2c@01c2b000> mem 0x1c2b000-0x1c2b3ff irq 45 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff irq 46 on simplebus0
iichb0: could not activate i2c clock
device_attach: iichb0 attach returned 6
simplebus0: <i2c@01c2b800> mem 0x1c2b800-0x1c2bbff irq 47 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2c000> mem 0x1c2c000-0x1c2c3ff irq 48 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 49 on simplebus0
dwc0: could not activate gmac module
device_attach: dwc0 attach returned 6
simplebus0: <hstimer@01c60000> mem 0x1c60000-0x1c60fff irq 50,51,52,53 compat allwinner,sun7i-a20-hstimer (no driver attached)
simplebus0: <ps2@01c2a000> mem 0x1c2a000-0x1c2a3ff irq 55 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
simplebus0: <ps2@01c2a400> mem 0x1c2a400-0x1c2a7ff irq 56 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
ofwbus0: <ahci-5v> disabled compat regulator-fixed (no driver attached)
ofwbus0: <usb0-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <usb1-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <usb2-vbus> compat regulator-fixed (no driver attached)
ofwbus0: <vcc3v0> compat regulator-fixed (no driver attached)
ofwbus0: <vcc3v3> compat regulator-fixed (no driver attached)
ofwbus0: <vcc5v0> compat regulator-fixed (no driver attached)
ofwbus0: <leds> compat gpio-leds (no driver attached)
ofwbus0: <gmac-3v3> compat regulator-fixed (no driver attached)
cryptosoft0: <software crypto>
crypto: assign cryptosoft0 driver id 0, flags 100663296
crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0
random: harvesting attach, 8 bytes (4 bits) from cryptosoft0
procfs registered
Timecounters tick every 10.000 msec
IPsec: Initialized Security Association Processing.
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 8192
lo0: bpf attached
ahcich0: AHCI reset...
ahcich0: SATA connect timeout time=10000us status=00000000
ahcich0: AHCI reset: device not found
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
mountroot: waiting for device /dev/ufs/rootfs...
Mounting from ufs:/dev/ufs/rootfs failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ufs/rootfs
  vfs.root.mountfrom.options=rw

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot>
Comment 31 Dan MacDonald 2016-03-26 19:46:13 UTC
jmcneil pointed out in IRC that the previous dmesg woukd seem to have been from using the dtb I linked to but the stock test kernel.

Having tried again with both the kernel and dtb linked to in the last post, the kernel boots but there is no USB power.

U-Boot 2015.04 (Mar 08 2016 - 10:01:34) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   SUNXI SD/MMC: 0
reading u-boot.env

** Unable to read "u-boot.env" from mmc0:1 **
Using default environment

HDMI connected: Setting up a 1280x1024 dvi console
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports r3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   dwmac.1c50000
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... cannot reset port 1!?
1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
sunxi# boot
Booting from: mmc 0 ubldr
reading ubldr
262594 bytes read in 78 ms (3.2 MiB/s)
## Starting application at 0x42000094 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7f235458

FreeBSD/armv6 U-Boot loader, Revision 1.2
(root@releng2.nyi.freebsd.org, Tue Mar  8 10:28:28 UTC 2016)

DRAM: 1024MB
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
MMC Device 1 not found
Number of U-Boot devices: 3
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
  Checking unit=1 slice=<auto> partition=<auto>... good.
Booting from disk1s2a:
/boot/kernel/kernel data=0x636324+0x125cdc syms=[0x4+0x8ae20+0x4+0x9ebda]

Hit [Enter] to boot immediately, or any other key for command prompt.


Type '?' for a list of commands, 'help' for more detailed help.
loader> usb start
usb not found
loader> boot -v
Booting...
/boot/dtb/bananapi.dtb size=0x7a5f
Loaded DTB from file 'bananapi.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: -v
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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 11.0-CURRENT #172 232036a(allwinner-clk)-dirty: Sat Mar 26 08:21:36 ADT 2016
    jmcneill@undine.invisible.ca:/usr/home/jmcneill/obj/arm.armv6hf/usr/home/jmcneill/freebsd/sys/A20 arm
FreeBSD clang version 3.7.1 (tags/RELEASE_371/final 255217) 20151225
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a97000.
Preloaded dtb "/boot/dtb/bananapi.dtb" at 0xc0a9777c.
CPU: Cortex A7 rev 4 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB enabled LABT branch prediction disabled
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: 
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
avail memory = 1036029952 (988 MB)
Physical memory chunk(s):
  0x40000000 - 0x7fffffff,  1024 MB ( 262144 pages)
Excluded memory regions:
  0x42200000 - 0x42b53fff,     9 MB (   2388 pages) NoAlloc 
Static device mappings:
  0x01c00000 - 0x01ffffff mapped at VA 0xffb00000
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
ULE: setup cpu 0
ULE: setup cpu 1
snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024]
feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25
random: entropy device external interface
nfslock: pseudo-device
crypto: <crypto core>
mem: <memory>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
kbd0 at kbdmux0
random: harvesting attach, 8 bytes (4 bits) from nexus0
ofwbus0: <Open Firmware Device Tree>
aw_ccu0 on ofwbus0
aw_oscclk0: <Allwinner Oscillator Clock> mem 0x1c20050-0x1c20053 on aw_ccu0
Clock: osc24M, parent: (NULL)(-1), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_oscclk0
clk_fixed0: <Fixed clock> on aw_ccu0
random: harvesting attach, 8 bytes (4 bits) from clk_fixed0
aw_pll0: <Allwinner PLL Clock> mem 0x1c20000-0x1c20003 on aw_ccu0
Clock: pll1, parent: osc24M(0), freq: 912000000
random: harvesting attach, 8 bytes (4 bits) from aw_pll0
aw_pll1: <Allwinner PLL Clock> mem 0x1c20008-0x1c2000f on aw_ccu0
Clock: pll2-1x, parent: osc24M(0), freq: 750000
Clock: pll2-2x, parent: osc24M(0), freq: 750000
Clock: pll2-4x, parent: osc24M(0), freq: 1500000
Clock: pll2-8x, parent: osc24M(0), freq: 3000000
random: harvesting attach, 8 bytes (4 bits) from aw_pll1
aw_pll2: <Allwinner PLL Clock> mem 0x1c20020-0x1c20023 on aw_ccu0
Clock: pll5_ddr, parent: osc24M(0), freq: 432000000
Clock: pll5_other, parent: osc24M(0), freq: 864000000
random: harvesting attach, 8 bytes (4 bits) from aw_pll2
aw_pll3: <Allwinner PLL Clock> mem 0x1c20028-0x1c2002b on aw_ccu0
Clock: pll6_sata, parent: osc24M(0), freq: 100000000
Clock: pll6_other, parent: osc24M(0), freq: 300000000
Clock: pll6, parent: osc24M(0), freq: 600000000
Clock: pll6_div_4, parent: osc24M(0), freq: 150000000
random: harvesting attach, 8 bytes (4 bits) from aw_pll3
aw_cpuclk0: <Allwinner CPU Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
Clock: cpu, parent: pll1(2), freq: 912000000
random: harvesting attach, 8 bytes (4 bits) from aw_cpuclk0
aw_axiclk0: <Allwinner AXI Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
Clock: axi, parent: cpu(0), freq: 304000000
random: harvesting attach, 8 bytes (4 bits) from aw_axiclk0
aw_ahbclk0: <Allwinner AHB Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
Clock: ahb, parent: axi(0), freq: 152000000
random: harvesting attach, 8 bytes (4 bits) from aw_ahbclk0
aw_gate0: <Allwinner AHB Clock Gates> mem 0x1c20060-0x1c20067 on aw_ccu0
Clock: ahb_usb0, parent: ahb(0), freq: 152000000
Clock: ahb_ehci0, parent: ahb(0), freq: 152000000
Clock: ahb_ohci0, parent: ahb(0), freq: 152000000
Clock: ahb_ehci1, parent: ahb(0), freq: 152000000
Clock: ahb_ohci1, parent: ahb(0), freq: 152000000
Clock: ahb_ss, parent: ahb(0), freq: 152000000
Clock: ahb_dma, parent: ahb(0), freq: 152000000
Clock: ahb_bist, parent: ahb(0), freq: 152000000
Clock: ahb_mmc0, parent: ahb(0), freq: 152000000
Clock: ahb_mmc1, parent: ahb(0), freq: 152000000
Clock: ahb_mmc2, parent: ahb(0), freq: 152000000
Clock: ahb_mmc3, parent: ahb(0), freq: 152000000
Clock: ahb_ms, parent: ahb(0), freq: 152000000
Clock: ahb_nand, parent: ahb(0), freq: 152000000
Clock: ahb_sdram, parent: ahb(0), freq: 152000000
Clock: ahb_ace, parent: ahb(0), freq: 152000000
Clock: ahb_emac, parent: ahb(0), freq: 152000000
Clock: ahb_ts, parent: ahb(0), freq: 152000000
Clock: ahb_spi0, parent: ahb(0), freq: 152000000
Clock: ahb_spi1, parent: ahb(0), freq: 152000000
Clock: ahb_spi2, parent: ahb(0), freq: 152000000
Clock: ahb_spi3, parent: ahb(0), freq: 152000000
Clock: ahb_sata, parent: ahb(0), freq: 152000000
Clock: ahb_hstimer, parent: ahb(0), freq: 152000000
Clock: ahb_ve, parent: ahb(0), freq: 152000000
Clock: ahb_tvd, parent: ahb(0), freq: 152000000
Clock: ahb_tve0, parent: ahb(0), freq: 152000000
Clock: ahb_tve1, parent: ahb(0), freq: 152000000
Clock: ahb_lcd0, parent: ahb(0), freq: 152000000
Clock: ahb_lcd1, parent: ahb(0), freq: 152000000
Clock: ahb_csi0, parent: ahb(0), freq: 152000000
Clock: ahb_csi1, parent: ahb(0), freq: 152000000
Clock: ahb_hdmi1, parent: ahb(0), freq: 152000000
Clock: ahb_hdmi0, parent: ahb(0), freq: 152000000
Clock: ahb_de_be0, parent: ahb(0), freq: 152000000
Clock: ahb_de_be1, parent: ahb(0), freq: 152000000
Clock: ahb_de_fe0, parent: ahb(0), freq: 152000000
Clock: ahb_de_fe1, parent: ahb(0), freq: 152000000
Clock: ahb_gmac, parent: ahb(0), freq: 152000000
Clock: ahb_mp, parent: ahb(0), freq: 152000000
Clock: ahb_mali, parent: ahb(0), freq: 152000000
random: harvesting attach, 8 bytes (4 bits) from aw_gate0
aw_apbclk0: <Allwinner APB Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
Clock: apb0, parent: ahb(0), freq: 76000000
random: harvesting attach, 8 bytes (4 bits) from aw_apbclk0
aw_gate1: <Allwinner APB0 Clock Gates> mem 0x1c20068-0x1c2006b on aw_ccu0
Clock: apb0_codec, parent: apb0(0), freq: 76000000
Clock: apb0_spdif, parent: apb0(0), freq: 76000000
Clock: apb0_ac97, parent: apb0(0), freq: 76000000
Clock: apb0_iis0, parent: apb0(0), freq: 76000000
Clock: apb0_iis1, parent: apb0(0), freq: 76000000
Clock: apb0_pio, parent: apb0(0), freq: 76000000
Clock: apb0_ir0, parent: apb0(0), freq: 76000000
Clock: apb0_ir1, parent: apb0(0), freq: 76000000
Clock: apb0_iis2, parent: apb0(0), freq: 76000000
Clock: apb0_keypad, parent: apb0(0), freq: 76000000
random: harvesting attach, 8 bytes (4 bits) from aw_gate1
aw_apbclk1: <Allwinner APB Clock> mem 0x1c20058-0x1c2005b on aw_ccu0
Clock: apb1, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_apbclk1
aw_gate2: <Allwinner APB1 Clock Gates> mem 0x1c2006c-0x1c2006f on aw_ccu0
Clock: apb1_i2c0, parent: apb1(0), freq: 24000000
Clock: apb1_i2c1, parent: apb1(0), freq: 24000000
Clock: apb1_i2c2, parent: apb1(0), freq: 24000000
Clock: apb1_i2c3, parent: apb1(0), freq: 24000000
Clock: apb1_can, parent: apb1(0), freq: 24000000
Clock: apb1_scr, parent: apb1(0), freq: 24000000
Clock: apb1_ps20, parent: apb1(0), freq: 24000000
Clock: apb1_ps21, parent: apb1(0), freq: 24000000
Clock: apb1_i2c4, parent: apb1(0), freq: 24000000
Clock: apb1_uart0, parent: apb1(0), freq: 24000000
Clock: apb1_uart1, parent: apb1(0), freq: 24000000
Clock: apb1_uart2, parent: apb1(0), freq: 24000000
Clock: apb1_uart3, parent: apb1(0), freq: 24000000
Clock: apb1_uart4, parent: apb1(0), freq: 24000000
Clock: apb1_uart5, parent: apb1(0), freq: 24000000
Clock: apb1_uart6, parent: apb1(0), freq: 24000000
Clock: apb1_uart7, parent: apb1(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_gate2
aw_modclk0: <Allwinner Module Clock> mem 0x1c20080-0x1c20083 on aw_ccu0
Clock: nand, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk0
aw_modclk1: <Allwinner Module Clock> mem 0x1c20084-0x1c20087 on aw_ccu0
Clock: ms, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk1
aw_mmcclk0: <Allwinner MMC Clock> mem 0x1c20088-0x1c2008b on aw_ccu0
Clock: mmc0, parent: pll6_other(1), freq: 25000000
random: harvesting attach, 8 bytes (4 bits) from aw_mmcclk0
aw_mmcclk1: <Allwinner MMC Clock> mem 0x1c2008c-0x1c2008f on aw_ccu0
Clock: mmc1, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_mmcclk1
aw_mmcclk2: <Allwinner MMC Clock> mem 0x1c20090-0x1c20093 on aw_ccu0
Clock: mmc2, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_mmcclk2
aw_mmcclk3: <Allwinner MMC Clock> mem 0x1c20094-0x1c20097 on aw_ccu0
Clock: mmc3, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_mmcclk3
aw_modclk2: <Allwinner Module Clock> mem 0x1c20098-0x1c2009b on aw_ccu0
Clock: ts, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk2
aw_modclk3: <Allwinner Module Clock> mem 0x1c2009c-0x1c2009f on aw_ccu0
Clock: ss, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk3
aw_modclk4: <Allwinner Module Clock> mem 0x1c200a0-0x1c200a3 on aw_ccu0
Clock: spi0, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk4
aw_modclk5: <Allwinner Module Clock> mem 0x1c200a4-0x1c200a7 on aw_ccu0
Clock: spi1, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk5
aw_modclk6: <Allwinner Module Clock> mem 0x1c200a8-0x1c200ab on aw_ccu0
Clock: spi2, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk6
aw_modclk7: <Allwinner Module Clock> mem 0x1c200ac-0x1c200af on aw_ccu0
Clock: pata, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk7
aw_modclk8: <Allwinner Module Clock> mem 0x1c200b0-0x1c200b3 on aw_ccu0
Clock: ir0, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk8
aw_modclk9: <Allwinner Module Clock> mem 0x1c200b4-0x1c200b7 on aw_ccu0
Clock: ir1, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk9
aw_modclk10: <Allwinner Module Clock> mem 0x1c200c4-0x1c200c7 on aw_ccu0
Clock: keypad, parent: osc24M(0), freq: 750000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk10
aw_usbclk0: <Allwinner USB Clocks> mem 0x1c200cc-0x1c200cf on aw_ccu0
Clock: usb_ohci0, parent: pll6_other(0), freq: 300000000
Clock: usb_ohci1, parent: pll6_other(0), freq: 300000000
Clock: usb_phy, parent: pll6_other(0), freq: 300000000
random: harvesting attach, 8 bytes (4 bits) from aw_usbclk0
aw_modclk11: <Allwinner Module Clock> mem 0x1c200d4-0x1c200d7 on aw_ccu0
Clock: spi3, parent: osc24M(0), freq: 24000000
random: harvesting attach, 8 bytes (4 bits) from aw_modclk11
aw_gate3: <Allwinner DRAM Clock Gates> mem 0x1c20100-0x1c20103 on aw_ccu0
Clock: dram_ve, parent: pll5_ddr(0), freq: 432000000
Clock: dram_csi0, parent: pll5_ddr(0), freq: 432000000
Clock: dram_csi1, parent: pll5_ddr(0), freq: 432000000
Clock: dram_ts, parent: pll5_ddr(0), freq: 432000000
Clock: dram_tvd, parent: pll5_ddr(0), freq: 432000000
Clock: dram_tve0, parent: pll5_ddr(0), freq: 432000000
Clock: dram_tve1, parent: pll5_ddr(0), freq: 432000000
Clock: dram_output, parent: pll5_ddr(0), freq: 432000000
Clock: dram_de_fe1, parent: pll5_ddr(0), freq: 432000000
Clock: dram_de_fe0, parent: pll5_ddr(0), freq: 432000000
Clock: dram_de_be0, parent: pll5_ddr(0), freq: 432000000
Clock: dram_de_be1, parent: pll5_ddr(0), freq: 432000000
Clock: dram_de_mp, parent: pll5_ddr(0), freq: 432000000
Clock: dram_ace, parent: pll5_ddr(0), freq: 432000000
random: harvesting attach, 8 bytes (4 bits) from aw_gate3
aw_codecclk0: <Allwinner CODEC Clock> mem 0x1c20140-0x1c20143 on aw_ccu0
Clock: codec, parent: pll2-1x(0), freq: 750000
random: harvesting attach, 8 bytes (4 bits) from aw_codecclk0
clk_fixed1: <Fixed clock> on aw_ccu0
random: harvesting attach, 8 bytes (4 bits) from clk_fixed1
clk_fixed2: <Fixed clock> on aw_ccu0
random: harvesting attach, 8 bytes (4 bits) from clk_fixed2
aw_gmacclk0: <Allwinner Module Clock> mem 0x1c20164-0x1c20167 on aw_ccu0
Clock: gmac_tx, parent: gmac_int_tx(1), freq: 125000000
random: harvesting attach, 8 bytes (4 bits) from aw_gmacclk0
clk_fixed3: <Fixed factor clock> on aw_ccu0
random: harvesting attach, 8 bytes (4 bits) from clk_fixed3
random: harvesting attach, 8 bytes (4 bits) from aw_ccu0
simplebus0: <Flattened device tree simple bus> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from simplebus0
regfix0: <Fixed Regulator> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from regfix0
regfix1: <Fixed Regulator> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from regfix1
regfix2: <Fixed Regulator> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from regfix2
regfix3: <Fixed Regulator> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from regfix3
regfix4: <Fixed Regulator> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from regfix4
regfix5: <Fixed Regulator> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from regfix5
regfix6: <Fixed Regulator> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from regfix6
random: harvesting attach, 8 bytes (4 bits) from ofwbus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 24 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpiobus0
Processing 3 pin-config node(s) in pinctrl-0 for spi@01c05000
Processing 2 pin-config node(s) in pinctrl-0 for mmc@01c0f000
Processing 1 pin-config node(s) in pinctrl-0 for phy@01c13400
Processing 1 pin-config node(s) in pinctrl-0 for ir@01c21800
Processing 1 pin-config node(s) in pinctrl-0 for serial@01c28000
Processing 1 pin-config node(s) in pinctrl-0 for i2c@01c2ac00
Processing 1 pin-config node(s) in pinctrl-0 for i2c@01c2b400
Processing 1 pin-config node(s) in pinctrl-0 for ethernet@01c50000
Processing 1 pin-config node(s) in pinctrl-0 for usb0-vbus
Processing 1 pin-config node(s) in pinctrl-0 for usb1-vbus
Processing 1 pin-config node(s) in pinctrl-0 for usb2-vbus
Processing 1 pin-config node(s) in pinctrl-0 for leds
Processing 1 pin-config node(s) in pinctrl-0 for gmac-3v3
random: harvesting attach, 8 bytes (4 bits) from gpio0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 54 on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160
random: harvesting attach, 8 bytes (4 bits) from gic0
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
random: harvesting attach, 8 bytes (4 bits) from generic_timer0
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 27 on simplebus0
rtc0: Using external oscillator
rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s)
random: harvesting attach, 8 bytes (4 bits) from rtc0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu0: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu1: missing 'clock-frequency' property
random: harvesting attach, 8 bytes (4 bits) from cpu1
random: harvesting attach, 8 bytes (4 bits) from cpulist0
ofwbus0: <pmu> irq 4,5 compat arm,cortex-a7-pmu (no driver attached)
aw_ccu0: <clk@01c20018> mem 0x1c20018-0x1c2001b compat allwinner,sun7i-a20-pll4-clk (no driver attached)
aw_ccu0: <clk@01c20040> mem 0x1c20040-0x1c20043 compat allwinner,sun7i-a20-pll4-clk (no driver attached)
aw_ccu0: <clk@01c2013c> mem 0x1c2013c-0x1c2013f compat allwinner,sun4i-a10-ve-clk (no driver attached)
aw_ccu0: <clk@01c2015c> mem 0x1c2015c-0x1c2015f compat allwinner,sun5i-a13-mbus-clk (no driver attached)
aw_ccu0: <clk@01c201f0> mem 0x1c201f0-0x1c201f3 compat allwinner,sun7i-a20-out-clk (no driver attached)
aw_ccu0: <clk@01c201f4> mem 0x1c201f4-0x1c201f7 compat allwinner,sun7i-a20-out-clk (no driver attached)
simplebus0: <sram-controller@01c00000> mem 0x1c00000-0x1c0002f compat allwinner,sun4i-a10-sram-controller (no driver attached)
simplebus0: <interrupt-controller@01c00030> mem 0x1c00030-0x1c0003b irq 6 compat allwinner,sun7i-a20-sc-nmi (no driver attached)
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 7 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from a10dmac0
simplebus0: <spi@01c05000> mem 0x1c05000-0x1c05fff irq 8 compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <spi@01c06000> mem 0x1c06000-0x1c06fff irq 9 disabled compat allwinner,sun4i-a10-spi (no driver attached)
simplebus0: <ethernet@01c0b000> mem 0x1c0b000-0x1c0bfff irq 10 disabled compat allwinner,sun4i-a10-emac (no driver attached)
simplebus0: <mdio@01c0b080> mem 0x1c0b080-0x1c0b093 disabled compat allwinner,sun4i-a10-mdio (no driver attached)
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 11 on simplebus0
a10_mmc0: DMA status: enabled
mmc0: <MMC/SD bus> on a10_mmc0
random: harvesting attach, 8 bytes (4 bits) from mmc0
random: harvesting attach, 8 bytes (4 bits) from a10_mmc0
simplebus0: <mmc@01c10000> mem 0x1c10000-0x1c10fff irq 12 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c11000> mem 0x1c11000-0x1c11fff irq 13 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <mmc@01c12000> mem 0x1c12000-0x1c12fff irq 14 disabled compat allwinner,sun5i-a13-mmc (no driver attached)
simplebus0: <usb@01c13000> mem 0x1c13000-0x1c133ff irq 15 compat allwinner,sun4i-a10-musb (no driver attached)
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
random: harvesting attach, 8 bytes (4 bits) from awusbphy0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 16 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci0: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus0
random: harvesting attach, 8 bytes (4 bits) from ehci0
simplebus0: <usb@01c14400> mem 0x1c14400-0x1c144ff irq 17 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <crypto-engine@01c15000> mem 0x1c15000-0x1c15fff irq 18 compat allwinner,sun4i-a10-crypto (no driver attached)
simplebus0: <spi@01c17000> mem 0x1c17000-0x1c17fff irq 19 disabled compat allwinner,sun4i-a10-spi (no driver attached)
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 20 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahci0: Caps: NCQ SNTF SS ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: Caps:
random: harvesting attach, 8 bytes (4 bits) from ahcich0
random: harvesting attach, 8 bytes (4 bits) from ahci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 21 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
ehci1: usbpf: Attached
random: harvesting attach, 8 bytes (4 bits) from usbus1
random: harvesting attach, 8 bytes (4 bits) from ehci1
simplebus0: <usb@01c1c400> mem 0x1c1c400-0x1c1c4ff irq 22 compat allwinner,sun7i-a20-ohci (no driver attached)
simplebus0: <spi@01c1f000> mem 0x1c1f000-0x1c1ffff irq 23 disabled compat allwinner,sun4i-a10-spi (no driver attached)
gpioled0: <GPIO led> at pin 149 on gpiobus0
random: harvesting attach, 8 bytes (4 bits) from gpioled0
gpioc0: <GPIO controller> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpioc0
simplebus0: <timer@01c20c00> mem 0x1c20c00-0x1c20c8f irq 25,26,27,28,29,30 compat allwinner,sun4i-a10-timer (no driver attached)
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
random: harvesting attach, 8 bytes (4 bits) from aw_wdog0
simplebus0: <pwm@01c20e00> mem 0x1c20e00-0x1c20e0b disabled compat allwinner,sun7i-a20-pwm (no driver attached)
simplebus0: <ir@01c21800> mem 0x1c21800-0x1c2183f irq 31 compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <ir@01c21c00> mem 0x1c21c00-0x1c21c3f irq 32 disabled compat allwinner,sun4i-a10-ir (no driver attached)
simplebus0: <lradc@01c22800> mem 0x1c22800-0x1c228ff irq 33 disabled compat allwinner,sun4i-a10-lradc-keys (no driver attached)
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 34 on simplebus0
pcm0: Mixer "vol":
pcm0: Mixer "line":
pcm0: Mixer "rec":
random: harvesting attach, 8 bytes (4 bits) from pcm0
simplebus0: <eeprom@01c23800> mem 0x1c23800-0x1c239ff compat allwinner,sun7i-a20-sid (no driver attached)
simplebus0: <rtp@01c25000> mem 0x1c25000-0x1c250ff irq 35 compat allwinner,sun5i-a13-ts (no driver attached)
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 36 on simplebus0
uart0: console (115384,n,8,1)
uart0: fast interrupt
uart0: PPS capture mode: DCDinvalid
random: harvesting attach, 8 bytes (4 bits) from uart0
simplebus0: <serial@01c28400> mem 0x1c28400-0x1c287ff irq 37 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28800> mem 0x1c28800-0x1c28bff irq 38 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c28c00> mem 0x1c28c00-0x1c28fff irq 39 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29000> mem 0x1c29000-0x1c293ff irq 40 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29400> mem 0x1c29400-0x1c297ff irq 41 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29800> mem 0x1c29800-0x1c29bff irq 42 disabled compat snps,dw-apb-uart (no driver attached)
simplebus0: <serial@01c29c00> mem 0x1c29c00-0x1c29fff irq 43 disabled compat snps,dw-apb-uart (no driver attached)
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 44 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
random: harvesting attach, 8 bytes (4 bits) from iic0
axp209_pmu0: <X-Power AXP209 Power Management Unit> at addr 0x68 irq 57 on iicbus0
axp209_pmu0: AXP209 Powered by AC and USB
random: harvesting attach, 8 bytes (4 bits) from axp209_pmu0
random: harvesting attach, 8 bytes (4 bits) from iicbus0
random: harvesting attach, 8 bytes (4 bits) from iichb0
simplebus0: <i2c@01c2b000> mem 0x1c2b000-0x1c2b3ff irq 45 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff irq 46 on simplebus0
iicbus1: <OFW I2C bus> on iichb1
iic1: <I2C generic I/O> on iicbus1
random: harvesting attach, 8 bytes (4 bits) from iic1
random: harvesting attach, 8 bytes (4 bits) from iicbus1
random: harvesting attach, 8 bytes (4 bits) from iichb1
simplebus0: <i2c@01c2b800> mem 0x1c2b800-0x1c2bbff irq 47 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
simplebus0: <i2c@01c2c000> mem 0x1c2c000-0x1c2c3ff irq 48 disabled compat allwinner,sun7i-a20-i2c (no driver attached)
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 49 on simplebus0
dwc0: Can't reset DWC.
device_attach: dwc0 attach returned 6
simplebus0: <hstimer@01c60000> mem 0x1c60000-0x1c60fff irq 50,51,52,53 compat allwinner,sun7i-a20-hstimer (no driver attached)
simplebus0: <ps2@01c2a000> mem 0x1c2a000-0x1c2a3ff irq 55 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
simplebus0: <ps2@01c2a400> mem 0x1c2a400-0x1c2a7ff irq 56 disabled compat allwinner,sun4i-a10-ps2 (no driver attached)
ofwbus0: <ahci-5v> disabled compat regulator-fixed (no driver attached)
ofwbus0: <leds> compat gpio-leds (no driver attached)
cryptosoft0: <software crypto>
crypto: assign cryptosoft0 driver id 0, flags 100663296
crypto: cryptosoft0 registers alg 1 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 2 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 3 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 4 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 5 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 16 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 6 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 7 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 18 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 19 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 20 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 8 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 15 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 9 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 10 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 13 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 14 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 11 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 23 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 25 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 24 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 26 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 27 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 28 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0
crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0
random: harvesting attach, 8 bytes (4 bits) from cryptosoft0
procfs registered
Timecounters tick every 10.000 msec
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 8192
IPsec: Initialized Security Association Processing.
lo0: bpf attached
mmc0: Probing bus
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ahcich0: AHCI reset...
ugen0.1: <Allwinner> at usbus0
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Allwinner> at usbus1
uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ahcich0: SATA connect timeout time=10000us status=00000000
ahcich0: AHCI reset: device not found
mmc0: SD 2.0 interface conditions: OK
mmc0: SD probe: OK (OCR: 0x00ff8000)
mmc0: Current OCR: 0x00ff8000
mmc0: Probing cards
mmc0: New card detected (CID 02544d5341303447039c526d1e009aaf)
mmc0: New card detected (CSD 400e00325b5900001d7b7f800a40005d)
mmc0: Card at relative address 0x1234 added:
mmc0:  card: SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM
mmc0:  bus: 4bit, 50MHz, high speed timing
mmc0:  memory: 7729152 blocks, erase sector 8192 blocks
mmc0: setting transfer rate to 50.000MHz (high speed timing)
mmcsd0: 4GB <SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM> at mmc0 50.0MHz/4bit/65535-block
random: harvesting attach, 8 bytes (4 bits) from mmcsd0
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
GEOM: new disk mmcsd0
mmc0: Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
setting bus width to 4 bits
GEOM_PART: partition 1 on (mmcsd0, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (mmcsd0, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (mmcsd0s2, BSD) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1Es2, BSD) is not aligned on 4194304 bytes
start_init: trying /sbin/init
uhub0: 1 port with 1 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub0
uhub1: 1 port with 1 removable, self powered
random: harvesting attach, 8 bytes (4 bits) from uhub1
Setting hostuuid: 251cce5f-e51a-11e5-b667-855498dbc380.
Setting hostid: 0x17d69c0e.
No suitable dump device was found.
Starting file system checks:
/dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/rootfs: clean, 726562 free (250 frags, 90789 blocks, 0.0% fragmentation)
GEOM_PART: partition 1 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 2 on (diskid/DISK-9C526D1E, MBR) is not aligned on 4194304 bytes
GEOM_PART: partition 1 on (diskid/DISK-9C526D1Es2, BSD) is not aligned on 4194304 bytes
Mounting local file systems:.
Setting hostname: a20.
Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy:random: unblocking device.
.
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>
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Starting devd.
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
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting sshd.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting cron.
Starting background file system checks in 60 seconds.

Thu Jan  1 02:19:31 UTC 1970

FreeBSD/arm (a20) (ttyu0)

login:
Comment 32 Kirill Zdornyy 2016-03-29 08:38:49 UTC
I am experiencing the same issue with USB as Dan MacDonald on a BPI M1+.

When I connect the BPI to a USB hub the light on the USB hub lights up.

When a Logitech K120 USB keyboard is connected to the hub the output I get is:

---

usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT
ugen0.2: <Unknown> at usbus0 (disconnected)
uhub_reattach_port: could not allocate new device

---

When Apple Keyboard is connected to the hub the boot process doesn't advance beyond this point.

---

szarthng USB...
U*$��USB DHCI 1.00
scanning bus 0 for devices... 
Comment 33 Kirill Zdornyy 2016-03-29 09:14:42 UTC
Could this issue be at all related to BPI's USB OTG port and "Mentor Graphics HDRC Inventra Highspeed Dual Role USB controller (MUSB)"?

I will try to get an externally powered USB hub to test if it will make any difference.

References

http://linux-sunxi.org/USB (known issues)
http://irclog.whitequark.org/linux-sunxi/2013-11-21 (search for Inventra)
http://linux-sunxi.org/USB_OTG_Controller_Register_Guide
Comment 34 Emmanuel Vadot 2016-04-05 04:03:38 UTC
So I have a BananaPi M1 now.

Using last available snapshot (FreeBSD-11.0-CURRENT-arm-armv6-BANANAPI-20160308-r296485.img) USB doesn't work.

So I've tried what jmcneill@ and I said on this bug entry :

- Compile a kernel from jmcneill@ clock branch
- Modify the DTS to use the one attached
- I DIDN'T update uboot (so still using stock 201504 from snapshot)

Boot :
load /boot/kernel/kernel.clk
load -t dtb bananapi-clk.dtb

And everything is good.
I've plugged an USB 3.0 thumb stick, it attached and I could use it.

The board is powered from an power adapter (not a usb cable connected to a PC), usign the pwr plug (not the USB OTG one).

Ethernet does not work but it is fixed in my tree (https://github.com/evadot/freebsd/tree/bananapi).

So we will wait for the clk bit to be commited then comes back to you guys to confirm that the bug is resolved.
Comment 35 Dan MacDonald 2016-04-05 06:34:23 UTC
That's good news Emmanuel! A big relief for us all! :)

Ethernet has been working fine for me under the current test image kernel/dtb but I recall it not working under clk as you say.
Comment 36 Emmanuel Vadot 2016-04-09 08:22:50 UTC
Last snapshot (20160408) has USB enabled (but misses ethernet).
Can you test on your boards and confirm that this works for you ?

Thanks,
Comment 37 Dan MacDonald 2016-04-09 14:54:37 UTC
Hi Emmanuel

It's not looking good here unfortunately. First, there is the unwanted surprise regression that the framebuffer (HDMI to DVI at least) isn't working again and sadly neither is USB. There is no USB power during uboot or after the kernel has booted.

There are obviously real differences between the sinovoip BPi (which is what I have) vs the LeMaker BPi M1, which is what I presume you have :(

U-Boot SPL 2015.04 (Apr 08 2016 - 06:36:29)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2


U-Boot 2015.04 (Apr 08 2016 - 06:36:29) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   SUNXI SD/MMC: 0
reading u-boot.env

** Unable to read "u-boot.env" from mmc0:1 **
Using default environment

HDMI connected: Setting up a 1280x1024 dvi console
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports r3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   dwmac.1c50000
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... cannot reset port 1!?
1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... cannot reset port 1!?
1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0 
Booting from: mmc 0 ubldr
reading ubldr
262685 bytes read in 78 ms (3.2 MiB/s)
## Starting application at 0x42000094 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7f235458

FreeBSD/armv6 U-Boot loader, Revision 1.2
(root@releng2.nyi.freebsd.org, Fri Apr  8 07:03:08 UTC 2016)

DRAM: 1024MB
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
MMC Device 1 not found
Number of U-Boot devices: 3
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
  Checking unit=1 slice=<auto> partition=<auto>... good.
Booting from disk1s2a:
/boot/kernel/kernel data=0x634ca4+0x12735c syms=[0x4+0x8acb0+0x4+0x9eae7]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...               
/boot/dtb/bananapi.dtb size=0x80ef
Loaded DTB from file 'bananapi.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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 11.0-CURRENT #0 r297692: Fri Apr  8 07:10:09 UTC 2016
    root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/A20 arm
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
CPU: Cortex A7 rev 4 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB enabled LABT branch prediction disabled
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: 
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
avail memory = 1036029952 (988 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
aw_ccu0 on ofwbus0
aw_oscclk0: <Allwinner Oscillator Clock> mem 0x1c20050-0x1c20053 on aw_ccu0
clk_fixed0: <Fixed clock> on aw_ccu0
aw_pll0: <Allwinner PLL Clock> mem 0x1c20000-0x1c20003 on aw_ccu0
aw_pll1: <Allwinner PLL Clock> mem 0x1c20008-0x1c2000f on aw_ccu0
aw_pll2: <Allwinner PLL Clock> mem 0x1c20020-0x1c20023 on aw_ccu0
aw_pll3: <Allwinner PLL Clock> mem 0x1c20028-0x1c2002b on aw_ccu0
aw_cpuclk0: <Allwinner CPU Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_axiclk0: <Allwinner AXI Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_ahbclk0: <Allwinner AHB Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_gate0: <Allwinner AHB Clock Gates> mem 0x1c20060-0x1c20067 on aw_ccu0
aw_apbclk0: <Allwinner APB Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_gate1: <Allwinner APB0 Clock Gates> mem 0x1c20068-0x1c2006b on aw_ccu0
aw_apbclk1: <Allwinner APB Clock> mem 0x1c20058-0x1c2005b on aw_ccu0
aw_gate2: <Allwinner APB1 Clock Gates> mem 0x1c2006c-0x1c2006f on aw_ccu0
aw_modclk0: <Allwinner Module Clock> mem 0x1c20080-0x1c20083 on aw_ccu0
aw_modclk1: <Allwinner Module Clock> mem 0x1c20084-0x1c20087 on aw_ccu0
aw_mmcclk0: <Allwinner MMC Clock> mem 0x1c20088-0x1c2008b on aw_ccu0
aw_mmcclk1: <Allwinner MMC Clock> mem 0x1c2008c-0x1c2008f on aw_ccu0
aw_mmcclk2: <Allwinner MMC Clock> mem 0x1c20090-0x1c20093 on aw_ccu0
aw_mmcclk3: <Allwinner MMC Clock> mem 0x1c20094-0x1c20097 on aw_ccu0
aw_modclk2: <Allwinner Module Clock> mem 0x1c20098-0x1c2009b on aw_ccu0
aw_modclk3: <Allwinner Module Clock> mem 0x1c2009c-0x1c2009f on aw_ccu0
aw_modclk4: <Allwinner Module Clock> mem 0x1c200a0-0x1c200a3 on aw_ccu0
aw_modclk5: <Allwinner Module Clock> mem 0x1c200a4-0x1c200a7 on aw_ccu0
aw_modclk6: <Allwinner Module Clock> mem 0x1c200a8-0x1c200ab on aw_ccu0
aw_modclk7: <Allwinner Module Clock> mem 0x1c200ac-0x1c200af on aw_ccu0
aw_modclk8: <Allwinner Module Clock> mem 0x1c200b0-0x1c200b3 on aw_ccu0
aw_modclk9: <Allwinner Module Clock> mem 0x1c200b4-0x1c200b7 on aw_ccu0
aw_modclk10: <Allwinner Module Clock> mem 0x1c200c4-0x1c200c7 on aw_ccu0
aw_usbclk0: <Allwinner USB Clocks> mem 0x1c200cc-0x1c200cf on aw_ccu0
aw_modclk11: <Allwinner Module Clock> mem 0x1c200d4-0x1c200d7 on aw_ccu0
aw_gate3: <Allwinner DRAM Clock Gates> mem 0x1c20100-0x1c20103 on aw_ccu0
aw_codecclk0: <Allwinner CODEC Clock> mem 0x1c20140-0x1c20143 on aw_ccu0
clk_fixed1: <Fixed clock> on aw_ccu0
clk_fixed2: <Fixed clock> on aw_ccu0
aw_gmacclk0: <Allwinner Module Clock> mem 0x1c20164-0x1c20167 on aw_ccu0
clk_fixed3: <Fixed factor clock> on aw_ccu0
aw_pll4: <Allwinner PLL Clock> mem 0x1c20010-0x1c20013 on aw_ccu0
aw_pll5: <Allwinner PLL Clock> mem 0x1c20030-0x1c20033 on aw_ccu0
aw_hdmiclk0: <Allwinner HDMI Clock> mem 0x1c20150-0x1c20153 on aw_ccu0
aw_lcdclk0: <Allwinner LCD CH0 Clock> mem 0x1c20118-0x1c2011b on aw_ccu0
aw_lcdclk1: <Allwinner LCD CH1 Clock> mem 0x1c2012c-0x1c2012f on aw_ccu0
aw_debeclk0: <Allwinner Display Engine Backend Clock> mem 0x1c20104-0x1c20107 on aw_ccu0
simplebus0: <Flattened device tree simple bus> on ofwbus0
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
regfix6: <Fixed Regulator> on ofwbus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 10024 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 10055 on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160
generic_timer0: <ARMv7 Generic Timer> irq 10000,10001,10002,10003 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 10031 on simplebus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu1: <Open Firmware CPU> on cpulist0
a10_sramc0: <Allwinner sramc module> mem 0x1c00000-0x1c0002f on simplebus0
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 10007 on simplebus0
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 10011 on simplebus0
mmc0: <MMC/SD bus> on a10_mmc0
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 10016 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 10020 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahcich0: <AHCI channel> at channel 0 on ahci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 10021 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
gpioled0: <GPIO led> at pin 149 on gpiobus0
gpioc0: <GPIO controller> on gpio0
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 10035 on simplebus0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 10037 on simplebus0
uart0: console (115384,n,8,1)
uart1: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 10040 on simplebus0
uart2: <Non-standard ns8250 class UART with FIFOs> mem 0x1c29c00-0x1c29fff irq 10044 on simplebus0
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 10045 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
axp209_pmu0: <X-Power AXP209 Power Management Unit> at addr 0x68 irq 10058 on iicbus0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff irq 10047 on simplebus0
iicbus1: <OFW I2C bus> on iichb1
iic1: <I2C generic I/O> on iicbus1
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 10050 on simplebus0
dwc0: Can't reset DWC.
device_attach: dwc0 attach returned 6
a10hdmi0: <Allwinner HDMI TX> mem 0x1c16000-0x1c16fff on simplebus0
pcm1: <Allwinner HDMI Audio> on simplebus0
fb0: <Allwinner Framebuffer> mem 0x1e60000-0x1e6ffff,0x1c0c000-0x1c0cfff on simplebus0
cryptosoft0: <software crypto>
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <Allwinner> at usbus1
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <Allwinner> at usbus0
uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 4GB <SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM> at mmc0 50.0MHz/4bit/65535-block
fbd0 on fb0
VT: initialize with new VT driver "fb".
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
WARNING: /releng/11-armv6-BANANAPI-snap/usr/obj/usr/src/release/ufs was not properly dismounted
uhub1: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
Setting hostuuid: 2801310e-1dd2-11b2-a3b4-b7bcc1a39a7a.
Setting hostid: 0x39e1084c.
No suitable dump device was found.
Starting file system checks:
/dev/ufs/rootfs: 20105 files, 199847 used, 725296 free (200 frags, 90637 blocks, 0.0% fragmentation)
Mounting local file systems:.
Setting hostname: a20.
Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy:random: unblocking device.
.
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>
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Soft Float compatibility ldconfig path:
Starting devd.
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.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Configuring vt: blanktime.
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting sshd.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting cron.
Starting background file system checks in 60 seconds.

Thu Jan  1 00:10:59 UTC 1970

FreeBSD/arm (a20) (ttyu0)

login:
Comment 38 Dan MacDonald 2016-04-09 15:08:12 UTC
The good news is that the ZFS kernel module is included and loads under the latest images :)
Comment 39 Emmanuel Vadot 2016-04-09 15:10:02 UTC
Could you test with the attached uboot ?

Thanks,
Comment 40 Dan MacDonald 2016-04-09 15:27:39 UTC
I've tried the latest image with the attached uboot flashed. After flashing the newer uboot, like with the older test image I have to manually load the dtb from the loader prompt to get the kernel to boot.

With the newer uboot I get USB power during uboot but USB still doesn't work and USB power cuts out about a minute or two after the kernel has booted.
Comment 41 Emmanuel Vadot 2016-04-09 15:38:43 UTC
Can you post here a full boot with the attached uboot ?

Thanks
Comment 42 Dan MacDonald 2016-04-09 16:10:33 UTC
U-Boot SPL 2016.01 (Mar 23 2016 - 21:24:01)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC


U-Boot 2016.01 (Mar 23 2016 - 21:24:01 +0100) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   SUNXI SD/MMC: 0
reading u-boot.env

** Unable to read "u-boot.env" from mmc0:1 **
Using default environment

HDMI connected: Setting up a 1280x1024 dvi console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports r3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   eth0: ethernet@01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
Hit any key to stop autoboot:  0 
Booting from: mmc 0 ubldr
reading ubldr
262685 bytes read in 77 ms (3.3 MiB/s)
## Starting application at 0x42000094 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7af3e338

FreeBSD/armv6 U-Boot loader, Revision 1.2
(root@releng2.nyi.freebsd.org, Fri Apr  8 07:03:08 UTC 2016)

DRAM: 1024MB
MMC Device 1 not found
Number of U-Boot devices: 2
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
  Checking unit=1 slice=<auto> partition=<auto>... good.
Booting from disk1s2a:
/boot/kernel/kernel data=0x634ca4+0x12735c syms=[0x4+0x8acb0+0x4+0x9eae7]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...               
No valid device tree blob found!

Type '?' for a list of commands, 'help' for more detailed help.
loader> load -t dtb /boot/dtb/bananapi.dtb                      
/boot/dtb/bananapi.dtb size=0x80ef
loader> boot
Booting...
Using DTB from loaded file '/boot/dtb/bananapi.dtb'.
Kernel entry at 0x0x42200100...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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 11.0-CURRENT #0 r297692: Fri Apr  8 07:10:09 UTC 2016
    root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/A20 arm
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
CPU: Cortex A7 rev 4 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB enabled LABT branch prediction disabled
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: 
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
avail memory = 1036029952 (988 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
aw_ccu0 on ofwbus0
aw_oscclk0: <Allwinner Oscillator Clock> mem 0x1c20050-0x1c20053 on aw_ccu0
clk_fixed0: <Fixed clock> on aw_ccu0
aw_pll0: <Allwinner PLL Clock> mem 0x1c20000-0x1c20003 on aw_ccu0
aw_pll1: <Allwinner PLL Clock> mem 0x1c20008-0x1c2000f on aw_ccu0
aw_pll2: <Allwinner PLL Clock> mem 0x1c20020-0x1c20023 on aw_ccu0
aw_pll3: <Allwinner PLL Clock> mem 0x1c20028-0x1c2002b on aw_ccu0
aw_cpuclk0: <Allwinner CPU Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_axiclk0: <Allwinner AXI Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_ahbclk0: <Allwinner AHB Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_gate0: <Allwinner AHB Clock Gates> mem 0x1c20060-0x1c20067 on aw_ccu0
aw_apbclk0: <Allwinner APB Clock> mem 0x1c20054-0x1c20057 on aw_ccu0
aw_gate1: <Allwinner APB0 Clock Gates> mem 0x1c20068-0x1c2006b on aw_ccu0
aw_apbclk1: <Allwinner APB Clock> mem 0x1c20058-0x1c2005b on aw_ccu0
aw_gate2: <Allwinner APB1 Clock Gates> mem 0x1c2006c-0x1c2006f on aw_ccu0
aw_modclk0: <Allwinner Module Clock> mem 0x1c20080-0x1c20083 on aw_ccu0
aw_modclk1: <Allwinner Module Clock> mem 0x1c20084-0x1c20087 on aw_ccu0
aw_mmcclk0: <Allwinner MMC Clock> mem 0x1c20088-0x1c2008b on aw_ccu0
aw_mmcclk1: <Allwinner MMC Clock> mem 0x1c2008c-0x1c2008f on aw_ccu0
aw_mmcclk2: <Allwinner MMC Clock> mem 0x1c20090-0x1c20093 on aw_ccu0
aw_mmcclk3: <Allwinner MMC Clock> mem 0x1c20094-0x1c20097 on aw_ccu0
aw_modclk2: <Allwinner Module Clock> mem 0x1c20098-0x1c2009b on aw_ccu0
aw_modclk3: <Allwinner Module Clock> mem 0x1c2009c-0x1c2009f on aw_ccu0
aw_modclk4: <Allwinner Module Clock> mem 0x1c200a0-0x1c200a3 on aw_ccu0
aw_modclk5: <Allwinner Module Clock> mem 0x1c200a4-0x1c200a7 on aw_ccu0
aw_modclk6: <Allwinner Module Clock> mem 0x1c200a8-0x1c200ab on aw_ccu0
aw_modclk7: <Allwinner Module Clock> mem 0x1c200ac-0x1c200af on aw_ccu0
aw_modclk8: <Allwinner Module Clock> mem 0x1c200b0-0x1c200b3 on aw_ccu0
aw_modclk9: <Allwinner Module Clock> mem 0x1c200b4-0x1c200b7 on aw_ccu0
aw_modclk10: <Allwinner Module Clock> mem 0x1c200c4-0x1c200c7 on aw_ccu0
aw_usbclk0: <Allwinner USB Clocks> mem 0x1c200cc-0x1c200cf on aw_ccu0
aw_modclk11: <Allwinner Module Clock> mem 0x1c200d4-0x1c200d7 on aw_ccu0
aw_gate3: <Allwinner DRAM Clock Gates> mem 0x1c20100-0x1c20103 on aw_ccu0
aw_codecclk0: <Allwinner CODEC Clock> mem 0x1c20140-0x1c20143 on aw_ccu0
clk_fixed1: <Fixed clock> on aw_ccu0
clk_fixed2: <Fixed clock> on aw_ccu0
aw_gmacclk0: <Allwinner Module Clock> mem 0x1c20164-0x1c20167 on aw_ccu0
clk_fixed3: <Fixed factor clock> on aw_ccu0
aw_pll4: <Allwinner PLL Clock> mem 0x1c20010-0x1c20013 on aw_ccu0
aw_pll5: <Allwinner PLL Clock> mem 0x1c20030-0x1c20033 on aw_ccu0
aw_hdmiclk0: <Allwinner HDMI Clock> mem 0x1c20150-0x1c20153 on aw_ccu0
aw_lcdclk0: <Allwinner LCD CH0 Clock> mem 0x1c20118-0x1c2011b on aw_ccu0
aw_lcdclk1: <Allwinner LCD CH1 Clock> mem 0x1c2012c-0x1c2012f on aw_ccu0
aw_debeclk0: <Allwinner Display Engine Backend Clock> mem 0x1c20104-0x1c20107 on aw_ccu0
simplebus0: <Flattened device tree simple bus> on ofwbus0
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
regfix6: <Fixed Regulator> on ofwbus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 10024 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 10055 on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160
generic_timer0: <ARMv7 Generic Timer> irq 10000,10001,10002,10003 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 10031 on simplebus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu1: <Open Firmware CPU> on cpulist0
a10_sramc0: <Allwinner sramc module> mem 0x1c00000-0x1c0002f on simplebus0
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 10007 on simplebus0
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 10011 on simplebus0
mmc0: <MMC/SD bus> on a10_mmc0
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 10016 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 10020 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahcich0: <AHCI channel> at channel 0 on ahci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 10021 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
gpioled0: <GPIO led> at pin 149 on gpiobus0
gpioc0: <GPIO controller> on gpio0
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 10035 on simplebus0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 10037 on simplebus0
uart0: console (115384,n,8,1)
uart1: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 10040 on simplebus0
uart2: <16750 or compatible> mem 0x1c29c00-0x1c29fff irq 10044 on simplebus0
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 10045 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
axp209_pmu0: <X-Power AXP209 Power Management Unit> at addr 0x68 irq 10058 on iicbus0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff irq 10047 on simplebus0
iicbus1: <OFW I2C bus> on iichb1
iic1: <I2C generic I/O> on iicbus1
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 10050 on simplebus0
dwc0: Can't reset DWC.
device_attach: dwc0 attach returned 6
a10hdmi0: <Allwinner HDMI TX> mem 0x1c16000-0x1c16fff on simplebus0
pcm1: <Allwinner HDMI Audio> on simplebus0
fb0: <Allwinner Framebuffer> mem 0x1e60000-0x1e6ffff,0x1c0c000-0x1c0cfff on simplebus0
cryptosoft0: <software crypto>
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <Allwinner> at usbus1
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <Allwinner> at usbus0
uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 4GB <SDHC SA04G 0.3 SN 9C526D1E MFG 10/2009 by 2 TM> at mmc0 50.0MHz/4bit/65535-block
fbd0 on fb0
VT: initialize with new VT driver "fb".
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
uhub1: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
Setting hostuuid: 2801310e-1dd2-11b2-a3b4-b7bcc1a39a7a.
Setting hostid: 0x39e1084c.
ZFS NOTICE: KSTACK_PAGES is 2 which could result in stack overflow panic!
Please consider adding 'options KSTACK_PAGES=4' to your kernel config
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
            to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
             Consider tuning vm.kmem_size and vm.kmem_size_max
             in /boot/loader.conf.
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
No suitable dump device was found.
Starting file system checks:
/dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/rootfs: clean, 725279 free (207 frags, 90634 blocks, 0.0% fragmentation)
Mounting local file systems:.
Setting hostname: a20.
random: unblocking device.
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>
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Soft Float compatibility ldconfig path:
Starting devd.
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.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Configuring vt: blanktime.
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting sshd.
Could not load host key: /etc/ssh/ssh_host_dsa_key
Starting cron.
Starting background file system checks in 60 seconds.

Thu Jan  1 00:00:56 UTC 1970

FreeBSD/arm (a20) (ttyu0)

login:
Comment 43 Dan MacDonald 2016-08-21 12:57:29 UTC
I've just booted FreeBSD-11.0-RC1-arm-armv6-BANANAPI.img on my sinovoip BPi M1 and my USB keyboard works. Hurrah!

Shame HDMI output is still shifty but thats another ticket...