From owner-freebsd-current@freebsd.org Tue Jun 16 22:10:12 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 02847336CEF for ; Tue, 16 Jun 2020 22:10:12 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (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 49mj772FVjz3Z2R for ; Tue, 16 Jun 2020 22:10:11 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: by mail-pf1-x42a.google.com with SMTP id b5so90184pfp.9 for ; Tue, 16 Jun 2020 15:10:11 -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=wX608id/N+trlttH4jr8l4PaEr2q9hDH0Zm6cpLzyVw=; b=ENQM2nBrp4lF+CPPuByujEg7kGERshjUHLgicpHv/cAjJzcF28vfiudjCMK6UYrsvo PPzasWGXUV6gkVsOiuv7NCsrWiQ+mjSEiOL6nSK65mxUIkvNCyAFJFPglfjtrLXeLl/o kRFBjVwigGoOupkZeqr/UehLpQufSUbjupLak3+khqXqV5ROFob/tTwXT7XOihJJgDGM LVMzdWJ7JKQ5ssnVqHmugpmSbsFo1cWNrcBAD/MMbtpAbEhi2DM9HG4uFP3tqIPJ8LoV DpOLOb30giS+syn84pwrlbTIuue1+nkQ88gvPhyV1n/UpNCKCotiAwINnIY3jlvjElpR zvdg== 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=wX608id/N+trlttH4jr8l4PaEr2q9hDH0Zm6cpLzyVw=; b=OTRn+i0P2DFjIk6/9rUwTgjaDKYmMSwK1/8q607LhzEHUufQTZ8lQTAoLkLn+PzUYs A3XkzivneOp6Pm2eXfcc9F44uEaokAgY9Ju184myYEQS6Rms2CvM5orRXIaBbNh80pPo QtWCr4vpEcfHTKA9WA9gUGjQ4wzLI6wNWlVKtJdF/u3jy9Wz0IV3fXMh3hQnSh2dpIfD 61Fd9ok77mX97XW2BNA+KQqvAe111LPvSFxGjg/c6+CFRxLat2rCykJKHiDuSwGmA92U bmMtaWp/Dau2eAlJlBaIRJhl3udwvyGPacZOUqZyhsFgJ1MRbScN8MzyBQ0YLn+CpK1J W2/A== X-Gm-Message-State: AOAM533mTnWBtPDqshaMqv3WF3xfi5ecotXVX8r+OXzeAEgisiq7G1lF I7z/iSF8yfntUrySnVO0P4zB9SFzAFI7ubugfhukAKnF X-Google-Smtp-Source: ABdhPJyWsEAWs4vw6YGTtrA6UtMxgtzO0Dfk5FwxFvAReg0If0yOzPmii/q3YeaBMRtxHMCojcmXY7cgYEH0Y+0P9Mc= X-Received: by 2002:a63:8f46:: with SMTP id r6mr3798817pgn.257.1592345409525; Tue, 16 Jun 2020 15:10:09 -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 23:09:33 +0100 Message-ID: Subject: Re: CTF: UEFI HTTP boot support To: Rebecca Cran Cc: freebsd-current X-Rspamd-Queue-Id: 49mj772FVjz3Z2R X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ENQM2nBr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of miguelmclara@gmail.com designates 2607:f8b0:4864:20::42a 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.907]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; 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)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::42a:from]; HTTP_TO_IP(1.00)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.18)[-0.175]; 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 22:10:12 -0000 On Tue, Jun 16, 2020 at 10:37 PM Miguel C wrote: > > > 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 s= ee >>> > 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 >>> web >>> > server and that didn't seem to work for me) but maybe thats cause >>> those >>> > 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 the= n >>> 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 >> better 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 woul= d >> 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 + >> nfs for rootfs. >> >> But I'm still clueless how to set that up for FreeBSD, the guide >> mentioned here is linux centric, what need to live on the http server si= de? >> >> Update so I was trying the ubuntu boot again and noticed it required a few tries (literary choose that boot entry ... fail... try again... 3 times and it worked ) Could be a bug in rpi4-uefi.dev though but it proves it works= . I then tried openbsd miniroot img (just case its smaller honestly :D ) and it also booted the img file, but not FreeBSD (using 12.1 ) I noticed the openbsd image includes startup.nsh inside ef/boot/ alongside bootaa64.efi, unsure if that's what FreeBSD would need. >>> -- >>> Rebecca Cran >>> >>> >>>