From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 00:48:36 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 251EB4B8 for ; Tue, 1 Jan 2013 00:48:36 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-oa0-f43.google.com (mail-oa0-f43.google.com [209.85.219.43]) by mx1.freebsd.org (Postfix) with ESMTP id B671A8FC08 for ; Tue, 1 Jan 2013 00:48:35 +0000 (UTC) Received: by mail-oa0-f43.google.com with SMTP id k1so12072099oag.16 for ; Mon, 31 Dec 2012 16:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ep1/DpBVWvqBnSri0z3+j1vn0qIVLSrpjDLBgFF2WRg=; b=bf236IbBXpjmmp0qP77kUqZddXtPili9OBLL3uCHXjgEL+hMMwWNwFNjamw0aWkxYC WvItmOjBRSS2KHVRx3d9yCouXWXpJ6AyQ5rdPbXuNLuxva6lfiwYc2d+rGItX6bW+kcV uQe25GOazf83egAtGRyvKLonD/OuSfl67y1hgQYXHbdWrYLOyobajJll4j6kV/P/hHZ2 E08K1op0okwrFDlVVWVzYbVG5/jaJ4oz730q+2leiL7KCbs4gBx9lkvI+vgTztfisRoP u92gVMx89JCtOVBcG1xzgGMWDmM2yLtCo/UBp8rUIcStgEmfiRQEQF8CRizww+6y9Gri hl0A== MIME-Version: 1.0 Received: by 10.182.212.70 with SMTP id ni6mr35745402obc.44.1357000924803; Mon, 31 Dec 2012 16:42:04 -0800 (PST) Received: by 10.182.156.6 with HTTP; Mon, 31 Dec 2012 16:42:04 -0800 (PST) Date: Mon, 31 Dec 2012 16:42:04 -0800 Message-ID: Subject: Rpi boot process stuck on mountroot From: hiren panchasara To: freebsd-arm Content-Type: multipart/mixed; boundary=e89a8f50395e15338704d22f664d X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 01 Jan 2013 00:48:36 -0000 --e89a8f50395e15338704d22f664d Content-Type: text/plain; charset=UTF-8 Hi All, I am using Tim Kientzle's scripts and have been harassing him with stupid questions. Many thanks to him for his work. I am LX Series 8gig Class 10 sd card with Tim's most current scripts and -head as my sources. dmesg on attaching the card: mmc0: on sdhci0 mmcsd0: 7600MB at mmc0 50.0MHz/4bit/65535-block But getting error on mountroot as shown in the attachment. Any help/pointers would be appreciated. Thanks, Hiren --e89a8f50395e15338704d22f664d-- From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:00:36 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DCDE621 for ; Tue, 1 Jan 2013 01:00:36 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id 7476B8FC0C for ; Tue, 1 Jan 2013 01:00:35 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id D02DF3AC92 for ; Tue, 1 Jan 2013 10:00:27 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id B534439FA3 for ; Tue, 1 Jan 2013 10:00:27 +0900 (JST) Message-ID: From: "Daisuke Aoyama" To: References: In-Reply-To: Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) Date: Tue, 1 Jan 2013 10:00:22 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP 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: Tue, 01 Jan 2013 01:00:36 -0000 Happy New Year! I have updated clang RPI code based on SVN r244906. major change is: o always use unaligned for clang (see http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004464.html) o remove NO_INLINE from kernel config, add MSDOSFS since test10 o drop invalidate I-Cache, add flush BTB instead o increase MIN_PERIOD to 200 for down clock mode stability o workaround for broken stupid dev/mmc (should be rewritten) o control HS mode in bcm2853_sdhci, replace bus_space handle o add hw.bcm2835.sdhci.hs MIB (disabled by default) o add isb/dsb/dmb and mb/rmb/wmb macro in atomic.h o add bs_barrier, bs_vaddr operation o hand optimaized asm routine(bcm2835_asm.S) for tc_get_timecount and SD card transfer Above changes make over 80% faster than previous kernel by ports/benchmarks/unixbench. Before: ---------------------------------------------------------------------------------------- Execl Throughput 43.0 83.3 19.4 File Copy 1024 bufsize 2000 maxblocks 3960.0 1464.0 3.7 File Copy 256 bufsize 500 maxblocks 1655.0 1563.0 9.4 File Copy 4096 bufsize 8000 maxblocks 5800.0 1405.0 2.4 Pipe Throughput 12440.0 79059.7 63.6 Pipe-based Context Switching 4000.0 6815.1 17.0 Process Creation 126.0 242.2 19.2 Shell Scripts (8 concurrent) 6.0 27.9 46.5 ---------------------------------------------------------------------------------------- After (depend on your SD card spec, of course): ---------------------------------------------------------------------------------------- Execl Throughput 43.0 89.8 20.9 (1.1x) File Copy 1024 bufsize 2000 maxblocks 3960.0 2622.0 6.6 (1.8x) File Copy 256 bufsize 500 maxblocks 1655.0 1595.0 9.6 (1.0x) File Copy 4096 bufsize 8000 maxblocks 5800.0 7287.0 12.6 (5.1x) Pipe Throughput 12440.0 101503.0 81.6 (1.3x) Pipe-based Context Switching 4000.0 10609.1 26.5 (1.6x) Process Creation 126.0 274.7 21.8 (1.1x) Shell Scripts (8 concurrent) 6.0 27.9 46.5 (1.0x) ---------------------------------------------------------------------------------------- Also, SD card should be set to 25MHz and 4bit respectively. (DS mode, 100Mbps = 12.5MB/s) ---------------------------------------------------------------------------------------- root@raspberry-pi:~ # dd if=/dev/mmcsd0 of=/dev/null bs=1m count=32 32+0 records in 32+0 records out 33554432 bytes transferred in 3.231259 secs (10384322 bytes/sec) ---------------------------------------------------------------------------------------- You can get the pre-build image from my archives: http://www.peach.ne.jp/archives/rpi/ (At this time, freebsd-pi-clang-20130101.img.gz is the latest version.) Download and decompress it, then write it to SD. This image requires SD 4GB or more. I'm using as headless server. So, you need a serial console for seeing full boot log. If you want the video out, please remove the line of "setconsole=comconsole" in /boot/loader.rc. If you need to change the value on it, please mount the second partition (e.g. /dev/da0s2a). This version includes complete source tree of r244906. But the patch is not applied. You must apply the patch manually. Note: first time, it takes about 2 minutes for generating the SSH keys. Using config is here: http://www.peach.ne.jp/archives/rpi/config/RPI-B-test11 New kernel only is here: http://www.peach.ne.jp/archives/rpi/kernel/ Source and pacth is here: http://www.peach.ne.jp/archives/rpi/patch/ For more, please read this: http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004421.html http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004331.html http://shell.peach.ne.jp/aoyama/ ---------------------------------------------------------------------- Pre-configured for: MEM 496MB/GPU 16MB/SWAP 512MB I/O: multi-console (primary serial) IP address: 192.168.1.240 Default router: 192.168.1.1 DNS: 192.168.1.1 sshd: enabled ntpdate: enabled (0.freebsd.pool.ntp.org) User: pi Password: raspberry Password(root): raspberry ---------------------------------------------------------------------- First, you may need to edit pre-configured files: /boot/loader.rc /etc/fstab /etc/rc.conf /etc/hosts /etc/resolv.conf /etc/master.passwd /etc/group ---------------------------------------------------------------------- example /etc/make.conf: ---------------------------------------------------------------------- WITHOUT_X11=yes WITH_CLANG=yes WITH_CLANG_IS_CC=yes # For clang NO_WERROR= WERROR= CFLAGS=-O2 -fno-strict-aliasing -pipe -march=armv6z -mtune=arm1176jzf-s -mfloat-abi=soft COPTFLAGS=-O1 -fno-strict-aliasing -pipe -march=armv6z -mtune=arm1176jzf-s -mfloat-abi=soft ---------------------------------------------------------------------- How to build the kernel in RPI: # fetch -o /usr http://www.peach.ne.jp/archives/rpi/patch/src-244906-20130101.patch.gz # fetch -o /usr/src/sys/arm/conf http://www.peach.ne.jp/archives/rpi/config/RPI-B-test11 # cd /usr/src # gzcat /usr/src-244906-20130101.patch.gz | patch # make buildkernel KERNCONF=RPI-B-test11 WITH_FDT=yes (wait about 50 minutes) Don't forget to add NO_WERROR= and WERROR= to /etc/make.conf if you use clang. If you already applied previous patch, you can remove it by like this: # cd /usr/src # gzcat /usr/src-XXXXXX-YYYYMMDD.patch.gz | patch -R If you want re-compile without cleaning, you can try to use like this: # make buildkernel KERNCONF=RPI-B-test11 WITH_FDT=yes -DNO_CLEAN -DNO_CLEANDIR ---------------------------------------------------------------------- How to use GPT USB stick in RPI: (if you use something, delete/destory it before doing) # gpart show # gpart delete -i N da0 (where N is number of a partition) # gpart destroy -F da0 (create new partition and format) # gpart create -s gpt da0 # gpart add -t freebsd-ufs da0 # gpart show # newfs -U -j /dev/da0p1 (mount it) # mount /dev/da0p1 /mnt ---------------------------------------------------------------------- How to mount boot partition (MSDOS partition): # mount -t msdosfs /dev/mmcsd0s1 /mnt After this, you can edit the files such as config.txt in the boot partition. ---------------------------------------------------------------------- Enjoy clang world in Raspberry Pi! Thank you. -- Daisuke Aoyama From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:01:07 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B84B655 for ; Tue, 1 Jan 2013 01:01:07 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 202688FC0C for ; Tue, 1 Jan 2013 01:01:06 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id r01115Aw095365 for ; Mon, 31 Dec 2012 18:01:05 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r01112s3086191; Mon, 31 Dec 2012 18:01:02 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: Rpi boot process stuck on mountroot From: Ian Lepore To: hiren panchasara In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Mon, 31 Dec 2012 18:01:02 -0700 Message-ID: <1357002062.54953.135.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm 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: Tue, 01 Jan 2013 01:01:07 -0000 On Mon, 2012-12-31 at 16:42 -0800, hiren panchasara wrote: > Hi All, > > I am using Tim Kientzle's scripts and have been harassing him with > stupid questions. > Many thanks to him for his work. > > I am LX Series 8gig Class 10 sd card with Tim's most current scripts > and -head as my sources. > > dmesg on attaching the card: > > mmc0: on sdhci0 > mmcsd0: 7600MB at > mmc0 50.0MHz/4bit/65535-block > > But getting error on mountroot as shown in the attachment. > > Any help/pointers would be appreciated. > Hmm. If it's an 8gb card it's HC by definition, and it says it detected an SDHC card, so running at 50mhz shouldn't be a problem. It would be interesting to see if it works if you force it to run as a non-HC at 25mhz, using this patch... http://people.freebsd.org/~gonzo/patches/u-boot-pi-nohs.diff -- Ian From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:21:17 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74B45989; Tue, 1 Jan 2013 01:21:17 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2C08B8FC13; Tue, 1 Jan 2013 01:21:16 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r011LE8U059818; Mon, 31 Dec 2012 20:21:15 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Mon, 31 Dec 2012 20:21:15 -0500 From: Brett Wynkoop To: Tim Kientzle Subject: Re: CFT: Overhauled CPSW driver for BeagleBone Message-ID: <20121231202115.10615df6@ivory.wynn.com> In-Reply-To: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> References: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, freebsd-current Current 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: Tue, 01 Jan 2013 01:21:17 -0000 Greeting- This is a follow up to my previous private message about how your driver is working on my BeagleBone. wynkoop@beaglebone:~ % w 8:15PM up 15:17, 2 users, load averages: 0.05, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE WHAT root u0 - 5:00AM 3:36 -csh (csh) wynkoop pts/0 cherry.wynn.com 2:05PM - w wynkoop@beaglebone:~ % date Mon Dec 31 20:15:13 EST 2012 wynkoop@beaglebone:~ % As you can see I am logged in on pts/0 since 2:05PM. I was never able to keep an ssh connection alive more than 30-40 min with the driver that is in head. I think you should check it into head now so people setting up new BBs get the benefit. As discussed off list there is still room for improvement, but I think that can be better handled if this much more stable driver goes into the tree sooner rather than later. It will allow for more testing and feedback to assist with the next round of improvements. This thing is running so well now that I am about to put a web server on the box and give it a static IP address. Once we have USB I think the BB will become my primary mail and web server......Think of the power I will save! -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:28:40 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DAB5A8E for ; Tue, 1 Jan 2013 01:28:40 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-oa0-f48.google.com (mail-oa0-f48.google.com [209.85.219.48]) by mx1.freebsd.org (Postfix) with ESMTP id BEC568FC08 for ; Tue, 1 Jan 2013 01:28:39 +0000 (UTC) Received: by mail-oa0-f48.google.com with SMTP id h2so12079111oag.35 for ; Mon, 31 Dec 2012 17:28:33 -0800 (PST) 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:content-type; bh=Qpdgoy1wAdJ77wkCs8kAE8zPAxKokOsbNJiIf6IZiZ4=; b=pfqn+bBwJ7j/9bm7Qh8uOPuA0x1m9NuS3tdi1nJ5ijPJJdTPay9EXSWmMNK2UqWBWo zyVtr1It20RI9kZ4O0rRSmo6n2uuWatGJTEPpuqn+Mp2EMz4ogIe57fVG0Y+RphRqIxI Kk4T0fBLAYA3Km7PtdTKs07g8M71TQwUx1nujkxN9/ogn4p5qMjzacGF8exItK90ONl9 3YgTkm4HPhsNlP2vtQxZrLPVsKZ4GJTX/nsjBjT+6l09fqZaZU5Z0DFqj1ZW9k6n+CYp F9pH/OJ29MPQW4EN36iSPTeifaTGzxdpeMXCq6mnT2SlcWLOp1FSkAtgczt1/s2m/jYy zrFA== MIME-Version: 1.0 Received: by 10.60.19.161 with SMTP id g1mr24141865oee.117.1357003713469; Mon, 31 Dec 2012 17:28:33 -0800 (PST) Received: by 10.182.156.6 with HTTP; Mon, 31 Dec 2012 17:28:33 -0800 (PST) In-Reply-To: <1357002062.54953.135.camel@revolution.hippie.lan> References: <1357002062.54953.135.camel@revolution.hippie.lan> Date: Mon, 31 Dec 2012 17:28:33 -0800 Message-ID: Subject: Re: Rpi boot process stuck on mountroot From: hiren panchasara To: Ian Lepore Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm 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: Tue, 01 Jan 2013 01:28:40 -0000 On Mon, Dec 31, 2012 at 5:01 PM, Ian Lepore wrote: > On Mon, 2012-12-31 at 16:42 -0800, hiren panchasara wrote: >> Hi All, >> >> I am using Tim Kientzle's scripts and have been harassing him with >> stupid questions. >> Many thanks to him for his work. >> >> I am LX Series 8gig Class 10 sd card with Tim's most current scripts >> and -head as my sources. >> >> dmesg on attaching the card: >> >> mmc0: on sdhci0 >> mmcsd0: 7600MB at >> mmc0 50.0MHz/4bit/65535-block >> >> But getting error on mountroot as shown in the attachment. >> >> Any help/pointers would be appreciated. >> > > Hmm. If it's an 8gb card it's HC by definition, and it says it detected > an SDHC card, so running at 50mhz shouldn't be a problem. It would be > interesting to see if it works if you force it to run as a non-HC at > 25mhz, using this patch... > > http://people.freebsd.org/~gonzo/patches/u-boot-pi-nohs.diff Thanks for the quick reply, Ian. But I could not find drivers/mmc/sdhci.c as listed in these diffs. I am using head at revision 244918. [hirenp@flymockour-l7 /usr/src/head]$ find . -iname sdhci.c ./sys/dev/sdhci/sdhci.c [hirenp@flymockour-l7 /usr/src/head]$ [hirenp@flymockour-l7 /usr/src/head]$ grep -r "mmc->host_caps" * [hirenp@flymockour-l7 /usr/src/head]$ Am I missing something? Thanks, Hiren > > -- Ian > > From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:30:48 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03DE1ACF for ; Tue, 1 Jan 2013 01:30:48 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by mx1.freebsd.org (Postfix) with ESMTP id B335B8FC0A for ; Tue, 1 Jan 2013 01:30:47 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id ta14so11899966obb.5 for ; Mon, 31 Dec 2012 17:30:46 -0800 (PST) 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:content-type; bh=4ukZc9amK4OruJTHAR4yoBjn4KUwuJxjWCXWIyEQWEA=; b=RyCtfXnpTlw1oz9I5g818C8zjLweOObGKjS3D+B5PfL8MZs/9m0GgDzh42NCh7SdTi h2PY1Pafxtbw4+JMDnnkOW0i9IyacmPF9R6Y4f8edNujIdAust6dSatWYKlhnbw05lBe Y3AYdNsxTKux7ILcEbAOcrbzT/CgFxfukfV2A4UEOapdD6O/0SgBv3higiPdzx3zOJvh D+jUgbpm/qFdkIKqV7s4nWZ+c1KyJULd6x6G9mHlFxIwmE+9qjn1hKGkm6zbN88CmbfZ eukp9Dl0QoDRj7E08r9nRvSJJgWvKRm0F+hSSAmKB/4KMdulgwAsLg5ebZp8WJrNPlBI vMzw== MIME-Version: 1.0 Received: by 10.60.169.135 with SMTP id ae7mr23049064oec.82.1357003846912; Mon, 31 Dec 2012 17:30:46 -0800 (PST) Received: by 10.182.156.6 with HTTP; Mon, 31 Dec 2012 17:30:46 -0800 (PST) In-Reply-To: References: <1357002062.54953.135.camel@revolution.hippie.lan> Date: Mon, 31 Dec 2012 17:30:46 -0800 Message-ID: Subject: Re: Rpi boot process stuck on mountroot From: hiren panchasara To: Ian Lepore Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm 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: Tue, 01 Jan 2013 01:30:48 -0000 On Mon, Dec 31, 2012 at 5:28 PM, hiren panchasara wrote: > On Mon, Dec 31, 2012 at 5:01 PM, Ian Lepore > wrote: >> On Mon, 2012-12-31 at 16:42 -0800, hiren panchasara wrote: >>> Hi All, >>> >>> I am using Tim Kientzle's scripts and have been harassing him with >>> stupid questions. >>> Many thanks to him for his work. >>> >>> I am LX Series 8gig Class 10 sd card with Tim's most current scripts >>> and -head as my sources. >>> >>> dmesg on attaching the card: >>> >>> mmc0: on sdhci0 >>> mmcsd0: 7600MB at >>> mmc0 50.0MHz/4bit/65535-block >>> >>> But getting error on mountroot as shown in the attachment. >>> >>> Any help/pointers would be appreciated. >>> >> >> Hmm. If it's an 8gb card it's HC by definition, and it says it detected >> an SDHC card, so running at 50mhz shouldn't be a problem. It would be >> interesting to see if it works if you force it to run as a non-HC at >> 25mhz, using this patch... >> >> http://people.freebsd.org/~gonzo/patches/u-boot-pi-nohs.diff > > Thanks for the quick reply, Ian. > > But I could not find drivers/mmc/sdhci.c as listed in these diffs. > > I am using head at revision 244918. > > [hirenp@flymockour-l7 /usr/src/head]$ find . -iname sdhci.c > ./sys/dev/sdhci/sdhci.c > [hirenp@flymockour-l7 /usr/src/head]$ > > [hirenp@flymockour-l7 /usr/src/head]$ grep -r "mmc->host_caps" * > [hirenp@flymockour-l7 /usr/src/head]$ > > Am I missing something? Aah, you meant u-boot drivers. Let me try and see. Thanks, Hiren > > Thanks, > Hiren >> >> -- Ian >> >> From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:37:47 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 785AFBB5 for ; Tue, 1 Jan 2013 01:37:47 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 48C308FC08 for ; Tue, 1 Jan 2013 01:37:46 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r011bhiN017391; Tue, 1 Jan 2013 01:37:43 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id wkg4huyvveiwgd2ia4zmv4pz4a; Tue, 01 Jan 2013 01:37:43 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: Rpi boot process stuck on mountroot Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: <1357002062.54953.135.camel@revolution.hippie.lan> Date: Mon, 31 Dec 2012 17:37:41 -0800 Content-Transfer-Encoding: 7bit Message-Id: <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> References: <1357002062.54953.135.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm 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: Tue, 01 Jan 2013 01:37:47 -0000 On Dec 31, 2012, at 5:01 PM, Ian Lepore wrote: > On Mon, 2012-12-31 at 16:42 -0800, hiren panchasara wrote: >> Hi All, >> >> I am using Tim Kientzle's scripts and have been harassing him with >> stupid questions. >> Many thanks to him for his work. >> >> I am LX Series 8gig Class 10 sd card with Tim's most current scripts >> and -head as my sources. >> >> dmesg on attaching the card: >> >> mmc0: on sdhci0 >> mmcsd0: 7600MB at >> mmc0 50.0MHz/4bit/65535-block >> >> But getting error on mountroot as shown in the attachment. >> >> Any help/pointers would be appreciated. >> > > Hmm. If it's an 8gb card it's HC by definition, and it says it detected > an SDHC card, so running at 50mhz shouldn't be a problem. It would be > interesting to see if it works if you force it to run as a non-HC at > 25mhz, using this patch... > > http://people.freebsd.org/~gonzo/patches/u-boot-pi-nohs.diff My build scripts already apply that patch when they build U-Boot. Hiren's problem is the FreeBSD kernel failing to mountroot. The kernel should be doing its own probe and configuration of the SD card. I saw a similar problem a little while back here and noticed it failed exactly when the kernel probed it at 50MHz. When the kernel probed at 25MHz all was good. Tim From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 01:49:51 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50159CAE for ; Tue, 1 Jan 2013 01:49:51 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id AD8658FC0C for ; Tue, 1 Jan 2013 01:49:50 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id C85B83AC92; Tue, 1 Jan 2013 10:49:49 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id B07FE39FA3; Tue, 1 Jan 2013 10:49:49 +0900 (JST) Message-ID: <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> From: "Daisuke Aoyama" To: "Tim Kientzle" , "Ian Lepore" References: <1357002062.54953.135.camel@revolution.hippie.lan> <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> In-Reply-To: <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> Subject: Re: Rpi boot process stuck on mountroot Date: Tue, 1 Jan 2013 10:49:51 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-arm 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: Tue, 01 Jan 2013 01:49:51 -0000 > On Dec 31, 2012, at 5:01 PM, Ian Lepore wrote: > >> On Mon, 2012-12-31 at 16:42 -0800, hiren panchasara wrote: >>> Hi All, >>> >>> I am using Tim Kientzle's scripts and have been harassing him with >>> stupid questions. >>> Many thanks to him for his work. >>> >>> I am LX Series 8gig Class 10 sd card with Tim's most current scripts >>> and -head as my sources. >>> >>> dmesg on attaching the card: >>> >>> mmc0: on sdhci0 >>> mmcsd0: 7600MB at >>> mmc0 50.0MHz/4bit/65535-block >>> >>> But getting error on mountroot as shown in the attachment. >>> >>> Any help/pointers would be appreciated. >>> >> >> Hmm. If it's an 8gb card it's HC by definition, and it says it detected >> an SDHC card, so running at 50mhz shouldn't be a problem. It would be >> interesting to see if it works if you force it to run as a non-HC at >> 25mhz, using this patch... >> >> http://people.freebsd.org/~gonzo/patches/u-boot-pi-nohs.diff > > My build scripts already apply that patch when > they build U-Boot. > > Hiren's problem is the FreeBSD kernel failing to mountroot. > The kernel should be doing its own probe and configuration > of the SD card. > > I saw a similar problem a little while back here and > noticed it failed exactly when the kernel probed it at > 50MHz. When the kernel probed at 25MHz all was > good. There is two factor. One of is dev/mmc never check an error condition of the result. Other is RPI does not work 50MHz with some SD cards. I have posted the workaround patch today. http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html -- Daisuke Aoyama From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 03:00:12 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 498A4334 for ; Tue, 1 Jan 2013 03:00:12 +0000 (UTC) (envelope-from dev@macdevshanghai.com) Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) by mx1.freebsd.org (Postfix) with ESMTP id E5EB28FC14 for ; Tue, 1 Jan 2013 03:00:11 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id d42so6782383qca.1 for ; Mon, 31 Dec 2012 19:00:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=mve6lm90N3msmm/4BDDVyYU2yQ9o1e1cKfHrT2/5We0=; b=eDTjprmc0KBl4CW3GCL09MyNd6IgBwHFon0qNULvXDdy6r5WQjBfqLQueOyTBvlD2K G/8inXEHAY6VqKaq5LZveCbkWN9c1Eb0gl2LrZ9NkG6jlIM9D0dgyol6d3otFVU7g4ZC 3jRfVqNlYLsiuhjVk7BVPspXuurGoL6g/yRol5wpfNbL8FpEwuUmSrYTJVSOn65IeypY C6WAdjGY4jFvsE9itKbBPLWaD+qWuPE/OmTmMWg9S93l3q/Sr07qAXxHKJ8KrLJT49tF s71G8kT9ka7B43xS4Y0bqdz23TMI9IXcZMGf8hlWaZ1V9FS5wGu81/mjMvN2vadY6VOQ 5rgQ== MIME-Version: 1.0 Received: by 10.49.29.135 with SMTP id k7mr23293640qeh.39.1357009205346; Mon, 31 Dec 2012 19:00:05 -0800 (PST) Received: by 10.49.64.228 with HTTP; Mon, 31 Dec 2012 19:00:05 -0800 (PST) X-Originating-IP: [101.228.106.104] In-Reply-To: References: Date: Tue, 1 Jan 2013 11:00:05 +0800 Message-ID: Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) From: "dev, dev" To: Daisuke Aoyama X-Gm-Message-State: ALoCoQnt/zxPzwsbGgVR0e1laaj7/M3zuWi7jZ6RKrTzdUkoI+a/6GT7JillrfLb+wbgYZ8AiN1B Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 01 Jan 2013 03:00:12 -0000 use you pre build kernel boot: root@raspberry-pi:~ # uname -a FreeBSD raspberry-pi.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r244906M: Tue Jan 1 06:59:21 JST 2013 aoyama@fbs.local:/usr/obj-rpi-clang/arm.armv6/usr/src/sys/RPI-B-test11 arm root@raspberry-pi:~ # dd if=/dev/mmcsd0 of=/dev/null bs=1m count=32 32+0 records in 32+0 records out 33554432 bytes transferred in 3.160636 secs (10616355 bytes/sec) I will continue test! yarshure 2013/1/1 Daisuke Aoyama > dd if=/dev/mmcsd0 of=/dev/null bs=1m count=32 From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 03:22:29 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EAB846A6 for ; Tue, 1 Jan 2013 03:22:29 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from mail129c7.megamailservers.com (mail129c7.megamailservers.com [69.49.98.229]) by mx1.freebsd.org (Postfix) with ESMTP id 80D5C8FC0A for ; Tue, 1 Jan 2013 03:22:28 +0000 (UTC) X-Authenticated-User: hurds.sasktel.net Received: from stephen.hurd.local (ip70-187-145-241.oc.oc.cox.net [70.187.145.241]) (authenticated bits=0) by mail129c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id r012NAPG030487 for ; Mon, 31 Dec 2012 21:23:12 -0500 Message-ID: <50E2488F.6010506@sasktel.net> Date: Mon, 31 Dec 2012 18:23:11 -0800 From: Stephen Hurd User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:16.0) Gecko/20121022 Firefox/16.0 SeaMonkey/2.13.1 MIME-Version: 1.0 To: freebsd-arm Subject: Re: Rpi boot process stuck on mountroot References: <1357002062.54953.135.camel@revolution.hippie.lan> <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> In-Reply-To: <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-CSC: 0 X-CHA: v=1.1 cv=irLj17ZF5ABOTBuyAu2t31N+Nq5xiP0nh7CWcFrUZ/0= c=1 sm=1 a=sd1-78TbSwQA:10 a=Fi2vhVeW2BcA:10 a=YxfxW3ofkq8A:10 a=8nJEP1OIZ-IA:10 a=qWhSLQ/2FgUpSQgLv9E1tw==:17 a=6I5d2MoRAAAA:8 a=eCIUKNaFY_JaK2AMAg0A:9 a=wPNLvfGTeEIA:10 a=kpCrhyn8lwkA:10 a=qWhSLQ/2FgUpSQgLv9E1tw==:117 X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A020206.50E24891.006D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 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: Tue, 01 Jan 2013 03:22:30 -0000 Daisuke Aoyama wrote: > There is two factor. > One of is dev/mmc never check an error condition of the result. > Other is RPI does not work 50MHz with some SD cards. > I have posted the workaround patch today. > > http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html Another thing to consider is the power. When voltage levels between TP1 and TP2 are below around 4.6V, I see a lot more of this failure. From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 03:52:33 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20585A57 for ; Tue, 1 Jan 2013 03:52:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by mx1.freebsd.org (Postfix) with ESMTP id C51F38FC0C for ; Tue, 1 Jan 2013 03:52:32 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id x4so11901332obh.38 for ; Mon, 31 Dec 2012 19:52:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=ZVNrx3Tm2VYtDHHCUR1Bw1+tcJqBCpwLvQpu3cG3Xgs=; b=F3XpGzS1xhe/ugzDCqI+Mf+JOni4wdvraFh39fm27IyW1h+QgUJBaUymQ6OIdb5W8D Da0Ex9BSXGi3akQEaUG52QjdFYPso2sFnbN8Zo00OLpH3+oGRPW3gqXSxbZp6FUSvqwY zPdwz1F0MyzCIzOa1tv08OOMofJsG3CKN2jtCb5m4aRhlZ77bVUvmz5720P63MSEar2a x0EiZXSGQt3DBdUj8b+sPruC05t7TsotGO5Udzc2koffYJk5W9FQwA8WAD3yC6mKnQi4 3Z30hUlF+hPD7Wy4woFOHrZl6X3K0TG6jn4VgiTcknUK22vcTJNqz/wMa0w8x/ZxAWcp M1Zg== X-Received: by 10.60.13.73 with SMTP id f9mr23169621oec.131.1357012351681; Mon, 31 Dec 2012 19:52:31 -0800 (PST) Received: from [10.11.1.86] (mo-69-34-116-16.sta.embarqhsd.net. [69.34.116.16]) by mx.google.com with ESMTPS id zz6sm31441722oeb.1.2012.12.31.19.52.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 31 Dec 2012 19:52:30 -0800 (PST) Sender: Warner Losh Subject: Re: FreeBSD on Zedboard (Xilinx Zynq-7000) Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20121231121917.GA55152@jail.io> Date: Mon, 31 Dec 2012 21:52:29 -0600 Content-Transfer-Encoding: 7bit Message-Id: References: <50DF4BD9.8080601@sbcglobal.net> <50DF555B.9060601@sbcglobal.net> <6285A410-0470-4A75-9067-7C524831A8DA@bsdimp.com> <50E083B0.2030209@sbcglobal.net> <20121231121917.GA55152@jail.io> To: Ruslan Bukin X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQmo1psPjZRWSc78fQVJGNHZeflx9DmwOf/SYF8yTwYJdkl+pTaMDfuhj+9UFc0Sy1kFLKza Cc: freebsd-arm@freebsd.org, Thomas Skibo 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: Tue, 01 Jan 2013 03:52:33 -0000 On Dec 31, 2012, at 6:19 AM, Ruslan Bukin wrote: > may be patch have to contain > > Index: sys/dev/mmc/mmc.c > =================================================================== > --- sys/dev/mmc/mmc.c (revision 244902) > +++ sys/dev/mmc/mmc.c (working copy) > @@ -1732,3 +1732,4 @@ > DRIVER_MODULE(mmc, at91_mci, mmc_driver, mmc_devclass, NULL, NULL); > DRIVER_MODULE(mmc, sdhci_pci, mmc_driver, mmc_devclass, NULL, NULL); > DRIVER_MODULE(mmc, sdhci_bcm, mmc_driver, mmc_devclass, NULL, NULL); > +DRIVER_MODULE(mmc, sdhci_fdt, mmc_driver, mmc_devclass, NULL, NULL); Why aren't the last three just 'sdhci'? Warner > > On Sun, Dec 30, 2012 at 10:10:56AM -0800, Thomas Skibo wrote: >> >> >> On 12/29/12 12:49 PM, Warner Losh wrote: >>> Cool! >>> >>> But don't be a tease! Share the code :) >>> >> >> I've put the source code up at http://www.thomasskibo.com/zedbsd >> >> --Thomas >> >> -- >> -------- >> Thomas Skibo >> ThomasSkibo@sbcglobal.net >> >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 08:58:42 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1E9F2C82 for ; Tue, 1 Jan 2013 08:58:42 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-oa0-f50.google.com (mail-oa0-f50.google.com [209.85.219.50]) by mx1.freebsd.org (Postfix) with ESMTP id D0E368FC0C for ; Tue, 1 Jan 2013 08:58:41 +0000 (UTC) Received: by mail-oa0-f50.google.com with SMTP id n16so12367134oag.9 for ; Tue, 01 Jan 2013 00:58:41 -0800 (PST) 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:content-type; bh=IKaCDtwPXM3OqnybkdPtKkbc9O0qzvzAbt1J+sUrhFI=; b=CM40awNU3qFL77bn0kZA7TXgYF7HPDMg+O8OvmvE75BOA8kAP+SxLW6dH+WRbLM99F GVZaWxwE+4Dzin3KklMTtCGWv8db8v3Fo1iFNtzabq6FVTON4dnovZpSzDf5Gvh8olzm +P0sf3IxuI8fnEqWgYe5yuDxB2ZghvNNHD+rvb0R8Ze5+GzJ3rQUclJ1o+hVUr0Y27g8 BhJhRFb34hizvwbPMBDMgdfNFpfYfIYzZVvhpsx1GH64y8kENs9pWAmR91DohQf6ATwV /jY/YhZytaVOb97juuNUCk4LoBMRZksnO63aIpetxv7eiZPxrtyPcAGtmxM/EJrB4XMI tzaQ== MIME-Version: 1.0 Received: by 10.60.31.130 with SMTP id a2mr24779249oei.95.1357030721145; Tue, 01 Jan 2013 00:58:41 -0800 (PST) Received: by 10.182.156.6 with HTTP; Tue, 1 Jan 2013 00:58:41 -0800 (PST) In-Reply-To: <50E2488F.6010506@sasktel.net> References: <1357002062.54953.135.camel@revolution.hippie.lan> <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> <50E2488F.6010506@sasktel.net> Date: Tue, 1 Jan 2013 00:58:41 -0800 Message-ID: Subject: Re: Rpi boot process stuck on mountroot From: hiren panchasara To: Stephen Hurd Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm 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: Tue, 01 Jan 2013 08:58:42 -0000 On Mon, Dec 31, 2012 at 6:23 PM, Stephen Hurd wrote: > Daisuke Aoyama wrote: >> There is two factor. >> One of is dev/mmc never check an error condition of the result. >> Other is RPI does not work 50MHz with some SD cards. >> I have posted the workaround patch today. >> >> http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html Thanks Daisuke, I will give this a try tomorrow. > > Another thing to consider is the power. When voltage levels between TP1 > and TP2 are below around 4.6V, I see a lot more of this failure. I use my android phone charger to power rpi. Is that okay? Thanks, Hiren From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 16:12:50 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAEDCAA1; Tue, 1 Jan 2013 16:12:50 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4AF718FC0C; Tue, 1 Jan 2013 16:12:49 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r01GCl0A071385; Tue, 1 Jan 2013 11:12:47 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Tue, 1 Jan 2013 11:12:47 -0500 From: Brett Wynkoop To: Tim Kientzle Subject: Re: CFT: Overhauled CPSW driver for BeagleBone Message-ID: <20130101111247.734a45fd@ivory.wynn.com> In-Reply-To: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> References: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, freebsd-current Current 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: Tue, 01 Jan 2013 16:12:50 -0000 On Mon, 31 Dec 2012 15:25:15 -0800 Tim Kientzle wrote: > I've made some progress reworking the CPSW driver for > BeagleBone and would appreciate any feedback: > > https://github.com/kientzle/cpsw > Greeting- The driver is working much better than the driver currently in head. I have maintained an ssh connection to the BeagleBone for more than 24 hours! Thanks so much Tim! -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 17:37:47 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78E7F24E for ; Tue, 1 Jan 2013 17:37:47 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 2B4328FC08 for ; Tue, 1 Jan 2013 17:37:47 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Tq5mU-00023t-Ph for freebsd-arm@freebsd.org; Tue, 01 Jan 2013 18:37:40 +0100 Received: from h253044.upc-h.chello.nl ([62.194.253.44] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Tq5mU-0005vG-RL for freebsd-arm@freebsd.org; Tue, 01 Jan 2013 18:37:38 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Subject: Re: irc #bsdmips References: <20121231153808.719e8a0c@ivory.wynn.com> Date: Tue, 01 Jan 2013 18:37:38 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <20121231153808.719e8a0c@ivory.wynn.com> User-Agent: Opera Mail/12.12 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.8 X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.1 X-Scan-Signature: 7b320cd02cd98c580351ccd23ba1512a 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: Tue, 01 Jan 2013 17:37:47 -0000 On Mon, 31 Dec 2012 21:38:08 +0100, Brett Wynkoop wrote: > Greeting- > > No idea what is going on, but every efnet IRC server I try to connect > to says that cherry.wynn.com is banned. Ideas guys? > > I have tried using TOR as well and no joy there either. I wonder if > efnet is unhappy because cherry.wynn.com is running a TOR node? > > -Brett > This has probably something to do with this. http://tech.slashdot.org/story/12/12/31/2241229/efnet-paralyzed-by-vulnerability From owner-freebsd-arm@FreeBSD.ORG Tue Jan 1 18:56:09 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D625C9E3; Tue, 1 Jan 2013 18:56:09 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id AAB238FC0A; Tue, 1 Jan 2013 18:56:09 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r01ItxUH022302; Tue, 1 Jan 2013 18:55:59 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 6fd5rv5n492syx9zphkdyv7hk6; Tue, 01 Jan 2013 18:55:59 +0000 (UTC) (envelope-from kientzle@freebsd.org) Subject: Re: CFT: Overhauled CPSW driver for BeagleBone Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: <20130101111247.734a45fd@ivory.wynn.com> Date: Tue, 1 Jan 2013 10:55:58 -0800 Content-Transfer-Encoding: 7bit Message-Id: <0DD7F54B-20CF-42B5-A83E-29E8CF58D390@freebsd.org> References: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> <20130101111247.734a45fd@ivory.wynn.com> To: Brett Wynkoop X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm , freebsd-current Current 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: Tue, 01 Jan 2013 18:56:09 -0000 On Jan 1, 2013, at 8:12 AM, Brett Wynkoop wrote: > On Mon, 31 Dec 2012 15:25:15 -0800 > Tim Kientzle wrote: > >> I've made some progress reworking the CPSW driver for >> BeagleBone and would appreciate any feedback: >> >> https://github.com/kientzle/cpsw >> > Greeting- > > The driver is working much better than the driver currently in head. I > have maintained an ssh connection to the BeagleBone for more than 24 > hours! Just committed this to -CURRENT r244939. Tim From owner-freebsd-arm@FreeBSD.ORG Wed Jan 2 04:50:40 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16D5B6BE; Wed, 2 Jan 2013 04:50:40 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id C2A948FC08; Wed, 2 Jan 2013 04:50:39 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r024oW1W082808; Tue, 1 Jan 2013 23:50:32 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Tue, 1 Jan 2013 23:50:32 -0500 From: Brett Wynkoop To: Tim Kientzle Subject: Re: CFT: Overhauled CPSW driver for BeagleBone Message-ID: <20130101235032.68391134@ivory.wynn.com> In-Reply-To: <0DD7F54B-20CF-42B5-A83E-29E8CF58D390@freebsd.org> References: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> <20130101111247.734a45fd@ivory.wynn.com> <0DD7F54B-20CF-42B5-A83E-29E8CF58D390@freebsd.org> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm , freebsd-current Current 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, 02 Jan 2013 04:50:40 -0000 On Tue, 1 Jan 2013 10:55:58 -0800 Tim Kientzle wrote: > > On Jan 1, 2013, at 8:12 AM, Brett Wynkoop wrote: > > Greeting- > > > > The driver is working much better than the driver currently in > > head. I have maintained an ssh connection to the BeagleBone for > > more than 24 hours! > > Just committed this to -CURRENT r244939. > > Tim Ok time to cvsup then rebuild the kernel followed by a buildworld! Thanks Tim! -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Wed Jan 2 09:11:47 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C530FBD0 for ; Wed, 2 Jan 2013 09:11:47 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-oa0-f42.google.com (mail-oa0-f42.google.com [209.85.219.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8C68FC08 for ; Wed, 2 Jan 2013 09:11:47 +0000 (UTC) Received: by mail-oa0-f42.google.com with SMTP id j1so12982392oag.29 for ; Wed, 02 Jan 2013 01:11:41 -0800 (PST) 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:content-type; bh=bG0HjtkFK6aV505/x+9fDnMnNZPdD7DoYFZXdNsGTq4=; b=KQSbGIAGvTyQTkSRWED2K+aovr8oyFsqKKPoJxU52lRlp8BTJ6xqofZsK0wdZiYlZr 9eaMrX1iKcsHIFSow3lwU2BgKeUS5VBBJF9Jp/xewEiJVpavBOgRdHfqWdkwBQ3d4uQU fytrlEmv+3+c5Vk28FWGmT9YAOnDO4AXmRzL6w0pHdglBEpjXIMYoqMUv2UHqmgDWy6b IZhZZjMdwj343dXVw4JxfWAwZKIfCdP957nRbFKsng/s/7qJ6T3ONek3vaB0MtFAf60h xS2TvzJrRPg3qLzf58v3jcj7mloDT/rgFiF0ND/jY/1110mTTk2YjkPveSPKLC22ekSG V/bw== MIME-Version: 1.0 Received: by 10.182.223.101 with SMTP id qt5mr1257456obc.51.1357117470057; Wed, 02 Jan 2013 01:04:30 -0800 (PST) Received: by 10.182.156.6 with HTTP; Wed, 2 Jan 2013 01:04:29 -0800 (PST) In-Reply-To: References: <1357002062.54953.135.camel@revolution.hippie.lan> <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> <50E2488F.6010506@sasktel.net> Date: Wed, 2 Jan 2013 01:04:29 -0800 Message-ID: Subject: Re: Rpi boot process stuck on mountroot From: hiren panchasara To: Stephen Hurd Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm 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, 02 Jan 2013 09:11:47 -0000 On Tue, Jan 1, 2013 at 12:58 AM, hiren panchasara wrote: > On Mon, Dec 31, 2012 at 6:23 PM, Stephen Hurd wrote: >> Daisuke Aoyama wrote: >>> There is two factor. >>> One of is dev/mmc never check an error condition of the result. >>> Other is RPI does not work 50MHz with some SD cards. >>> I have posted the workaround patch today. >>> >>> http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html > > Thanks Daisuke, > I will give this a try tomorrow. I applied patch listed at http://www.peach.ne.jp/archives/rpi/patch/ along with bcm2835_asm.S and bcm2835_asm.h files and got errors on buildkernel using Tim's scripts: cc1: warnings being treated as errors In file included from /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c:55: /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:48: warning: 'struct sdhci_slot' declared inside parameter list /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:48: warning: its scope is only this definition or declaration, which is probably not what you want /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:50: warning: 'struct sdhci_slot' declared inside parameter list /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:52: warning: 'struct sdhci_slot' declared inside parameter list /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:54: warning: 'struct sdhci_slot' declared inside parameter list /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:56: warning: 'struct sdhci_slot' declared inside parameter list /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:58: warning: 'struct sdhci_slot' declared inside parameter list /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:60: warning: 'struct sdhci_slot' declared inside parameter list /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:62: warning: 'struct sdhci_slot' declared inside parameter list *** [bcm2835_systimer.o] Error code 1 1 error *** [buildkernel] Error code 2 1 error *** [buildkernel] Error code 2 Probably some header file ordering/missing issue? I am using head @ revision 244918. But the good news is that I could boot up my rpi successfully using freebsd-pi-clang-20130101.img.gz :-) Thank you for your work, Hiren >> >> Another thing to consider is the power. When voltage levels between TP1 >> and TP2 are below around 4.6V, I see a lot more of this failure. > I use my android phone charger to power rpi. Is that okay? > > Thanks, > Hiren From owner-freebsd-arm@FreeBSD.ORG Wed Jan 2 10:45:07 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DEA2867 for ; Wed, 2 Jan 2013 10:45:07 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from gromit.grondar.org (grandfather.grondar.org [IPv6:2a01:348:0:15:5d59:5c20:0:2]) by mx1.freebsd.org (Postfix) with ESMTP id 346BF8FC0A for ; Wed, 2 Jan 2013 10:45:07 +0000 (UTC) Received: from uucp by gromit.grondar.org with local-rmail (Exim 4.77 (FreeBSD)) (envelope-from ) id 1TqLoo-0004qE-8Q for freebsd-arm@freebsd.org; Wed, 02 Jan 2013 10:45:06 +0000 Received: from localhost ([127.0.0.1] helo=groundzero.grondar.org) by groundzero.grondar.org with esmtp (Exim 4.77 (FreeBSD)) (envelope-from ) id 1TqLlV-000G2T-NY; Wed, 02 Jan 2013 10:41:41 +0000 To: Brett Wynkoop Subject: Re: CFT: Overhauled CPSW driver for BeagleBone In-reply-to: <20130101235032.68391134@ivory.wynn.com> References: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> <20130101111247.734a45fd@ivory.wynn.com> <0DD7F54B-20CF-42B5-A83E-29E8CF58D390@freebsd.org> <20130101235032.68391134@ivory.wynn.com> From: Mark Murray Date: Wed, 02 Jan 2013 10:41:41 +0000 Message-Id: Cc: freebsd-arm 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, 02 Jan 2013 10:45:07 -0000 Brett Wynkoop writes: > Ok time to cvsup then rebuild the kernel followed by a buildworld! What is the official way to build RPi images? I'm using a lightly hacked copy of the script found at http://people.freebsd.org/~gonzo/arm/rpi/build-pi-image.sh ... but it appears to be getting out of date (still has devd disabled, for example). Thanks! M -- Mark R V Murray Cert APS(Open) Dip Phys(Open) BSc Open(Open) BSc(Hons)(Open) Pi: 132511160 From owner-freebsd-arm@FreeBSD.ORG Wed Jan 2 18:34:38 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8BA7E5C3 for ; Wed, 2 Jan 2013 18:34:38 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 50DFC1C94 for ; Wed, 2 Jan 2013 18:34:36 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r02IYZl7093450 for ; Wed, 2 Jan 2013 13:34:35 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Wed, 2 Jan 2013 13:34:34 -0500 From: Brett Wynkoop To: freebsd-arm@freebsd.org Subject: sshd dying Message-ID: <20130102133434.37d19a6c@ivory.wynn.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, 02 Jan 2013 18:34:38 -0000 Greeting- Until now I have not had issues with sshd dying as was reported by some others, but since I started a buildworld a couple of hours ago I have had to restart sshd twice. I suspect that it may have something to do with how fast the system is able to access swap. I can not say for sure, but since this is the first time I have had heavy sustained swap activity it sort of fits. Once I install the new world that is being built now I will start another buildworld to see if I still have the issue. FYI I am not running out of swap. root@beaglebone:/tmp # pstat -ms Device 1M-blocks Used Avail Capacity /dev/md0 770 63 706 8% root@beaglebone:/tmp # -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Wed Jan 2 18:58:59 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 1A283D3C; Wed, 2 Jan 2013 18:58:59 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id BB1EB1DB9; Wed, 2 Jan 2013 18:58:58 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.67]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1TqSsN-000KxK-Ec; Wed, 02 Jan 2013 10:17:21 -0800 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: CFT: Overhauled CPSW driver for BeagleBone From: Oleksandr Tymoshenko In-Reply-To: Date: Wed, 2 Jan 2013 10:16:57 -0800 Content-Transfer-Encoding: 7bit Message-Id: References: <53026BDB-88DA-4869-99B3-B63D34667451@freebsd.org> <20130101111247.734a45fd@ivory.wynn.com> <0DD7F54B-20CF-42B5-A83E-29E8CF58D390@freebsd.org> <20130101235032.68391134@ivory.wynn.com> To: Mark Murray X-Mailer: Apple Mail (2.1499) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2013-01-02, at 2:41 AM, Mark Murray wrote: > Brett Wynkoop writes: >> Ok time to cvsup then rebuild the kernel followed by a buildworld! > > What is the official way to build RPi images? I'm using a lightly > hacked copy of the script found at > > http://people.freebsd.org/~gonzo/arm/rpi/build-pi-image.sh > > ... but it appears to be getting out of date (still has devd disabled, > for example). [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: freebsd-arm 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, 02 Jan 2013 18:58:59 -0000 On 2013-01-02, at 2:41 AM, Mark Murray wrote: > Brett Wynkoop writes: >> Ok time to cvsup then rebuild the kernel followed by a buildworld! > > What is the official way to build RPi images? I'm using a lightly > hacked copy of the script found at > > http://people.freebsd.org/~gonzo/arm/rpi/build-pi-image.sh > > ... but it appears to be getting out of date (still has devd disabled, > for example). Try this: https://github.com/kientzle/freebsd-beaglebone From owner-freebsd-arm@FreeBSD.ORG Wed Jan 2 21:53:34 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 8C87B74 for ; Wed, 2 Jan 2013 21:53:34 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3F861694 for ; Wed, 2 Jan 2013 21:53:33 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r02LrVH1095420 for ; Wed, 2 Jan 2013 16:53:31 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Wed, 2 Jan 2013 16:53:31 -0500 From: Brett Wynkoop To: freebsd-arm@freebsd.org Subject: arm jails Message-ID: <20130102165331.431a3552@ivory.wynn.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, 02 Jan 2013 21:53:34 -0000 Greeting- I know most of these boards we are playing with are somewhat limited in memory by today's standards, but I was wondering if jails actually work on FreeBSD-arm. Since my BeagleBone is rebuilding world I am not going to just give it a try, at least not until the build is done and installed. CB -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Wed Jan 2 22:46:34 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 1328DBD0 for ; Wed, 2 Jan 2013 22:46:34 +0000 (UTC) (envelope-from Daan@vitsch.nl) Received: from Prakkezator.VEHosting.nl (Prakkezator6.VEHosting.nl [IPv6:2001:1af8:2100:b020::142]) by mx1.freebsd.org (Postfix) with ESMTP id 8CF478AA for ; Wed, 2 Jan 2013 22:46:33 +0000 (UTC) Received: from [192.168.45.11] (Alk01.VEHosting.nl [85.17.51.130]) (authenticated bits=0) by Prakkezator.VEHosting.nl (8.14.2/8.14.2) with ESMTP id r02MkXSl051446; Wed, 2 Jan 2013 23:46:34 +0100 (CET) (envelope-from Daan@vitsch.nl) From: Daan Vreeken Organization: Vitsch Electronics To: Brett Wynkoop Subject: Re: arm jails Date: Wed, 2 Jan 2013 23:46:29 +0100 User-Agent: KMail/1.9.10 References: <1357163622-2598351523.b61a7610ab@bliksem.vehosting.nl> <20130102165331.431a3552@ivory.wynn.com> In-Reply-To: <20130102165331.431a3552@ivory.wynn.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201301022346.29959.Daan@vitsch.nl> x-ve-auth-version: mi-1.1.7 2011-02-21 - Copyright (c) 2008, 2011 - Daan Vreeken - VEHosting x-ve-auth: authenticated as 'pa4dan' on Prakkezator.VEHosting.nl 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, 02 Jan 2013 22:46:34 -0000 Hi Brett, On Wednesday 02 January 2013 22:53:31 Brett Wynkoop wrote: > Greeting- > > I know most of these boards we are playing with are somewhat limited in > memory by today's standards, but I was wondering if jails actually work > on FreeBSD-arm. Since my BeagleBone is rebuilding world I am not going > to just give it a try, at least not until the build is done and > installed. They work like a charm. At work we use them even on systems with only tens of MBs of RAM. Regards, -- Daan Vreeken Vitsch Electronics http://Vitsch.nl/ http://VitschVPN.nl/ tel: +31-(0)40-7113051 KvK nr: 17174380 -- Machines en netwerken op afstand beheren? Vitsch VPN oplossing! Kijk voor meer informatie op: http://www.VitschVPN.nl/ From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 00:34:59 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 781A022B for ; Thu, 3 Jan 2013 00:34:59 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 269C3C1C for ; Thu, 3 Jan 2013 00:34:58 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r030YshN097093; Wed, 2 Jan 2013 19:34:54 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Wed, 2 Jan 2013 19:34:54 -0500 From: Brett Wynkoop To: Daan Vreeken Subject: Re: arm jails Message-ID: <20130102193454.36111ad1@ivory.wynn.com> In-Reply-To: <201301022346.29959.Daan@vitsch.nl> References: <1357163622-2598351523.b61a7610ab@bliksem.vehosting.nl> <20130102165331.431a3552@ivory.wynn.com> <201301022346.29959.Daan@vitsch.nl> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Thu, 03 Jan 2013 00:34:59 -0000 On Wed, 2 Jan 2013 23:46:29 +0100 Daan Vreeken wrote: > They work like a charm. At work we use them even on systems with only > tens of MBs of RAM. > Greeting- You just made my day! I can not wait till I have working USB on my BeagleBone. If jails work I think I will replace several of my old pentium 2 boxes with my BeagleBone! My world is still building, but the new network driver has been running great for almost 2 days. Some resets, but nothing that drops connections! Thanks Tim! -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 00:49:53 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D2B60766 for ; Thu, 3 Jan 2013 00:49:53 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id 6AD8FCE6 for ; Thu, 3 Jan 2013 00:49:52 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 83ABF39E5C; Thu, 3 Jan 2013 09:49:42 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 7FDAF39D62; Thu, 3 Jan 2013 09:49:42 +0900 (JST) Message-ID: From: "Daisuke Aoyama" To: "hiren panchasara" , "Stephen Hurd" References: <1357002062.54953.135.camel@revolution.hippie.lan> <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> <50E2488F.6010506@sasktel.net> In-Reply-To: Subject: Re: Rpi boot process stuck on mountroot Date: Thu, 3 Jan 2013 09:49:45 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-arm 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: Thu, 03 Jan 2013 00:49:53 -0000 > I applied patch listed at http://www.peach.ne.jp/archives/rpi/patch/ along with > bcm2835_asm.S and bcm2835_asm.h files and got errors on buildkernel > using Tim's scripts: > > cc1: warnings being treated as errors > In file included from > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c:55: > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:48: warning: > 'struct sdhci_slot' declared inside parameter list > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:48: warning: its > scope is only this definition or declaration, which is probably not > what you want > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:50: warning: > 'struct sdhci_slot' declared inside parameter list > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:52: warning: > 'struct sdhci_slot' declared inside parameter list > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:54: warning: > 'struct sdhci_slot' declared inside parameter list > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:56: warning: > 'struct sdhci_slot' declared inside parameter list > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:58: warning: > 'struct sdhci_slot' declared inside parameter list > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:60: warning: > 'struct sdhci_slot' declared inside parameter list > /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:62: warning: > 'struct sdhci_slot' declared inside parameter list > *** [bcm2835_systimer.o] Error code 1 > 1 error > *** [buildkernel] Error code 2 > 1 error > *** [buildkernel] Error code 2 > > Probably some header file ordering/missing issue? I am using head @ > revision 244918. Sorry, I didn't check without clang/NO_WERROR. Please download fixed version: http://www.peach.ne.jp/archives/rpi/patch/bcm2835_asm.h > But the good news is that I could boot up my rpi successfully using > freebsd-pi-clang-20130101.img.gz :-) Thank you. -- Daisuke Aoyama From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 01:59:06 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A3FE11BA for ; Thu, 3 Jan 2013 01:59:06 +0000 (UTC) (envelope-from ThomasSkibo@sbcglobal.net) Received: from nm29.access.bullet.mail.mud.yahoo.com (nm29.access.bullet.mail.mud.yahoo.com [66.94.237.94]) by mx1.freebsd.org (Postfix) with ESMTP id 3BF3FE8D for ; Thu, 3 Jan 2013 01:59:05 +0000 (UTC) Received: from [66.94.237.126] by nm29.access.bullet.mail.mud.yahoo.com with NNFMP; 03 Jan 2013 01:55:51 -0000 Received: from [98.138.84.175] by tm1.access.bullet.mail.mud.yahoo.com with NNFMP; 03 Jan 2013 01:55:51 -0000 Received: from [127.0.0.1] by smtp109.sbc.mail.ne1.yahoo.com with NNFMP; 03 Jan 2013 01:55:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1357178151; bh=AHBBfwi72KZDxTk7mT25TOw8RSPtS23HD2t8ksaMMHs=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=sl07dikLbVtq9mDa1qQYQkaSVhEoCaqvCyPRhOx6LmlIzN+Eg/7+7NMtCEMKgk4NZKNg6ydBNJIgmOmKiAWvVurmPxXbRpOI+WugGdXFeaGruxDYEj2AihIP4AZ3CNQW4ASWdewqZYSmIXL5VlBlOsvsIjqSaN2IC4+q9Q6Xkmk= X-Yahoo-Newman-Id: 130573.8085.bm@smtp109.sbc.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: FRM_aLwVM1kje8EaLJNINcXgSLqdmILFKXafQAJCnsSemBH 0WEJGeRKo_YZ0..YmBFaE8exBa3imMtZA8RMQ5tdqH.DF6osDuSve_7SBz6P ZCui9__nOO2uuOOeZL7nDc7cmLmKZieWA8VhvrshPOSpamp0bKmeH_FYqCvK RuUG25Z2.FBMctEASGPA1mE2xRCfY2qVcrXu1LG8CqAkI6HVrLTsCrzZg5qb 1dVMlX95BFxEtBNf2VKalDlExsWfMplY4btCdw.s2TJBkgl1wU2jxs25MRAi F1xKYwA.j3xZVn9n2re86PhhUIRWjVTGefmnGmzP1HRIzQZF6C65jEZeTeiM 1N7NePCA0R.KkXblKJJRpMMfvzjFENSsDwJkpoqhIQnKY1jIQn83acEqxHen BWL1KssfgreJhqeYpPJzVhvyUlux.v46ZDLJeoPhHBf3anorEDuyHzOHxAOC c.eRnlJQdOG2GbTBw6noR7LxDA1Zk0UuooU6CF_YMTvBkERrK6dvTp5Rwcy0 gDOPGWPDUd4B8ReyNXuqUhTqaaOtfm48t.wzUhJAASDgumqlGiM9Kx8S78A- - X-Yahoo-SMTP: tUxoRneswBA21azLM.3ybMESf0mC2bFhTbmt0VU5ervH0kqi5lo- Received: from [192.168.1.9] (ThomasSkibo@71.139.166.107 with plain) by smtp109.sbc.mail.ne1.yahoo.com with SMTP; 02 Jan 2013 17:55:51 -0800 PST Message-ID: <50E4E525.3010200@sbcglobal.net> Date: Wed, 02 Jan 2013 17:55:49 -0800 From: Thomas Skibo User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: FreeBSD on Zedboard (Xilinx Zynq-7000) References: <50DF4BD9.8080601@sbcglobal.net> <50DF555B.9060601@sbcglobal.net> <6285A410-0470-4A75-9067-7C524831A8DA@bsdimp.com> In-Reply-To: <6285A410-0470-4A75-9067-7C524831A8DA@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 03 Jan 2013 01:59:06 -0000 Happy New Year! I've now got a Gig Ethernet driver stumbling along on the Zedboard. I've put updated source up at http://www.thomasskibo.com/zedbsd along with a few tweaks to everything else. --Thomas -- -------- Thomas Skibo ThomasSkibo@sbcglobal.net From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 03:33:33 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 821DBC0E for ; Thu, 3 Jan 2013 03:33:33 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-oa0-f44.google.com (mail-oa0-f44.google.com [209.85.219.44]) by mx1.freebsd.org (Postfix) with ESMTP id 318021E1 for ; Thu, 3 Jan 2013 03:33:32 +0000 (UTC) Received: by mail-oa0-f44.google.com with SMTP id n5so13742903oag.31 for ; Wed, 02 Jan 2013 19:33:32 -0800 (PST) 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:content-type; bh=YeNFce2rtzYRA3B7j74qAWj/sbRmKEIZRSkJLVaDMQc=; b=oZWFrpZImoh+FuOK6P/rWcAG6I2pCA08GbIG3ZBJoZwHuHRkF8aizHWGZDOOhyaloP h3s/pJL4BNDWiCWTv19R2nhRryeSYekD/H6Vc2qygpsM/yLqkY2xj+tfm8y0rHCD5tBn GbfV2YmXrRLD9kzLzuR22KT4SCkxXR+p/noiXew5/9iA7zSh7kiHJAXyFrJ5DoQv08Pz 7E1oKTaLQHV6Ti+VAl+JH+Nzdehly/GJR8mo3k3+H9ZZUk2fxX/8oX/lyiVFqw6qYULt JGsoSQQIAzfEi9JYBas583mpljm3dQHGEs1UPXXekNZYnWxbEUj1n1MXkF3XvDT4lhVc teWA== MIME-Version: 1.0 Received: by 10.182.110.1 with SMTP id hw1mr38629527obb.68.1357184011935; Wed, 02 Jan 2013 19:33:31 -0800 (PST) Received: by 10.182.156.6 with HTTP; Wed, 2 Jan 2013 19:33:31 -0800 (PST) In-Reply-To: References: <1357002062.54953.135.camel@revolution.hippie.lan> <06BF94A3-6F02-4E4B-8572-D202E5C8CB4B@kientzle.com> <57772D20A1814967B7FFDC476215780B@ad.peach.ne.jp> <50E2488F.6010506@sasktel.net> Date: Wed, 2 Jan 2013 19:33:31 -0800 Message-ID: Subject: Re: Rpi boot process stuck on mountroot From: hiren panchasara To: Daisuke Aoyama Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm 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: Thu, 03 Jan 2013 03:33:33 -0000 On Wed, Jan 2, 2013 at 4:49 PM, Daisuke Aoyama wrote: >> I applied patch listed at http://www.peach.ne.jp/archives/rpi/patch/ along >> with >> bcm2835_asm.S and bcm2835_asm.h files and got errors on buildkernel >> using Tim's scripts: >> >> cc1: warnings being treated as errors >> In file included from >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c:55: >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:48: warning: >> 'struct sdhci_slot' declared inside parameter list >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:48: warning: its >> scope is only this definition or declaration, which is probably not >> what you want >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:50: warning: >> 'struct sdhci_slot' declared inside parameter list >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:52: warning: >> 'struct sdhci_slot' declared inside parameter list >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:54: warning: >> 'struct sdhci_slot' declared inside parameter list >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:56: warning: >> 'struct sdhci_slot' declared inside parameter list >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:58: warning: >> 'struct sdhci_slot' declared inside parameter list >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:60: warning: >> 'struct sdhci_slot' declared inside parameter list >> /usr/src/head/sys/arm/broadcom/bcm2835/bcm2835_asm.h:62: warning: >> 'struct sdhci_slot' declared inside parameter list >> *** [bcm2835_systimer.o] Error code 1 >> 1 error >> *** [buildkernel] Error code 2 >> 1 error >> *** [buildkernel] Error code 2 >> >> Probably some header file ordering/missing issue? I am using head @ >> revision 244918. > > > Sorry, I didn't check without clang/NO_WERROR. Please download fixed > version: > > http://www.peach.ne.jp/archives/rpi/patch/bcm2835_asm.h Works! Thanks, Hiren > > >> But the good news is that I could boot up my rpi successfully using >> freebsd-pi-clang-20130101.img.gz :-) > > > Thank you. > -- > Daisuke Aoyama > From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 14:06:41 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 0D8F59EF for ; Thu, 3 Jan 2013 14:06:41 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ia0-f170.google.com (mail-ia0-f170.google.com [209.85.210.170]) by mx1.freebsd.org (Postfix) with ESMTP id D722E9B5 for ; Thu, 3 Jan 2013 14:06:40 +0000 (UTC) Received: by mail-ia0-f170.google.com with SMTP id i1so12846768iaa.1 for ; Thu, 03 Jan 2013 06:06:34 -0800 (PST) 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:content-type; bh=q7mbW7kn6JZCh9nVdAbVhJIVyaCcVJZgoyxEHfeDFZk=; b=u8Zwz6zoWib5UcLg6ltU7kCaCi+3sU3h+RB2MFS3z8fi8KuN+qFoAGqnevCIncmWpE OY5ONB+wDo1df8pp1/7aWL3+TM8SN00xLtwFWrkuSZ/ieUGagyUHj1rlBFb/V5TQY8wQ zN2trnxN7Aay3JiuZ0CZN+LhyGY7gjnREYT2wVw8ify04W/MiKsAmFN3UQBMKQD63f+S RUm5fgdx8TAtNnX3ZqckPZMv5xkyCMNBi+Rig2gtgi2O6sUJwJbIkQtMHlehkhBydrZ0 3jXcYEKU/R9JNDOYcEO0toKwkwqZi4NfBP47ozR+4i45hj1J8/nKbuNGXwWP0tNMsjCZ nkiw== MIME-Version: 1.0 Received: by 10.50.207.70 with SMTP id lu6mr39727025igc.50.1357221994327; Thu, 03 Jan 2013 06:06:34 -0800 (PST) Received: by 10.64.96.196 with HTTP; Thu, 3 Jan 2013 06:06:34 -0800 (PST) In-Reply-To: <201212271004.01598.hselasky@c2i.net> References: <201212271004.01598.hselasky@c2i.net> Date: Thu, 3 Jan 2013 22:06:34 +0800 Message-ID: Subject: Re: Allwinner A10 From: Ganbold Tsagaankhuu To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 03 Jan 2013 14:06:41 -0000 Hans, I was able to give power to one of usb controllers and now I see ehci: http://pastebin.ca/2299028 But even though devices scbus, da, pass are included in kernel config, it is not detecting ufs freebsd install memstick. But from outside I see the led light of usb stick. Can you advise me the ways to debug or next thing to try for this issue? FYI, USB_DEBUG, USB_REQ_DEBUG, USB_VERBOSE options are enabled in config. thanks, Ganbold On Thu, Dec 27, 2012 at 5:04 PM, Hans Petter Selasky wrote: > On Wednesday 26 December 2012 17:05:35 Ganbold Tsagaankhuu wrote: >> Just some information, >> >> Still nothing useful yet, but with the help of andrew@, ray@, gonzo@ >> and other arm guys kernel boots: >> >> https://github.com/tsgan/allwinner_a10/blob/master/dmesg_ehci.txt >> >> Tried usb/ehci glue code, no success yet, so maybe I will leave it now >> and try next SD/MMC :) >> > > Hi, > > It looks like number of ports is zero. Can you try this: > > Edit sys/dev/usb/controller/ehci.c > > > Find this: > sc->sc_noport = EHCI_HCS_N_PORTS(sparams); > > Add this: > if (sc->sc_noport == 0) > sc->sc_noport = 1; > > Does the EHCI work now? > > --HPS From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 14:28:06 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 84D39E52 for ; Thu, 3 Jan 2013 14:28:06 +0000 (UTC) (envelope-from dev@macdevshanghai.com) Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) by mx1.freebsd.org (Postfix) with ESMTP id 2351AA82 for ; Thu, 3 Jan 2013 14:28:05 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id d42so8100490qca.15 for ; Thu, 03 Jan 2013 06:27:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=qYAVevamZza2chAMBq/MSGyttbIVdyXr9/yQdsNGipk=; b=diTncYqyQIOL/6q2yqXzjszD5n7QF3ZSPhEZdw7oINPF+g7nz9+/V4Yxadv8cM+t2I NQ4tlqfvOPYVOQfYoJelf1LAYFXOghpsEs+DDBW4HtFKGy9EzYvMp5rnUMZSxdbrz80P UtqhrYrxKGLzXF7nVHPlltdEybL9JcZY7QHbYuRkpwVAkQFWNf4yGNf8/2zFH1sVyw1J 6AA7Pebs+5AuZjx9mFlLUBZLU/zMTrN4TSyF9yT8RSRArPtMvbhLCmXEe+Cpm3BZCvHm kLqRYHVwFWQ06Ol3Y55e8oKkatzXyyQfMaMxAaApo+rc62JuuiukN4Yx/PWtYlr+N/e0 /xcw== MIME-Version: 1.0 Received: by 10.224.196.137 with SMTP id eg9mr25615732qab.99.1357223279679; Thu, 03 Jan 2013 06:27:59 -0800 (PST) Received: by 10.49.64.228 with HTTP; Thu, 3 Jan 2013 06:27:59 -0800 (PST) X-Originating-IP: [101.228.106.104] In-Reply-To: <20121227120141.6cff665cd399e722967efbe5@ddteam.net> References: <201212271004.01598.hselasky@c2i.net> <20121227120141.6cff665cd399e722967efbe5@ddteam.net> Date: Thu, 3 Jan 2013 22:27:59 +0800 Message-ID: Subject: Re: Allwinner A10 From: "dev, dev" To: Aleksandr Rybalko X-Gm-Message-State: ALoCoQlggiMj2yAnnCMTK+nIq9ivCBa3TryHtY8t1vwYqGxVRtxKtGxi5z+yNSp0apkHUQct1ZN3 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Thu, 03 Jan 2013 14:28:06 -0000 I got my cubieboard ,I want test FreeBSD, how Build kernel?use which version uboot? I use this $make TARGET_ARCH=armv6 buildkernel KERNCONF=CUBIEBOARD WITH_FDT=yes can build success, but can't boot: sun4i#fatload mmc 0 0x40200000 kernel; reading kernel 4380122 bytes read sun4i#go 0x40200100 ## Starting application at 0x40200100 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 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 10.0-CURRENT #1 r244957M: Thu Jan 3 21:42:52 CST 2013 root@apple:/usr/obj/arm.armv6/home/yarshure/FreeBSD/src/sys/CUBIEBOARD arm WARNING: WITNESS option enabled, expect reduced performance. panic: acquiring blockable sleep lock with spinlock or critical section held (rw) pmap pv global @ /home/yarshure/FreeBSD/src/sys/arm/arm/pmap-v6.c:1182 KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at 0xc0324764: ldrb r15, [r15, r15, ror r15]! db> bt Tracing pid 0 tid 0 td 0xc06f0060 (null)() at 0xc07068d4 scp=0xc07068d4 rlv=0xc048f4b8 (0xc048f4b8) rsp=0xc07068b8 rfp=0xc06ef9a8 Bad frame pointer: 0xc06ef9a8 db> help 2012/12/27 Aleksandr Rybalko > On Thu, 27 Dec 2012 10:04:01 +0100 > Hans Petter Selasky wrote: > > > On Wednesday 26 December 2012 17:05:35 Ganbold Tsagaankhuu wrote: > > > Just some information, > > > > > > Still nothing useful yet, but with the help of andrew@, ray@, gonzo@ > > > and other arm guys kernel boots: > > > > > > https://github.com/tsgan/allwinner_a10/blob/master/dmesg_ehci.txt > > > > > > Tried usb/ehci glue code, no success yet, so maybe I will leave it now > > > and try next SD/MMC :) > > > > > > > Hi, > > > > It looks like number of ports is zero. Can you try this: > > > > Edit sys/dev/usb/controller/ehci.c > > > > > > Find this: > > sc->sc_noport = EHCI_HCS_N_PORTS(sparams); > > > > Add this: > > if (sc->sc_noport == 0) > > sc->sc_noport = 1; > > > > Does the EHCI work now? > > > > --HPS > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > I've ask Ganbold to inspect EHCI registers and they all is 0, so I > think it is not port count problem, but clock and/or power control. > > Thanks! > > WBW > -- > Aleksandr Rybalko > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > From owner-freebsd-arm@FreeBSD.ORG Thu Jan 3 14:38:34 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7A2C048E for ; Thu, 3 Jan 2013 14:38:34 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by mx1.freebsd.org (Postfix) with ESMTP id 51F55B53 for ; Thu, 3 Jan 2013 14:38:34 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id k10so18345514iea.1 for ; Thu, 03 Jan 2013 06:38:28 -0800 (PST) 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:content-type; bh=UmEldjQHoNa7EtnPc5763RUcHj4gGR1A74fneq9xOj4=; b=ybLC0oGbQ6n6YIrWMeesj8p98cNTbY+s1M2RuBRbyvzHfPfFFU9pspE0jsEcgtNZqW CHZNUwDmF9sdVyGCWQHKJridP3c/18Yrc1vGpneNA9L0P086h/VeevZVqowuK45hFSKk vXxhXgQoMoV0+/TKw32Sks5yGTPgQNt25+X89Nz6YCqjd4oZW5sqPOwHglScHoaeqSwD uQuXAHWtAYGYrxjeumW7/tpjTsZiDiNojESaJ7fpgd/byM+91toOfAWpk+1EB6Ci4tOt FanzfMWvsSMUPhNrOX5SyGJdt8CLDrzxQSasFLA3laszOhOh4dm3eiOWv7+xumYv8+3R ECaA== MIME-Version: 1.0 Received: by 10.50.42.170 with SMTP id p10mr43145401igl.47.1357223908245; Thu, 03 Jan 2013 06:38:28 -0800 (PST) Received: by 10.64.96.196 with HTTP; Thu, 3 Jan 2013 06:38:28 -0800 (PST) In-Reply-To: References: <201212271004.01598.hselasky@c2i.net> <20121227120141.6cff665cd399e722967efbe5@ddteam.net> Date: Thu, 3 Jan 2013 22:38:28 +0800 Message-ID: Subject: Re: Allwinner A10 From: Ganbold Tsagaankhuu To: "dev, dev" Content-Type: text/plain; charset=ISO-8859-1 Cc: Aleksandr Rybalko , 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: Thu, 03 Jan 2013 14:38:34 -0000 Hi, On Thu, Jan 3, 2013 at 10:27 PM, dev, dev wrote: > I got my cubieboard ,I want test FreeBSD, how Build kernel?use which > version uboot? I use hno's version of u-boot since it has gpio setting support which I'm using to give power to usb controllers. https://github.com/hno/uboot-allwinner/ > > I use this > $make TARGET_ARCH=armv6 buildkernel KERNCONF=CUBIEBOARD WITH_FDT=yes > can build success, but can't boot: > > sun4i#fatload mmc 0 0x40200000 kernel; > reading kernel > > 4380122 bytes read > sun4i#go 0x40200100 > ## Starting application at 0x40200100 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 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 10.0-CURRENT #1 r244957M: Thu Jan 3 21:42:52 CST 2013 Not sure with this revision, but I'm using r244673. Please try that. Ganbold > root@apple:/usr/obj/arm.armv6/home/yarshure/FreeBSD/src/sys/CUBIEBOARD > arm > WARNING: WITNESS option enabled, expect reduced performance. > panic: acquiring blockable sleep lock with spinlock or critical section > held (rw) pmap pv global @ > /home/yarshure/FreeBSD/src/sys/arm/arm/pmap-v6.c:1182 > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at 0xc0324764: ldrb r15, [r15, r15, ror r15]! > db> bt > Tracing pid 0 tid 0 td 0xc06f0060 > (null)() at 0xc07068d4 > scp=0xc07068d4 rlv=0xc048f4b8 (0xc048f4b8) > rsp=0xc07068b8 rfp=0xc06ef9a8 > Bad frame pointer: 0xc06ef9a8 > db> help > > > 2012/12/27 Aleksandr Rybalko > >> On Thu, 27 Dec 2012 10:04:01 +0100 >> Hans Petter Selasky wrote: >> >> > On Wednesday 26 December 2012 17:05:35 Ganbold Tsagaankhuu wrote: >> > > Just some information, >> > > >> > > Still nothing useful yet, but with the help of andrew@, ray@, gonzo@ >> > > and other arm guys kernel boots: >> > > >> > > https://github.com/tsgan/allwinner_a10/blob/master/dmesg_ehci.txt >> > > >> > > Tried usb/ehci glue code, no success yet, so maybe I will leave it now >> > > and try next SD/MMC :) >> > > >> > >> > Hi, >> > >> > It looks like number of ports is zero. Can you try this: >> > >> > Edit sys/dev/usb/controller/ehci.c >> > >> > >> > Find this: >> > sc->sc_noport = EHCI_HCS_N_PORTS(sparams); >> > >> > Add this: >> > if (sc->sc_noport == 0) >> > sc->sc_noport = 1; >> > >> > Does the EHCI work now? >> > >> > --HPS >> > _______________________________________________ >> > freebsd-arm@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> >> I've ask Ganbold to inspect EHCI registers and they all is 0, so I >> think it is not port count problem, but clock and/or power control. >> >> Thanks! >> >> WBW >> -- >> Aleksandr Rybalko >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 03:13:58 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 7C93DD33 for ; Fri, 4 Jan 2013 03:13:58 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3AF4A6F8 for ; Fri, 4 Jan 2013 03:13:57 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r043Dofe017209 for ; Thu, 3 Jan 2013 22:13:51 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Thu, 3 Jan 2013 22:13:50 -0500 From: Brett Wynkoop To: freebsd-arm@freebsd.org Subject: More BeagleBone Progress Message-ID: <20130103221350.6c90d99c@ivory.wynn.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 04 Jan 2013 03:13:58 -0000 Greeting- I came home from picking up another BeagleBone from George to see this on the console of my BeagleBone: ===> etc (all) ===> etc/sendmail (all) rm -f freebsd.cf m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/ /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 /usr/src/etc/sendmail/freebsd.mc > freebsd.cf chmod 444 freebsd.cf rm -f freebsd.submit.cf m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib/sendmail/cf/ /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 /usr/src/etc/sendmail/freebsd.submit.mc > freebsd.submit.cf chmod 444 freebsd.submit.cf -------------------------------------------------------------- >>> World build completed on Thu Jan 3 20:02:38 EST 2013 -------------------------------------------------------------- root@beaglebone:/usr/src # cpsw0: watchdog timeout So I guess it is time to DD that 8GB card over to my laptop to assure I have a backup before I go further. I bet the build would have been faster if I was using a rotating media USB disk for /usr/src! But I was able to build world from head as of when I started the build so things are working better all the time. Thank you arm kernel folks! -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 03:29:12 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 7BD17F0E for ; Fri, 4 Jan 2013 03:29:12 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2593574F for ; Fri, 4 Jan 2013 03:29:10 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r043T9sC017359; Thu, 3 Jan 2013 22:29:09 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Thu, 3 Jan 2013 22:29:08 -0500 From: Brett Wynkoop To: Brett Wynkoop Subject: Re: More BeagleBone Progress Message-ID: <20130103222908.299dfa9c@ivory.wynn.com> In-Reply-To: <20130103221350.6c90d99c@ivory.wynn.com> References: <20130103221350.6c90d99c@ivory.wynn.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 04 Jan 2013 03:29:12 -0000 Greeting- Do not try a buildworld on the beaglebone unless you have either: a. upgraded to a bigger SD card than the stock 4G b. have working USB and have /usr/src on USB c. NFS mounted /usr/src root@beaglebone:~ # df -h Filesystem Size Used Avail Capacity Mounted on /dev/mmcsd0s2a 7.2G 4G 2.7G 60% / devfs 1.0k 1.0k 0B 100% /dev root@beaglebone:~ # No I do not have any extra cruft on the box. Just default install and sources, no ports even. -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 10:30:17 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 91485859 for ; Fri, 4 Jan 2013 10:30:17 +0000 (UTC) (envelope-from wynkoop@wynn.com) Received: from mail.wynn.com (wa3yre.wynn.com [199.89.147.3]) by mx1.freebsd.org (Postfix) with ESMTP id 584F0AA2 for ; Fri, 4 Jan 2013 10:30:16 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by mail.wynn.com (8.14.3/8.12.6) with ESMTP id r04AUCHg024497 for ; Fri, 4 Jan 2013 05:30:12 -0500 (EST) (envelope-from wynkoop@wynn.com) Date: Fri, 4 Jan 2013 05:30:11 -0500 From: Brett Wynkoop To: freebsd-arm Subject: BeagleBone System Hang Message-ID: <20130104053011.095e9fad@ivory.wynn.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.13; x86_64-apple-darwin10.8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 04 Jan 2013 10:30:17 -0000 Greeting- Ok tonight before trying to install the world I just built I decided to back up my 8G microsd to my laptop. On the Bone I ran: dd if=/dev/mmcsd0 | gzip -c | nc laptop 12345 With of course the correct receiving nc and dd on the other side. The result was: aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) aintc0: Spurious interrupt detected (0xffffffff) and the loss of network connectivity as well as the inability to terminate the process with ctl-C and the inability to background it with ctl-Z. I have no idea what aintc is, but what ever it is I bet we need to do some driver work related to it. -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6924 718-717-5435 From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 15:43:47 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 DABAD8D3 for ; Fri, 4 Jan 2013 15:43:47 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mx1.freebsd.org (Postfix) with ESMTP id B546898D for ; Fri, 4 Jan 2013 15:43:47 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id 17so19815609iea.2 for ; Fri, 04 Jan 2013 07:43:41 -0800 (PST) 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:content-type; bh=lV94MiZjI4cWilOL61IUYSi4+dfiZh94oD3jUzgxXGk=; b=cjaXnGNvSTAekx9B6BrKNS+a/CW/zbYXhf3q6Erurn7X1JfItrvTXgOMD6zl6Jv24Q ugvkIc49ne82bRsEdFHIQW+DI+lQRdhbD1Jw73XUyoZImG0Ma373xFYCkvAD1HsZAAbr 4IJSwg1c55G+wYZEwq3HUskcp2IbvWTnaqdSwQXlmq7n7z/w3Tb7P7GqU+suDpf2XN0y 7ymmdFFoJlJeT2pG+LDxXiZ5NnH7k9zf3xPx6IxB5Bt3G+bKO0rHCrEKfUMh+ClwVega EBTtHsEZFrmbC+PvuhTeM9irJbApmtoAT5rhpRDAnHYMttWZ1PnB6CNUJ0W9ABd8/A/T tvEg== MIME-Version: 1.0 Received: by 10.43.114.4 with SMTP id ey4mr39928891icc.27.1357314221442; Fri, 04 Jan 2013 07:43:41 -0800 (PST) Received: by 10.64.58.131 with HTTP; Fri, 4 Jan 2013 07:43:41 -0800 (PST) In-Reply-To: <201212271004.01598.hselasky@c2i.net> References: <201212271004.01598.hselasky@c2i.net> Date: Fri, 4 Jan 2013 23:43:41 +0800 Message-ID: Subject: Re: Allwinner A10 From: Ganbold Tsagaankhuu To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 04 Jan 2013 15:43:47 -0000 Hans, I can't see usb is finding attached usb stick in normal dmesg, however when I enabled debug lines in usb_debug.h and gave ufs:/dev/da0a on mountroot prompt I see the usb stick: http://pastebin.ca/2299375 Like: ugen0.2: at usbus0 usb_probe_and_attach: iclass=8/6/80 iindex=0/0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4100 ... da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 7656MB (15679488 512 byte sectors: 255H 63S/T 976C) ... Please ignore lines starting with "------------" etc in log, I just added it to debug before discovering DPRINTFs in usb_debug.h. Any reason why it can't see the stick before? Is there any error I should check or fix? thanks, Ganbold On Thu, Dec 27, 2012 at 5:04 PM, Hans Petter Selasky wrote: > On Wednesday 26 December 2012 17:05:35 Ganbold Tsagaankhuu wrote: >> Just some information, >> >> Still nothing useful yet, but with the help of andrew@, ray@, gonzo@ >> and other arm guys kernel boots: >> >> https://github.com/tsgan/allwinner_a10/blob/master/dmesg_ehci.txt >> >> Tried usb/ehci glue code, no success yet, so maybe I will leave it now >> and try next SD/MMC :) >> > > Hi, > > It looks like number of ports is zero. Can you try this: > > Edit sys/dev/usb/controller/ehci.c > > > Find this: > sc->sc_noport = EHCI_HCS_N_PORTS(sparams); > > Add this: > if (sc->sc_noport == 0) > sc->sc_noport = 1; > > Does the EHCI work now? > > --HPS From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 19:00:38 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 4DEC4473 for ; Fri, 4 Jan 2013 19:00:38 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id D61B424C for ; Fri, 4 Jan 2013 19:00:37 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 363242184; Fri, 04 Jan 2013 20:00:29 +0100 From: Hans Petter Selasky To: Ganbold Tsagaankhuu Subject: Re: Allwinner A10 Date: Fri, 4 Jan 2013 20:02:04 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201212271004.01598.hselasky@c2i.net> In-Reply-To: X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, 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: Fri, 04 Jan 2013 19:00:38 -0000 On Friday 04 January 2013 16:43:41 Ganbold Tsagaankhuu wrote: > Hans, > > I can't see usb is finding attached usb stick in normal dmesg, however > when I enabled debug lines in usb_debug.h and gave ufs:/dev/da0a on > mountroot prompt I see the usb stick: > > http://pastebin.ca/2299375 There is an option you can set somewhere to have a SCSI delay before probing. If you set that I think it will work also without USB debugging enabled. --HPS From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 19:46:02 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 75C34E30 for ; Fri, 4 Jan 2013 19:46:02 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 160523DC for ; Fri, 4 Jan 2013 19:45:57 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id r04JjpVp063429 for ; Fri, 4 Jan 2013 12:45:51 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r04JjltD090713; Fri, 4 Jan 2013 12:45:47 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: BeagleBone System Hang From: Ian Lepore To: Brett Wynkoop In-Reply-To: <20130104053011.095e9fad@ivory.wynn.com> References: <20130104053011.095e9fad@ivory.wynn.com> Content-Type: multipart/mixed; boundary="=-BnlEyX3uWwww59Q2mNLx" Date: Fri, 04 Jan 2013 12:45:47 -0700 Message-ID: <1357328747.1088.18.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-arm 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: Fri, 04 Jan 2013 19:46:02 -0000 --=-BnlEyX3uWwww59Q2mNLx Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, 2013-01-04 at 05:30 -0500, Brett Wynkoop wrote: > Greeting- > > Ok tonight before trying to install the world I just built I decided to > back up my 8G microsd to my laptop. > > On the Bone I ran: > > dd if=/dev/mmcsd0 | gzip -c | nc laptop 12345 > > With of course the correct receiving nc and dd on the other side. > > The result was: > > > aintc0: Spurious interrupt detected (0xffffffff) [...] > aintc0: Spurious interrupt detected (0xffffffff) > > and the loss of network connectivity as well as the inability to > terminate the process with ctl-C and the inability to background it > with ctl-Z. > > I have no idea what aintc is, but what ever it is I bet we need to do > some driver work related to it. > > -Brett After a few minutes of glancing at the complex and confusing datasheet for that interrupt controller, I'm not sure what's causing the spurious interrupt, but the code that's detecting and reporting the problem isn't clearing the status, so it just gets into a tight reporting loop. Try the attached patch to see if it makes the loop stop and the system become responsive again. This is more of a workaround than a real fix. -- Ian --=-BnlEyX3uWwww59Q2mNLx Content-Disposition: inline; filename="aintc_spurious.diff" Content-Type: text/x-patch; name="aintc_spurious.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit diff -r 28b12492cd58 sys/arm/ti/aintc.c --- a/sys/arm/ti/aintc.c Fri Dec 21 11:20:58 2012 -0700 +++ b/sys/arm/ti/aintc.c Fri Jan 04 12:42:34 2013 -0700 @@ -157,6 +157,7 @@ arm_get_next_irq(int last_irq) if ((active_irq & 0xffffff80)) { device_printf(ti_aintc_sc->sc_dev, "Spurious interrupt detected (0x%08x)\n", active_irq); + aintc_write_4(INTC_SIR_IRQ, (active_irq & 0xffffff80)); return -1; } --=-BnlEyX3uWwww59Q2mNLx-- From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 19:48:15 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 8577AE81 for ; Fri, 4 Jan 2013 19:48:15 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) by mx1.freebsd.org (Postfix) with ESMTP id 2BCF83EA for ; Fri, 4 Jan 2013 19:48:14 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 9AFC339E09 for ; Sat, 5 Jan 2013 04:48:07 +0900 (JST) Received: from artemis (unknown [172.18.0.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 8239539D62 for ; Sat, 5 Jan 2013 04:48:07 +0900 (JST) Message-ID: <2659960079254C38ACD2F1DCBB7A1A19@ad.peach.ne.jp> From: "Daisuke Aoyama" To: References: In-Reply-To: Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) Date: Sat, 5 Jan 2013 04:48:11 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP 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: Fri, 04 Jan 2013 19:48:15 -0000 I have updated clang RPI code based on SVN r244906. Now the patched kernel supports VFP under clang world. I received the request about VFP. However, it seemed not to work correctly. So, I made a small patch. VFP is not well tested. You might get an error or a panic. major change: o fix broken divider in dev/sdhci o add SDHCI_QUIRK_BROKEN_HS_CONTROL to dev/sdhci o use 100MHz for bcm2835_sdhci o replace IRQ handler with hand optimized asm code o more optimaized asm routine(bcm2835_asm.S), replace generic bus_XXX o VFP support (experimental, requires modified /usr/bin/as) By default, it boots with vfp enabled kernel(since 20130105). If you have a trouble, you can boot without vfp by using /boot/kernel/kernel.novfp. If your SD card work with HS mode, you can enable by: set hw.bcm2835.sdhci.hs=1 in /boot/loader.rc or set in loader prompt. If failed to boot, you need enter loader prompt to set hw.bcm2835.sdhci.hs=0. If you want replace kernel only, please update /usr/bin/as from: http://www.peach.ne.jp/archives/rpi/test/as-20130105.gz However, I recommend you to use freebsd-pi-clang-20130105.img(or later) as the base image. ---------------------------------------------------------------------- You can get the pre-build image from my archives: http://www.peach.ne.jp/archives/rpi/ (At this time, freebsd-pi-clang-20130105.img.gz is the latest version.) Download and decompress it, then write it to SD. This image requires SD 4GB or more. I'm using as headless server. So, you need a serial console for seeing full boot log. If you want the video out, please remove the line of "set console=comconsole" in /boot/loader.rc. If you need to change the value on it, please mount the second partition (e.g. /dev/da0s2a). This version includes complete source tree of r244906. But the patch is not applied. You must apply the patch manually. Note: first time, it takes about 2 minutes for generating the SSH keys. Using config is here: http://www.peach.ne.jp/archives/rpi/config/RPI-B-test12 New kernel only is here: http://www.peach.ne.jp/archives/rpi/kernel/ Source and pacth is here: http://www.peach.ne.jp/archives/rpi/patch/ For more, please read this: http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004421.html http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004331.html http://shell.peach.ne.jp/aoyama/ ---------------------------------------------------------------------- How to use VFP: add "-mfloat-abi=softfp -mfpu=vfp" to your CFLAGS for example: CFLAGS=-O2 -fno-strict-aliasing -pipe -march=armv6z -mtune=arm1176jzf-s -mfloat-abi=softfp -mfpu=vfp ---------------------------------------------------------------------- Enjoy clang world in Raspberry Pi! Thank you. -- Daisuke Aoyama From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 19:55:24 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 54C8CFB1 for ; Fri, 4 Jan 2013 19:55:24 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE4D643 for ; Fri, 4 Jan 2013 19:55:23 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id r04JtMRL063522 for ; Fri, 4 Jan 2013 12:55:22 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r04JtKWd090725; Fri, 4 Jan 2013 12:55:20 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: BeagleBone System Hang From: Ian Lepore To: Brett Wynkoop In-Reply-To: <1357328747.1088.18.camel@revolution.hippie.lan> References: <20130104053011.095e9fad@ivory.wynn.com> <1357328747.1088.18.camel@revolution.hippie.lan> Content-Type: text/plain; charset="us-ascii" Date: Fri, 04 Jan 2013 12:55:20 -0700 Message-ID: <1357329320.1088.20.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm 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: Fri, 04 Jan 2013 19:55:24 -0000 On Fri, 2013-01-04 at 12:45 -0700, Ian Lepore wrote: > On Fri, 2013-01-04 at 05:30 -0500, Brett Wynkoop wrote: > > Greeting- > > > > Ok tonight before trying to install the world I just built I decided to > > back up my 8G microsd to my laptop. > > > > On the Bone I ran: > > > > dd if=/dev/mmcsd0 | gzip -c | nc laptop 12345 > > > > With of course the correct receiving nc and dd on the other side. > > > > The result was: > > > > > > aintc0: Spurious interrupt detected (0xffffffff) > [...] > > aintc0: Spurious interrupt detected (0xffffffff) > > > > and the loss of network connectivity as well as the inability to > > terminate the process with ctl-C and the inability to background it > > with ctl-Z. > > > > I have no idea what aintc is, but what ever it is I bet we need to do > > some driver work related to it. > > > > -Brett > > After a few minutes of glancing at the complex and confusing datasheet > for that interrupt controller, I'm not sure what's causing the spurious > interrupt, but the code that's detecting and reporting the problem isn't > clearing the status, so it just gets into a tight reporting loop. > > Try the attached patch to see if it makes the loop stop and the system > become responsive again. This is more of a workaround than a real fix. > > -- Ian > > differences between files attachment (aintc_spurious.diff) > diff -r 28b12492cd58 sys/arm/ti/aintc.c > --- a/sys/arm/ti/aintc.c Fri Dec 21 11:20:58 2012 -0700 > +++ b/sys/arm/ti/aintc.c Fri Jan 04 12:42:34 2013 -0700 > @@ -157,6 +157,7 @@ arm_get_next_irq(int last_irq) > if ((active_irq & 0xffffff80)) { > device_printf(ti_aintc_sc->sc_dev, > "Spurious interrupt detected (0x%08x)\n", active_irq); > + aintc_write_4(INTC_SIR_IRQ, (active_irq & 0xffffff80)); > return -1; > } > Hrm, now I'm not so sure I've interpretted the datasheet correctly. If that doesn't work, try this line: aintc_write_4(INTC_SIR_IRQ, 0); And if that doesn't work, then... well... my BeagleBone will arrive in a few days and I'll try other things. :) -- Ian From owner-freebsd-arm@FreeBSD.ORG Fri Jan 4 21:17:56 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 08145EB0 for ; Fri, 4 Jan 2013 21:17:56 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id BD7B49A5 for ; Fri, 4 Jan 2013 21:17:55 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r04LHh32007858; Fri, 4 Jan 2013 14:17:43 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r04LHhWo007855; Fri, 4 Jan 2013 14:17:43 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 4 Jan 2013 14:17:43 -0700 (MST) From: Warren Block To: Hans Petter Selasky Subject: Re: Allwinner A10 In-Reply-To: <201301042002.04400.hselasky@c2i.net> Message-ID: References: <201212271004.01598.hselasky@c2i.net> <201301042002.04400.hselasky@c2i.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Fri, 04 Jan 2013 14:17:44 -0700 (MST) 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: Fri, 04 Jan 2013 21:17:56 -0000 On Fri, 4 Jan 2013, Hans Petter Selasky wrote: > On Friday 04 January 2013 16:43:41 Ganbold Tsagaankhuu wrote: >> Hans, >> >> I can't see usb is finding attached usb stick in normal dmesg, however >> when I enabled debug lines in usb_debug.h and gave ufs:/dev/da0a on >> mountroot prompt I see the usb stick: >> >> http://pastebin.ca/2299375 > > There is an option you can set somewhere to have a SCSI delay before probing. > If you set that I think it will work also without USB debugging enabled. There is kern.cam.boot_delay=10000 and also kern.cam.scsi_delay=10000 From owner-freebsd-arm@FreeBSD.ORG Sat Jan 5 03:52:39 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C165F155 for ; Sat, 5 Jan 2013 03:52:39 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7266D820 for ; Sat, 5 Jan 2013 03:52:39 +0000 (UTC) Received: by mail-ie0-f176.google.com with SMTP id 13so20376123iea.35 for ; Fri, 04 Jan 2013 19:52:38 -0800 (PST) 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:content-type; bh=tphNnSDD88GsHv5DB0CUHR9LSKvTh4M/kwf13s6Y8hs=; b=qpmEq375SDLWHjj9ZHdTZd0VFihLoNId7GyqMTnQxuXeiFZ04q+ZwQ5ktS53XEIqnh obs34pNNesy8Ob2211TYASnajbdds4kWdrHks8futHGP8vJWlYKGLQkirNod3P5akjkU +xt5ls3sLx1tvd04Z3GaEK9z4p+aq8fCO/riSYi2rXI/xi37D8hhFsrFLMwRNY72rAs/ SvzDSybw8O1jmfP2/zEDxFiNKs7UdCfTT3aWA9xp56OV/Ql1sEJZGJ59QLwRb3qAIJqm nbuTI+yQgvNTkl+kLZz9IEOgWn7uqAAO5frl5M7T9aD6Q+v4mQQ/BFkgbavXbm60D9nH itBw== MIME-Version: 1.0 Received: by 10.42.72.132 with SMTP id o4mr30350363icj.44.1357357958765; Fri, 04 Jan 2013 19:52:38 -0800 (PST) Received: by 10.64.58.131 with HTTP; Fri, 4 Jan 2013 19:52:38 -0800 (PST) In-Reply-To: <201301042002.04400.hselasky@c2i.net> References: <201212271004.01598.hselasky@c2i.net> <201301042002.04400.hselasky@c2i.net> Date: Sat, 5 Jan 2013 11:52:38 +0800 Message-ID: Subject: Re: Allwinner A10 From: Ganbold Tsagaankhuu To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 05 Jan 2013 03:52:39 -0000 Hans, On Sat, Jan 5, 2013 at 3:02 AM, Hans Petter Selasky wrote: > On Friday 04 January 2013 16:43:41 Ganbold Tsagaankhuu wrote: >> Hans, >> >> I can't see usb is finding attached usb stick in normal dmesg, however >> when I enabled debug lines in usb_debug.h and gave ufs:/dev/da0a on >> mountroot prompt I see the usb stick: >> >> http://pastebin.ca/2299375 > > There is an option you can set somewhere to have a SCSI delay before probing. > If you set that I think it will work also without USB debugging enabled. > Doesn't help setting SCSI_DELAY in kernel config and boot_delay in cam_xpt.c to 10000. Any other thing to try? Please let me know. thanks, Ganbold > --HPS From owner-freebsd-arm@FreeBSD.ORG Sat Jan 5 04:20:44 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 90F9645C for ; Sat, 5 Jan 2013 04:20:44 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ia0-f179.google.com (mail-ia0-f179.google.com [209.85.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id 6A30B8C2 for ; Sat, 5 Jan 2013 04:20:44 +0000 (UTC) Received: by mail-ia0-f179.google.com with SMTP id o25so14492193iad.10 for ; Fri, 04 Jan 2013 20:20:43 -0800 (PST) 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:content-type; bh=Ii3X1bvOpG9naaKY6ILKd1FYGCPurIvd3N7orV1c3rA=; b=IfQbWRQnkfyxfrkGDGnz5hRVaiEisx5eOdlNRdnRNRZBomLI/c0dZQMyQK8lO6JjV/ ZZS+n0nFcexkxqy3k4IPDJDXwNBy3OtGeymNi79TCI4REHphZDE+PK2H1JJ3PtVPPOEp pUicup/zwPfMnTY4NWEOYdr9NSW0wgSoANtpawe71PGZZhwozxDoljadAquE68eGH5K/ 3Vrl4BcL3j6b2dHUg18WDsFEY8hrEXAoLHfkYs3dXfJfzlyMHQDY4piud7aX8stSGquo UveVHzop9uMfAkbSzXE5xlK0ibNN43hY7ghg6b6lvpakjwN91uMJlyTWJbHT5DY5mtrp X1WQ== MIME-Version: 1.0 Received: by 10.42.72.132 with SMTP id o4mr30395418icj.44.1357359643722; Fri, 04 Jan 2013 20:20:43 -0800 (PST) Received: by 10.64.58.131 with HTTP; Fri, 4 Jan 2013 20:20:43 -0800 (PST) In-Reply-To: <201301042002.04400.hselasky@c2i.net> References: <201212271004.01598.hselasky@c2i.net> <201301042002.04400.hselasky@c2i.net> Date: Sat, 5 Jan 2013 12:20:43 +0800 Message-ID: Subject: Re: Allwinner A10 From: Ganbold Tsagaankhuu To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 05 Jan 2013 04:20:44 -0000 Hans, So this is more complete debug message: http://pastebin.ca/2299512 Now it goes up to /sbin/init and stops there, and it can be related to rootfs on usb stick. But why enabling usb debug makes it close to work? Or stick information appear in dmesg? Ganbold On Sat, Jan 5, 2013 at 3:02 AM, Hans Petter Selasky wrote: > On Friday 04 January 2013 16:43:41 Ganbold Tsagaankhuu wrote: >> Hans, >> >> I can't see usb is finding attached usb stick in normal dmesg, however >> when I enabled debug lines in usb_debug.h and gave ufs:/dev/da0a on >> mountroot prompt I see the usb stick: >> >> http://pastebin.ca/2299375 > > There is an option you can set somewhere to have a SCSI delay before probing. > If you set that I think it will work also without USB debugging enabled. > > --HPS From owner-freebsd-arm@FreeBSD.ORG Sat Jan 5 06:26:34 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EDD41F19 for ; Sat, 5 Jan 2013 06:26:34 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 6EE69B5A for ; Sat, 5 Jan 2013 06:26:34 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.67]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1TrND6-0007iw-Mw for arm@freebsd.org; Fri, 04 Jan 2013 22:26:27 -0800 From: Oleksandr Tymoshenko Content-Type: multipart/mixed; boundary="Apple-Mail=_06D23550-DCA8-4DF4-AB99-F3A189064528" Message-Id: <37274001-B061-4CFF-AEDB-2EE37CC6D267@bluezbox.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Unsolved problem with WB caches on ARMv6 Date: Fri, 4 Jan 2013 22:26:07 -0800 References: <37F24B3C-4600-4E57-96EB-98C91FCD2B72@bluezbox.com> To: arm@freebsd.org In-Reply-To: <37F24B3C-4600-4E57-96EB-98C91FCD2B72@bluezbox.com> X-Mailer: Apple Mail (2.1499) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2012-12-09, at 10:24 PM, Oleksandr Tymoshenko wrote: > Hello, > > One of the long-time issues with FreeBSD/ARMv6 is that Write-Back cache > mode does not work properly. On PandaBoard changing cache mode to WB from WT > causesUSB glitches (starting from stalls to network packets corruption) and random > memory corruptions that manifest themselves as a userland programs crashes. > > gber@ tracked down one of the bugs several month ago, but it's still unusable > at least on my setup. > > I spent some time debugging through busdma and USB code but failed to find > anything fishy. PandaBoard's USB host controller is EHCI. QH and QTDs are > flushed properly. Corruption pattern in packets is weird: it's not cacheline-size > it's like chunk of data is just missing from bulk transfer DMA buffer. L2 cache > is disabled. > > The issue is not reproducible in QEMU. > > Fix for arm/160431 applied to busdma-v6.c didn't help. > > I'm out of ideas for now. May be Ian or Alan will have some suggestions where to look? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: Sat, 05 Jan 2013 06:26:35 -0000 --Apple-Mail=_06D23550-DCA8-4DF4-AB99-F3A189064528 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 2012-12-09, at 10:24 PM, Oleksandr Tymoshenko = wrote: > Hello, >=20 > One of the long-time issues with FreeBSD/ARMv6 is that Write-Back = cache > mode does not work properly. On PandaBoard changing cache mode to WB = from WT=20 > causesUSB glitches (starting from stalls to network packets = corruption) and random=20 > memory corruptions that manifest themselves as a userland programs = crashes. >=20 > gber@ tracked down one of the bugs several month ago, but it's still = unusable > at least on my setup.=20 >=20 > I spent some time debugging through busdma and USB code but failed to = find > anything fishy. PandaBoard's USB host controller is EHCI. QH and QTDs = are=20 > flushed properly. Corruption pattern in packets is weird: it's not = cacheline-size > it's like chunk of data is just missing from bulk transfer DMA buffer. = L2 cache > is disabled.=20 >=20 > The issue is not reproducible in QEMU.=20 >=20 > Fix for arm/160431 applied to busdma-v6.c didn't help.=20 >=20 > I'm out of ideas for now. May be Ian or Alan will have some = suggestions where to look? Following up on this one. The cause for this issue was combination of = several bugs and bad practices: 1. USB subsystem in general and EHCI driver particularly didn't like = that there is no supper cor cache-coherent memory in busdma subsystem. 2. PL310 driver bugs 3. pmap bugs. Fixes for (1) and (2) have been committed recently and I believe I = finally tracked down all=20 bugs in pmap: - Missing PTE_SYNC in pmap_kremove caused severe memory corruption in = userland applications - Lack of cache flushes when using special PTEs for zeroing or copying = pages. If there are=20 dirty lines for destination memory and page later remapped as a = non-cached region actual content might be overwritten by these dirty lines when cache = eviction happens=20 as a result of applying cache eviction policy or because of wbinv_all = call.=20 - icache sync for new mapping for userland applications. Attached patch addresses these issues. Please review and test. If you see something like this: vm_thread_new: kstack allocation failed panic: kproc_create() failed with 12 KDB: enter: panic =20 apply this patch: = http://people.freebsd.org/~gonzo/patches/queue/arm-autotune-fix.diff Some bits of statistics I gathered while working on this issue.=20 As a test platform I used pandaboard ES with root mounted over NFS and = as a test - =20 buildkernel ran in loop with PANDABOARD as a config file. Average time = for building=20 kernel with L2 cache disabled is about 3 hours. With L2 cache enabled = and=20 write-through as a default mode: 1h10m. With L2 enabled and = writeback-allocate mode=20 as default: 22 minutes.=20 Performance gain on raspberry Pi was marginal though. I blame slow = network connection since it works over USB in PIO mode. When RPi will get faster USB/mmc = support=20 actual difference may be more substantial.=20 --Apple-Mail=_06D23550-DCA8-4DF4-AB99-F3A189064528 Content-Disposition: attachment; filename=pmap-wb-caches-fix.diff Content-Type: application/octet-stream; name="pmap-wb-caches-fix.diff" Content-Transfer-Encoding: 7bit Index: arm/include/pmap.h =================================================================== --- arm/include/pmap.h (revision 245047) +++ arm/include/pmap.h (working copy) @@ -61,7 +61,7 @@ #else #define PTE_NOCACHE 1 #endif -#define PTE_CACHE 4 +#define PTE_CACHE 6 #define PTE_DEVICE 2 #define PTE_PAGETABLE 4 #else Index: arm/arm/pmap-v6.c =================================================================== --- arm/arm/pmap-v6.c (revision 245047) +++ arm/arm/pmap-v6.c (working copy) @@ -193,6 +193,14 @@ #define PMAP_INLINE __inline #endif /* PMAP_DEBUG */ +#ifdef ARM_L2_PIPT +#define pmap_l2cache_wbinv_range(va, pa, size) cpu_l2cache_wbinv_range(pa, size) +#define pmap_l2cache_inv_range(va, pa, size) cpu_l2cache_inv_range(pa, size) +#else +#define pmap_l2cache_wbinv_range(va, pa, size) cpu_l2cache_wbinv_range(va, size) +#define pmap_l2cache_inv_range(va, pa, size) cpu_l2cache_inv_range(va, size) +#endif + extern struct pv_addr systempage; /* @@ -786,11 +794,7 @@ pte = *ptep; cpu_idcache_wbinv_range(va, PAGE_SIZE); -#ifdef ARM_L2_PIPT - cpu_l2cache_wbinv_range(pte & L2_S_FRAME, PAGE_SIZE); -#else - cpu_l2cache_wbinv_range(va, PAGE_SIZE); -#endif + pmap_l2cache_wbinv_range(va, pte & L2_S_FRAME, PAGE_SIZE); if ((pte & L2_S_CACHE_MASK) != pte_l2_s_cache_mode_pt) { /* * Page tables must have the cache-mode set to @@ -2121,6 +2125,7 @@ cpu_tlb_flushD_SE(va); cpu_cpwait(); *pte = 0; + PTE_SYNC(pte); } } @@ -2387,11 +2392,7 @@ pte = *ptep &~ L2_S_CACHE_MASK; cpu_idcache_wbinv_range(tmpva, PAGE_SIZE); -#ifdef ARM_L2_PIPT - cpu_l2cache_wbinv_range(pte & L2_S_FRAME, PAGE_SIZE); -#else - cpu_l2cache_wbinv_range(tmpva, PAGE_SIZE); -#endif + pmap_l2cache_wbinv_range(tmpva, pte & L2_S_FRAME, PAGE_SIZE); *ptep = pte; cpu_tlb_flushID_SE(tmpva); @@ -2754,6 +2755,9 @@ else if (PV_BEEN_REFD(oflags)) cpu_tlb_flushD_SE(va); } + + if ((pmap != pmap_kernel()) && (pmap == &curproc->p_vmspace->vm_pmap)) + cpu_icache_sync_range(va, PAGE_SIZE); } /* @@ -3197,6 +3201,16 @@ else bzero_page(cdstp); + /* + * Although aliasing is not possible if we use + * cdstp temporary mappings with memory that + * will be mapped later as non-cached or with write-through + * caches we might end up overwriting it when calling wbinv_all + * So make sure caches are clean after copy operation + */ + cpu_idcache_wbinv_range(cdstp, size); + pmap_l2cache_wbinv_range(cdstp, phys, size); + mtx_unlock(&cmtx); } @@ -3276,12 +3290,23 @@ *cdst_pte = L2_S_PROTO | dst | pte_l2_s_cache_mode; pmap_set_prot(cdst_pte, VM_PROT_READ | VM_PROT_WRITE, 0); PTE_SYNC(cdst_pte); + cpu_tlb_flushD_SE(csrcp); cpu_tlb_flushD_SE(cdstp); cpu_cpwait(); + /* + * Although aliasing is not possible if we use + * cdstp temporary mappings with memory that + * will be mapped later as non-cached or with write-through + * caches we might end up overwriting it when calling wbinv_all + * So make sure caches are clean after copy operation + */ bcopy_page(csrcp, cdstp); + cpu_idcache_wbinv_range(cdstp, PAGE_SIZE); + pmap_l2cache_wbinv_range(cdstp, dst, PAGE_SIZE); + mtx_unlock(&cmtx); } --Apple-Mail=_06D23550-DCA8-4DF4-AB99-F3A189064528-- From owner-freebsd-arm@FreeBSD.ORG Sat Jan 5 07:36:13 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4E3C12DD for ; Sat, 5 Jan 2013 07:36:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id BFBC1D53 for ; Sat, 5 Jan 2013 07:36:11 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 367858125; Sat, 05 Jan 2013 08:31:01 +0100 From: Hans Petter Selasky To: Ganbold Tsagaankhuu Subject: Re: Allwinner A10 Date: Sat, 5 Jan 2013 08:32:36 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201301042002.04400.hselasky@c2i.net> In-Reply-To: X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, 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: Sat, 05 Jan 2013 07:36:13 -0000 On Saturday 05 January 2013 05:20:43 Ganbold Tsagaankhuu wrote: > Hans, > > So this is more complete debug message: > > http://pastebin.ca/2299512 > > Now it goes up to /sbin/init and stops there, and it can be related to > rootfs on usb stick. > > But why enabling usb debug makes it close to work? Or stick > information appear in dmesg? > > Ganbold Can be a cache issue. Please try patch posted yesterday to this list. --HPS From owner-freebsd-arm@FreeBSD.ORG Sat Jan 5 10:41:37 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 D33E4EBA for ; Sat, 5 Jan 2013 10:41:37 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by mx1.freebsd.org (Postfix) with ESMTP id B30468DA for ; Sat, 5 Jan 2013 10:41:37 +0000 (UTC) Received: by mail-pb0-f42.google.com with SMTP id rp2so9708572pbb.1 for ; Sat, 05 Jan 2013 02:41:36 -0800 (PST) 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:content-type; bh=MPLEzq2wWc+qX+wqwjvkabbrMhXkg+y75ISrrHfcKgM=; b=na+EGIAUmS3Za2rt93wPcY3CoCQhM9YIG8GwK6F81YO1R2tSpAV7DQTQUxhoNY84Kv 1Qfvi/seNzF8i6+DpGqBtJZ8Pzi0IAIaw0Vxj/D6XITXMnoTH7G7aNou/KMkhNYxRsBB L5IWmY3hQx/Rrjjy75dPzbVsBwAFvvWFL3KHFNZdDfBXTSV3D1QAz41ag6P4+qrctiGM hivZy9Xk9rE3VPQTB7ThfnJFGdENvhv7LAMeSpsXCcOHcMu0xtsKIqYpzJ1WjCWtinWk MVdhSvoefQwqWugpOsbmvIqg7kn9xN8GbdTsOTaZ1soEpBNc/gBkdVT49QkgGFlUiAvb EvPA== MIME-Version: 1.0 Received: by 10.66.9.2 with SMTP id v2mr161416097paa.18.1357382496889; Sat, 05 Jan 2013 02:41:36 -0800 (PST) Received: by 10.68.16.135 with HTTP; Sat, 5 Jan 2013 02:41:36 -0800 (PST) In-Reply-To: <201301050832.36489.hselasky@c2i.net> References: <201301042002.04400.hselasky@c2i.net> <201301050832.36489.hselasky@c2i.net> Date: Sat, 5 Jan 2013 18:41:36 +0800 Message-ID: Subject: Re: Allwinner A10 From: Ganbold Tsagaankhuu To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 05 Jan 2013 10:41:37 -0000 Hi, On Sat, Jan 5, 2013 at 3:32 PM, Hans Petter Selasky wrote: > On Saturday 05 January 2013 05:20:43 Ganbold Tsagaankhuu wrote: >> Hans, >> >> So this is more complete debug message: >> >> http://pastebin.ca/2299512 >> >> Now it goes up to /sbin/init and stops there, and it can be related to >> rootfs on usb stick. >> >> But why enabling usb debug makes it close to work? Or stick >> information appear in dmesg? >> >> Ganbold > > Can be a cache issue. Please try patch posted yesterday to this list. As gonzo@ and one my friend suspected there was some issue with interrupt handling code. After fixing and adding boot_delay and SCSI_DELAY I see the stick: http://pastebin.ca/2299587 Now I need to find out what the error 22 means. Ganbold > > --HPS