From owner-freebsd-arm@FreeBSD.ORG Sun Nov 10 00:52:27 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0BD83F04; Sun, 10 Nov 2013 00:52:27 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (unknown [IPv6:2620:64:0:1:223:7dff:fea2:c8f2]) by mx1.freebsd.org (Postfix) with ESMTP id E3B882C82; Sun, 10 Nov 2013 00:52:26 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id CD1812AA36F; Sat, 9 Nov 2013 17:52:17 -0700 (MST) Received: by night.db.net (Postfix, from userid 1000) id 1170F1CC1E; Sat, 9 Nov 2013 19:51:46 -0500 (EST) Date: Sat, 9 Nov 2013 19:51:46 -0500 From: Diane Bruce To: Ian Lepore Subject: sshd crash problem found Message-ID: <20131110005146.GA99222@night.db.net> References: <1383313834.31172.65.camel@revolution.hippie.lan> <1383328423.31172.92.camel@revolution.hippie.lan> <1383343354.31172.102.camel@revolution.hippie.lan> <1383399220.31172.116.camel@revolution.hippie.lan> <20131102153953.GA39106@night.db.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131102153953.GA39106@night.db.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Tim Kientzle , freebsd-arm@FreeBSD.org, Howard Su 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: Sun, 10 Nov 2013 00:52:27 -0000 Hi, Ian tracked it down to a commit to pmap-v6.c http://svnweb.freebsd.org/base/head/sys/arm/arm/pmap-v6.c?r1=251370&r2=252694&pathrev=252694 Backing this commit out fixes the jemalloc asserts. Ian has emailed zbb directly to get his take on it. - Diane -- - db@FreeBSD.org db@db.net http://www.db.net/~db From owner-freebsd-arm@FreeBSD.ORG Sun Nov 10 02:04:42 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9EF32B3F for ; Sun, 10 Nov 2013 02:04:42 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 598912F63 for ; Sun, 10 Nov 2013 02:04:42 +0000 (UTC) Received: by mail-vc0-f170.google.com with SMTP id hv10so2434037vcb.29 for ; Sat, 09 Nov 2013 18:04:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=L1MAQzvCOpBOkFITRdUSRVuCYFo+20WHI4xyTfmpqmk=; b=hI6rcIF5pWVlORv/CbXLrw6UhSleDhv1pB9rjYL0JavKg3IJpLA0/a9+jkZG5y9ds9 bzzJyiHLEZ52U2RW+QM+JzRBVi6/BS4SDuaFK9Ri+q0/+dSsOsTASAF8TzHwUUdJffeJ qnrgH6pdaJdKBX3K/uEzCoF6XnuniZcrxVPAObyG4gBkombyaNjzT7wb1lE6YB/2pL1Q uykUCcr+s6UxawmAj4+6EHOd/vU/xA3UYg+CnPBaakwZ9cOFDEP5kSEOOJtrQ3dSMlhm 8Sb0MS3+x99VtU7TCCtCk2nuGH6S9hKXdyuE8Uh7keXrvylS7rLe4T+IFrRY6zux89CX xwFQ== X-Gm-Message-State: ALoCoQmvXhY1elEZWIU3tkwDxV+uYo+TRRAC0V7Q6+CW3qgXYwOhoZm1mtsFcJtrPgzR2xsTRUiS MIME-Version: 1.0 X-Received: by 10.58.133.77 with SMTP id pa13mr155081veb.21.1384049075100; Sat, 09 Nov 2013 18:04:35 -0800 (PST) Received: by 10.58.109.38 with HTTP; Sat, 9 Nov 2013 18:04:35 -0800 (PST) In-Reply-To: <20131110005146.GA99222@night.db.net> References: <1383313834.31172.65.camel@revolution.hippie.lan> <1383328423.31172.92.camel@revolution.hippie.lan> <1383343354.31172.102.camel@revolution.hippie.lan> <1383399220.31172.116.camel@revolution.hippie.lan> <20131102153953.GA39106@night.db.net> <20131110005146.GA99222@night.db.net> Date: Sun, 10 Nov 2013 03:04:35 +0100 Message-ID: Subject: Re: sshd crash problem found From: Zbigniew Bodek To: Diane Bruce Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Tim Kientzle , "freebsd-arm@freebsd.org" , Ian Lepore , Howard Su 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: Sun, 10 Nov 2013 02:04:42 -0000 Hello. Yes. I'm looking into that. Best regards zbb 2013/11/10 Diane Bruce > Hi, > > Ian tracked it down to a commit to pmap-v6.c > > > http://svnweb.freebsd.org/base/head/sys/arm/arm/pmap-v6.c?r1=251370&r2=252694&pathrev=252694 > > Backing this commit out fixes the jemalloc asserts. > > Ian has emailed zbb directly to get his take on it. > > - Diane > -- > - db@FreeBSD.org db@db.net http://www.db.net/~db > _______________________________________________ > 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 Sun Nov 10 10:38:51 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1F89CDB1 for ; Sun, 10 Nov 2013 10:38:51 +0000 (UTC) (envelope-from scott@konobi.co.uk) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D6B312277 for ; Sun, 10 Nov 2013 10:38:50 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id 10so2477831vbe.5 for ; Sun, 10 Nov 2013 02:38:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=xItd8dLYE6KvrgGWIJPMQ8eJ0WBEuf3aSMCFjI7x5lQ=; b=NRJijAD34+vVg2hveuEi2mAF8SXAZNJdZKStEm4nfFeghoYw2Jer2Z7yolLlmN9Y9Z JMfFbVLDV1NNkjIrIjkQDlbO2x9xGytxmwpnh2NaajjsmbTAd9Amhf4DSWRFzWw3Tj+B 064PtZeEHgOB42keAbKR6HLhQD4nwOqZ1lS2mWbEDfT3FJaQ/pRVXICt2qVbAO/t7qpA NFR2Z57AA+BIZgm6f3TfwL7NS8zQqF2fUwPHxvPGydQ6DIiYElqJHaqLLR04tt2wCtMY oUvs4T1qqBviuMmkHT7Ndqzurh480Y847I5Srte2bE8JxIRJgQ76vg2rlbQBzb3Hh2lD 3BUg== X-Gm-Message-State: ALoCoQnu2iEV9BibwMzly4aTSjtV5niXSJr0DmN9nv8x0pSkOlyzvG5z0QrF705k/5kQFnvT8hd8 MIME-Version: 1.0 X-Received: by 10.58.136.231 with SMTP id qd7mr19470426veb.1.1384079475024; Sun, 10 Nov 2013 02:31:15 -0800 (PST) Sender: scott@konobi.co.uk Received: by 10.220.12.7 with HTTP; Sun, 10 Nov 2013 02:31:14 -0800 (PST) Date: Sun, 10 Nov 2013 02:31:14 -0800 X-Google-Sender-Auth: U7QiIHuXbhvx5fXvTxybyBjbfgo Message-ID: Subject: pmap kernel panic From: Scott McWhirter To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Sun, 10 Nov 2013 10:38:51 -0000 Hi all, Based on gonzo@'s suggestion, I'm putting this on the mailing list as posed to the IRC channel. I've been running stable/10 on my dreamplug (armv5te) of late, but I've had a fairly consistent panic happening: login: panic: Lock vm object not exclusively locked @ /usr/src/sys/arm/arm/pmap.c:4610 Of which the backtrace looks like http://hastebin.com/nefuyawohe.avrasm This has been happening just as I've been building ports, so will be hard to pin down on a easy reproducible case. I also need to do some dtrace-ing on what's going on with the kernel during this time, but I'll need to pick up brendan's book for that. I still need to get setup to be able to do a proper savecore on panic, but I do currently have my dreamplug running in kdb. I'll be in IRC as 'konobi' 24/7 if anyone has specific details that they want. I also have other things that I should get on record on the mailing list, but for now, this is the blocker for me. Thanks, --- Scott McWhirter | konobi From owner-freebsd-arm@FreeBSD.ORG Sun Nov 10 15:09:23 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1E76BA18 for ; Sun, 10 Nov 2013 15:09:23 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from mail-qe0-x230.google.com (mail-qe0-x230.google.com [IPv6:2607:f8b0:400d:c02::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D50022FB3 for ; Sun, 10 Nov 2013 15:09:22 +0000 (UTC) Received: by mail-qe0-f48.google.com with SMTP id d4so3617175qej.21 for ; Sun, 10 Nov 2013 07:09:22 -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=7Gy2LoNUp4MzTWe9fSlN9n3Kq81yTgAG/21hHzlSazo=; b=WAQZNHi1DIsZ65Fw8rSfF7aw2Wguj8BK8Mg9fcbqvM6YGq8iwVYAInFJQDkRt0prTl xx1LZSd7hgIEN1OVMDEBNUhd5+FPtAP1CccR651Zy40p7/8r0ixm/B1IUTKkT/+EZma0 nscaJJBHwcOQGsZw9m/BSAIl/nBRl4wLfNX8h88iTYhz3ZCPAL0qSUEpame2ubaMbcyf i1QDi/RhmW67uhZzUb9L0czPQIfL/DgPljg9oYorzNkcUMLdRdMvz7MyvhZmxoP2B1Bc RQbDHUSKKvSWDLmHWdBT03u3t/2ZtWFkoH1xhJjsU/NSs8KgFLKMihjTxeB4DyFmtJEY eKqA== MIME-Version: 1.0 X-Received: by 10.49.59.115 with SMTP id y19mr39529189qeq.8.1384096161950; Sun, 10 Nov 2013 07:09:21 -0800 (PST) Received: by 10.224.160.77 with HTTP; Sun, 10 Nov 2013 07:09:21 -0800 (PST) Date: Sun, 10 Nov 2013 23:09:21 +0800 Message-ID: Subject: crash in pthread umtx_op From: Howard Su To: freebsd-arm@freebsd.org Content-Type: multipart/mixed; boundary=047d7b6221ea11801d04ead4004e 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: Sun, 10 Nov 2013 15:09:23 -0000 --047d7b6221ea11801d04ead4004e Content-Type: text/plain; charset=ISO-8859-1 The attached is a simple repro code which can consistant repro a crash related signal deliver and mutex/cond operation. repro steps: 1. compile the test.c with the following command: I notice this when I was play with dtrace arm port from gonozo. -- -Howard --047d7b6221ea11801d04ead4004e-- From owner-freebsd-arm@FreeBSD.ORG Sun Nov 10 15:12:34 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E0F9AC18 for ; Sun, 10 Nov 2013 15:12:34 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A0BEC2FEA for ; Sun, 10 Nov 2013 15:12:34 +0000 (UTC) Received: by mail-qa0-f52.google.com with SMTP id ii20so1091039qab.4 for ; Sun, 10 Nov 2013 07:12: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 :content-type; bh=Dn6ZLOZGCc9ujA7i0H8q1gRB1IEGXT1KrMCkH7DGySs=; b=WomgG9WXTJRbVFu8lCwxFqRxs0UOetBS6eurohblpgofP7AGWTWnDoeuotKw6B4u/t xh0lqB0EsZ95R/puPQf6RsJwa4GYLjgyBT/rZYA8SUZsQFb+DfVw0kfb/ywKn/aMTgMe DMgxbqJt0l3jhTUV1Wgow+2cLcyHMxPgeaiXzIlorxvfEv5v0mlJaasrVGSAAuBYfxvA yjmlT9HQGENjTLppUw5wzMSKhwqaUXtiYwim6DRA07jOcWWTrN/rXT9nFnHBh5JOxSuR mlAYQOS+Qs5MsvnU5LhrBPraBy69xuQzU82UwXd8NJxKCKrK9tKbgR71C27B2E7FKmb7 +MAQ== MIME-Version: 1.0 X-Received: by 10.224.98.200 with SMTP id r8mr41671559qan.26.1384096353877; Sun, 10 Nov 2013 07:12:33 -0800 (PST) Received: by 10.224.160.77 with HTTP; Sun, 10 Nov 2013 07:12:33 -0800 (PST) In-Reply-To: References: Date: Sun, 10 Nov 2013 23:12:33 +0800 Message-ID: Subject: Re: crash in pthread umtx_op From: Howard Su To: freebsd-arm@freebsd.org Content-Type: multipart/mixed; boundary=089e01536b7c82129704ead40b83 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: Sun, 10 Nov 2013 15:12:34 -0000 --089e01536b7c82129704ead40b83 Content-Type: text/plain; charset=ISO-8859-1 click send too quick. The attached is a simple repro code which can consistant repro a crash related signal deliver and mutex/cond operation. repro steps: 1. compile the test.c with the following command: clang -g test.c -lpthread 2. run ./a.out 3. press ctrl-C when "Enter" is displayed. in other words, send SIGINT when thread is in pthread_cond_timedwait. 4. crash Seems this is problem related to pthread or signal deliver, which exceeds my skill to debug. I need help. I notice this when I was play with dtrace arm port from gonozo. the _sleep function is a simpler version of dtrace_sleep in libdtrace. In case you need more details, please refer that file @ cddl/contrib/opensolaris/lib/libdtrace/dt_work.c. On Sun, Nov 10, 2013 at 11:09 PM, Howard Su wrote: > The attached is a simple repro code which can consistant repro a crash > related signal deliver and mutex/cond operation. > > repro steps: > 1. compile the test.c with the following command: > > > I notice this when I was play with dtrace arm port from gonozo. > > -- > -Howard > -- -Howard --089e01536b7c82129704ead40b83-- From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 04:16:02 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7290ECE3; Mon, 11 Nov 2013 04:16:02 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from mail-qa0-x22c.google.com (mail-qa0-x22c.google.com [IPv6:2607:f8b0:400d:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2386E26A9; Mon, 11 Nov 2013 04:16:02 +0000 (UTC) Received: by mail-qa0-f44.google.com with SMTP id f11so1468335qae.3 for ; Sun, 10 Nov 2013 20:16:01 -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 :content-type; bh=Kw0hSlHIniF/abcCamK6WWCF1OS+0Sa1m9UpbwgUejc=; b=ld4h4ETv8mKAYWkGYXjWLTo2TJa4N5sZZhJ/PPG+8E/moP4sv54NTL8o97w93x/ycQ 8wuhBKmvyAXLtwpSnJuVwdCOPEKxodCmxOTUjbYw4G6zPgdBonqjmgicOvq60ouiQV15 ogXl0zRTNE+0KjfFcLT0Zx71Xr2gD1XG1UeZuZocJuI12PRtCwiUUnDtFDedn9K8G6hz NVnC1gJRxb0QFg6b4+eAwblm6ekGMKuy0Z1TE0hfSYoVlDzX2/rLu6z1BexHeN1CqOmp gP4ltmuZJ/B6gUQdZxSlpiu5mYsTf9YQ1Dztg9D5XMnZLS+U75LYJf6/yR47djhKeiY2 76wQ== MIME-Version: 1.0 X-Received: by 10.224.167.83 with SMTP id p19mr16517577qay.28.1384143361302; Sun, 10 Nov 2013 20:16:01 -0800 (PST) Received: by 10.224.160.77 with HTTP; Sun, 10 Nov 2013 20:16:01 -0800 (PST) In-Reply-To: References: Date: Mon, 11 Nov 2013 12:16:01 +0800 Message-ID: Subject: Re: crash in pthread umtx_op From: Howard Su To: Adrian Chadd , freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 11 Nov 2013 04:16:02 -0000 On Mon, Nov 11, 2013 at 11:20 AM, Adrian Chadd wrote: > attachments are stripped; please include it inline or provide a url. > > http://hastebin.com/kudowerave.avrasm > > -a > > On 10 November 2013 07:12, Howard Su wrote: > > click send too quick. > > > > The attached is a simple repro code which can consistant repro a crash > > related signal deliver and mutex/cond operation. > > > > repro steps: > > 1. compile the test.c with the following command: > > clang -g test.c -lpthread > > 2. run ./a.out > > 3. press ctrl-C when "Enter" is displayed. in other words, send SIGINT > when > > thread is in pthread_cond_timedwait. > > 4. crash > > > > Seems this is problem related to pthread or signal deliver, which exceeds > > my skill to debug. I need help. > > > > I notice this when I was play with dtrace arm port from gonozo. the > _sleep > > function is a simpler version of dtrace_sleep in libdtrace. In case you > > need more details, please refer that file @ > > cddl/contrib/opensolaris/lib/libdtrace/dt_work.c. > > > > > > > > On Sun, Nov 10, 2013 at 11:09 PM, Howard Su wrote: > > > >> The attached is a simple repro code which can consistant repro a crash > >> related signal deliver and mutex/cond operation. > >> > >> repro steps: > >> 1. compile the test.c with the following command: > >> > >> > >> I notice this when I was play with dtrace arm port from gonozo. > >> > >> -- > >> -Howard > >> > > > > > > > > -- > > -Howard > > > > _______________________________________________ > > 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" > -- -Howard From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 06:40:02 2013 Return-Path: Delivered-To: freebsd-arm@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 16DC914C for ; Mon, 11 Nov 2013 06:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 047002D6C for ; Mon, 11 Nov 2013 06:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rAB6e1LH098431 for ; Mon, 11 Nov 2013 06:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAB6e1A7098430; Mon, 11 Nov 2013 06:40:01 GMT (envelope-from gnats) Date: Mon, 11 Nov 2013 06:40:01 GMT Message-Id: <201311110640.rAB6e1A7098430@freefall.freebsd.org> To: freebsd-arm@FreeBSD.org Cc: From: John Wehle Subject: Re: arm/183740: mutex on some arm hardware requires dcache enabled X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Wehle List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 06:40:02 -0000 The following reply was made to PR arm/183740; it has been noted by GNATS. From: John Wehle To: ganbold@gmail.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: arm/183740: mutex on some arm hardware requires dcache enabled Date: Mon, 11 Nov 2013 01:31:38 -0500 (EST) > What kind of Amlogic board you are working on? I'm currently using a Visson ATV-102 "Android TV Box" which has an Amlogic aml8726-m3 SoC. I have it to the point of attempting to mount the root filesystem so it's probably time for me to write a driver for the Amlogic MMC hardware. I also have a Ainol Elf 2 tablet which has an Amlogic aml8726-mx SoC which I plan to work on next. Both chips are dual core Arm Cortex A9 processors. > As for the patch can you try to put it in initarm_late_init() of > your board machdep code and try? Yep ... enabling the dcache in initarm_late_init takes care of the mutex ldrex / strex problem. -- John From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 09:03:10 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E01D3BB8 for ; Mon, 11 Nov 2013 09:03:09 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B31872540 for ; Mon, 11 Nov 2013 09:03:09 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id at1so1486309iec.2 for ; Mon, 11 Nov 2013 01:03:09 -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=fQWjQz6idX7+iTSS15my7XWltSdhgyxJBE133ec+KPU=; b=XNPdxZXZjglPns1PPkMaxKHXx+YVAZFZGa5v3iNHCxINjSxpJRac5AlkLGlYACR32v YZYfOaBd52nSfyOviyldKt9fl8DgL8mlaULv9TpBQgH3pscT3/2dybnzPRaTmb61hI+v Y1LDI+34R07ZE/NF2/7TxoysYFYIkWvbgwsjEN+T8tO9bPPKXmenR5PD29iEDc2OHQ44 3godEHCdRTQM4rlJuz0gLRiwGykyk1+UuZaj0u/fSeZtlXv1mejvptMfdzExO90i97OY rP9j5TxnScPp9S4IgSxd7ojur4+OyoN4+zkO+M6f4VXmdcF/mVTheo7WKd50hnJpsFsA /R4w== MIME-Version: 1.0 X-Received: by 10.50.129.39 with SMTP id nt7mr12051781igb.13.1384160589177; Mon, 11 Nov 2013 01:03:09 -0800 (PST) Received: by 10.64.18.14 with HTTP; Mon, 11 Nov 2013 01:03:09 -0800 (PST) In-Reply-To: <201311110631.rAB6VceX027412@jwlab.FEITH.COM> References: <201311110631.rAB6VceX027412@jwlab.FEITH.COM> Date: Mon, 11 Nov 2013 17:03:09 +0800 Message-ID: Subject: Re: arm/183740: mutex on some arm hardware requires dcache enabled From: Ganbold Tsagaankhuu To: John Wehle 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: Mon, 11 Nov 2013 09:03:10 -0000 On Mon, Nov 11, 2013 at 2:31 PM, John Wehle wrote: > > What kind of Amlogic board you are working on? > > I'm currently using a Visson ATV-102 "Android TV Box" which has an > Amlogic aml8726-m3 SoC. I have it to the point of attempting to > mount the root filesystem so it's probably time for me to write a > driver for the Amlogic MMC hardware. > > I also have a Ainol Elf 2 tablet which has an Amlogic aml8726-mx SoC > which I plan to work on next. > Very cool and since this talk is related to arm I CC-ed freebsd-arm@. > > Both chips are dual core Arm Cortex A9 processors. > > > As for the patch can you try to put it in initarm_late_init() of > > your board machdep code and try? > > Yep ... enabling the dcache in initarm_late_init takes care of the > mutex ldrex / strex problem. > Great. br, Ganbold > > -- John > > From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 09:06:50 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B4187C3C for ; Mon, 11 Nov 2013 09:06:50 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 706C02565 for ; Mon, 11 Nov 2013 09:06:50 +0000 (UTC) Received: from terran (unknown [192.168.99.1]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPA id 37FA6C493D; Mon, 11 Nov 2013 11:06:42 +0200 (EET) Date: Mon, 11 Nov 2013 11:07:24 +0200 From: Aleksandr Rybalko To: John Wehle Subject: Re: arm/183740: mutex on some arm hardware requires dcache enabled Message-Id: <20131111110724.c3532e00bcf6f69907e32295@freebsd.org> In-Reply-To: <201311110640.rAB6e1A7098430@freefall.freebsd.org> References: <201311110640.rAB6e1A7098430@freefall.freebsd.org> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.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: Mon, 11 Nov 2013 09:06:50 -0000 On Mon, 11 Nov 2013 06:40:01 GMT John Wehle wrote: > The following reply was made to PR arm/183740; it has been noted by GNATS. > > From: John Wehle > To: ganbold@gmail.com > Cc: freebsd-gnats-submit@freebsd.org > Subject: Re: arm/183740: mutex on some arm hardware requires dcache enabled > Date: Mon, 11 Nov 2013 01:31:38 -0500 (EST) > > > What kind of Amlogic board you are working on? > > I'm currently using a Visson ATV-102 "Android TV Box" which has an > Amlogic aml8726-m3 SoC. I have it to the point of attempting to > mount the root filesystem so it's probably time for me to write a > driver for the Amlogic MMC hardware. > > I also have a Ainol Elf 2 tablet which has an Amlogic aml8726-mx SoC > which I plan to work on next. > > Both chips are dual core Arm Cortex A9 processors. > > > As for the patch can you try to put it in initarm_late_init() of > > your board machdep code and try? > > Yep ... enabling the dcache in initarm_late_init takes care of the > mutex ldrex / strex problem. > > -- John > > _______________________________________________ > 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" Cool! Go-go-go John! :) WBW -- Aleksandr Rybalko From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 11:06:46 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1204B8FA for ; Mon, 11 Nov 2013 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D966E2CA7 for ; Mon, 11 Nov 2013 11:06:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rABB6j8R081958 for ; Mon, 11 Nov 2013 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rABB6j6H081956 for freebsd-arm@FreeBSD.org; Mon, 11 Nov 2013 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Nov 2013 11:06:45 GMT Message-Id: <201311111106.rABB6j6H081956@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Subject: Current problem reports assigned to 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: Mon, 11 Nov 2013 11:06:46 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/183740 arm mutex on some arm hardware requires dcache enabled o arm/183668 arm Panic when read unalign in ddb o arm/182544 arm [patch] ARM busdma_machdep-v6.c o arm/182060 arm make buildworld fails on Raspberry PI o arm/181722 arm gdb on ARM unable to sensibly debug core file from ass o arm/181718 arm threads caused hung on ARM/RPI o arm/181601 arm Sporadic failure of root mount on ARM/Raspberry o arm/180080 arm Unmapped buffers on ARMv7 big-RAM boards o arm/179688 arm [patch] [rpi] serial console eats some characters at m o arm/179532 arm wireless networking on ARM o arm/178495 arm buildworld fail on arm/raspberry pi o arm/177687 arm gdb gets installed but does not know the EABI version o arm/177686 arm assertion failed in ld-elf.so.1 when invoking telnet w o arm/177685 arm [kernel] [patch] Correct return type and usage of at91 o arm/177538 arm tunefs(8) and mount(8) can not access a newfs(8)'d fil o arm/175803 arm building xdev for arm failing o arm/175605 arm please fix build binutils-2.23.1 in raspberry pi o arm/173617 arm Dreamplug exhibits eSATA file corruption using network o kern/171096 arm [arm][xscale][ixp]Allow 16bit access on PCI bus o arm/166256 arm build fail in pmap.c o arm/162159 arm [panic] USB errors leading to panic on DockStar 9.0-RC o arm/161110 arm /usr/src/sys/arm/include/signal.h is bad o arm/161044 arm devel/icu does not build on arm o arm/158950 arm arm/sheevaplug fails fsx when mmap operations are enab o arm/155894 arm [patch] Enable at91 booting from SDHC (high capacity) p arm/155214 arm [patch] MMC/SD IO slow on Atmel ARM with modern large o arm/154227 arm [geli] using GELI leads to panic on ARM o arm/153380 arm Panic / translation fault with wlan on ARM o arm/150581 arm [irq] Unknown error generates IRQ address decoding err o arm/134368 arm [new driver] [patch] nslu2_led driver for the LEDs on 30 problems total. From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 21:08:59 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AC5ABCD0; Mon, 11 Nov 2013 21:08:59 +0000 (UTC) (envelope-from cjr@cruwe.de) Received: from wp376.webpack.hosteurope.de (wp376.webpack.hosteurope.de [IPv6:2a01:488:42::50ed:8591]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6BA7B27C0; Mon, 11 Nov 2013 21:08:59 +0000 (UTC) Received: from p57b802ab.dip0.t-ipconnect.de ([87.184.2.171] helo=dijkstra.cruwe.de); authenticated by wp376.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1VfyjA-0001a7-EW; Mon, 11 Nov 2013 22:08:56 +0100 Date: Mon, 11 Nov 2013 22:08:54 +0100 From: "Christopher J. Ruwe" To: , freebsd-arm@freebsd.org Subject: cross-compiling for arm6 with poudriere - has anybody done that? Message-ID: <20131111220854.62f00133@dijkstra.cruwe.de> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;cjr@cruwe.de;1384204139;6d94b4a6; Cc: crees@FreeBSD.org, yerenkow@gmail.com 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: Mon, 11 Nov 2013 21:08:59 -0000 I am cc'ing the persons originally describing a solution for my problem. I would like to cross-compile packages for FreeBSD on a Raspberry Pi (arm6) on a stronger machine. Various web-sources describe how to cross-compile kernel and world for arm6/RaspberryPi [1,2,3]. Roughly a year ago, reportedly, ports have been build successfully in chrooted environments, but have failed in poudriere jails [4,5]. I have not found any more recent information on that approach. From [5] i gather the issue in [4] has been fixed, so I will try to employ poudriere to build packages for my raspberry on a stronger machine. My idea is outlined as such: Build a 9.2-RELEASE jail, cross-compile a arm6 obj tree in that jail and set poudriere make.conf options to TARGET=arm TARGET_ARCH=armv6 TARGET_CPUARCH=armv6 PATH=/usr/obj/arm.armv6/usr/src/tmp/usr/bin:${PATH} CONFIGURE_HOST=amd64 STRIP_CMD=true Has anybody tried a similar approach or can comment on my idea? Should that be pointless, I do not want to waste much time trying. [1] crochet-freebsd: https://github.com/kientzle/crochet-freebsd [2] FreeBSD developer's notebook: http://kernelnomicon.org/?p=275 [3] How to install FreeBSD on a Raspberry Pi (or: How to cross compile FreeBSD/arm): http://ogris.de/howtos/freebsd-raspberry.html [4] yerenkow@gmail.com, Ports cross-compiling: http://lists.freebsd.org/pipermail/freebsd-hackers/2012-September/040428.html [5] crees@freebsd.org, Ports cross-compiling: http://lists.freebsd.org/pipermail/freebsd-hackers/2012-November/041106.html Many thanks, -- Christopher TZ: GMT + 1h GnuPG/GPG: 0xE8DE2C14 FreeBSD 9.2-STABLE #1 r256184: Thu Oct 10 19:12:54 CEST 2013 cjr@dijkstra.cruwe.de:/usr/obj/usr/home/cjr/media/src/freebsd/base/stable/9/sys/GEN_WDTRACE Punctuation matters: "Lets eat Grandma or Lets eat, Grandma" - Punctuation saves lives. "A panda eats shoots and leaves" or "A panda eats, shoots, and leaves" - Punctuation teaches proper biology. "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." (RFC 1925) From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 02:59:51 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6251121 for ; Tue, 12 Nov 2013 02:59:51 +0000 (UTC) Received: from smtprelay.hostedemail.com (smtprelay0110.hostedemail.com [216.40.44.110]) by mx1.freebsd.org (Postfix) with ESMTP id 8BA003914 for ; Tue, 12 Nov 2013 02:59:51 +0000 (UTC) Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 50CC9269191 for ; Tue, 12 Nov 2013 02:59:50 +0000 (UTC) X-Session-Marker: 6B406C69676874706F77657265642E6F7267 X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, k@lightpowered.org, :, RULES_HIT:41:152:355:379:541:582:965:966:967:973:988:989:1152:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1537:1559:1593:1594:1711:1714:1730:1747:1777:1792:2196:2199:2393:2525:2560:2563:2682:2685:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3867:3870:3873:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4362:4385:4390:4395:5007:6261:8957:8987:9025:9040:9388:10004:10400:10848:11658:11914:12043:12517:12519:12555:13025:13069:13071:13137:13150:13230:13231:13311:13357:14039, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-HE-Tag: hair92_1ba6b0abe5d20 X-Filterd-Recvd-Size: 955 Received: from webmail07 (imap-ext [216.40.42.5]) (Authenticated sender: k@lightpowered.org) by omf09.hostedemail.com (Postfix) with ESMTPA for ; Tue, 12 Nov 2013 02:59:50 +0000 (UTC) Received: from 50.106.29.60 ([50.106.29.60]) by webmail07 (Webmail) with HTTP; Tue, 12 Nov 2013 02:59:49 +0000 (UTC) Date: Tue, 12 Nov 2013 02:59:49 +0000 (UTC) From: k@lightpowered.org To: freebsd-arm@freebsd.org Message-ID: <106622132.66623.1384225190003.JavaMail.mail@webmail07> Subject: FreeBSD on HardKernel's ODROID platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: Webmail X-Originating-IP: [50.106.29.60] X-Mailman-Approved-At: Tue, 12 Nov 2013 03:46:14 +0000 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 02:59:51 -0000 Hello, Does anyone have experience to offer regarding FreeBSD on HardKernel's ODROID platform, say, http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=G135235611947 I would like to run this set up. Thank you in advance! ^K From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 04:00:29 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CDF10ACA for ; Tue, 12 Nov 2013 04:00:29 +0000 (UTC) Received: from mail-oa0-f45.google.com (mail-oa0-f45.google.com [209.85.219.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9ACD93CA0 for ; Tue, 12 Nov 2013 04:00:29 +0000 (UTC) Received: by mail-oa0-f45.google.com with SMTP id m1so3268310oag.18 for ; Mon, 11 Nov 2013 20:00:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=geaYCMK+M+wTTKSwvLGoXg6fBB6MZVSyJSqK6mHupWE=; b=NnMDfZZD07h3UhTN6ZVNX1Y7ddk0NrZAx9LgLR+tPTI2BlF6/MfhdK20Qp6v76X+Qu 2gbvdr/EvKVaXqhRZhmyKauafyHaGuqS735mCka+aVyh3y0cZM+/PEvM2aVgD0NaC5lH ZmNhJ3b3grrTMWw7fTnNc0JK89JeaQxPPfcvA0ItDzTJX+vWZmJ1wvXPrZvZd8ph42Ap fkK3bYet6j1+jjY9apR4qQT3eZDwgZFEecCpffwaFgTMahZssWx70hFJRcscbnAjFHbJ f6Ogq2ZGtd+cnNzT+LXbeJjNgWJgAU+2huzSHI1GRbQ8KcN7IKZofmHUa4wEFJ7BArLh p6Sg== X-Gm-Message-State: ALoCoQnsKZX0N5n4kp1sZ4ABrkv3Q8Xb3BYiHKkw/DcqSlTLTMCPTXTB2TDX2f8JPw+Nj9IAlcHE MIME-Version: 1.0 X-Received: by 10.182.213.166 with SMTP id nt6mr5114770obc.53.1384228828265; Mon, 11 Nov 2013 20:00:28 -0800 (PST) Received: by 10.182.104.169 with HTTP; Mon, 11 Nov 2013 20:00:28 -0800 (PST) In-Reply-To: <106622132.66623.1384225190003.JavaMail.mail@webmail07> References: <106622132.66623.1384225190003.JavaMail.mail@webmail07> Date: Mon, 11 Nov 2013 21:00:28 -0700 Message-ID: Subject: Re: FreeBSD on HardKernel's ODROID platform From: Tom Everett To: k@lightpowered.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 04:00:29 -0000 I've never seen this board before. However I can say this; it's ARM and u-boot. Therefore it's quite similar to Raspberry Pi and BeagleBoard. It should be fairly easy to try building a crochet build for it. I've contributed to crochet previously and I don't mind giving that a try for you. That doesn't mean, however that any devices on the board will work. There is support for Exynos however ( http://svnweb.freebsd.org/base/head/sys/arm/samsung/exynos/) The DTS files on the source tree are not for Exynos4412 however ( http://svnweb.freebsd.org/base/head/sys/boot/fdt/dts/). You might have to do some hacking of your own. :) On Mon, Nov 11, 2013 at 7:59 PM, wrote: > > Hello, > > Does anyone have experience to offer regarding FreeBSD on HardKernel's > ODROID platform, say, > http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=G135235611947 > > I would like to run this set up. > > Thank you in advance! > ^K > _______________________________________________ > 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" > -- A better world shall emerge based on faith and understanding - Douglas MacArthur From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 07:08:17 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85B8E385; Tue, 12 Nov 2013 07:08:17 +0000 (UTC) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 45B892488; Tue, 12 Nov 2013 07:08:17 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 616517A10F; Tue, 12 Nov 2013 08:08:16 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 2E2A78EE54F; Tue, 12 Nov 2013 08:08:48 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lcwndRzOlnym; Tue, 12 Nov 2013 08:08:47 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 4CCE78EB95B; Tue, 12 Nov 2013 08:08:47 +0100 (CET) Message-ID: <5281D42A.6050904@bitfrost.no> Date: Tue, 12 Nov 2013 08:09:30 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Boris Astardzhiev , freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: ARM kgdb remote debugging over USB serial References: In-Reply-To: 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.16 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, 12 Nov 2013 07:08:17 -0000 On 11/09/13 19:05, Boris Astardzhiev wrote: > Hi, > > I have a question regarding the FreeBSD kernel debugging facilities. > Has anyone succeeded in using kgdb with a target ARM machine over a USB > serial. > I've managed to build kgdb-arm > > http://bsdimp.blogspot.com/2007/10/cross-debugger.html > (This tutorial also applies to building kgdb-arm in binutils) > > So on the arm machine I enter kdb: > db> gdb > db> s > .. > > On the debugging machine I easily get into kgdb: > kgdb-arm ${KERNEL_PATH}/kernel.debug > kgdb> set remotebaud 115200 > kgdb> target remote /dev/cuaU0 (the USB interface) > > So far so good but.. It seems to connect to the ARM device but it stops on > an address kgdb has no > reference about. I thought I was missing some symbols and.. > kgdb> set solib-search-path ${KERNEL_PATH} > > This seems to load lots of symbols but still I can't backtrace or do > anything. Attempting to do a 'bt' it tells me I got a SIGTRAP. I don't seem > to understand. > > Any ideas or materials? > > Greetings, > Boris Hi, Maybe there are some bits missing in the USB serial glue part? You can try making the USB serial port the console by setting the sysctls listed below correctly. Will also work in the panic prompt: hw.usb.ucom.cons_baud: 9600 hw.usb.ucom.cons_subunit: 0 hw.usb.ucom.cons_unit: -1 --HPS From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 07:39:11 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20A09B23 for ; Tue, 12 Nov 2013 07:39:11 +0000 (UTC) Received: from mail.bsdpad.com (mail.bsdpad.com [109.107.176.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF980263A for ; Tue, 12 Nov 2013 07:39:10 +0000 (UTC) Received: from mail.bsdpad.com ([109.107.176.56]) by mail.bsdpad.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1Vg8ZZ-0006oI-MS; Tue, 12 Nov 2013 11:39:41 +0400 Received: by mail.bsdpad.com (nbSMTP-1.00) for uid 1001 br@mail.bsdpad.com; Tue, 12 Nov 2013 11:39:41 +0400 (MSK) Date: Tue, 12 Nov 2013 11:39:41 +0400 From: Ruslan Bukin To: k@lightpowered.org Subject: Re: FreeBSD on HardKernel's ODROID platform Message-ID: <20131112073941.GA19103@mail.bsdpad.com> References: <106622132.66623.1384225190003.JavaMail.mail@webmail07> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <106622132.66623.1384225190003.JavaMail.mail@webmail07> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 07:39:11 -0000 On Tue, Nov 12, 2013 at 02:59:49AM +0000, k@lightpowered.org wrote: > > Hello, > > Does anyone have experience to offer regarding FreeBSD on HardKernel's ODROID platform, say, http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=G135235611947 > > I would like to run this set up. > > Thank you in advance! > ^K We have one unsolved issue on Prime version of Exynos4412 (odroid U2). We suspect that uboot sets incorrect values for cpu clocks and/or voltage regulators. In result we have prefetch abort after first interrupt received. I said Prime only, because I didn't remeber such behavior on 4412 non-Prime version. I able to confirm in a month or two, when I get the old board. I plan to take care about 5420 board (arndale octa), probably the work will cover support for hardkernel odroid-xu 5410 also. -Ruslan From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 07:48:43 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AFC5C46 for ; Tue, 12 Nov 2013 07:48:43 +0000 (UTC) Received: from mail.bsdpad.com (mail.bsdpad.com [109.107.176.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 06B5226B8 for ; Tue, 12 Nov 2013 07:48:42 +0000 (UTC) Received: from mail.bsdpad.com ([109.107.176.56]) by mail.bsdpad.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1Vg8ip-0007Qx-Hy for freebsd-arm@FreeBSD.org; Tue, 12 Nov 2013 11:49:15 +0400 Received: by mail.bsdpad.com (nbSMTP-1.00) for uid 1001 br@mail.bsdpad.com; Tue, 12 Nov 2013 11:49:15 +0400 (MSK) Date: Tue, 12 Nov 2013 11:49:15 +0400 From: Ruslan Bukin To: freebsd-arm Subject: FreeBSD on Freescale Vybrid Message-ID: <20131112074915.GB19103@mail.bsdpad.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 07:48:43 -0000 Hi! I'm happy to announce support for Freescale Vybrid Family (VFxxx) microprocessors. VF600 is a cheap single core ARM Cortex-A5 (500Mhz) or dual-core SoC with ARM Cortex-M4 (167Mhz) for low-power offload and real-time responsiveness. The port covers initial support, including drivers for: gpio, usb ehci, nand, uart Also supported: GIC, mpcore_timer, ffec ethernet driver For develop I used Phytec COSMIC board: http://www.phytec.com/products/single-board-computers/ code is here (I will commit it to HEAD very soon) http://hg.bsdpad.com Known issues: 1) ffec ethernet driver can't find media on initialization (trick with cable connector works) Thanks to Freescale for the good docs and to FreeBSD community for the great OS! -Ruslan From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 09:04:01 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6586C51F for ; Tue, 12 Nov 2013 09:04:01 +0000 (UTC) Received: from nibbler.fubar.geek.nz (nibbler.fubar.geek.nz [199.48.134.198]) by mx1.freebsd.org (Postfix) with ESMTP id 4ACB32B2F for ; Tue, 12 Nov 2013 09:04:01 +0000 (UTC) Received: from bender.Home (97e5e46b.skybroadband.com [151.229.228.107]) by nibbler.fubar.geek.nz (Postfix) with ESMTPSA id C824A5E2FC; Tue, 12 Nov 2013 08:54:55 +0000 (UTC) Date: Tue, 12 Nov 2013 08:54:47 +0000 From: Andrew Turner To: Ruslan Bukin Subject: Re: FreeBSD on Freescale Vybrid Message-ID: <20131112085447.229585d0@bender.Home> In-Reply-To: <20131112074915.GB19103@mail.bsdpad.com> References: <20131112074915.GB19103@mail.bsdpad.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 09:04:01 -0000 On Tue, 12 Nov 2013 11:49:15 +0400 Ruslan Bukin wrote: > Hi! > > I'm happy to announce support for Freescale Vybrid Family > (VFxxx) microprocessors. > > VF600 is a cheap single core ARM Cortex-A5 (500Mhz) > or dual-core SoC with ARM Cortex-M4 (167Mhz) for low-power > offload and real-time responsiveness. > > The port covers initial support, including drivers for: > gpio, usb ehci, nand, uart > > Also supported: > GIC, mpcore_timer, ffec ethernet driver > > For develop I used Phytec COSMIC board: > http://www.phytec.com/products/single-board-computers/ > > code is here (I will commit it to HEAD very soon) > http://hg.bsdpad.com > > Known issues: > 1) ffec ethernet driver can't find media on initialization > (trick with cable connector works) > > Thanks to Freescale for the good docs and > to FreeBSD community for the great OS! One thing I noticed is you are not prefixing the all file names in the sys/arm/freescale/vybrid/ directory with something unique. I am starting to work on a GENERIC kernel for armv6 and this needs each file to have a unique name even if they are in different directories. It would be good if you could rename them before committing to FreeBSD as this would reduce the churn later. Andrew From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 11:02:07 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 126C4E6F for ; Tue, 12 Nov 2013 11:02:07 +0000 (UTC) Received: from mail.bsdpad.com (mail.bsdpad.com [109.107.176.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BD1EC227E for ; Tue, 12 Nov 2013 11:02:06 +0000 (UTC) Received: from mail.bsdpad.com ([109.107.176.56]) by mail.bsdpad.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VgBjv-000POG-1F; Tue, 12 Nov 2013 15:02:35 +0400 Received: by mail.bsdpad.com (nbSMTP-1.00) for uid 1001 br@mail.bsdpad.com; Tue, 12 Nov 2013 15:02:35 +0400 (MSK) Date: Tue, 12 Nov 2013 15:02:34 +0400 From: Ruslan Bukin To: Andrew Turner Subject: Re: FreeBSD on Freescale Vybrid Message-ID: <20131112110234.GA88970@mail.bsdpad.com> References: <20131112074915.GB19103@mail.bsdpad.com> <20131112085447.229585d0@bender.Home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20131112085447.229585d0@bender.Home> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 11:02:07 -0000 On Tue, Nov 12, 2013 at 08:54:47AM +0000, Andrew Turner wrote: > On Tue, 12 Nov 2013 11:49:15 +0400 > Ruslan Bukin wrote: > > > Hi! > > > > I'm happy to announce support for Freescale Vybrid Family > > (VFxxx) microprocessors. > > > > One thing I noticed is you are not prefixing the all file names in the > sys/arm/freescale/vybrid/ directory with something unique. I am > starting to work on a GENERIC kernel for armv6 and this needs each file > to have a unique name even if they are in different directories. > > It would be good if you could rename them before committing to > FreeBSD as this would reduce the churn later. > > Andrew Thanks for the notice, I added prefix to the files. -Ruslan From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 11:14:43 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FDE66AA for ; Tue, 12 Nov 2013 11:14:43 +0000 (UTC) Received: from mailhost.m5p.com (ip-2-1-0-2.r03.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3C6D92392 for ; Tue, 12 Nov 2013 11:14:43 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id rACBEaKe037357 for ; Tue, 12 Nov 2013 06:14:41 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <52820D9C.8060707@m5p.com> Date: Tue, 12 Nov 2013 06:14:36 -0500 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: FreeBSD on HardKernel's ODROID platform References: <106622132.66623.1384225190003.JavaMail.mail@webmail07> <20131112073941.GA19103@mail.bsdpad.com> In-Reply-To: <20131112073941.GA19103@mail.bsdpad.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.100.0.3 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Tue, 12 Nov 2013 06:14:41 -0500 (EST) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 11:14:43 -0000 On 11/12/13 02:39, Ruslan Bukin wrote: > [...] > We suspect that uboot sets incorrect values for cpu clocks > and/or voltage regulators. In result we have prefetch abort > after first interrupt received. > [...] Could this be connected to the persistent prefetch abort problem I've been having in my Raspberry Pi? -- George Mitchell From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 14:17:40 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 284B8FD; Tue, 12 Nov 2013 14:17:40 +0000 (UTC) Received: from mail-qa0-x22c.google.com (mail-qa0-x22c.google.com [IPv6:2607:f8b0:400d:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D36472F84; Tue, 12 Nov 2013 14:17:39 +0000 (UTC) Received: by mail-qa0-f44.google.com with SMTP id f11so2860196qae.10 for ; Tue, 12 Nov 2013 06:17:38 -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:cc:content-type; bh=1VSJlKMMNTvjtIg6BEMKLJ9ahM37YWIlNpcB+32hnM8=; b=bx8MdCdFApu/dtMEr7TQCzB/tQOVvayIrY6bOsTx0c7UAn2wIUkBoNBZw0RHy3elbJ UyoHDViJp8DTxTl6W6exyWVQcGFJSUKP3PSaSwSclyNXZQBBnvwX9NpgFJsI2QqivWtz pdcx1jzKsqosjCMxXMrewlobuvmEcBeoh1hYAdC8266WXvR8QeCy0DAih7JTkV5cnxir vmrhHcgFfEnsTFvCjDxeZC2iLtNL/lB1qpPvsEWHeKTcZwdXRiFYRNTT55m4Z6HjwPIc 72Igc27Zip5EGcy5LDqFQYdxMnnhS7+3QHZn2dx9CmeYWSPjbWns4owJc1nW4uo+zo3k 53oA== MIME-Version: 1.0 X-Received: by 10.49.18.33 with SMTP id t1mr56576906qed.77.1384265858914; Tue, 12 Nov 2013 06:17:38 -0800 (PST) Received: by 10.224.160.77 with HTTP; Tue, 12 Nov 2013 06:17:38 -0800 (PST) Date: Tue, 12 Nov 2013 22:17:38 +0800 Message-ID: Subject: DTrace/ARM Status Update From: Howard Su To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: Oleksandr Tymoshenko X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 14:17:40 -0000 Recently, I bring Gonzo@ original patch to latest head. This is a status update so far I am: 1. The patch with some minor updates get successfully build. So far I only work on ARMV6 ARCH support since it is more straightforward due to endian. 2. I get it running in my BEAGLEBONE BLACK board. I think it should work also for RPi. (but I don't have it to test). the performance provider, sdt provider and syscall providers all work well. (All credit goes to Gonzo@.) 3. I am working on FBT support. I can list detect fbt functions. I am working on handling illegal instruction exception and simulate the patched instruction. # dtrace -l | grep fbt | wc 18161 90805 1371228 4. next step will be fasttrap support for userland trace. 5. The only issue which blocks to have widely testing is crash which I reported in this list. Fell free to email me if you wan to play with it or help. Thanks, Howard Su -- -Howard From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 16:45:48 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45C10CDA for ; Tue, 12 Nov 2013 16:45:48 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1D6302B71 for ; Tue, 12 Nov 2013 16:45:47 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VgH5w-000OdL-69; Tue, 12 Nov 2013 16:45:40 +0000 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 rACGja4D070956; Tue, 12 Nov 2013 09:45:36 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/IPUEI8Dptg2So+dID3t/R Subject: Re: FreeBSD on HardKernel's ODROID platform From: Ian Lepore To: George Mitchell In-Reply-To: <52820D9C.8060707@m5p.com> References: <106622132.66623.1384225190003.JavaMail.mail@webmail07> <20131112073941.GA19103@mail.bsdpad.com> <52820D9C.8060707@m5p.com> Content-Type: text/plain; charset="us-ascii" Date: Tue, 12 Nov 2013 09:45:35 -0700 Message-ID: <1384274735.31172.299.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@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 16:45:48 -0000 On Tue, 2013-11-12 at 06:14 -0500, George Mitchell wrote: > On 11/12/13 02:39, Ruslan Bukin wrote: > > [...] > > We suspect that uboot sets incorrect values for cpu clocks > > and/or voltage regulators. In result we have prefetch abort > > after first interrupt received. > > [...] > > Could this be connected to the persistent prefetch abort problem I've > been having in my Raspberry Pi? -- George Mitchell I suspected the same thing on my wandboard with the wrong-endian prefetch abort problem, and noticed that u-boot was violating some of the imx6 rules for voltage regulation, so with great hopes for a fix I added some code to the freebsd early kernel init to increase the voltage slightly and get all 3 regulators in range with each other according to what the manual said... it didn't help. -- Ian From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 19:46:18 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C71EDA46 for ; Tue, 12 Nov 2013 19:46:18 +0000 (UTC) Received: from kukuro.siemiradzcy.pl (host-89-231-96-32.warszawa.mm.pl [89.231.96.32]) by mx1.freebsd.org (Postfix) with ESMTP id 57732205D for ; Tue, 12 Nov 2013 19:46:17 +0000 (UTC) Received: from [10.84.12.122] (volkove-THINK.siemiradzcy.pl [10.84.12.122]) by kukuro.siemiradzcy.pl (Postfix) with ESMTPSA id 75E51C0079 for ; Tue, 12 Nov 2013 20:36:20 +0100 (CET) Message-ID: <52828332.8070603@siemiradzcy.pl> Date: Tue, 12 Nov 2013 20:36:18 +0100 From: =?UTF-8?B?xYF1a2FzeiBKYWt1YiBTaWVtaXJhZHpraQ==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: E-sata drive not detected on Kirkwood 88F6281 SoC (Sheevaplug) on FreeBSD 10/BETA3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 19:46:18 -0000 Hello group! I hope you could help me with the problem I'm trying to solve. I'm having a problem with e-sata drive on FreeBSD 10/BETA3 on Kirkwood 88F6281 SoC (aka Sheevaplug) - it is not detected during boot. It was working fine for FreeBSD 8.2. I know that there were (at least) two important changes for ATA stack which may be the reason, that this changes on 20110424 and on 20130404. However my understanding was that compiling into the kernel mvs and ada will fix the problem. As I understand from the manpage mvs should also support my controller: 88F6281 SoC, but I cannot see it: # camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) Would you be able to suggest me what else I can check? Below my kernel config: # # Custom kernel for Marvell SheevaPlug devices. # # $FreeBSD: stable/10/sys/arm/conf/SHEEVAPLUG 253845 2013-07-31 17:21:18Z obrien $ # ident SHEEVAPLUG include "../mv/kirkwood/std.db88f6xxx" options SOC_MV_KIRKWOOD makeoptions MODULES_OVERRIDE="" #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WERROR="-Werror" options SCHED_4BSD #4BSD scheduler options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options NANDFS #NAND Filesystem options NFSCL #New Network Filesystem Client options NFSLOCKD #Network Lock Manager #options NFS_ROOT #NFS usable as /, requires NFSCL #options BOOTP #options BOOTP_NFSROOT #options BOOTP_NFSV3 #options BOOTP_WIRED_TO=mge0 # Root fs on USB device #options ROOTDEVNAME=\"ufs:/dev/da0a\" #options ROOTDEVNAME=\"ufs:/dev/da1s1a\" #options ROOTDEVNAME=\"ufs:/dev/da1p10\" #options ROOTDEVNAME=\"ufs:/dev/ad2d2\" options ROOTDEVNAME=\"nandfs:/dev/gnand0s.root\" options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options MUTEX_NOINLINE options RWLOCK_NOINLINE options NO_FFS_SNAPSHOT options NO_SWAPPING # Debugging options ALT_BREAK_TO_DEBUGGER options DDB options KDB # Pseudo devices device random device loop # Serial ports device uart # Networking device ether device mge # Marvell Gigabit Ethernet controller device mii device e1000phy device bpf options HZ=1000 options DEVICE_POLLING device vlan device cesa # Marvell security engine device crypto device cryptodev # USB options USB_DEBUG # enable debug msgs device usb device ehci device umass device scbus device pass device da # NAND device nand # NAND sim options ALQ device nandsim # Flattened Device Tree options FDT options FDT_DTB_STATIC makeoptions FDT_DTS_FILE=sheevaplug.dts device md device mvs device ada device pf device pflog options MSDOSFS options GEOM_PART_GPT Here is the full output of the boot sequence: Marvell>> ide reset Reset IDE: Marvell Serial ATA Adapter Integrated Sata device found [0 1 0]: Enable DMA mode Device 1 @ 0 1: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#: WD-WCAZAJ212143 Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) Marvell>> usb reset (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Marvell>> boot BOOTP broadcast 1 *** Unhandled DHCP Option in OFFER/ACK: 28 *** Unhandled DHCP Option in OFFER/ACK: 28 DHCP client bound to address 10.64.1.5 Using egiga0 device TFTP from server 10.64.1.2; our IP address is 10.64.1.5 Filename 'kernel.bin'. Load address: 0x900000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ##################################################### done Bytes transferred = 4260808 (4103c8 hex) ## Starting application at 0x00900000 ... 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-BETA3 #4 r257803M: Tue Nov 12 02:16:15 CET 2013 root@fb:/usr/obj/arm.arm/usr/src/sys/SHEEVAPLUG arm FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 CPU: Feroceon 88FR131 rev 1 (Marvell core) Little-endian DC enabled IC enabled WA disabled DC streaming enabled BTB disabled L2 enabled L2 prefetch enabled WB enabled EABT branch prediction enabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory = 536870912 (512 MB) avail memory = 518631424 (494 MB) SOC: Marvell 88F6281 rev A0, TClock 200MHz Instruction cache prefetch enabled, data cache prefetch enabled 256KB 4-way set-associative write-through unified L2 cache random device not loaded; using insecure entropy random: initialized localbus0: on fdtbus0 nand0: mem 0xf9300000-0xf93fffff on localbus0 nandbus0: on nand0 lnand0: on nandbus0 lnand0: Found BBT table for chip simplebus0: on fdtbus0 ic0: mem 0xf1020200-0xf102023b on simplebus0 timer0: mem 0xf1020300-0xf102032f irq 1 on simplebus0 Event timer "CPUTimer0" frequency 200000000 Hz quality 1000 Timecounter "CPUTimer1" frequency 200000000 Hz quality 1000 gpio0: mem 0xf1010100-0xf101011f irq 35,36,37,38,39,40,41 on simplebus0 rtc0: mem 0xf1010300-0xf1010307 on simplebus0 mge0: mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on simplebus0 mge0: Ethernet address: 00:50:43:01:4c:aa miibus0: on mge0 e1000phy0: PHY 0 on miibus0 e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto uart0: <16550 or compatible> mem 0xf1012000-0xf101201f irq 33 on simplebus0 uart0: console (1066,n,8,1) uart1: <16550 or compatible> mem 0xf1012100-0xf101211f irq 34 on simplebus0 cesa0: mem 0xf1030000-0xf103ffff irq 22 on simplebus0 ehci0: mem 0xf1050000-0xf1050fff irq 48,19 on simplebus0 usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0 on ehci0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 random: unblocking device. Root mount waiting for: usbus0 uhub0: 1 port with 1 removable, self powered Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4100 umass0:0:0:-1: Attached to scbus0 Trying to mount root from nandfs:/dev/gnand0s.root []... WARNING: NANDFS is considered to be a highly experimental feature in FreeBSD. da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: Serial Number 124500000000038F da0: 40.000MB/s transfers da0: 7651MB (15669248 512 byte sectors: 255H 63S/T 975C) da0: quirks=0x2 Setting hostuuid: a67cbd38-c0d3-11d3-a56f-005043014caa. Setting hostid: 0x9d53772f. Entropy harvesting: interrupts ethernet point_to_point swi. Starting file system checks: Mounting local file systems:. Writing entropy file:. Setting hostname: pathogen. Starting Network: lo0 mge0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 mge0: flags=8802 metric 0 mtu 1500 options=8000b ether 00:50:43:01:4c:aa media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 Starting devd. Starting Network: mge0. mge0: flags=8802 metric 0 mtu 1500 options=8000b ether 00:50:43:01:4c:aa media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Generating host.conf. eval: cannot create /etc/host.conf: Read-only file system eval: cannot create /etc/host.conf: Read-only file system eval: cannot create /etc/host.conf: Read-only file system Creating and/or trimming log files. Starting syslogd. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Clearing /tmp (X related). Updating motd: /etc/motd is not writable, update failed. Mounting late file systems:. Performing sanity check on sshd configuration. Starting sshd. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Tue Nov 12 18:39:39 UTC 2013 FreeBSD/arm (pathogen) (ttyu0) login: root Nov 12 18:39:52 pathogen login: ROOT LOGIN (root) ON ttyu0 FreeBSD 10.0-BETA3 (SHEEVAPLUG) #3 r257803M: Tue Nov 12 00:58:51 CET 2013 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc package has been installed (or fetched via pkg install lang-freebsd-doc, where lang is the 2-letter language code, e.g. en), they are also available formatted in /usr/local/share/doc/freebsd. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. Edit /etc/motd to change this login announcement. root@pathogen:~ # --- Best regards / Pozdrawiam Łukasz Siemiradzki From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 23:41:41 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8CACF904; Tue, 12 Nov 2013 23:41:41 +0000 (UTC) Received: from mailhost.m5p.com (ip-2-1-0-2.r03.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 481B121D5; Tue, 12 Nov 2013 23:41:41 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id rACNfYWa042986; Tue, 12 Nov 2013 18:41:39 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <5282BCAE.1000707@m5p.com> Date: Tue, 12 Nov 2013 18:41:34 -0500 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Ian Lepore Subject: Re: FreeBSD on HardKernel's ODROID platform References: <106622132.66623.1384225190003.JavaMail.mail@webmail07> <20131112073941.GA19103@mail.bsdpad.com> <52820D9C.8060707@m5p.com> <1384274735.31172.299.camel@revolution.hippie.lan> In-Reply-To: <1384274735.31172.299.camel@revolution.hippie.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.100.0.3 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Tue, 12 Nov 2013 18:41:39 -0500 (EST) Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 12 Nov 2013 23:41:41 -0000 On 11/12/13 11:45, Ian Lepore wrote: > On Tue, 2013-11-12 at 06:14 -0500, George Mitchell wrote: >> On 11/12/13 02:39, Ruslan Bukin wrote: >>> [...] >>> We suspect that uboot sets incorrect values for cpu clocks >>> and/or voltage regulators. In result we have prefetch abort >>> after first interrupt received. >>> [...] >> >> Could this be connected to the persistent prefetch abort problem I've >> been having in my Raspberry Pi? -- George Mitchell > > I suspected the same thing on my wandboard with the wrong-endian > prefetch abort problem, and noticed that u-boot was violating some of > the imx6 rules for voltage regulation, so with great hopes for a fix I > added some code to the freebsd early kernel init to increase the voltage > slightly and get all 3 regulators in range with each other according to > what the manual said... it didn't help. > > -- Ian > Too bad, but thanks for checking. Any other progress on the problem? -- George From owner-freebsd-arm@FreeBSD.ORG Wed Nov 13 00:04:49 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76BDDB34 for ; Wed, 13 Nov 2013 00:04:49 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3B33822FD for ; Wed, 13 Nov 2013 00:04:48 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VgNwt-0003ZJ-NZ; Wed, 13 Nov 2013 00:04:47 +0000 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 rAD04itl071338; Tue, 12 Nov 2013 17:04:44 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19M6dFcDeCIcjpcer6D8LT5 Subject: Re: E-sata drive not detected on Kirkwood 88F6281 SoC (Sheevaplug) on FreeBSD 10/BETA3 From: Ian Lepore To: =?iso-8859-2?Q?=A3ukasz?= Jakub Siemiradzki In-Reply-To: <52828332.8070603@siemiradzcy.pl> References: <52828332.8070603@siemiradzcy.pl> Content-Type: text/plain; charset="iso-8859-2" Date: Tue, 12 Nov 2013 17:04:44 -0700 Message-ID: <1384301084.31172.354.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by damnhippie.dyndns.org id rAD04itl071338 Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 00:04:49 -0000 On Tue, 2013-11-12 at 20:36 +0100, =A3ukasz Jakub Siemiradzki wrote: > Hello group! > I hope you could help me with the problem I'm trying to solve. I'm=20 > having a problem with e-sata drive on FreeBSD 10/BETA3 on Kirkwood=20 > 88F6281 SoC (aka Sheevaplug) - it is not detected during boot. > It was working fine for FreeBSD 8.2. I know that there were (at least)=20 > two important changes for ATA stack which may be the reason, that this=20 > changes on 20110424 and on 20130404. > However my understanding was that compiling into the kernel mvs and ada= =20 > will fix the problem. > As I understand from the manpage mvs should also support my controller:= =20 > 88F6281 SoC, but I cannot see it: > # camcontrol devlist > at scbus0 target 0 lun 0 (pass0,da0) > Would you be able to suggest me what else I can check? >=20 > Below my kernel config: >=20 > # > # Custom kernel for Marvell SheevaPlug devices. > # > # $FreeBSD: stable/10/sys/arm/conf/SHEEVAPLUG 253845 2013-07-31 17:21:1= 8Z obrien $ > # >=20 > ident SHEEVAPLUG > include "../mv/kirkwood/std.db88f6xxx" >=20 > options SOC_MV_KIRKWOOD > makeoptions MODULES_OVERRIDE=3D"" >=20 > #makeoptions DEBUG=3D-g #Build kernel with gdb(1) debug symbols > makeoptions WERROR=3D"-Werror" >=20 > options SCHED_4BSD #4BSD scheduler > options INET #InterNETworking > options INET6 #IPv6 communications protocols > options FFS #Berkeley Fast Filesystem > options NANDFS #NAND Filesystem > options NFSCL #New Network Filesystem Client > options NFSLOCKD #Network Lock Manager > #options NFS_ROOT #NFS usable as /, requires NFSCL > #options BOOTP > #options BOOTP_NFSROOT > #options BOOTP_NFSV3 > #options BOOTP_WIRED_TO=3Dmge0 >=20 > # Root fs on USB device > #options ROOTDEVNAME=3D\"ufs:/dev/da0a\" > #options ROOTDEVNAME=3D\"ufs:/dev/da1s1a\" > #options ROOTDEVNAME=3D\"ufs:/dev/da1p10\" > #options ROOTDEVNAME=3D\"ufs:/dev/ad2d2\" > options ROOTDEVNAME=3D\"nandfs:/dev/gnand0s.root\" >=20 >=20 > options SYSVSHM #SYSV-style shared memory > options SYSVMSG #SYSV-style message queues > options SYSVSEM #SYSV-style semaphores > options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensio= ns > options MUTEX_NOINLINE > options RWLOCK_NOINLINE > options NO_FFS_SNAPSHOT > options NO_SWAPPING >=20 > # Debugging > options ALT_BREAK_TO_DEBUGGER > options DDB > options KDB >=20 > # Pseudo devices > device random > device loop >=20 > # Serial ports > device uart >=20 > # Networking > device ether > device mge # Marvell Gigabit Ethernet controller > device mii > device e1000phy > device bpf > options HZ=3D1000 > options DEVICE_POLLING > device vlan >=20 > device cesa # Marvell security engine > device crypto > device cryptodev >=20 > # USB > options USB_DEBUG # enable debug msgs > device usb > device ehci > device umass > device scbus > device pass > device da >=20 > # NAND > device nand >=20 > # NAND sim > options ALQ > device nandsim >=20 > # Flattened Device Tree > options FDT > options FDT_DTB_STATIC > makeoptions FDT_DTS_FILE=3Dsheevaplug.dts >=20 > device md > device mvs > device ada >=20 > device pf > device pflog >=20 > options MSDOSFS > options GEOM_PART_GPT >=20 >=20 > Here is the full output of the boot sequence: >=20 > [snip] I think you need "device ahci" instead of "device ada". I use the eSata on my dreamplug, using stock kernel config, and it works great, so if adding ahci doesn't fix yours, look for other differences between your kernel config and arm/conf/DREAMPLUG-1001 -- Ian From owner-freebsd-arm@FreeBSD.ORG Wed Nov 13 13:30:00 2013 Return-Path: Delivered-To: freebsd-arm@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C171A543 for ; Wed, 13 Nov 2013 13:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A28E921CF for ; Wed, 13 Nov 2013 13:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rADDU0sL081564 for ; Wed, 13 Nov 2013 13:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rADDU0oh081563; Wed, 13 Nov 2013 13:30:00 GMT (envelope-from gnats) Resent-Date: Wed, 13 Nov 2013 13:30:00 GMT Resent-Message-Id: <201311131330.rADDU0oh081563@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Howard Su Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B6784AE for ; Wed, 13 Nov 2013 13:25:20 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EFCE1219C for ; Wed, 13 Nov 2013 13:25:19 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rADDPJJ9077364 for ; Wed, 13 Nov 2013 13:25:19 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rADDPJKL077353; Wed, 13 Nov 2013 13:25:19 GMT (envelope-from nobody) Message-Id: <201311131325.rADDPJKL077353@oldred.freebsd.org> Date: Wed, 13 Nov 2013 13:25:19 GMT From: Howard Su To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: arm/183926: Crash when ctrl-c while process is enter X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 13:30:00 -0000 >Number: 183926 >Category: arm >Synopsis: Crash when ctrl-c while process is enter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 13 13:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Howard Su >Release: -Current >Organization: >Environment: FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #9 42a79a9(dtrace_arm)-dirty: Tue Nov 12 21:56:17 CST 2013 howardsu@FreeBSD:/usr/home/howardsu/usr/obj/arm.armv6/usr/home/howardsu/usr/freebsd/sys/BEAGLEBONE arm >Description: consistent repro a crash related signal deliver and mutex/cond operation in arm platform. I notice this when I was play with dtrace arm port from gonozo. the _sleep function is a simpler version of dtrace_sleep in libdtrace. In case you need a real case, please refer that file @ cddl/contrib/opensolaris/lib/libdtrace/dt_work.c. >How-To-Repeat: Compile and run the attached C code. Press Ctrl-C when shows "enter". >Fix: Patch attached with submission follows: #include #include #include pthread_cond_t cv; pthread_mutex_t lock; pthread_condattr_t ca; pthread_mutexattr_t ma; int done = 0; void _sleep() { struct timespec tv; clock_gettime(CLOCK_REALTIME,&tv); tv.tv_sec += 1; tv.tv_nsec = 0; (void) pthread_mutex_lock(&lock); (void) pthread_cond_timedwait(&cv, &lock, &tv); (void) pthread_mutex_unlock(&lock); } static void intr(int signo) { done++; } int main() { struct sigaction act; pthread_condattr_init(&ca); pthread_mutexattr_init(&ma); pthread_mutex_init(&lock, &ma); pthread_cond_init(&cv, &ca); (void) sigemptyset(&act.sa_mask); act.sa_flags = 0; act.sa_handler = intr; (void) sigaction(SIGINT, &act, NULL); while(!done) { printf("enter\n"); _sleep(); printf("exit\n"); } printf("done\n"); return 0; } >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Wed Nov 13 13:55:15 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E65CEB85; Wed, 13 Nov 2013 13:55:15 +0000 (UTC) Received: from kukuro.siemiradzcy.pl (host-89-231-96-32.warszawa.mm.pl [89.231.96.32]) by mx1.freebsd.org (Postfix) with ESMTP id A9222237A; Wed, 13 Nov 2013 13:55:15 +0000 (UTC) Received: from [192.168.2.43] (unknown [81.210.82.14]) by kukuro.siemiradzcy.pl (Postfix) with ESMTPSA id 90A6EC0079; Wed, 13 Nov 2013 14:55:12 +0100 (CET) References: <52828332.8070603@siemiradzcy.pl> <1384301084.31172.354.camel@revolution.hippie.lan> Mime-Version: 1.0 (1.0) In-Reply-To: <1384301084.31172.354.camel@revolution.hippie.lan> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: X-Mailer: iPhone Mail (11B511) From: =?utf-8?Q?=C5=81ukasz_Jakub_Siemiradzki?= Subject: Re: E-sata drive not detected on Kirkwood 88F6281 SoC (Sheevaplug) on FreeBSD 10/BETA3 Date: Wed, 13 Nov 2013 14:55:07 +0100 To: Ian Lepore Cc: "freebsd-arm@FreeBSD.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 13 Nov 2013 13:55:16 -0000 Dnia 13 lis 2013 o godz. 01:04 Ian Lepore napisa=C5=82(a):= >> On Tue, 2013-11-12 at 20:36 +0100, =C5=81ukasz Jakub Siemiradzki wrote: >> Hello group! [snip] >> # Flattened Device Tree >> options FDT >> options FDT_DTB_STATIC >> makeoptions FDT_DTS_FILE=3Dsheevaplug.dts >>=20 >> device md >> device mvs >> device ada >>=20 >> device pf >> device pflog >>=20 >> options MSDOSFS >> optio >> [snip] >=20 > I think you need "device ahci" instead of "device ada". >=20 > I use the eSata on my dreamplug, using stock kernel config, and it works > great, so if adding ahci doesn't fix yours, look for other differences > between your kernel config and arm/conf/DREAMPLUG-1001 >=20 > -- Ian >=20 >=20 ahci did not fixed the problem, but I think I found the source - sheevaplug= .dts doesn't contain sata.=20 I will add, retest and share my findings.=20 Best regards/Pozdrawiam =C5=81ukasz Siemiradzki From owner-freebsd-arm@FreeBSD.ORG Thu Nov 14 01:20:01 2013 Return-Path: Delivered-To: freebsd-arm@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 766BA77E for ; Thu, 14 Nov 2013 01:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4C83A20D1 for ; Thu, 14 Nov 2013 01:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rAE1K1IU044282 for ; Thu, 14 Nov 2013 01:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAE1K0RX044281; Thu, 14 Nov 2013 01:20:00 GMT (envelope-from gnats) Date: Thu, 14 Nov 2013 01:20:00 GMT Message-Id: <201311140120.rAE1K0RX044281@freefall.freebsd.org> To: freebsd-arm@FreeBSD.org Cc: From: Howard Su Subject: Re: arm/183926: Crash when ctrl-c while process is enter X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Howard Su List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 01:20:01 -0000 The following reply was made to PR arm/183926; it has been noted by GNATS. From: Howard Su To: bug-followup@FreeBSD.org, howard0su@gmail.com Cc: Subject: Re: arm/183926: Crash when ctrl-c while process is enter Date: Thu, 14 Nov 2013 09:14:20 +0800 --001a11c1e2102caa3d04eb18cd9b Content-Type: text/plain; charset=ISO-8859-1 The following change make problem goes away. index 252d780..c7c44a9 100644 --- a/sys/arm/conf/BEAGLEBONE +++ b/sys/arm/conf/BEAGLEBONE @@ -59,9 +59,9 @@ options KDB options DDB #Enable the kernel debugger options INVARIANTS #Enable calls of extra sanity checking options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS -options WITNESS #Enable checks to detect deadlocks and cycles -options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed -#options DIAGNOSTIC +#options WITNESS #Enable checks to detect deadlocks and cycles +#options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed +options DIAGNOSTIC -- -Howard --001a11c1e2102caa3d04eb18cd9b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The following change make problem goes away.

index = 252d780..c7c44a9 100644
--- a/sys/arm/conf/BEAGLEBONE
+++ b/sys/arm/c= onf/BEAGLEBONE
@@ -59,9 +59,9 @@ options=A0=A0=A0=A0=A0=A0 KDB
=A0opt= ions=A0=A0=A0=A0=A0=A0=A0 DDB=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 #Enable the kernel debugger
=A0options=A0=A0=A0=A0=A0=A0=A0 INVARIANTS=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 #Enable calls of extra sanity checking
=A0options=A0=A0=A0=A0=A0= =A0=A0 INVARIANT_SUPPORT=A0=A0=A0=A0=A0=A0 #Extra sanity checks of internal= structures, required by INVARIANTS
-options=A0=A0=A0=A0=A0=A0=A0 WITNES= S=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 #Enable checks to detect = deadlocks and cycles
-options=A0=A0=A0=A0=A0=A0=A0 WITNESS_SKIPSPIN=A0=A0=A0=A0=A0=A0=A0 #Don= 9;t run witness on spinlocks for speed
-#options=A0=A0=A0=A0=A0=A0 DIAGN= OSTIC
+#options=A0=A0=A0=A0=A0=A0 WITNESS=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 #Enable checks to detect deadlocks and cycles
+#optio= ns=A0=A0=A0=A0=A0=A0 WITNESS_SKIPSPIN=A0=A0=A0=A0=A0=A0=A0 #Don't run w= itness on spinlocks for speed
+options=A0=A0=A0=A0=A0=A0=A0 DIAGNOSTIC


--
-H= oward
--001a11c1e2102caa3d04eb18cd9b-- From owner-freebsd-arm@FreeBSD.ORG Thu Nov 14 06:34:43 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9936DD8C; Thu, 14 Nov 2013 06:34:43 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E11982095; Thu, 14 Nov 2013 06:34:42 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hn6so3475370wib.10 for ; Wed, 13 Nov 2013 22:34:40 -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=if1v7LuDWKV9fenvzbAvYSgZZ3Z5gol3/6CBj+nQSCI=; b=lijTwXC1/S17HNTTQhBdwSTTVIukzEa2ErowBrtid8PK9bllMygEPSMNSNpe6E9PB1 ckDQaKbPLNjZ+mIAeo2r8CcO/TB++ZkFYMYXO3jUz13ykGdcTSNA1vm/jhcTJpGuxCqA JbUt9oXnHy7DJZfhZBuSxD4awxOJvVjBNYJnboT/TNKF7CUK5CliODdB5zKKKbREbyVU osqxUs814qy5sXToo1mXv9ijW5iv45gpX6C8ZuoepM9iOxceR2Wh6aJwpnCKwPmXmm8z WFsFfP2zRXH3t/9EMHn1TGGQl/gVFjSbYeO/RqPaEbPjOMDmwjE48/m9Qd2olnFnTbyK CRng== MIME-Version: 1.0 X-Received: by 10.194.78.99 with SMTP id a3mr545919wjx.93.1384410880750; Wed, 13 Nov 2013 22:34:40 -0800 (PST) Received: by 10.216.66.131 with HTTP; Wed, 13 Nov 2013 22:34:40 -0800 (PST) Date: Thu, 14 Nov 2013 08:34:40 +0200 Message-ID: Subject: NETDUMP ARM alignment fault fix From: Boris Astardzhiev To: attilio@freebsd.org, freebsd-net@freebsd.org, freebsd-arm@freebsd.org Content-Type: multipart/mixed; boundary=047d7bf0c48cc552cd04eb1d4631 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 14 Nov 2013 06:34:43 -0000 --047d7bf0c48cc552cd04eb1d4631 Content-Type: text/plain; charset=ISO-8859-1 Hi, I've experienced some alignment faults using NETDUMP on the Sheevaplug ARM board. The function in question is netdump_send_arp(). I've attached a simple fix to it and I'm posting it as it might be of use to someone. diff --git a/sys/netinet/netdump_client.c b/sys/netinet/netdump_client.c index f6e5170..0379c61 100644 --- a/sys/netinet/netdump_client.c +++ b/sys/netinet/netdump_client.c @@ -510,9 +510,11 @@ netdump_send_arp() ah->ar_pln = sizeof(struct in_addr); ah->ar_op = htons(ARPOP_REQUEST); memcpy(ar_sha(ah), IF_LLADDR(nd_nic), ETHER_ADDR_LEN); - ((struct in_addr *)ar_spa(ah))->s_addr = nd_client.s_addr; + memcpy(&(((struct in_addr *)ar_spa(ah))->s_addr), + &nd_client.s_addr, sizeof(nd_client.s_addr)); bzero(ar_tha(ah), ETHER_ADDR_LEN); - ((struct in_addr *)ar_tpa(ah))->s_addr = nd_gw.s_addr; + memcpy(&(((struct in_addr *)ar_tpa(ah))->s_addr), &nd_gw.s_addr, + sizeof(nd_gw.s_addr)); return netdump_ether_output(m, nd_nic, bcast, ETHERTYPE_ARP); } Greetings, Boris --047d7bf0c48cc552cd04eb1d4631 Content-Type: text/plain; charset=US-ASCII; name="armnetdumpalign.diff" Content-Disposition: attachment; filename="armnetdumpalign.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hnzmeefw0 ZGlmZiAtLWdpdCBhL3N5cy9uZXRpbmV0L25ldGR1bXBfY2xpZW50LmMgYi9zeXMvbmV0aW5ldC9u ZXRkdW1wX2NsaWVudC5jCmluZGV4IGY2ZTUxNzAuLjAzNzljNjEgMTAwNjQ0Ci0tLSBhL3N5cy9u ZXRpbmV0L25ldGR1bXBfY2xpZW50LmMKKysrIGIvc3lzL25ldGluZXQvbmV0ZHVtcF9jbGllbnQu YwpAQCAtNTEwLDkgKzUxMCwxMSBAQCBuZXRkdW1wX3NlbmRfYXJwKCkKIAlhaC0+YXJfcGxuID0g c2l6ZW9mKHN0cnVjdCBpbl9hZGRyKTsKIAlhaC0+YXJfb3AgPSBodG9ucyhBUlBPUF9SRVFVRVNU KTsKIAltZW1jcHkoYXJfc2hhKGFoKSwgSUZfTExBRERSKG5kX25pYyksIEVUSEVSX0FERFJfTEVO KTsKLQkoKHN0cnVjdCBpbl9hZGRyICopYXJfc3BhKGFoKSktPnNfYWRkciA9IG5kX2NsaWVudC5z X2FkZHI7CisJbWVtY3B5KCYoKChzdHJ1Y3QgaW5fYWRkciAqKWFyX3NwYShhaCkpLT5zX2FkZHIp LAorCSAgICAmbmRfY2xpZW50LnNfYWRkciwgc2l6ZW9mKG5kX2NsaWVudC5zX2FkZHIpKTsKIAli emVybyhhcl90aGEoYWgpLCBFVEhFUl9BRERSX0xFTik7Ci0JKChzdHJ1Y3QgaW5fYWRkciAqKWFy X3RwYShhaCkpLT5zX2FkZHIgPSBuZF9ndy5zX2FkZHI7CisJbWVtY3B5KCYoKChzdHJ1Y3QgaW5f YWRkciAqKWFyX3RwYShhaCkpLT5zX2FkZHIpLCAmbmRfZ3cuc19hZGRyLAorCSAgICBzaXplb2Yo bmRfZ3cuc19hZGRyKSk7CiAKIAlyZXR1cm4gbmV0ZHVtcF9ldGhlcl9vdXRwdXQobSwgbmRfbmlj LCBiY2FzdCwgRVRIRVJUWVBFX0FSUCk7CiB9Cg== --047d7bf0c48cc552cd04eb1d4631-- From owner-freebsd-arm@FreeBSD.ORG Thu Nov 14 08:39:50 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B4AA69ED; Thu, 14 Nov 2013 08:39:50 +0000 (UTC) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 72BC326E9; Thu, 14 Nov 2013 08:39:50 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id rAE8dhvL022997; Thu, 14 Nov 2013 03:39:43 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id rAE8dhB9022990; Thu, 14 Nov 2013 08:39:43 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 14 Nov 2013 08:39:43 GMT Message-Id: <201311140839.rAE8dhB9022990@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on arm/arm Precedence: bulk X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 08:39:50 -0000 TB --- 2013-11-14 06:00:18 - tinderbox 2.20 running on freebsd-current.sentex.ca TB --- 2013-11-14 06:00:18 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-11-14 06:00:18 - starting HEAD tinderbox run for arm/arm TB --- 2013-11-14 06:00:18 - cleaning the object tree TB --- 2013-11-14 06:00:18 - /usr/local/bin/svn stat /src TB --- 2013-11-14 06:00:23 - At svn revision 258116 TB --- 2013-11-14 06:00:24 - building world TB --- 2013-11-14 06:00:24 - CROSS_BUILD_TESTING=YES TB --- 2013-11-14 06:00:24 - MAKEOBJDIRPREFIX=/obj TB --- 2013-11-14 06:00:24 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-11-14 06:00:24 - SRCCONF=/dev/null TB --- 2013-11-14 06:00:24 - TARGET=arm TB --- 2013-11-14 06:00:24 - TARGET_ARCH=arm TB --- 2013-11-14 06:00:24 - TZ=UTC TB --- 2013-11-14 06:00:24 - __MAKE_CONF=/dev/null TB --- 2013-11-14 06:00:24 - cd /src TB --- 2013-11-14 06:00:24 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Nov 14 06:00:30 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] c++ -O -pipe -Qunused-arguments -Wsystem-headers -Werror -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Wno-c++11-extensions -I/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib -I/src/gnu/usr.bin/gperf -c /src/gnu/usr.bin/gperf/../../../contrib/gperf/src/output.cc /src/gnu/usr.bin/gperf/../../../contrib/gperf/src/output.cc:782:11: error: format string is empty [-Werror,-Wformat-zero-length] "", option.get_size_type()); ^~ /src/gnu/usr.bin/gperf/../../../contrib/gperf/src/output.cc:1910:11: error: format string is empty [-Werror,-Wformat-zero-length] "", option.get_size_type()); ^~ 2 errors generated. *** Error code 1 Stop. bmake[4]: stopped in /src/gnu/usr.bin/gperf *** Error code 1 Stop. bmake[3]: stopped in /src/gnu/usr.bin *** Error code 1 Stop. bmake[2]: stopped in /src/gnu *** Error code 1 Stop. bmake[1]: stopped in /src *** Error code 1 Stop. bmake: stopped in /src *** Error code 1 Stop in /src. TB --- 2013-11-14 08:39:43 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-11-14 08:39:43 - ERROR: failed to build world TB --- 2013-11-14 08:39:43 - 7682.90 user 1292.12 system 9564.50 real http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Thu Nov 14 11:03:25 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4031184A; Thu, 14 Nov 2013 11:03:25 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3B1CC205B; Thu, 14 Nov 2013 11:03:24 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id n12so1721640wgh.15 for ; Thu, 14 Nov 2013 03:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XHoaM9f63PH/Q3S6gn9Molc/DVe500s4L2f53Ol3B1M=; b=vdgSTFPPQ/4Xq4ozTxwjOcH1vDPr9r3pITU1F7Qg2kaXF4xgMFge4jYDtD/oplswA7 oup9xdSALrZd4cH7pfAddeCXuUaG5gql/q88Xkxkb7MGP8yBt0UvYiuFFAdh58vQ/iB5 4f4ZxoWOcss51gTkts/Pf4yoZ1cuWtwtZoVTcZzwieeyRQJTTs2vp71c/T5fGuwROKrl wF+N/zVwzuFg4RL/FuEqCg4hj4qgF7PxAZ76ZTBr5lgP7twb6HX0sol7xlsFVNJQxzC7 dYettw0eN3MI+5DZjj6Jl8yFmvHQK7hfs5HI/hP8qwkXVoeyYi2MBrWzuBnisxpe5mhg xuSw== X-Received: by 10.180.184.112 with SMTP id et16mr1878621wic.4.1384427002486; Thu, 14 Nov 2013 03:03:22 -0800 (PST) Received: from [128.141.43.169] (pb-d-128-141-43-169.cern.ch. [128.141.43.169]) by mx.google.com with ESMTPSA id bs15sm65420432wib.10.2013.11.14.03.03.21 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 03:03:21 -0800 (PST) Message-ID: <5284AD8A.2080409@gmail.com> Date: Thu, 14 Nov 2013 12:01:30 +0100 From: Auelien Martin <01aurelien@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: "Christopher J. Ruwe" , freebsd-ports@freebsd.org, freebsd-arm@freebsd.org Subject: Re: cross-compiling for arm6 with poudriere - has anybody done that? References: <20131111220854.62f00133@dijkstra.cruwe.de> In-Reply-To: <20131111220854.62f00133@dijkstra.cruwe.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: crees@FreeBSD.org, yerenkow@gmail.com X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 14 Nov 2013 11:03:25 -0000 Hi Christopher, I wanted to do the same thing, but normally you can't cross compile package in poudriere as it said in the website. (line 4) https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/index.wiki Apparently as discussed in freebsd-fr there are some patches to allow jail to reconize ARM binary, but it's complicated. The best way seems to use pouriere in qemu ARM box :) Cheers, Aurelien Le 11/11/2013 10:08 PM, Christopher J. Ruwe a crit : > I am cc'ing the persons originally describing a solution for my > problem. > > I would like to cross-compile packages for FreeBSD on a Raspberry Pi > (arm6) on a stronger machine. > > Various web-sources describe how to cross-compile kernel and world for > arm6/RaspberryPi [1,2,3]. Roughly a year ago, reportedly, ports have > been build successfully in chrooted environments, but have failed in > poudriere jails [4,5]. > > I have not found any more recent information on that approach. From > [5] i gather the issue in [4] has been fixed, so I will try to employ > poudriere to build packages for my raspberry on a stronger machine. > > My idea is outlined as such: Build a 9.2-RELEASE jail, cross-compile a > arm6 obj tree in that jail and set poudriere make.conf options to > TARGET=arm TARGET_ARCH=armv6 TARGET_CPUARCH=armv6 > PATH=/usr/obj/arm.armv6/usr/src/tmp/usr/bin:${PATH} CONFIGURE_HOST=amd64 > STRIP_CMD=true > > Has anybody tried a similar approach or can comment on my idea? Should > that be pointless, I do not want to waste much time trying. > > > [1] crochet-freebsd: https://github.com/kientzle/crochet-freebsd > [2] FreeBSD developer's notebook: http://kernelnomicon.org/?p=275 > [3] How to install FreeBSD on a Raspberry Pi (or: How to cross compile > FreeBSD/arm): http://ogris.de/howtos/freebsd-raspberry.html > [4] yerenkow@gmail.com, Ports cross-compiling: > http://lists.freebsd.org/pipermail/freebsd-hackers/2012-September/040428.html > [5] crees@freebsd.org, Ports cross-compiling: > http://lists.freebsd.org/pipermail/freebsd-hackers/2012-November/041106.html > > > Many thanks, From owner-freebsd-arm@FreeBSD.ORG Thu Nov 14 17:21:49 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1801E3EB; Thu, 14 Nov 2013 17:21:49 +0000 (UTC) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C38DF2D10; Thu, 14 Nov 2013 17:21:48 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id rAEHLlGX099726; Thu, 14 Nov 2013 12:21:47 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id rAEHLlkQ099710; Thu, 14 Nov 2013 17:21:47 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 14 Nov 2013 17:21:47 GMT Message-Id: <201311141721.rAEHLlkQ099710@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on arm/arm Precedence: bulk X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 17:21:49 -0000 TB --- 2013-11-14 14:40:18 - tinderbox 2.20 running on freebsd-current.sentex.ca TB --- 2013-11-14 14:40:18 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-11-14 14:40:18 - starting HEAD tinderbox run for arm/arm TB --- 2013-11-14 14:40:18 - cleaning the object tree TB --- 2013-11-14 14:45:32 - /usr/local/bin/svn stat /src TB --- 2013-11-14 14:45:36 - At svn revision 258133 TB --- 2013-11-14 14:45:37 - building world TB --- 2013-11-14 14:45:37 - CROSS_BUILD_TESTING=YES TB --- 2013-11-14 14:45:37 - MAKEOBJDIRPREFIX=/obj TB --- 2013-11-14 14:45:37 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-11-14 14:45:37 - SRCCONF=/dev/null TB --- 2013-11-14 14:45:37 - TARGET=arm TB --- 2013-11-14 14:45:37 - TARGET_ARCH=arm TB --- 2013-11-14 14:45:37 - TZ=UTC TB --- 2013-11-14 14:45:37 - __MAKE_CONF=/dev/null TB --- 2013-11-14 14:45:37 - cd /src TB --- 2013-11-14 14:45:37 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Nov 14 14:45:43 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] c++ -O -pipe -Qunused-arguments -Wsystem-headers -Werror -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Wno-c++11-extensions -I/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib -I/src/gnu/usr.bin/gperf -c /src/gnu/usr.bin/gperf/../../../contrib/gperf/src/output.cc /src/gnu/usr.bin/gperf/../../../contrib/gperf/src/output.cc:782:11: error: format string is empty [-Werror,-Wformat-zero-length] "", option.get_size_type()); ^~ /src/gnu/usr.bin/gperf/../../../contrib/gperf/src/output.cc:1910:11: error: format string is empty [-Werror,-Wformat-zero-length] "", option.get_size_type()); ^~ 2 errors generated. *** Error code 1 Stop. bmake[4]: stopped in /src/gnu/usr.bin/gperf *** Error code 1 Stop. bmake[3]: stopped in /src/gnu/usr.bin *** Error code 1 Stop. bmake[2]: stopped in /src/gnu *** Error code 1 Stop. bmake[1]: stopped in /src *** Error code 1 Stop. bmake: stopped in /src *** Error code 1 Stop in /src. TB --- 2013-11-14 17:21:47 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-11-14 17:21:47 - ERROR: failed to build world TB --- 2013-11-14 17:21:47 - 7680.11 user 1272.88 system 9688.66 real http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Sat Nov 16 18:01:20 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D252FF0 for ; Sat, 16 Nov 2013 18:01:20 +0000 (UTC) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 742852CA3 for ; Sat, 16 Nov 2013 18:01:19 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id u16so6506505iet.38 for ; Sat, 16 Nov 2013 10:01:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=3XeubN7K7qzWF5YF9Wje76+SPPyA0m+W60omQRR2rLs=; b=SSSVbLXrlY9c8aDuPeYoZbkn3m/GQ0+Nq5QsfJ6Gf1DSI+H8yLaqB9swlnYbs1w2H9 SE4az21mP8ddv1A0crgfKPO2hkyhTIOmcSZcm98/gY4KOwnOLY14oDwAozw5PLwIz+ax QL4aA7vqSU/Z4LKAvyd6cxBurxr6KKXKCaFMVwPJ1EZ85Ly4gJzfaIG1G+tJvqeu8Y5M q29GHUMWUsinh+Fj3pPs3fdjbYWvIkvmcXDjkdJ1wrr4Dpi8gnb319t1sDniN9oGlwiE VVfq8bqljfuoQ9jzB7mHwc1E/YR52L2o34GWLWkV/t6onLF/fUmIwDHQiR2gX3kMN4rz 8/CA== X-Gm-Message-State: ALoCoQnYCyTpL5yUy+84xV4HRfPaw3YdrEb/mi4FVm5WbjNTQ0cZtanOgb2wcb07536GRJI3zRhw MIME-Version: 1.0 X-Received: by 10.50.23.16 with SMTP id i16mr8176820igf.50.1384624425888; Sat, 16 Nov 2013 09:53:45 -0800 (PST) Received: by 10.64.172.133 with HTTP; Sat, 16 Nov 2013 09:53:45 -0800 (PST) Date: Sat, 16 Nov 2013 17:53:45 +0000 Message-ID: Subject: change in ARM uboot API From: Leif Lindholm To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 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, 16 Nov 2013 18:01:20 -0000 Hi, (not subscribed from this address, so please cc on any response) I came across a bit of an issue with the ARM uboot GRUB port today, which I believe will also affect the FreeBSD loader: http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=fe1378a961e508b31b1f29a2bb08ba1dac063155 In short, the global data pointer has now moved from r8 to r9, and since no API bump was made as a result of this, software now needs to preserve both of these registers across calls into u-boot. If http://svnweb.freebsd.org/base/head/sys/boot/arm/uboot/start.S?view=markup is the correct version to inspect, the current loader is affected. Just a heads-up. / Leif From owner-freebsd-arm@FreeBSD.ORG Sat Nov 16 23:40:02 2013 Return-Path: Delivered-To: freebsd-arm@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C6A5586 for ; Sat, 16 Nov 2013 23:40:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5BF3A2B33 for ; Sat, 16 Nov 2013 23:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rAGNe2GR032897 for ; Sat, 16 Nov 2013 23:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAGNe2Xn032896; Sat, 16 Nov 2013 23:40:02 GMT (envelope-from gnats) Date: Sat, 16 Nov 2013 23:40:02 GMT Message-Id: <201311162340.rAGNe2Xn032896@freefall.freebsd.org> To: freebsd-arm@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: arm/183668: commit references a PR X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: dfilter service List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Nov 2013 23:40:02 -0000 The following reply was made to PR arm/183668; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: arm/183668: commit references a PR Date: Sat, 16 Nov 2013 23:38:03 +0000 (UTC) Author: ian Date: Sat Nov 16 23:37:56 2013 New Revision: 258240 URL: http://svnweb.freebsd.org/changeset/base/258240 Log: In the data abort handler, don't panic if kdb is available and says it handled the condition. PR: arm/183668 Submitted by: Howard Su Modified: head/sys/arm/arm/trap.c Modified: head/sys/arm/arm/trap.c ============================================================================== --- head/sys/arm/arm/trap.c Sat Nov 16 21:58:58 2013 (r258239) +++ head/sys/arm/arm/trap.c Sat Nov 16 23:37:56 2013 (r258240) @@ -528,7 +528,8 @@ dab_fatal(struct trapframe *tf, u_int fs #ifdef KDB if (debugger_on_panic || kdb_active) - kdb_trap(fsr, 0, tf); + if (kdb_trap(fsr, 0, tf)) + return (0); #endif panic("Fatal abort"); /*NOTREACHED*/ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"