From owner-freebsd-arm@freebsd.org Sun Jun 24 06:34:05 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 A8EAB101B4F6 for ; Sun, 24 Jun 2018 06:34:05 +0000 (UTC) (envelope-from pcrilly@goodgas.com.au) Received: from mail-pg0-x229.google.com (mail-pg0-x229.google.com [IPv6:2607:f8b0:400e:c05::229]) (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 14C377C1C0 for ; Sun, 24 Jun 2018 06:34:04 +0000 (UTC) (envelope-from pcrilly@goodgas.com.au) Received: by mail-pg0-x229.google.com with SMTP id m5-v6so4692259pgd.3 for ; Sat, 23 Jun 2018 23:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=goodgas-com-au.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=E9a70y1f/k50RePVqnYC7ythK5LtazlgCq6n6/fdhi8=; b=bRKW36Zl0dxzPsKV1Pu8b3g9shELWb9YfdP9TZnaUixDijSozrReJ3ubbxK+dHpmju VDZNxJJajrlR/1JLX33KFR9ko6/m9PB4hciFL10uY9vPZ5qRKDTsGj+bYrUL92BuzYfP GG1WuaIWn3u0+pMhjidgFcYL0cOuZMCKpGG3Zu2yqz+7SF5Jd7208Ulqo7YSw9WZHNUg IFDgaUAU2xWuI75ptDa0Fqqrj2fx5LT74DbxAddxxcwbQAvoOHhJbs3GrXBezVOos71u Kc9o3PFCN5syDzyj4iuztQHvRA8+mfCkdxFU6vEEscYC5+EtrNCogD1qULHKrj4rIcUF uGBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=E9a70y1f/k50RePVqnYC7ythK5LtazlgCq6n6/fdhi8=; b=HLDIlvDkxuxMZ7mlvnFec6Nu+nGgtrWb2OImMk2+oStiC9qKcut61kFAW5rh+5z15d +rTJY/kMDyzJYbefnqgRd1kqppwczujkGoDp/6pcOHfaOx/H5LunmHbM5VUIWc8ZVoOI Oq88WafZ4gVQ0cPkvWlH+NAUWoYT/NFfFC4BozEPiWfPBD4vtIUU8ui3eTLc+ET1pbS+ nOJytrV9TJ8jBgEHLrASZb3G+/V39jEbcW6JVMtWxGH51afuOpJJrulGTD7JfOQKaD27 uYh4UFL4TVQVPxmV/z6CuG0gD31h47Pr8m4cHekKUCStPOoytIfqqISqnFarUwUL7md6 Onkg== X-Gm-Message-State: APt69E0gslxQExIwG4rdO0ggl/4QoyfO9WSpOWvH4X1MUaUU74eeFeAS ycmHzNhbWWUBw1eFwxoeGkX73Z5m X-Google-Smtp-Source: ADUXVKJqK76ao/+drrBqYXr50NnICyFpqI+fi/S62f0kX6EkgRf3olgVl2U1xhqNZTFuUWpXA2m+vg== X-Received: by 2002:a63:b305:: with SMTP id i5-v6mr6662265pgf.370.1529822043438; Sat, 23 Jun 2018 23:34:03 -0700 (PDT) Received: from [192.168.0.103] ([120.29.52.133]) by smtp.googlemail.com with ESMTPSA id c19-v6sm17162637pfn.182.2018.06.23.23.34.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Jun 2018 23:34:02 -0700 (PDT) Subject: Re: Status of FreeBSD CAM/MMC/SDIO? To: Russell Haley Cc: freebsd-arm References: <31736b31-bc31-67d2-aa41-431c79b8d538@goodgas.com.au> From: Patrick Crilly Message-ID: Date: Sun, 24 Jun 2018 16:33:57 +1000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-AU Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 06:34:06 -0000 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. > > 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"