From owner-freebsd-arm@freebsd.org Sun Aug 18 07:47:54 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 80E89BF10D for ; Sun, 18 Aug 2019 07:47:54 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46B8L16YLyz4Fc8 for ; Sun, 18 Aug 2019 07:47:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.nyi.freebsd.org (Postfix) id E0CD4BF10C; Sun, 18 Aug 2019 07:47:53 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E08ABBF10B for ; Sun, 18 Aug 2019 07:47:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46B8L00lnfz4Fby for ; Sun, 18 Aug 2019 07:47:51 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=QVT4/7XMA93s82hZYyEUZeOpcZtvg/qAz4cfUGipY9w=; b=tUH593Hec5LD5tSyejmZ5GiZd4F1inbwpqBdhoVO77RvHbYYJkBzNN1015nwjNjokeHWI8oVPYhg5c2U2jg1e8AKDbC/Af2TWwlTv54nkewpfbJOuL+1BlRjjJixo1MnxtCAMjx/aBn8Qhix6aTx6z0Jpxk371jT+WnPORSXXjt7iQAfWjthwMPpMLtDBCDGJSsE8Ec76ZzMzh5JK96VP9Bw6KdNhGzMJMyLT9wJg/SAFF43MfixeAvBMyHGlmJyssQRAoMd9ObYKo4WXdEg1PnPjOSOLMbC+TLVDILUR6xqePLKvdaFlzD0h0Jeiwk86oyhNDTnO/5miN5c4/U8yg==; Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1hzFul-0004yE-IO; Sun, 18 Aug 2019 10:47:47 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: boot hangs in nanopi-neo From: Daniel Braniss In-Reply-To: <20190817203259.e028141082262cd0dda70c68@bidouilliste.com> Date: Sun, 18 Aug 2019 10:47:46 +0300 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <116689BE-9231-4591-BFBB-8E823931D2D2@cs.huji.ac.il> <20190817203259.e028141082262cd0dda70c68@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 46B8L00lnfz4Fby X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=tUH593He; dmarc=none; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il X-Spamd-Result: default: False [-2.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[huji.ac.il]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[210.116.65.132.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.85)[-0.846,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/13, country:IL]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.28)[ipnet: 132.64.0.0/13(-0.82), asn: 378(-0.66), country: IL(0.05)]; RCVD_COUNT_TWO(0.00)[2] 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, 18 Aug 2019 07:47:54 -0000 > On 17 Aug 2019, at 21:32, Emmanuel Vadot = wrote: >=20 > On Sat, 17 Aug 2019 19:55:13 +0300 > Daniel Braniss wrote: >=20 >> after some months, I decided to upgrade, but now it stucks here: >> ? >>=20 >> FreeBSD 13.0-CURRENT #13 r351126M: Sat Aug 17 13:19:09 IDT 2019 >> = danny@pe-44:/home/obj/pe-44/arm/neo/r+d/vanilla/13/arm.armv7/r+d/vanilla/1= 3/sys/AWG arm >> FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on = LLVM 8.0.1) >> WARNING: WITNESS option enabled, expect reduced performance. >> ? >>=20 >> hub3: on = usbus3 >> mmcsd0: 8GB at mmc0 = 50.0MHz/4bit/32768-block >> Release A >>=20 >> at which point it hangs solid. >>=20 >> BTW, I installed a newer u-boot (maybe it?s not the very latest) >>=20 >> this is the full console output: >>=20 >> USB Device(s) found >> scanning bus 1 for devices... 1 USB Device(s) found >> scanning bus 2 for devices... 1 USB Device(s) found >> scanning bus 3 for devices... 1 USB Device(s) found >> scanning usb for storage devices... 0 Storage Device(s) found >> Hit any key to stop autoboot: 0=20 >> switch to partitions #0, OK >> mmc0 is current device >> Scanning mmc 0:1... >> Found U-Boot script /boot.scr >> 199 bytes read in 0 ms >> ## Executing script at 43100000 >> 384788 bytes read in 24 ms (15.3 MiB/s) >> ## Starting application at 0x42000000 ... >> Consoles: U-Boot console =20 >> Compatible U-Boot API signature found @0x5bf6bca0 >>=20 >> FreeBSD/armv7 U-Boot loader, Revision 1.3 >> (Sat Aug 17 12:49:43 IDT 2019 danny@pe-44) >>=20 >> DRAM: 512MB >> Number of U-Boot devices: 1 >> U-Boot env: loaderdev not set, will probe all devices. >> Found U-Boot device: disk >> Probing all devices... >> Checking unit=3D0 slice=3D partition=3D... good. >> Booting from disk0s2a: >> Loading /boot/defaults/loader.conf >> Loading /boot/device.hints >> Loading /boot/loader.conf >> Loading /boot/loader.conf.local >> Loading kernel... >> /boot/kernel/kernel text=3D0x870a68 data=3D0xb4e18+0x259768 = syms=3D[0x4+0xaa340+0x4+0x10d2ac] >> Loading configured modules... >> can't find '/boot/entropy' >>=20 >> Hit [Enter] to boot immediately, or any other key for command prompt. >> Booting [/boot/kernel/kernel]... =20 >> /boot/dtb/sun8i-h3-nanopi-neo.dtb size=3D0x64d1 >> Loaded DTB from file 'sun8i-h3-nanopi-neo.dtb'. >> Kernel entry at 0x42400180... >> Kernel args: (null) >> ---<>--- >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2019 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 #13 r351126M: Sat Aug 17 13:19:09 IDT 2019 >> = danny@pe-44:/home/obj/pe-44/arm/neo/r+d/vanilla/13/arm.armv7/r+d/vanilla/1= 3/sys/AWG arm >> FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on = LLVM 8.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 >> CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) >> CPU Features:=20 >> Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, = VMSAv7, >> PXN, LPAE, Coherent Walk >> Optional instructions:=20 >> SDIV/UDIV, UMULL, SMULL, SIMD(ext) >> LoUU:2 LoC:3 LoUIS:2=20 >> 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 =3D 536870912 (512 MB) >> avail memory =3D 506929152 (483 MB) >> No PSCI/SMCCC call function found >> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs >> arc4random: WARNING: initial seeding bypassed the cryptographic = random device because it was not yet seeded and the knob = 'bypass_before_seeding' was enabled. >> random: entropy device external interface >> kbd0 at kbdmux0 >> ofwbus0: >> ofw_clkbus0: on ofwbus0 >> clk_fixed0: on ofw_clkbus0 >> clk_fixed1: on ofw_clkbus0 >> simplebus0: on ofwbus0 >> regfix0: on ofwbus0 >> regfix1: on ofwbus0 >> regfix2: on ofwbus0 >> rtc0: mem 0x1f00000-0x1f003ff irq 40,41 on simplebus0 >> rtc0: registered as a time-of-day clock, resolution 1.000000s >> ccu_h3ng0: mem = 0x1c20000-0x1c203ff on simplebus0 >> ccu_sun8i_r0: mem = 0x1f01400-0x1f014ff on simplebus0 >> gic0: mem = 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c= 87fff 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 = 44 on simplebus0 >> gpiobus1: on gpio1 >> 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-0x1c= 1c803,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 >> ehci0: mem = 0x1c1a000-0x1c1a0ff irq 10 on simplebus0 >> usbus0: EHCI version 1.0 >> usbus0 on ehci0 >> ohci0: mem 0x1c1a400-0x1c1a4ff irq 11 on = simplebus0 >> usbus1 on ohci0 >> ehci1: mem = 0x1c1d000-0x1c1d0ff irq 16 on simplebus0 >> usbus2: EHCI version 1.0 >> usbus2 on ehci1 >> ohci1: mem 0x1c1d400-0x1c1d4ff irq 17 on = simplebus0 >> usbus3 on ohci1 >> gpioc0: on gpio0 >> awg0: mem 0x1c30000-0x1c3ffff irq 22 on = simplebus0 >> miibus0: on awg0 >> ukphy0: PHY 0 on miibus0 >> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, = auto-flow >> ukphy1: PHY 1 on miibus0 >> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, = auto-flow >> awg0: Ethernet address: f2:00:e7:81:61:2e >> aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 25 on = simplebus0 >> uart2: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 30 on = simplebus0 >> uart2: 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 >> usbus0: 480Mbps High Speed USB v2.0 >> usbus1: 12Mbps Full Speed USB v1.0 >> usbus2: 480Mbps High Speed USB v2.0 >> usbus3: 12Mbps Full Speed USB v1.0 >> ugen1.1: at usbus1 >> uhub0 on usbus1 >> uhub0: on = usbus1 >> ugen0.1: at usbus0 >> uhub1 on usbus0 >> uhub1: on = usbus0 >> ugen2.1: at usbus2 >> uhub2 on usbus2 >> uhub2: on = usbus2 >> ugen3.1: at usbus3 >> uhub3 on usbus3 >> uhub3: on = usbus3 >> mmcsd0: 8GB at mmc0 = 50.0MHz/4bit/32768-block >> Release A >=20 > Could you boot -v please ? I think I found the problem, lousy usb power, will confirm later. btw, any chance to enable the sid stuff? without it the ethernet changes = it=E2=80=99s mac =09 /dts-v1/; /plugin/; / { compatible =3D "allwinner,sun50i-h5"; }; &{/soc} { sid: eeprom@1c14000 { compatible =3D "allwinner,sun50i-h5-sid"; reg =3D <0x1c14000 0x400>; }; }; >=20 > --=20 > Emmanuel Vadot