From owner-freebsd-arm@freebsd.org Sat Apr 9 08:59:34 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 80E06B0820D for ; Sat, 9 Apr 2016 08:59:34 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E2C3187E for ; Sat, 9 Apr 2016 08:59:34 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: by mail-ig0-x235.google.com with SMTP id f1so29085953igr.1 for ; Sat, 09 Apr 2016 01:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=zToSjBWQmdk4TAu3O9BbLYeMzVbaDc4uDKUwHihOHPQ=; b=f5JnTGCnGWFP2a7o8jhSlsTsM1xzjyCqvtkY3eoEONBZxexaaCfTdjk1jh0an7zjSw G3N1+3lkWJcv6Y1AhtcYQXdrvw3sQiftPeMapSYV52im4YuDwbhK8icn082Nsleh4h5P 4wFhV7kJZA084sFT4eWpJvNgrLj/z2lqipQmk+DCgVDDQnSgCReLgg5j4lqFhoUrb3iJ mHX0rtWEe2Mb0CKC34ESnGyCI+GBMDRvhtOLFJGT11lkSyekcwcb4Rzxn7DX0NbfsYiz NGSnlceLjFM63b+iRl4ByljEpzdm4z4RLq88tXNz6S8ySygUK6m6hkLPgPNgVASZNgXo JCOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=zToSjBWQmdk4TAu3O9BbLYeMzVbaDc4uDKUwHihOHPQ=; b=Ex+hSacTBglyf3a08ifgqD4b0fo7iuZlAGPmcgByYdR1FHtd3j7sfHvNZ65eHemvBD QPKPxn/YD9wJy8U+7OYg6j1m9If0ZP9Yb9gHShqJ2V1Lj9wmUGI2hyeQA7Ghj/AXEXbY kYdwgFXPuW8ilZUCRgBInIH/DF40Z5yx+0qGrtLtGKL2Nm1Rew/6DEH0+lApps6/LBfQ hEqDNDX23wyyp76zFPlnZ5C/p96ugoRdFiOpA3mtIgj+KBktGZZL+UBVq1D+FZ0VuKef Lo6nnMnxNrcupiuUEXX8gfx0hb+Mfn2a3tHLpdf5Kf7P0ACGzr2Ok/giWimK/IWHfqam cyOg== X-Gm-Message-State: AOPr4FWFnTr8QpDphg9fugTvt3OSj7oW6LojeTPn1leEc4NmCwJJbnTxMykWwzk2xHOzC7+WEnzpmb39yo4oEQ== MIME-Version: 1.0 X-Received: by 10.50.144.163 with SMTP id sn3mr6743397igb.26.1460192373660; Sat, 09 Apr 2016 01:59:33 -0700 (PDT) Received: by 10.64.126.104 with HTTP; Sat, 9 Apr 2016 01:59:33 -0700 (PDT) In-Reply-To: <20160409020229.GF71221@www.zefox.net> References: <20160409020229.GF71221@www.zefox.net> Date: Sat, 9 Apr 2016 10:59:33 +0200 Message-ID: Subject: Re: No usable event timer found on RPI2 From: Svatopluk Kraus To: bob prohaska Cc: "freebsd-arm@freebsd.org" , bob prohaska Content-Type: text/plain; charset=UTF-8 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 08:59:34 -0000 On Sat, Apr 9, 2016 at 4:02 AM, bob prohaska wrote: > 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 The problem is here. Recently, bcm283x interrupt controllers were reworked for new interrupt framework and enabled by default. As I don't see that local_intc is attached in your dmesg, you use stale dts (dtb) files. My rpi2 dmesg looks this way: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: mem 0x3f000000-0x3fffffff on ofwbus0 local_intc0: mem 0x40000000-0x400000ff on simplebus0 generic_timer0: irq 10000,10001,10002,10003 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 intc0: mem 0xb200-0xb3ff irq 10004 on simplebus0 > 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 > > _______________________________________________ > 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"