From owner-freebsd-arm@freebsd.org Sun Jun 24 14:28:35 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B64F7100193F for ; Sun, 24 Jun 2018 14:28:35 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (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 1D2128BBC3 for ; Sun, 24 Jun 2018 14:28:35 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-it0-x244.google.com with SMTP id 128-v6so2863323itf.1 for ; Sun, 24 Jun 2018 07:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8fGz0T3VWUWlVBCQ5Xfrr+nA3X38ZRELO6xJ/I4a9sg=; b=mwWMlVpWkOx7Me+8OiKLPOlEdNsNMJBawpMQvKn2JggolnSK71QCu0XfMSDSq4YY2d DLyiN0HGe4/3XjeAFDUd9sjLthBhUOC3Ocei6ATD6FDQ1iiWVXZv6pjIPrcWJKr3/iaI 5SCJsLPwgC/U+7dx7F/ukZl/ZGhuTy5XIQWQ7JwxzxmlXLLac3TRovCmOcma1PvvcLnF 323IPMB4JEkkfnCBbOL+wCqZrLxbMaDnwGZQL6eAVu+Cv0C1D7aghOGBdLFgHt21zMYj 58K5vjQcrvhg0+AvMg5ZY/jFwTzeAmy8QkB0tegA4MREx+ygK9JV/z9KCFN2GqaI1JH8 CBeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8fGz0T3VWUWlVBCQ5Xfrr+nA3X38ZRELO6xJ/I4a9sg=; b=YkD0P6WgwhYslV7nJDH2eSjBxO6CaHp84qRjXKAjZJ8zlvxpPmbZgtIPy+SOQ5tP1e YhzMxthDeubVRkyCKmFs7d3Fqe0CVCHqPSZiS0TF70BDQB4v5g/RMb/QNlUZKo24XpSV lhJ6WBo+ZIILHouroHtpPmUF0HwW5ZXlpTcizDE2KeoczZAfzE+N/WWOQAAwmOFRWNx4 HiBibAmHPz2BBbb4Pl7cucbxdAWocmlXAdS0EFzmCTRcqefbv1Obk9DXhJhYlvmQL0qr t/yQpoC3qLi8VL4pKsuRyKy9Yc99CEnmNvDBUg6Dvu1sXirDeIsY8Riw8hspPvXs9/j/ khWg== X-Gm-Message-State: APt69E23q7weRjjFOBOsz8Cf203N6NzCSqW4uVuYAp0pcSMPi0xTDI4j aUSDm9oaktZyDXGUMc4U0rYc4xYctfuWl8THBdOJ2A== X-Google-Smtp-Source: ADUXVKKTR1Fzi3es4XnD4K+xyqmM0ubVyuI5S5m/9jfx4PKy/2GkHgBUDBiYFVkArYLIDZq+L9vGicvBI9PBE9L0JTk= X-Received: by 2002:a24:5f84:: with SMTP id r126-v6mr6839925itb.22.1529850514519; Sun, 24 Jun 2018 07:28:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:510b:0:0:0:0:0 with HTTP; Sun, 24 Jun 2018 07:28:34 -0700 (PDT) In-Reply-To: References: <31736b31-bc31-67d2-aa41-431c79b8d538@goodgas.com.au> From: Russell Haley Date: Sun, 24 Jun 2018 07:28:34 -0700 Message-ID: Subject: Re: Status of FreeBSD CAM/MMC/SDIO? To: Patrick Crilly Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2018 14:28:36 -0000 On Sat, Jun 23, 2018 at 11:33 PM, Patrick Crilly wrote: > On 24-Jun-18 3:00 PM, Russell Haley wrote: > > > > On Sat, Jun 23, 2018 at 7:57 PM, Patrick Crilly > wrote: > >> I was wondering if anyone knew what the current state of CAM/MMC/SDIO >> driver for Raspberry Pi is? >> >> I followed this link https://wiki.freebsd.org/SDIO and checked out >> FreeBSD current. >> I build a kernel using the GENERIC-MMCCAM conf file. >> >> dmesg produced the following regarding SDIO - >> >> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SEND_IF_COND to >>> PROBE_SDIO_RESET >>> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_SDIO_RESET >>> (mmcprobe0:sdhci_slot0:0:0:0): SDIO_RESET: error 1, CCCR CTL register: >>> 00000000 >>> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SDIO_RESET to PROBE_SDIO_INIT >>> (mmcprobe0:sdhci_slot0:0:0:0): Start with PROBE_SDIO_INIT >>> (mmcprobe0:sdhci_slot0:0:0:0): SDIO_INIT: error 1, 00000000 00000000 >>> 00000000 00000000 >>> (mmcprobe0:sdhci_slot0:0:0:0): Probe PROBE_SDIO_INIT to >>> PROBE_SEND_APP_OP_COND >>> >> Just an uneducated guess: the zeros may indicate a missing dts file > entry, or some other error in the Flattened Device Tree? > > > I'd be interested to know the revision you're using > > > I downloaded this snapshot build for Raspberry Pi 3 - > FreeBSD-12.0-CURRENT-arm64-aarch64-RPI3-20180605-r334665.img.xz and > loaded it onto a SD card. > > I then built the kernel using the source from current and the GENERIC_MMC > conf file. I built the kernel natively, since I didn't have a cross build > machine setup. > > I did just notice there's some updated snapshot builds, so will give them > a try. > > I realise the SDIO drive is very much work in progress. Hoping someone > might be able to say where things are at. > I can't speak to the details, and maybe Ilya will speak up, but I know development is active as Illya Bakulin made some commits recently. Udit Argawal is doing some performance testing on Beagle Bone Black and porting SDIO it to RTEMS, but he was unable to build against CURRENT and is building against Ilya's git branch. He was also getting exceptions early in the boot process when building with head. However Udit's problem was with a bad lock/mutex not the registers (hence my question about your revision). Udit's blog is here: http://uditagarwal.in. He was about to test building against head but was hung up waiting on me (hopefully I unblocked him yesterday). I was considering to set up a website to server out SDIO enabled kernels as I've got a hearty server to play with. Perhaps I'll put a little effort into that tonight. I can build kernels in about 5 minutes, compared to your... week? Hope that helps a little, Russ > > > > >> >> The output from camcontrol is >> >> root@generic:~ # camcontrol devlist -v >>> scbus0 on sdhci_slot0 bus 0: >>> at scbus0 target 0 lun 0 >>> (pass0,sdda0) >>> scbus-1 on xpt0 bus 0: >>> <> at scbus-1 target -1 lun ffffffff >>> (xpt0) >>> >> >> Thanks, >> Patrick. >> >> -- >> "With great power comes great electricity bill" >> >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> > > > -- > "With great power comes great electricity bill" > >