From owner-freebsd-arm@FreeBSD.ORG Wed Jan 9 21:00:16 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 24C9B52E for ; Wed, 9 Jan 2013 21:00:16 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-ia0-f182.google.com (mail-ia0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id F1757DAC for ; Wed, 9 Jan 2013 21:00:15 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id x2so1941832iad.27 for ; Wed, 09 Jan 2013 13:00:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=c6tTMu3LhAdoEn9iq9fDJQMmsjbLP0sVuIgreXC2A+A=; b=SzRzezwUJ3fMHM9kqIqpHWNmKljVXP84lM+2JI6iJW77+1Lpnrzp+CqAUr1J9b2xGC oawfuwqSDrsfTvUA7CRdqY1HZ9E7F+Xegb33WUE7Y5VxqcsrI8kUwnROfDHQEeouRJrJ c6sNj4SZKqiMeSG+pSxpt/VyhWNkcHf8dYESaXkAy2IqCIugpTOGLZmIoI6/L2Fw7Uah qFFCf7iExVzsuwoATqPrSdUHhE3Lg3J1XPjyDFfXxGhl0LL3+bCfVMf4rvIO3b8UxjeC 2Auf0HSD+VnNgvr3NhMip5TgXTyfivdDVQLEwgRuMsnmBZzviuHNXjaNvXDgCecytIIY StZg== MIME-Version: 1.0 Received: by 10.50.173.71 with SMTP id bi7mr2595649igc.50.1357765215209; Wed, 09 Jan 2013 13:00:15 -0800 (PST) Sender: giovanni.trematerra@gmail.com Received: by 10.42.67.10 with HTTP; Wed, 9 Jan 2013 13:00:15 -0800 (PST) In-Reply-To: <20130109205029.GB3090@shuttle.bouwman.net> References: <20130109205029.GB3090@shuttle.bouwman.net> Date: Wed, 9 Jan 2013 22:00:15 +0100 X-Google-Sender-Auth: 9Xm9AjALMjVlqkdRMiIvK9b20T4 Message-ID: Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) From: Giovanni Trematerra To: Roel Bouwman Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 21:00:16 -0000 On Wed, Jan 9, 2013 at 9:50 PM, Roel Bouwman wrote: > Hi Daisuke, > >> I have updated clang RPI code based on SVN r244906 + pmap-wb-caches-fix. > >> Now default transfer mode is DMA. If you want to use PIO(previous method), >> you can change it by following command anytime: > > I have been playing with the image for a few hours now, and have already > reflashed it three times. > > After a crash, the fsck at boot fails and causes a panic: > > Relevant info: > > sdhci_bcm0: mem 0xf2300000-0xf23000ff irq 70 on simplebus0 > bcm_sdhci_attach(): SDHCI frequency: 100MHz > mmc0: on sdhci_bcm0 > ... > > mmcsd0: 7695MB at mmc0 25.0MHz/4bit/65535-block > .. > Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... > WARNING: / was not properly dismounted > WARNING: /: mount pending error: blocks 0 files 4 > warning: no time-of-day clock registered, system time will not be set accurately > Setting hostuuid: 12ffa981-59a2-11e2-8bd9-b827eb5f3b9e. > Setting hostid: 0x76c702b3. > Entropy harvesting: interrupts ethernet point_to_point kickstart. > Starting file system checks: > ** SU+J Recovering /dev/mmcsd0s2a > ** Reading 8388608 byte journal from inode 4. > ** Buildingp id 65 (fsck_ufs), uid 0: exited on signal 11 > recovery table. > panic: Bad link elm 0xc10fcb0c next->prev != elm > KDB: enter: panic > [ thread pid 65 tid 100049 ] > Stopped at $d: ldrb r15, [r15, r15, ror r15]! > db> > > This is reprocedable each and every time the system shuts down without > unmounting the filesystems first. > > The card is a standard 8GB SD card. > > > The last time the system crashed was a result of an attempt to load ng_ubt: > > root@raspberry-pi:/boot/kernel # kldload netgraph > root@raspberry-pi:/boot/kernel # kldload ng_ubt > ubt0: on usbus0 > root@raspberry-pi:/boot/kernel # WARNING: attempt to domain_add(bluetooth) after domainfinalize() > dmWARNING: attempt to domain_add(netgraph) after domainfinalize() > smsc0: warning: bulk read error, USB_ERR_IOERROR > ubt0: ubt_bulk_read_callback:885: bulk-in transfer failed: USB_ERR_IOERROR > eubt0: ubt_intr_read_callback:785: interrupt transfer failed: USB_ERR_IOERROR > panic: hashdestroy: hash not empty > KDB: enter: panic > [ thread pid 2595 tid 100080 ] > Stopped at $d: ldrb r15, [r15, r15, ror r15]! > db> Could you show the backtrace? db> bt -- Gianni