From owner-freebsd-arm@freebsd.org Sat Apr 9 02:02:37 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE2ECB08D97 for ; Sat, 9 Apr 2016 02:02:37 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F1441392 for ; Sat, 9 Apr 2016 02:02:37 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id u3922UD3099100 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 9 Apr 2016 02:02:32 GMT (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id u3922U10099099; Fri, 8 Apr 2016 19:02:30 -0700 (PDT) (envelope-from fbsd) Date: Fri, 8 Apr 2016 19:02:29 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Cc: bob prohaska Subject: No usable event timer found on RPI2 Message-ID: <20160409020229.GF71221@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2016 02:02:38 -0000 Hi all, For the last few days attempts to boot new kernels have ended with a panic, "No usable event timer found". Thinking I'd damaged the kernel config file, I replaced it with an unmolested version via svnlite. No improvement. The sources were downloaded yesterday. A kernel from a few days earlier seems to work fine. The only error found during kernel build said something about --- elf_note.o --- /usr/src/sys/arm/arm/elf_note.S:35:1: warning: DWARF2 only supports one section per compilation unit .pushsection .note.tag ; .balign 4 ; .long 2f - 1f ; .long 4f - 3f ; .long 1 ; 1: .asciz "FreeBSD" ; 2: .balign 4 ; 3: .long 1100105 ; 4: .balign 4 ; .popsection; ^ ctfconvert -L VERSION -g elf_note.o ERROR: ctfconvert: rc = -1 No entry found [dwarf_next_cu_header_c(61)] --- exception.o --- but this could well be an existing issue that simply hadn't been noticed. Here's the boot transcript: U-Boot 2015.04 (May 30 2015 - 22:13:58) DRAM: 944 MiB WARNING: Caches not enabled RPI 2 Model B MMC: bcm2835_sdhci: 0 reading uboot.env ** Unable to read "uboot.env" from mmc0:1 ** Using default environment In: serial Out: lcd Err: lcd Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 Booting from: mmc 0 ubldr reading ubldr 265922 bytes read in 207 ms (1.2 MiB/s) ## Starting application at 0x02000094 ... Consoles: U-Boot console Compatible U-Boot API signature found @3ab4a4c8 FreeBSD/armv6 U-Boot loader, Revision 1.2 (bob@fbsd.zefox.com, Thu Jun 11 08:12:11 PDT 2015) DRAM: 944MB Number of U-Boot devices: 1 U-Boot env: loaderdev='mmc 0' Found U-Boot device: disk Checking unit=0 slice= partition=... good. /boot/kernel/kernel data=0x60fd24+0x1002dc syms=[0x4+0x83b20+0x4+0x97230] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by U-Boot at address 0x100. Kernel entry at 0x2200100... 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 #70 r297693: Fri Apr 8 16:28:30 PDT 2016 root@www.zefox.com:/usr/obj/usr/src/sys/RPI2 arm FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) VT: init without driver. sema_sysinit CPU: Cortex A7 rev 5 (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: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory = 989851648 (943 MB) avail memory = 957444096 (913 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: mem 0x3f000000-0x3fffffff on ofwbus0 generic_timer0: irq 10000,10001,10002,10003 on ofwbus0 generic_timer0: Unable to alloc int resource. device_attach: generic_timer0 attach returned 6 generic_timer0: irq 10000,10001,10002,10003 on ofwbus0 device_attach: generic_timer0 attach returned 6 intc0: mem 0xb200-0xb3ff on simplebus0 bcmwd0: mem 0x10001c-0x100027 on simplebus0 gpio0: mem 0x200000-0x2000af irq 10004,10005,10006,10007 on simplebus0 gpio0: read-only pins: 46,48-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 gpioled0: at pin 35 on gpiobus0 gpioled1: at pin 47 on gpiobus0 gpioc0: on gpio0 iichb0: mem 0x205000-0x20501f irq 10008 on simplebus0 iicbus0: on iichb0 iic0: on iicbus0 iichb1: mem 0x804000-0x80401f irq 10009 on simplebus0 iicbus1: on iichb1 iic1: on iicbus1 spi0: mem 0x204000-0x20401f irq 10010 on simplebus0 spibus0: on spi0 bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff irq 10011,10012,10013,10014,10015,10016,10017,10018,10019,10020,10021,10022,10023 on simplebus0 mbox0: mem 0xb880-0xb8bf irq 10024 on simplebus0 sdhci_bcm0: mem 0x300000-0x3000ff irq 10025 on simplebus0 mmc0: on sdhci_bcm0 uart0: mem 0x201000-0x201fff irq 10026 on simplebus0 uart0: console (115200,n,8,1) vchiq0: mem 0xb800-0xb84f irq 10027 on simplebus0 vchiq: local ver 8 (min 3), remote ver 8. pcm0: on vchiq0 bcm283x_dwcotg0: mem 0x980000-0x99ffff irq 10028 on simplebus0 usbus0 on bcm283x_dwcotg0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 fb0: on ofwbus0 fbd0 on fb0 VT: initialize with new VT driver "fb". fb0: 1824x984(1824x984@0,0) 24bpp fb0: fbswap: 1, pitch 5472, base 0x3d359000, screen_size 5428224 cryptosoft0: panic: No usable event timer found! cpuid = 0 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at $d.6: ldrb r15, [r15, r15, ror r15]! db> Many thanks if you got this far, and for any guidance. I'm well and truly baffled. bob prohaska