From owner-freebsd-hackers@freebsd.org Tue May 28 02:14:43 2019 Return-Path: Delivered-To: freebsd-hackers@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 4447A15B256F for ; Tue, 28 May 2019 02:14:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (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 4481C90D4D for ; Tue, 28 May 2019 02:14:42 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x741.google.com with SMTP id g18so1795773qkl.3 for ; Mon, 27 May 2019 19:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N2rtnLbCwk7TtmdmCjx8VrdshvnAH4bHJEsr2f55FwA=; b=SqI5uRV4z8ocZGZ6ceiS7XRI6CYQir19gDC4Vq+/eZj9pcIA8EDFiS2H91VZuamDQw zyIYubokPVcwrFJl5e0FFIDUbLgvaE3EVWxQTQ55gPSuJttUHePtPu5g/sFAZe2mAvJa QGZoI5jfL6cCLU3R9+0rWU04wP8TieB7BVlcN5lU4b7yF4G9AfyV/c22BujQMltzKBIB scM0YdNbkRNezO5pE8pK5lkl5Ij842D7ttlFwIUxGA2O9XIUMxjBYOQtP0V3hbV9UN/w 3bOsdgTRYck/0wWLO/bFlrthhhvtat1V0sS74hpBmievIrSHgcnNkzVQtbm2CpnWqMOY OdtQ== 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=N2rtnLbCwk7TtmdmCjx8VrdshvnAH4bHJEsr2f55FwA=; b=OBItdhj9oLkoNmlLgXWUZZ/C3tI6p+xec1eH/Btzqnhm5pflUCryfrJ2eRlHFbpo7Z n8SXQKUShaLL3vVeiPq5kwzpZITMW2iv98ukOXlzybwsL4oHKLaR/Gtr+LmRUQoZUkI2 N3u72INpGqPbq9k9bAAZBjXTfq5X+3qoufzAJLoBfLGurx8+s62h++BOVYWN2Rg6p6KQ HYW8Dl8EaHGQwforAEvgkG3UXXP2rLYhxLAET+Do1VKSU7cW1OAw7vKPddaA4X4KQFcD A162kSNazJnzjhgqOFLpxSn/2aFrgkaWEyEBb/TUsi69l+4x9ks+MCoov0oNWRVnVw6I ep1g== X-Gm-Message-State: APjAAAX3eckYEqhNAfhnn5S/QsSkmuvnYmus7EfD4lvqg1kDW0TmpKPc 3+Aj/OR1YGfsBwUvOpmNi1YYX8eTrPk9gvqCVAB+OA== X-Google-Smtp-Source: APXvYqwAxlyEvgG/U4YCp2h6XVM4s/8L3g36g1HgFjfxSP8N0ahyLjZGmFbkdqOPBxucqrkfg0+lUiywYqn8f/O/CPQ= X-Received: by 2002:a05:620a:1384:: with SMTP id k4mr37539684qki.69.1559009681728; Mon, 27 May 2019 19:14:41 -0700 (PDT) MIME-Version: 1.0 References: <4a6b0f1e-64ec-6b83-b43b-f9791ec8428f@metricspace.net> <1452db0c-1210-3230-c044-bc682e7e1745@metricspace.net> <3aa00c6b-2502-ffad-c915-a833292882bd@freebsd.org> In-Reply-To: <3aa00c6b-2502-ffad-c915-a833292882bd@freebsd.org> From: Warner Losh Date: Mon, 27 May 2019 20:14:29 -0600 Message-ID: Subject: Re: FreeBSD and Coreboot To: Nathan Whitehorn Cc: Eric McCorkle , =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= , "freebsd-hackers@freebsd.org" , FreeBSD Current X-Rspamd-Queue-Id: 4481C90D4D X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=SqI5uRV4 X-Spamd-Result: default: False [-3.55 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[1.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.80)[-0.803,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-0.74)[ip: (1.95), ipnet: 2607:f8b0::/32(-3.29), asn: 15169(-2.28), country: US(-0.06)]; 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-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2019 02:14:43 -0000 On Mon, May 27, 2019, 7:18 PM Nathan Whitehorn wrote: > > > On 2019-05-27 15:50, Eric McCorkle wrote: > > On 5/27/19 5:53 PM, Edward Napierala wrote: > >> On Mon, 27 May 2019 at 16:14, Eric McCorkle > wrote: > >> > >> [..] > >> > >>> My plan is roughly this: > >>> > >>> * Refurbish the GRUB port, get it working again in QEMU (possibly on > one > >>> of my machines), also possibly push a patch to GRUB to use the keybufs > >>> mechanism to pass in GELI keys. > >>> > >>> * Get coreboot with GRUB/Seabios booting FreeBSD in QEMU > >>> > >>> * Possibly create a coreboot port (uncertain how this would work, since > >>> Coreboot has its own extensive config menu) > >>> > >>> * Hold my breath and test it out on real hardware (I have a Librem 13 > r1 > >>> for this purpose) > >>> > >>> * Possibly try getting the FreeBSD kernel to work as a coreboot > payload. > >> Out of curiosity - why the kernel and not loader(8)? > >> > > If I understand coreboot correctly, loader would have to directly > > manipulate devices _without a BIOS_. That is, it would have to have an > > entire device detection/interface layer, which I don't believe is the > > case today. > > > > At least in the EFI case, loader is talking through the system's EFI > > implementation, which takes care of all that for you. BIOS works in a > > similar way. My sense is getting loader to the point where it could be > > a coreboot (without Seabios/GRUB/Tianocore) would be quite an > undertaking. > > > > On IBM PowerNV systems, which also don't provide interfaces to a > second-stage loader, we just abandoned loader(8). It's way too much work. > How do you use tunables and loadable modules? Warner >