From owner-freebsd-arm@freebsd.org Tue Jun 14 15:46:25 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 C141DAF2861 for ; Tue, 14 Jun 2016 15:46:25 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x22f.google.com (mail-vk0-x22f.google.com [IPv6:2607:f8b0:400c:c05::22f]) (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 7DEDF28C1; Tue, 14 Jun 2016 15:46:25 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x22f.google.com with SMTP id j2so50548065vkg.2; Tue, 14 Jun 2016 08:46:25 -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; bh=ratc1Vrv5/QNWBMT5Oy8dESwKDBVhj/rzFNn1UFTCFM=; b=jGMnZdS4mMd2w6hhm5f6kZaQdapch489S8JC9EExQyFFXBoWxcbfcbp5qwymQK7wG+ s9zvCKrVMTRJ9QiEhbmL1YAGcRupH7rkNXad64bO0WJcmOPx9z/xC5RE02Hni5jw6D+s G5r34z60w1vwNHBIkxI/b7hFDweBFyHM+5ErPcWtaFWN6o7vwF9P6IdnBbt4Ft8tOroH TzzMev8qnPf0XnMkMoXJgQ1BOVL6JH6/OxD4EAydT06hRUXHHSEx+yVH9DQCJD5lVQrM /aRjaybHRI8o6ESi0FNiVIWB70PWXGUouQZSePhTf7i3oV6GQrPSL2cVQM3HtXQ82bQI Duww== 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; bh=ratc1Vrv5/QNWBMT5Oy8dESwKDBVhj/rzFNn1UFTCFM=; b=B9CukTXGDgCENK22yIiX5wdlC0NR0JFiAdjWvcb00z1suBMGXb8OhliOw5RDtGoJEY Hz0HZ+c1J336legbHsFeX7rWr66pX+jl4OQRTmuTcSaG4bGWrsmuFD0bjxGoQxqMngyT 8YCQ36dv1bbOJzsxvCM81FhzZ3GGw4O4tHxJazTpRu8G7Jc6rSe0r9xK6wXGHCs0r+EH aTHKBbkVX2+6Fflcz8/GANLTfoQHoJiHhGETKURng+V/h4KN37NxhmDx7uKiUex05XKC AebHkIdmGM9Io1dHu4++l8LuB9miV3hNKWXls6qWpAyBMedJkom+OG1Ko/KEIgGpkhJF 9TJA== X-Gm-Message-State: ALyK8tKBWeMNa4AfkE60rxyp/r/reIYha6rPFUXuSfh064B+LXYMoJMbxCe6FfZcn/B8etVSFIYAs+2Jr0xxEQ== X-Received: by 10.31.166.72 with SMTP id p69mr9428248vke.14.1465919184551; Tue, 14 Jun 2016 08:46:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.54.196 with HTTP; Tue, 14 Jun 2016 08:46:24 -0700 (PDT) In-Reply-To: <1465864289.1188.140.camel@freebsd.org> References: <20160610071928.GA75585@metron.com> <1465864289.1188.140.camel@freebsd.org> From: Russell Haley Date: Tue, 14 Jun 2016 08:46:24 -0700 Message-ID: Subject: Re: A possible solution to booting from another USB stick To: Ian Lepore Cc: Lou Katz , freebsd-arm Content-Type: text/plain; charset=UTF-8 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, 14 Jun 2016 15:46:25 -0000 On Mon, Jun 13, 2016 at 5:31 PM, Ian Lepore wrote: > On Fri, 2016-06-10 at 00:19 -0700, Lou Katz wrote: >> It occurred to me that as long as I had the same version of FreeBSD >> on the >> bootable card and in a USB adapter I could boot normally, then mount >> the system on the adapter card and do a chroot. >> >> A quicky and dirty test indicates that might work for what I want to >> do, >> which is to: >> a. modify an application >> b. add or subtract data files >> and as a freebie, I seem to get >> c. ability to change things without rebooting. >> >> I will report back after I try this in earnest. >> >> Thanks for the feedback. >> > > I apparently missed the first round of this question. > > In uboot, you need to do a "usb start", then do "usb dev" and see if it > recognizes your disk device. If so, you're in business, tell ubldr to > load the kernel from it instead of sdcard by doing: > > setenv loaderdev disk1 > > If there are multiple disks you might need disk2, disk3, whatever. If > there are multiple partitions involved you might need, for example, > disk1:2 to boot from partition 2. So does that mean there are three possible answers? 1) Create a new kernel and set ROOTDEVNAME" options ROOTDEVNAME=\"ufs:mmcsd0s2\" 2) If you have a good image with a kernel and rootfs on USB use a u-boot environment variable: uboot> setenv loaderdev disk1 3) If you can set the loader.conf file and want to run kernel on a default image (sdcard) and rootfs on USB: /boot/loader.conf (on the sd-card root) has vfs.root.mountfrom="ufs:/dev/ufs/bsd11" > -- Ian > _______________________________________________ > 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"