Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Feb 2018 11:36:10 -0500
From:      Eric McCorkle <eric@metricspace.net>
To:        Julian Elischer <julian@freebsd.org>,Warner Losh <imp@bsdimp.com>
Cc:        "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: Feedback on proposed loader changes
Message-ID:  <7DD29EFF-2D94-4E14-9960-4BC47E5D922D@metricspace.net>
In-Reply-To: <3ef628a0-becd-dc4c-c3d0-efd121e841da@freebsd.org>
References:  <CANCZdfoF4M1k=wOzueg0KQk9tRoQT-hO0SrB51wxv=-n3ESiUw@mail.gmail.com> <2c882f57-def0-b9f1-3c62-147cbe6bec02@metricspace.net> <CANCZdfo4PB6mUFQ-%2B09xLZnBBxKH0LFCrTjVE=jD6oeFTodaZw@mail.gmail.com> <CANCZdfoCJhLEf5fcenWJ3No=Pm-QaynubWjxzBEk4gXkRmOsaQ@mail.gmail.com> <3ef628a0-becd-dc4c-c3d0-efd121e841da@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The keybuf system also needs a man page (that's on me as it was my inventio=
n)=2E

On February 7, 2018 11:30:53 AM EST, Julian Elischer <julian@freebsd=2Eorg=
> wrote:
>On 8/2/18 12:04 am, Warner Losh wrote:
>>
>> As for redoing things, I've just finished redoing ~15-years of
>sys/boot
>> neglect for stuff that wasn't done right the first time, so please be
>> patient with my pickiness=2E
>>
>> Warner
>the boot code in all its varying forms needs a full (re) writeup=2E
>the boot(8) man page and the handbook description (chapter 12 I think)
>are nowhere near complete=2E
>If you are doing this work I'd ask if you can spend a few hours on=20
>that too?
>That way we can follow what the new code is doing better=2E
>(and don't forget examples)
>Especially concentrating on changes=2E=2E

--=20
Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E
From owner-freebsd-arch@freebsd.org  Wed Feb  7 16:40:03 2018
Return-Path: <owner-freebsd-arch@freebsd.org>
Delivered-To: freebsd-arch@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 609ADF138CB
 for <freebsd-arch@mailman.ysv.freebsd.org>;
 Wed,  7 Feb 2018 16:40:03 +0000 (UTC)
 (envelope-from wlosh@bsdimp.com)
Received: from mail-it0-x231.google.com (mail-it0-x231.google.com
 [IPv6:2607:f8b0:4001:c0b::231])
 (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 E4BD671B0E
 for <freebsd-arch@freebsd.org>; Wed,  7 Feb 2018 16:40:02 +0000 (UTC)
 (envelope-from wlosh@bsdimp.com)
Received: by mail-it0-x231.google.com with SMTP id n206so2955365itg.1
 for <freebsd-arch@freebsd.org>; Wed, 07 Feb 2018 08:40:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=bsdimp-com.20150623.gappssmtp.com; s=20150623;
 h=mime-version:sender:in-reply-to:references:from:date:message-id
 :subject:to:cc;
 bh=jZBCaCCdAohYx7cLjhQRglby6O2K+HEvw/Tfg46KWCU=;
 b=DCWvg41zIr0QekcOG0iQiGjdCCNFgZsgwLLfVHNjyboeAzikuisUEMksBacc2auTiC
 13qkBId3VhKjR/9U6Zao9THJydMNtGNNEMFcbJsJpB1y1Zo1y7t4st6Pm7DCE4cjF3k/
 j96HG2INNrAVy1oq2WGnJt7A9ab4CVDqR7N7wHoZVfA/Mm1tprBWzOAwkJq+isTtF3Nv
 OKUB4DuDI9AQVFPCfWrUjV37jrfgyUgil2Rxhci5fTDd/j5Y/1O4j6s0FYjiVH4jeAzV
 Wmf/845wlQ3UhmkzBmTvwxYalEsnnCAwN9sjrO1EJ/qBXqSVS3ttpK2usgMwtCJGXLTU
 ajCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
 :date:message-id:subject:to:cc;
 bh=jZBCaCCdAohYx7cLjhQRglby6O2K+HEvw/Tfg46KWCU=;
 b=l3H2YnbCM2Hk6qkbAFIIek8GpNL7++b/nIDmGWcjl5SLMllRz+7M9zCnPngFQ9Jcsl
 +E2RiD/7V35Hc0bv8KER9+1034nz70G+q7bqj7cYwmy4iMso14qMrw4FlhmYJzfKRqvJ
 j+Z2RqVSsUJHtBX+ZFGVm0PL1tI6U7ggTJzoff6nqGe7mLZL+4BPqLqUexjBzhhWtn6E
 8br3HAQUInj75Obo3SKLzkX6cTYVfJaVuEr9JZpIyulOwBtGzU6+9DoNeb3B3lBxYf7y
 3hoDmjOdvTyb5ydRj3n5YmtOC08+ur+9KdeptjgVSNozPMeLZXf31KsFNRx+00m8uwB3
 ezzQ==
X-Gm-Message-State: APf1xPD9qMbrAx5xaOSlaqRlQ3KLLTol/boI3Ir8RIvjNOnwnshOcClf
 vLsg6FOql8ACk1nATB5D/5f4t5XjwgGTSDIm86JWhQ==
X-Google-Smtp-Source: AH8x225gmRZcOYUjk2c+IkFmtEGuSeYTd1/e8OKC29FZEs+azjq8rG7Ee/24vAIbo+4x3iwNd+I9gnEeardBTzmljDk=
X-Received: by 10.36.146.196 with SMTP id l187mr9171215itd.115.1518021602219; 
 Wed, 07 Feb 2018 08:40:02 -0800 (PST)
MIME-Version: 1.0
Sender: wlosh@bsdimp.com
Received: by 10.79.201.67 with HTTP; Wed, 7 Feb 2018 08:40:01 -0800 (PST)
X-Originating-IP: [50.253.99.174]
In-Reply-To: <2f744512-6ed1-eebf-7dba-ddba2786d4de@freebsd.org>
References: <CANCZdfoF4M1k=wOzueg0KQk9tRoQT-hO0SrB51wxv=-n3ESiUw@mail.gmail.com>
 <5015.1517478674@critter.freebsd.dk>
 <E8FCC310-5401-43D1-85CB-6A59E64BFE63@shxd.cx>
 <CANCZdfqM4GRteQx1HqurKOxjS0Dg0CiuLgLLmoQwfZnucTbj4w@mail.gmail.com>
 <2f744512-6ed1-eebf-7dba-ddba2786d4de@freebsd.org>
From: Warner Losh <imp@bsdimp.com>
Date: Wed, 7 Feb 2018 09:40:01 -0700
X-Google-Sender-Auth: DLQF66UjvWlwUQECr192VYvldN0
Message-ID: <CANCZdfosxT_2ie6EBLiA_bRmVDUDgx3Gfvir18kkNCxFncgVhw@mail.gmail.com>
Subject: Re: Feedback on proposed loader changes
To: Julian Elischer <julian@freebsd.org>
Cc: Devin Teske <devin@shxd.cx>, Poul-Henning Kamp <phk@phk.freebsd.dk>,
 Devin Teske <dteske@freebsd.org>, 
 "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.25
X-BeenThere: freebsd-arch@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: Discussion related to FreeBSD architecture <freebsd-arch.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arch>,
 <mailto:freebsd-arch-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arch/>;
List-Post: <mailto:freebsd-arch@freebsd.org>
List-Help: <mailto:freebsd-arch-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arch>,
 <mailto:freebsd-arch-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Feb 2018 16:40:03 -0000

On Wed, Feb 7, 2018 at 9:22 AM, Julian Elischer <julian@freebsd.org> wrote:

> On 2/2/18 1:59 am, Warner Losh wrote:
>
>> On Thu, Feb 1, 2018 at 9:58 AM, Devin Teske <devin@shxd.cx> wrote:
>>
>>
>>> On Feb 1, 2018, at 1:51 AM, Poul-Henning Kamp <phk@phk.freebsd.dk>
>>>>
>>> wrote:
>>>
>>>> --------
>>>> In message <CANCZdfoF4M1k=3DwOzueg0KQk9tRoQT-hO0SrB51wxv=3D-
>>>>
>>> n3ESiUw@mail.gmail.com>, Warner Losh writes:
>>>
>>>> So I'd like feedback on two questions: Should I kill the forth feature=
s
>>>>>
>>>> I
>>>
>>>> oulined above? And should I make the build system build multiple loade=
rs
>>>>> with a link controlling the default?
>>>>>
>>>> I think you should just move forward and go for the end-stage
>>>> without too many temporary bandaids.
>>>>
>>>> The loader is pretty decoupled from everything, so in case anybody
>>>> needs any of these Forth cornercases, they can use 11.X loader with
>>>> very little, if any, trouble.
>>>>
>>>> As a person that both reviewed the GSoC code you are working with
>>> (in-depth; including a list of short-comings) and the most likely perso=
n
>>> to
>>> bring it up-to-par after it is committed, I have 2 opinions:
>>>
>>> 1. Please allow both boot systems for a while so that the lua-based men=
u
>>> can be made as feature full as the Forth menu. Example: submenus were
>>> added
>>> in Forth long after the GSoC lua project had ended
>>>
>>> OK. The plan outlined does that. The lua code will be installed into
>> /boot.
>> But it will be .lua, so no conflicts with .4th. And we start from
>> loader.lua not loader.rc.
>>
>>
>> 2. Please don=E2=80=99t force us to run Lua until I can code the new fea=
tures
>>>
>>> OK
>>
>>
>> And as the principal author of the Forth menu since 9.0:
>>>
>>> 3. Please give me a way to run my code (at the very least until I can
>>> bring the Lua up to snuff; and if I can=E2=80=99t just let me run Forth
>>> in-perpetuity).
>>>
>>> Interrupting boot1 so I can drive the system in the pre-boot Execution
>>> env
>>> is very important to me.
>>>
>>
>> For !EFI, this is relatively easy. boot1 you can type /boot/loader_forth
>> instead of the default /boot/loader if the symlink changes and you want =
to
>> go back.
>>
>> For EFI the answer is more complicated. boot1.efi is going away, so
>> loader.efi will move to the ESP in \efi\freebsd\loader.efi, but it's eas=
y
>> enough to have multiple versions there (loader_lua.efi and
>> loader_forth.efi) and select via EFI Shell or EFI Env variables which on=
e
>> you want should you need to fall back.
>>
> so, there are multiple loaders.   zfsloader and loader for example.
> how does this fit into the picture you are drawing? a symlink for each?
>

That's my plan. Of course, we shouldn't have a separate zfsloader and
loader, but due to other limitaitons we do. At least we don't have a
zfsloader.efi.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DD29EFF-2D94-4E14-9960-4BC47E5D922D>