Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2018 12:55:41 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Luc Hondareyte <hondareyte.luc@laposte.net>, freebsd-arm@freebsd.org
Subject:   Re: u-boot 2018-09 and nano pi air
Message-ID:  <ec2f61f9-5c48-0c33-3952-8b216bebf84e@selasky.org>
In-Reply-To: <659cb177-bdb4-54f2-ba77-a03d00af0b25@laposte.net>
References:  <659cb177-bdb4-54f2-ba77-a03d00af0b25@laposte.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/11/18 12:44 PM, Luc Hondareyte via freebsd-arm wrote:
> Hello,
> 
> I just tested generics images 12-BETA4 and 13-CURRENT (r340239) with 
> u-boot 2018-09 package for nanopi-neo-air. Apparently, the USB stack 
> does not work with this release. However, this works with the 2018-09 
> version for nano-pi-neo (not air). I did not have this problem with the 
> 2018-03 version.
> 
> U-Boot SPL 2018.09 (Oct 22 2018 - 20:09:02 +0000)
> DRAM: 512 MiB
> Trying to boot from MMC1
> 
> 
> U-Boot 2018.09 (Oct 22 2018 - 20:09:02 +0000) Allwinner Technology
> 
> CPU:   Allwinner H3 (SUN8I 1680)
> Model: FriendlyARM NanoPi NEO Air
> DRAM:  512 MiB
> MMC:   SUNXI SD/MMC: 0
> Loading Environment from FAT... *** Warning - bad CRC, using default 
> environment
> 
> In:    serial
> Out:   serial
> Err:   serial
> Net:   No ethernet found.
> starting USB...
> No controllers found
> Hit any key to stop autoboot:  0
> => usb info
> USB is stopped. Please issue 'usb start' first.
> => usb start
> starting USB...
> No controllers found
> 
> Another question, what is the status for the eMMC for this board. Here 
> is the dmesg with 13-CURRENT r340239:
> 
> Booting [/boot/kernel/kernel]...
> Using DTB provided by EFI at 0x47ff9000.
> Kernel entry at 0x53000180...
> Kernel args: (null)
> modulep: 0xc0d22000
> relocation_offset 0
> ---<<BOOT>>---
> KDB: debugger backends: ddb
> KDB: current backend: ddb
> Copyright (c) 1992-2018 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>      The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 13.0-CURRENT r340239 GENERIC arm
> FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on 
> LLVM 6.0.1)
> WARNING: WITNESS option enabled, expect reduced performance.
> VT: init without driver.
> module_register: cannot register ofwbus/pcib from kernel; already loaded 
> from kernel
> Module ofwbus/pcib failed to register: 17
> module_register: cannot register simplebus/pcib from kernel; already 
> loaded from kernel
> Module simplebus/pcib failed to register: 17
> No PSCI/SMCCC call function found
> CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000)
> CPU Features:
>    Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, 
> VMSAv7,
>    PXN, LPAE, Coherent Walk
> Optional instructions:
>    SDIV/UDIV, UMULL, SMULL, SIMD(ext)
> LoUU:2 LoC:3 LoUIS:2
> Cache level 1:
>   32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
>   32KB/32B 2-way instruction cache Read-Alloc
> Cache level 2:
>   512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
> real memory  = 0 (0 MB)
> avail memory = 506171392 (482 MB)
> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
> random: unblocking device.
> random: entropy device external interface
> kbd0 at kbdmux0
> ofwbus0: <Open Firmware Device Tree>
> aw_ccu0: <Allwinner Clock Control Unit> on ofwbus0
> clk_fixed0: <Fixed clock> on aw_ccu0
> clk_fixed1: <Fixed clock> on aw_ccu0
> clk_fixed2: <Fixed clock> on aw_ccu0
> simplebus0: <Flattened device tree simple bus> on ofwbus0
> ccu_h3ng0: <Allwinner H3/H5 Clock Control Unit NG> mem 
> 0x1c20000-0x1c203ff on simplebus0
> regfix0: <Fixed Regulator> on ofwbus0
> regfix1: <Fixed Regulator> on ofwbus0
> regfix2: <Fixed Regulator> on ofwbus0
> ccu_sun8i_r0: <Allwinner SUN8I_R Clock Control Unit NG> mem 
> 0x1f01400-0x1f014ff on simplebus0
> gic0: <ARM Generic Interrupt Controller> mem 
> 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff 
> irq 37 on simplebus0
> gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160
> gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 
> 18,19 on simplebus0
> gpiobus0: <OFW GPIO bus> on gpio0
> gpio1: <Allwinner GPIO/Pinmux controller> mem 0x1f02c00-0x1f02fff irq 43 
> on simplebus0
> gpiobus1: <OFW GPIO bus> on gpio1
> rtc0: <Allwinner RTC> mem 0x1f00000-0x1f00053 irq 39,40 on simplebus0
> rtc0: registered as a time-of-day clock, resolution 1.000000s
> generic_timer0: <ARMv7 Generic Timer> irq 0,1,2,3 on ofwbus0
> Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
> Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
> aw_syscon0: <Allwinner syscon> mem 0x1c00000-0x1c00fff on simplebus0
> awusbphy0: <Allwinner USB PHY> mem 
> 0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803,0x1c1c800-0x1c1c803,0x1c1d800-0x1c1d803 
> on simplebus0
> a31dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 4 on 
> simplebus0
> aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 
> 0x1c0f000-0x1c0ffff irq 6 on simplebus0
> mmc0: <MMC/SD bus> on aw_mmc0
> aw_mmc1: <Allwinner Integrated MMC/SD controller> mem 
> 0x1c10000-0x1c10fff irq 7 on simplebus0
> mmc1: <MMC/SD bus> on aw_mmc1
> gpioc0: <GPIO controller> on gpio0
> aw_wdog0: <Allwinner A31 Watchdog> mem 0x1c20ca0-0x1c20cbf irq 25 on 
> simplebus0
> uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 30 on simplebus0
> uart0: console (115384,n,8,1)
> gpioc1: <GPIO controller> on gpio1
> cpulist0: <Open Firmware CPU Group> on ofwbus0
> cpu0: <Open Firmware CPU> on cpulist0
> cpu1: <Open Firmware CPU> on cpulist0
> cpu2: <Open Firmware CPU> on cpulist0
> cpu3: <Open Firmware CPU> on cpulist0
> gpioled0: <GPIO LEDs> on ofwbus0
> cryptosoft0: <software crypto>
> Timecounters tick every 1.000 msec
> usb_needs_explore_all: no devclass
> mmcsd0: 32GB <SDHC 2WCGO 0.7 SN 547F1A8F MFG 06/2016 by 40 BE> at mmc0 
> 50.0MHz/4bit/32768-block
> AW_MMC_INT_RESP_TIMEOUT
> mmc0: Failed to set VCCQ for card at relative address 22964
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> AW_MMC_INT_RESP_TIMEOUT
> mmc1: No compatible cards found on bus
> aw_mmc1: Spurious interrupt - no active request, rint: 0x00000004
> 
> Release APs
> WARNING: WITNESS option enabled, expect reduced performance.
> 

Maybe it has something to do with the FDT file, that the dwcotg0 doesn't 
attach.

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ec2f61f9-5c48-0c33-3952-8b216bebf84e>