From nobody Tue Nov 29 21:59:50 2022 X-Original-To: freebsd-ppc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NMGTw0lv1z4hdVZ for ; Tue, 29 Nov 2022 22:00:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NMGTt5xxPz3l7v for ; Tue, 29 Nov 2022 22:00:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b="v/95roQJ"; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::635) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-ej1-x635.google.com with SMTP id b2so20795544eja.7 for ; Tue, 29 Nov 2022 14:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tNc2JIaR3xyN/rXjdSSmKv9SL6uXrT0ODj45ZOgBMOY=; b=v/95roQJEQVxBGejEyHRXnUl1s4EZx8D5HVBZlchSa6Ow2JgZ2oy3vHeio2MwKmn4b 8njoIDVGyJFb8sO19whbPvpokHzn1T6uJTT5dm1kpNbyXDHi4toFTNQF5nIA5LK70/QK G/Dg1mVNDsSVF3XivTSEt8aSt0DqEE5S1DKvfuhHG0VWLmSLUvuq6V6mMlD9iSBeoKj7 NI2Rhc85nQUvNsDCcloNZwB35YCypnkzQTOHvtPwazir3lhGJ5TjdgWla8kADCbRR8qp zaWiJk7gz2kZoeXDhofrDHX1ZqC8Hh4E7FLQo3PuQ5haoKdXhocSgscDbWupculNWda0 bktw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tNc2JIaR3xyN/rXjdSSmKv9SL6uXrT0ODj45ZOgBMOY=; b=niNj1D1xUw56DORtEa9EXuiSJkF1xPOOA+aMz/ilFMksYKlDH1EQbl/boriMKmeeSQ UccZX9KhBhMZ4Mcz0Sfn9dCEbPAVTWSa+GLSvZyFRj+n55GHE7yJrNCAoxt5MAV1exWL YbVQPBfuRYDRqj5TLZviodH33xeC1HsllPadN8pizHDUIGGR4biaFZ7aoN3N0nUR7Ivn dpyRAsP50AMskpp9eoP9MM9n5kh+ij0FtL+0b6cwVoPK5+MViVhroasRz0JrDQSYUsAo oCrK3Mjay+3jnaNA5LQRZClX5srLBAwvWU6fU+guaH8pP7hyNZdqLzrXJfbqremr48Cu Yavw== X-Gm-Message-State: ANoB5pkM2zqfI0uMR3vCPGvNXI2R3F77RSl9rPf4J0EbEbfSvSkTK5OW l73CxJmqnh1i7OgEuCReVD00+d6ktSrYawDDjDjfoQ== X-Google-Smtp-Source: AA0mqf7pot654jhbJe9MWBjqmQvn87ZQtGzyeDNcTQZvteZa/wHdmyjEsGUkuBuL9f9akKyLnTwZkjyxOH2gzr3xh+E= X-Received: by 2002:a17:906:f84d:b0:7b9:631b:7dfb with SMTP id ks13-20020a170906f84d00b007b9631b7dfbmr31026376ejb.32.1669759201508; Tue, 29 Nov 2022 14:00:01 -0800 (PST) List-Id: Porting FreeBSD to the PowerPC List-Archive: https://lists.freebsd.org/archives/freebsd-ppc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Tue, 29 Nov 2022 14:59:50 -0700 Message-ID: Subject: Re: Boot Loader: OFW network booting support To: Alexey Dokuchaev Cc: "freebsd-arch@freebsd.org" , FreeBSD PowerPC ML Content-Type: multipart/alternative; boundary="000000000000111b5805eea31c1f" X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-ppc@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::635:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_TLS_LAST(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; RCPT_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4NMGTt5xxPz3l7v X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --000000000000111b5805eea31c1f Content-Type: text/plain; charset="UTF-8" On Sun, Nov 20, 2022 at 9:47 PM Alexey Dokuchaev wrote: > On Tue, Nov 15, 2022 at 10:04:12AM -0700, Warner Losh wrote: > > ... > > So here's the deal. If someone has the ability to test and shows that > it's > > working today and promises to test my changes and help me debug it, then > > I'll keep it and add the new code that's needed to continue to support > this > > feature. > > I'd happily test anything on my venerable Mac mini G4 (which I currently > use to ensure ports' endian-cleanness and 32-bit compliance). > OK. There's a patch-train available at https://reviews.freebsd.org/D37560, but I don't know if you'll be able to easily apply it (there's 22 reviews). Alternatively, you can try the boot-devs branch at https://github.com/bsdimp/freebsd.git which is the same thing. > > Alternatively, if someone has the recipe for FreeBSD/powerpc on QEMU that > > includes OpenFirmware for disks and networking, I'll do the testing and > > legwork to get my netboot setup locally. > > I'll play with that as well. I recall last time I needed it, finding that > our Wiki doesn't have much working examples of different systems' emuation > was frustrating, so at the very least I could probably expand it. > Yea. I've managed to get mac99 emulation on qemu-system-powerpc working well enough to do the test boot, at least for disks. Still haven't found the secret decoder ring for netbooting with openfirmware, though. There's a network stack in the current Open BIOS used by qemu, though, so there may be hope. Warner --000000000000111b5805eea31c1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Nov 20, 2022 at 9:47 PM Alexe= y Dokuchaev <danfe@freebsd.org&= gt; wrote:
On Tu= e, Nov 15, 2022 at 10:04:12AM -0700, Warner Losh wrote:
> ...
> So here's the deal. If someone has the ability to test and shows t= hat it's
> working today and promises to test my changes and help me debug it, th= en
> I'll keep it and add the new code that's needed to continue to= support this
> feature.

I'd happily test anything on my venerable Mac mini G4 (which I currentl= y
use to ensure ports' endian-cleanness and 32-bit compliance).

OK. There's a patch-train available at https://reviews.freebsd.org/D3756= 0, but I don't know if you'll be able to easily apply it (there= 's 22 reviews).

Alternatively, you can try the= boot-devs branch at http= s://github.com/bsdimp/freebsd.git which is the same thing.
= =C2=A0
> Alternatively, if someone has the recipe for FreeBSD/powerpc on QEMU t= hat
> includes OpenFirmware for disks and networking, I'll do the testin= g and
> legwork to get my netboot setup locally.

I'll play with that as well.=C2=A0 I recall last time I needed it, find= ing that
our Wiki doesn't have much working examples of different systems' e= muation
was frustrating, so at the very least I could probably expand it.

Yea. I've managed to get mac99 emulation on = qemu-system-powerpc working well enough to do the test boot, at least for d= isks. Still haven't found the secret decoder ring for netbooting with o= penfirmware, though. There's a network stack in the current Open BIOS u= sed by qemu, though, so there may be hope.

Warner= =C2=A0
--000000000000111b5805eea31c1f--