From owner-freebsd-arm@freebsd.org Tue Aug 23 08:03:43 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B829BC37CA for ; Tue, 23 Aug 2016 08:03:43 +0000 (UTC) (envelope-from groknet.de@googlemail.com) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3304514E4 for ; Tue, 23 Aug 2016 08:03:43 +0000 (UTC) (envelope-from groknet.de@googlemail.com) Received: by mail-oi0-x231.google.com with SMTP id 4so186610675oih.2 for ; Tue, 23 Aug 2016 01:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=nLoStPAD2BX6tVKKepH43c5Yl5QLucV9ewNls9InYbQ=; b=mzDHmxojnGtbXfGs+6ycU+CC5dZ3ykFbu2nu6rNoPslyLrQdkT484w2gxw8USI4KcX U3fwZ8w6hX51NV6I32KOIra95G3nDxy2UJHYRQj9GSOYjU5wQ4+6pJnMx9V6hhFcAfld 9tm+/DmvUP08YJUOI9AsQmQzGKk40nlisB5TH/6oiQUsjHfdJiHOwqz6Kc2MJda+3Lrb pYRy2gUXejPTxtyT7Q2rSPlQ0yPBGGY0DmRaUolwbTdNEuZMqYPDrVyCj8wEtMt8fLGV 4CjWBmxqKiwV/aUap+oDo96vLXBkf0svX7o5sC7hZyacj2eMInJQUJaTqI86UXnoIdyb C92A== 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:from:date:message-id:subject :to; bh=nLoStPAD2BX6tVKKepH43c5Yl5QLucV9ewNls9InYbQ=; b=JkY4vC73zkUoTHZRMV8r8x5WMkPQGpdSoEYSQRug8Ab8RSXjclTf2VBOMQ08PBYaK6 7hhOQD8MqKme3jB6urcWQCtb1ZE6NlFe5KOv8DqcKXc1DFKYRuY9BSM/UM8RPUEVMvww xGpeKhOsQs6RH8KJO8A7wvcr91R0dcE20S8r+W9z9Kr+QAcwwq8NgxgR8f8njGhdQuiZ YYXFCQ/yekyjkr9dev4LTyNZAnfLBJrUmwS/wHBo0AgjPHTMaAZwarS4tucS4gdebWpB c1z4IC0pnkEIwf2j/pdcExPjVd3I1qw2WEahasx56mkUIprv1vCC9TQdYX91LhKEAah8 s3AA== X-Gm-Message-State: AEkoousf9Au6JhbEhA7w9w5I8b4ZzTGgO/lKvnRB2S5jcdReBW6ZC9omr+sg5m0UNmpklBaZSCvaxM0B+38kIg== X-Received: by 10.202.74.195 with SMTP id x186mr15812506oia.125.1471939421995; Tue, 23 Aug 2016 01:03:41 -0700 (PDT) MIME-Version: 1.0 Sender: groknet.de@googlemail.com Received: by 10.157.34.79 with HTTP; Tue, 23 Aug 2016 01:03:41 -0700 (PDT) From: Arne Ehrlich Date: Tue, 23 Aug 2016 10:03:41 +0200 X-Google-Sender-Auth: hw1TQg1_LkLhVd7amgOm4KcGb2s Message-ID: Subject: Beaglebone Black PRU driver crash. To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 08:03:43 -0000 Hello Everyone, I=E2=80=99m currently working on an embedded project using the BBB as a bas= e platform, and i want do decide if ill go with Linux or freebsd. After not having much success talking to the BBB PRU using Linux, ich wanted to give FreeBSD a try and the PRU gets detected (^-^) sadly the driver panics upon use, and i have no idea how to debug this. i use devel/pructl to load a file and waiting for an PRU interrupt ( pructl -w ) the binary loaded does not matter, you may use some null bytes. to reproduce. FreeBSD beaglebone 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r303880: Tue Aug 9 23:54:55 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm the pru is detected on boot: ti_pruss0: mem 0x4a300000-0x4a37ffff on simplebus0 (kgdb) bt #0 0xc066c340 in savectx () #1 0xc03a3038 in doadump () #2 0xc0245aac in db_dump () #3 0xc0245854 in db_command () #4 0xc02455d4 in db_command_loop () #5 0xc0248894 in db_trap () #6 0xc03e0a80 in kdb_trap () #7 0xc066df40 in undefinedinstruction () #8 0xc06548d4 in exception_exit () #9 0xc03e0334 in kdb_enter () #10 0xc03a3264 in vpanic () #11 0xc03a32b8 in panic () #12 0xc038acb0 in __mtx_assert () #13 0xc0363a68 in knlist_add () #14 0xc0686ec0 in ti_pruss_kqfilter () #15 0xc02ccf1c in devfs_kqfilter_f () #16 0xc0361a94 in kqueue_register () #17 0xc03625dc in kqueue_kevent () #18 0xc03624c4 in kern_kevent_fp () #19 0xc03623b4 in kern_kevent () #20 0xc03621e8 in sys_kevent () #21 0xc066cbfc in swi_handler () #22 0xc0654864 in swi_exit () sadly i don't have the symbols for this build to dig deeper. any ideas what might be the problem? anyone using the PRU with FreeBDS? Greetings, any help or insights woud be greatly appreciated ;-) Arne