From owner-freebsd-arm@freebsd.org Wed Sep 9 18:01:30 2015 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 5D5BEA014C9 for ; Wed, 9 Sep 2015 18:01:30 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) (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 22B651ACD for ; Wed, 9 Sep 2015 18:01:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qkdw123 with SMTP id w123so8031453qkd.0 for ; Wed, 09 Sep 2015 11:01:28 -0700 (PDT) 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:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=NEI4ykOPVmHKFuWYzW9ItoYWFJrkXJEIYeMmdzgAjFs=; b=dYKsNRk5CaRwB28asiiIaOpnEXZweoHHwOMwZqoy++DdfrYqQ1gsq9yUSO6uaX+Hec ka4T0/dwvF4r+kfo57cvOt76TKNlDj88PzygLVPZ0GGsF00uZr2LAf1w3wVs3I6nH3Sp EPz+KKR5hxbEYGI0sVYpurtAnsHPIzGQ51p/6R+/vSYWBo9UOrVLqGi1W7pZiQH0QxUF xLpTFrjZLzjdQaG8OinITXR7tbwVxhqjhM/9iH1V+rB05QTHCPWfAQCeY4ALPOUDkaFT UQ892WbpL/yFdvmYaM5eZQgQQ4sUp6B60+sfE/6ocg+MiNRWYGpAWvcDvrbJnRiK1HWZ 2c5A== X-Gm-Message-State: ALoCoQkCoG9gWDN1YuosjtC0CHavcE7Sy0WtMnd6hu6s1jg/+46/cqDpIlbRN1Rn315RrhWv9Yg4 MIME-Version: 1.0 X-Received: by 10.55.204.208 with SMTP id n77mr45495711qkl.46.1441818068278; Wed, 09 Sep 2015 10:01:08 -0700 (PDT) Sender: wlosh@bsdimp.com Received: by 10.140.80.164 with HTTP; Wed, 9 Sep 2015 10:01:08 -0700 (PDT) X-Originating-IP: [69.53.245.5] In-Reply-To: <20150909152022.GA1025@potato.growveg.org> References: <20150909152022.GA1025@potato.growveg.org> Date: Wed, 9 Sep 2015 11:01:08 -0600 X-Google-Sender-Auth: D6Lbse2_JUd3oN4Uh7Yq4aiWNU0 Message-ID: Subject: Re: static device numbering on arm6/FreeBSD11 From: Warner Losh To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2015 18:01:30 -0000 On Wed, Sep 9, 2015 at 9:20 AM, John wrote: > Hello list, > > On i386/amd64 the kernel line: > > options ATA_STATIC_ID # Static device numbering > > means that I can reference a da device in fstab which stays constant > through reboots. Is there an equivalent line for the RPI2 kernel? > I've looked but can't see it. At the moment, they keep swapping > round. Your best bet is to use ufs or gpt labels. # Device Mountpoint FStype Options Dump Pass# /dev/gpt/dune-swap none swap sw 0 0 /dev/gpt/dune-root / ufs rw 1 1 /dev/gpt/dune-dune /dune ufs rw 2 2 /dev/gpt/dune-tmp /tmp ufs rw 2 2 /dev/gpt/dune-usr /usr ufs rw 2 2 /dev/gpt/dune-var /var ufs rw 2 2 There may be ways to wire them with CAM, but this is what I've been using for a long time.