From owner-freebsd-arm@freebsd.org Thu Apr 18 07:31:05 2019 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 D2C3C158AA3B for ; Thu, 18 Apr 2019 07:31:04 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EBC8D82207; Thu, 18 Apr 2019 07:31:03 +0000 (UTC) (envelope-from balanga.bar@gmail.com) Received: by mail-ed1-x542.google.com with SMTP id i13so934881edf.11; Thu, 18 Apr 2019 00:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ToGcp380+LGv2KDR5UUinjMkatilmEbwjZYUjHb0rcw=; b=QCEdpKxghi4Oa+Oz4yjl19y+iWcxExwHpQs6KeAXyF9fXqqcgSYNktK4HBQoO2da59 5LxXJUTLN7b73fSIpMKuQCYvWlePXFpO737aFlQmcEZI7Jr8ML34mwB3W9y5QIuSuGoP 2v5Spywz1HM3WeR1HPgBfcpdxpXUlpyBy5u/o5kF1zWZdaQqryoI90FPG0x03Aunyjp8 n6qtOGc/7SaSnuO2MHNWWmoutCt+qhvWOu4U9m7yxkr0bFPfvbVhTlMcUekqIOEoi8y4 esYFeHFNZbgh0aYvAr3Taaep/n9ZqKR2XGYZVCZ2yBxtsKFfFEePZlPKm2yvsucCKSH+ Zneg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ToGcp380+LGv2KDR5UUinjMkatilmEbwjZYUjHb0rcw=; b=NdeneQTXrmaoBAY9cKDE9n7QxaUQpvhljBc2+Bbv24ih1VoFh9bjTnieeRmsIKCRjR NWHWJxFiDpSqbhoTn9qFeHQzbzShhnl5uPQ3+y5xaOu9RTRuxh9EwpwMApLGw1z7+nqf 4buI1ehdxz70u1lzOuctopUg34L7bMu1hwmfYK0c102IIXgBHawZBaqPReby/IyIoaHk iQJ2A9pUI8tbsEAitDD6w9beb5qWgtO/HBzEbrDY3+3Ducmq0SWe2sQLMEdXRss66W2L fno7NXLFNue/2uEumT2NrDuwfSnSoK20cWRRL4W6i26OWxahW3o051foh4nbpGmp6SMP /5Xw== X-Gm-Message-State: APjAAAVGYmN0VXxUbRkprfx4n39SbnOCs1LAcixTKG9FwStMFWBEP1Qa 6BCylSW4BQ7mbqEqsQ5H2SMUd5Q1wXLS7sQm3It4lpQNi/0= X-Google-Smtp-Source: APXvYqxdgxa9UDuECp5aUpOMoZWMu19VDo4DLdf0EixixcEcS9Ts+aBmsqNFciNn0kar8c4nIjyzHUMGAv8vrN0vhJY= X-Received: by 2002:a50:b884:: with SMTP id l4mr28640933ede.10.1555572662804; Thu, 18 Apr 2019 00:31:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Balanga Bar Date: Thu, 18 Apr 2019 09:30:42 +0100 Message-ID: Subject: Re: loaderdev To: Ian Lepore Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: EBC8D82207 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=QCEdpKxg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of balangabar@gmail.com designates 2a00:1450:4864:20::542 as permitted sender) smtp.mailfrom=balangabar@gmail.com X-Spamd-Result: default: False [-4.59 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.61)[-0.607,0]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.97)[ip: (-0.17), ipnet: 2a00:1450::/32(-2.38), asn: 15169(-2.23), country: US(-0.06)]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2019 07:31:05 -0000 How does uBoot know how to load ubldr? Is this specific to a particular version of uBoot? I'm using a customised uBoot which lets me boot OpenWrt, Debian, Arch Linux or FreeBSD depending on the contents of a USB stick. Currently I have a /boot/uEnv.txt file on a FAT partition which includes bootfile=ubldr Will I no longer need a FAT partition? If loaderdev is set to disk, then where is ubldr loaded from since, AFAIK, uBoot can only read FAT or EXT3 partitions? On Wed, Apr 17, 2019 at 9:58 PM Ian Lepore wrote: > On Wed, 2019-04-17 at 22:40 +0100, Balanga Bar wrote: > > I've looked for info on possible values for loaderdev, but have not > > seen > > anything, although I notice when booting my GoFlex Home I see > > > > U-Boot env: loaderdev not set, will probe all devices. > > > > What should I set loaderdev to and where does this line come from? > > > > Set loaderdev in the uboot environment, ubldr will read it from there > using a uboot API call. The basic values are 'disk' or 'net'. > > If you use 'net' you need to also set rootpath=ip:/nfs/root/path and > serverip= in the uboot env. This will use nfs to > load the kernel, and also will mount that nfs filesystem as the rootfs. > > If you use 'disk' it will probe all disk-like devices to find a freebsd > partition marked active (or just the first freebsd partition it finds > if none has the active flag in the MBR). Instead of just disk, you can > also use specific device types, like mmc, usb, sata. Also, you can > append a unit, slice, and partition parameter, like 'disk0:2.1 to boot > from the first disk device, slice 2 partition 1 (equivelent to da0s2a > or mmcsd0s2a). In freebsd 13 you can use the more common 's2a' syntax, > but I haven't merged those changes back to 12 or 11 yet. > > -- Ian > >