From owner-freebsd-arm@freebsd.org Wed Jun 8 16:35:15 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 62D8EB6FDC2 for ; Wed, 8 Jun 2016 16:35:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (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 1D5FC1ACE for ; Wed, 8 Jun 2016 16:35:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x232.google.com with SMTP id d64so18997585vkb.0 for ; Wed, 08 Jun 2016 09:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WSvDd96P2f/1kmQZRw+pOX9RZCUFxSiE75hJI0V58+w=; b=yTvScluyMDLQvK5zquBPkgQamba5Ljktk2nMy6pdeJ1fvaQRD31WF4b24ZUSoGctYO /DGaMj7viNCkOOdeprqGIdWMpGTpcN4kG8DmFJJFzR4kaVKFwg5QbSLuh2/t7rnI6lKr 7hpxj6k+CeXJFj5QP+ICat2fey2K8Qj2G3zK71VBgbd1NBEibSAsYwdarqpWkmzQo/WT 3lu2JJyH2yaciDKiEtR7DoOtvWEs/HTcbzxKTEx9ys74hWz5JTzlY/mXrLXZyHYXXBtn O5xFAPWyH7ShXBKzdWsnW5o99hLwZuKli5uWHN06z9orA/chjHOpVcSiyv9E/2/c6ixf rFeA== 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:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WSvDd96P2f/1kmQZRw+pOX9RZCUFxSiE75hJI0V58+w=; b=AS47i9IZg4ZaH0Yo2X1lfMsRq81EExa+l1YZU/EodQJ7R3Z/RgsWoKWdKUAKuUQukc sgm5Q/BYzqyVHnO+6EWImSC2d1+18cfhPtJr75X16es2BhJS8CbZE7rfI/tGOgmdO3ob At/biDx90aPdFwXR/xXsPBm2wkm2M+3HrLV4OczlHE6Aqu/KC6XhZLJbDeUOEUocpHGN iVmrnkVRgNG3KuyI5uO4nfCk+VzqAxs9qLdq5OY5EJzbcYCOcvJ5w8m3rHrLWtq3/+x2 JuWD9z3AM0ANtGgjpoQ6VKx0gp/vRohTlCT/t1OlRYzURqTk8LO4ZJWB0Q6KhFFVi0yj JpZw== X-Gm-Message-State: ALyK8tJvlznC+Y1lRdAask8TxTafejDzhhOfaEByXGh8nLi77E1BAVgcLJK2A4cagxnW07HwvNAXMP02Pj2V9A== X-Received: by 10.159.35.34 with SMTP id 31mr2878176uae.39.1465403714148; Wed, 08 Jun 2016 09:35:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.94.205 with HTTP; Wed, 8 Jun 2016 09:35:13 -0700 (PDT) In-Reply-To: References: <20160606063242.GA9594@metron.com> <20160608183545.37198952@X220.alogt.com> <20160608155617.4640851.69458.7032@gmail.com> From: Russell Haley Date: Wed, 8 Jun 2016 09:35:13 -0700 Message-ID: Subject: Re: Root on USB stick To: Erich Dollansky , Lou Katz Cc: freebsd-arm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Wed, 08 Jun 2016 16:35:15 -0000 On Wed, Jun 8, 2016 at 9:31 AM, Russell Haley wrote: > On Wed, Jun 8, 2016 at 8:56 AM, Russell Haley wrot= e: >> Sorry top post only on my phone and I'm trying to remember from a year a= go without my notes... >> >> Isn't rootfs something that we can pass through u-boot variables?=E2=80= =8E I'm sure I've done it but I can't remember how... > > Okay, that was the ftd file, sorry. :( > >> >> I also seem to remember that if ubldr can't find the rootfs it prompts f= or you to enter something manually=E2=80=8E, which might be good enough for= development purposes? Or am I imagining that? I remember the prompt, but n= ot what process launched it. > > Also wrong, The prompt I am thinking of is loader looking for the > kernel: from loader(8) > > https://www.freebsd.org/cgi/man.cgi?query=3Dloader&apropos=3D0&sektion=3D= 0&manpath=3DFreeBSD+10.3-RELEASE+and+Ports&arch=3Ddefault&format=3Dhtml > > load [-t type] file ... > Loads a kernel, kernel loadable module (kld), disk image, or file > of opaque contents tagged as being of the type type. Kernel and > modules can be either in a.out or ELF format. Any arguments > passed after the name of the file to be loaded will be passed as > arguments to that file. Use the md_image type to make the kernel > create a file-backed md(4) disk. This is useful for booting from > a temporary rootfs. Currently, argument passing does not work > for the kernel. > > > *Note that man says we cannot pass arguments to the kernel. ***Sorry, accidentally sent without being complete: I would say your best bet is to use crochet and create a new image and tweek the kernel conf file manually. Crochet is here: https://github.com/freebsd/crochet and supports RPi2, though I've never used it. The kernel conf file is https://svnweb.freebsd.org/base/head/sys/arm/conf/RPI2?view=3Dmarkup and the line to tweek is: options ROOTDEVNAME=3D\"ufs:mmcsd0s2\" Good luck! Russ > > > > >> Original Message >> From: Erich Dollansky >> Sent: Wednesday, June 8, 2016 3:52 AM >> To: Lou Katz >> Cc: freebsd-arm@freebsd.org >> Subject: Re: Root on USB stick >> >> Hi, >> >> On Sun, 5 Jun 2016 23:32:42 -0700 >> Lou Katz wrote: >> >>> Where does the FreeBSD boot loader for Pi2 know about or find out >>> where the root partition is? I need to boot from an image in the >>> micro slot that I cannot remove (because I broke the push-pull >>> mechanism) but use a root parition on another card accessed through a >>> USB port. >>> >>> There seems to have been a way to do this with FreeBSD 10, but I >>> cannot find it in FreeBSD 11. >>> >>> Thank you >> >> there is an entry in the kernel configuration file where to find root >> by default. >> >> But you would need a custom kernel for this. >> >> Erich >> _______________________________________________ >> 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"