From owner-freebsd-arm@freebsd.org Sun Aug 18 12:54:23 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 6775CC6D3B for ; Sun, 18 Aug 2019 12:54:23 +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 46BH7f5QvDz4W8s for ; Sun, 18 Aug 2019 12:54:22 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.nyi.freebsd.org (Postfix) id B855EC6D3A; Sun, 18 Aug 2019 12:54:22 +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 B6DBFC6D39 for ; Sun, 18 Aug 2019 12:54:22 +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 46BH7c65Xpz4W8r for ; Sun, 18 Aug 2019 12:54:20 +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=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=cLszyIzz7Q/gz6hrTxs5WkW7BcImmI3J/qJrr3eC8j4=; b=jQGsYjVgzPDJnmBXt7QUuSFBWCyOPRp2jdguIdIALtO/3hxse73pV6jOs+xTK4inckohQJHlmrLsXRuUGp5VS0S/0nrscdTpkZMEB47C7EFhVcV0Be8F+tyLtSuX4PWsYjrInusvSPJw5f5KqHrH4QWsYMQ+WU+2JCxLcWVUrFU000Cwa2mXL/pzVF/vcLVng5CfVK8JV45j0Bx9d3EnIffJY+iNrwuMLl/Was4JfCoY57k8ha1TJqZ8QieDM7rfOja++GEK6MZhL3xkl0EsLRvq/sbKKc54LGmyAMwESgoLNY5QSMoAbxTtkAWmD1NSE1HAPDggxidbwrcmRvTfKg==; Received: from macmini.bk.cs.huji.ac.il ([132.65.179.19]) by kabab.cs.huji.ac.il with esmtp id 1hzKhL-000JmQ-V7; Sun, 18 Aug 2019 15:54:16 +0300 From: Daniel Braniss Message-Id: <272A8B27-55B4-4145-9569-78CB2ED7A58D@cs.huji.ac.il> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: boot hangs in nanopi-neo Date: Sun, 18 Aug 2019 15:54:15 +0300 In-Reply-To: Cc: "freebsd-arm@freebsd.org" To: Emmanuel Vadot References: <116689BE-9231-4591-BFBB-8E823931D2D2@cs.huji.ac.il> <20190817203259.e028141082262cd0dda70c68@bidouilliste.com> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46BH7c65Xpz4W8r X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=jQGsYjVg; 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.90 / 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)[multipart/alternative,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.83)[-0.829,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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.79), asn: 378(-0.63), country: IL(0.05)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 12:54:23 -0000 > On 18 Aug 2019, at 10:47, Daniel Braniss wrote: >=20 >=20 >=20 >> 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 ? >=20 > I think I found the problem, lousy usb power, will confirm later. confirmed, had too many usb devs connected to my pc (really), changed it=E2=80=99s power supply and now it=E2=80=99s ok! thanks! >=20 > btw, any chance to enable the sid stuff? without it the ethernet = changes it=E2=80=99s mac > =09 > /dts-v1/; > /plugin/; >=20 > / { > compatible =3D "allwinner,sun50i-h5"; > }; >=20 > &{/soc} { > sid: eeprom@1c14000 { > compatible =3D "allwinner,sun50i-h5-sid"; > reg =3D <0x1c14000 0x400>; >=20 > }; > }; >>=20 >> --=20 >> Emmanuel Vadot > = > >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm = > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org = "