From owner-freebsd-arm@freebsd.org Sun Nov 11 11:56:17 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A693A11014A2 for ; Sun, 11 Nov 2018 11:56:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71DDB7CEE0 for ; Sun, 11 Nov 2018 11:56:16 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [178.17.145.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 77C662600F1; Sun, 11 Nov 2018 12:56:14 +0100 (CET) Subject: Re: u-boot 2018-09 and nano pi air To: Luc Hondareyte , freebsd-arm@freebsd.org References: <659cb177-bdb4-54f2-ba77-a03d00af0b25@laposte.net> From: Hans Petter Selasky Message-ID: Date: Sun, 11 Nov 2018 12:55:41 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: <659cb177-bdb4-54f2-ba77-a03d00af0b25@laposte.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 71DDB7CEE0 X-Spamd-Result: default: False [-4.44 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.turbocat.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.94)[-0.936,0]; FREEMAIL_TO(0.00)[laposte.net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-1.19)[ipnet: 2a01:4f8::/29(-2.95), asn: 24940(-2.99), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2018 11:56:17 -0000 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 > ---<>--- > 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: > aw_ccu0: on ofwbus0 > clk_fixed0: on aw_ccu0 > clk_fixed1: on aw_ccu0 > clk_fixed2: on aw_ccu0 > simplebus0: on ofwbus0 > ccu_h3ng0: mem > 0x1c20000-0x1c203ff on simplebus0 > regfix0: on ofwbus0 > regfix1: on ofwbus0 > regfix2: on ofwbus0 > ccu_sun8i_r0: mem > 0x1f01400-0x1f014ff on simplebus0 > gic0: 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: mem 0x1c20800-0x1c20bff irq > 18,19 on simplebus0 > gpiobus0: on gpio0 > gpio1: mem 0x1f02c00-0x1f02fff irq 43 > on simplebus0 > gpiobus1: on gpio1 > rtc0: mem 0x1f00000-0x1f00053 irq 39,40 on simplebus0 > rtc0: registered as a time-of-day clock, resolution 1.000000s > generic_timer0: 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: mem 0x1c00000-0x1c00fff on simplebus0 > awusbphy0: mem > 0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803,0x1c1c800-0x1c1c803,0x1c1d800-0x1c1d803 > on simplebus0 > a31dmac0: mem 0x1c02000-0x1c02fff irq 4 on > simplebus0 > aw_mmc0: mem > 0x1c0f000-0x1c0ffff irq 6 on simplebus0 > mmc0: on aw_mmc0 > aw_mmc1: mem > 0x1c10000-0x1c10fff irq 7 on simplebus0 > mmc1: on aw_mmc1 > gpioc0: on gpio0 > aw_wdog0: 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: on gpio1 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > gpioled0: on ofwbus0 > cryptosoft0: > Timecounters tick every 1.000 msec > usb_needs_explore_all: no devclass > mmcsd0: 32GB 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