From owner-freebsd-current@freebsd.org Tue Jun 16 21:38:03 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B7A51335BF7 for ; Tue, 16 Jun 2020 21:38:03 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 49mhQ270GXz3Ww6 for ; Tue, 16 Jun 2020 21:38:02 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: by mail-pl1-x630.google.com with SMTP id k6so4049310pll.9 for ; Tue, 16 Jun 2020 14:38:02 -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=e/HsjKVmf0mEHOhiUupYsZno87qWDu/Z8zMyQTv8+A0=; b=CZihR1GJqQ7dH42tgBP8T4YEiY1VeYmYvE+w5T3RBXteKQSQKKPIbKC6xNc6JWaw7+ eX9KVqFc6DDYxqd2YSRxoYWlcHjxply7zkgUS9gG46vMs6tDSvp9oFl21RbBSeC0ctk8 cEP8XT06J6WelQ67S3mUTmz6h1KJEFwSh6ntWB8d69K2oxiXxeItuUEvynvJ64NDH+uP VAhZ3rBF5G3dpNbkZfNh7ucHPkRuUmlSa3KP9P3aoZlppnIR7//hP1ToVzY8fm4t8vBb 0ius5YoLGFm9450JSB4ObfCggoiwn45W9US//qtck0cuTrnNGG4jvNsA5N5ZA7ORmcAz Aw6A== 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=e/HsjKVmf0mEHOhiUupYsZno87qWDu/Z8zMyQTv8+A0=; b=IIC8lnYu/kk8x8qh5q+jIoBDfdh3RTFTMryYDWZZu8RSb+LoG57Qh/XbvV/J4hNCB/ 0qv/HXeItJrfZm0SBh27lU/GdEs1ea0eVq6yCQBKEgyqYZ5V/nCTsh41YBH70gtpS74n KTjyPZ9nMwggHBa77pyG6qdpFydIWLRk2KbnnEmDBBveJu1HhV161Wuvzz1zw6JQtB3a ehax3mS6SnRZcTDyWUQlHAamqHDpWFwB1L0sr9WnEVXSktlGu/H4Pkvpne+B7VQCDiIn l1CfkPTlnGtqXgFxfmqmoxUCNGcvI82+0dOtGf4Av6ZAx0H4K0DoUPYdok9hH92aaV/X YNbQ== X-Gm-Message-State: AOAM530n8ip9JL6xZxxrdljEMtqm2aEHN1SYCFntM2sacEJJQsJbkqKY 177BIJWROPWuuthRcenSu1ORO6yec13cWmo5cgA= X-Google-Smtp-Source: ABdhPJwdeHyDQwUMheffS3rxwaN3ItZjhskXCQoFwde45dV5RvQCtU6ZL56TXm86FdHZt+dxSbBhP6+358CHnYL+W5w= X-Received: by 2002:a17:902:8d97:: with SMTP id v23mr3790663plo.3.1592343481391; Tue, 16 Jun 2020 14:38:01 -0700 (PDT) MIME-Version: 1.0 References: <0b38b537-9d9b-b3ae-bae3-bb5b4926bbaa@bsdio.com> In-Reply-To: From: Miguel C Date: Tue, 16 Jun 2020 22:37:24 +0100 Message-ID: Subject: Re: CTF: UEFI HTTP boot support To: Rebecca Cran Cc: freebsd-current X-Rspamd-Queue-Id: 49mhQ270GXz3Ww6 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CZihR1GJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of miguelmclara@gmail.com designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=miguelmclara@gmail.com X-Spamd-Result: default: False [-1.09 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.908]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; NEURAL_HAM_LONG(-1.01)[-1.009]; URI_COUNT_ODD(1.00)[1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; HTTP_TO_IP(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::630:from]; NEURAL_HAM_SHORT(-0.17)[-0.172]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 21:38:03 -0000 On Tue, Jun 16, 2020 at 10:35 PM Miguel C wrote: > > On Tue, Jun 16, 2020 at 7:25 PM Rebecca Cran wrote: > >> On 6/16/20 5:17 AM, Miguel C wrote: >> >> > I've been trying out FreeBSD with raspberry Pi4 (4GB) and wanted to se= e >> > what the state of HTTP BOOT is in FreeBSD, so I bumped into this! >> > >> > I'm curious if it should be possible to point to a img/iso directly (I >> > tried to use the img.xz unpacked it and make it available on a local w= eb >> > server and that didn't seem to work for me) but maybe thats cause tho= se >> > images miss something, so arm64 aside does that work for amd64? I.E. >> using >> > the bootonly.iso? >> >> Unfortunately HTTP boot only works as far as the kernel: UEFI fetches >> loader.efi, the loader fetches and runs the kernel over HTTP -- and then >> you need to use NFS to mount the filesystem (or have a local root >> filesystem). >> >> > Thanks for the reply , I can work with that for a live system still bette= r > than tftp, http+nfs should be that hard. > > >> UEFI also has RamDisk support, but I don't think that's for remote >> ISO/disk files, just local files. >> >> As for the ISO it does seem to work for remote ISO files, the bhyve con > presentantion suggests the same and I was able to boot the ubuntu arm64 > install iso using the direct link as a HTTP BOOT entry,. > > =EF=BF=BD>Start HTTP Boot over IPv4.... >> Station IP address is 172.16.50.62 >> >> URI: http:/?172.16.50.106/uarm64.iso >> File Size: 916357120 Bytes >> Downloading...26% >> > > But we also don't seem to have iso images for the raspberry pi, so it > might not work there, this does sugget just a link to the .efi file would > work: https://github.com/jljusten/tianocore/wiki/HTTP-Boot but I tired > that with no succes > Actually that was bad interpertation on my side for a ramdisk to be used it needs o be iso/img format. > In any case from what you're saying... for a live system I need http + nf= s > for rootfs. > > But I'm still clueless how to set that up for FreeBSD, the guide mentione= d > here is linux centric, what need to live on the http server side? > > >> -- >> Rebecca Cran >> >> >>