From nobody Tue Apr 09 06:44:01 2024 X-Original-To: freebsd-hackers@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 4VDGdt0ckPz5GnWv for ; Tue, 9 Apr 2024 06:44:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 4VDGds55s8z4Fbg for ; Tue, 9 Apr 2024 06:44:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a51fd94c0bfso17065266b.2 for ; Mon, 08 Apr 2024 23:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1712645054; x=1713249854; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=K1pTS/tjh8ynp64oDkRSVO7Du6b7EljDPxyg1yGBvmI=; b=WslxXDEEbxG79PzxMHo1z1/eyZuZGyA2AKmrG5xVw65J/y+0TOuU6ramKaR8UgWhYE ZxIMdSpakFuMNeGxqtraopA8cvp5PNB5wDhMowVZ/7lg8Soa6KdLryh3duGVyAG61fYv 9r1qbKXg+NUCmaxkLdN3ZKXOkW+ZEw6Dl2hODGPn+BQhDHYRJW1/CBJ4IhXe5+/THgD9 +sGXuM4B048o1qjDE6HIqjD/rC4lk/hOTlduUTF6eIW3+a/psHgL+3t8j3xBAGbDmAlL QKdDbDiQQYB8F1J4N9/3btmDfj/Pn6+nJmSUZWyePYwkElIJCcWQm76SSpJ5zfPEXbph arJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712645054; x=1713249854; 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=K1pTS/tjh8ynp64oDkRSVO7Du6b7EljDPxyg1yGBvmI=; b=ftsu2xseCw6kuUeawUNzwcQ/rXGAMF4MeYiNsNmWXHf2P2o0ejLvmJjIhCipDdOOQ8 4fmW4H9MW9si05Xejfk/acIUyHZBXhhxpab5Gh04utWPCqAqXb/vlNkc5qpWL0Nk0gF7 N9KIyNgZhNhALi/6sNxYrVWML0VOBMfcXGV6BGZb0q9uKHCHrPINbNfKa5mv+p8HQRwJ eOFTrAXT1W7sfea62HQ4lBI53ww+iwda1vPrJB3HhXAOfbNwZ8gvwUj3DdpEE7Jf/4kX l+VTur9Zzxa72mQVHgrbCjxvsJPZSf/MNjKIGQAKdwJRu7r4nC2GhqzkbqR3v9zzRoFQ NAHg== X-Forwarded-Encrypted: i=1; AJvYcCXDp/ETWFFrwzkyBzskQqKoa0+DxrikWUboQyjuu/XoZI0GbnotAqMoioBmag5VDhsIhDb5FSNeQZxXZhFjvGiA7a6SHk8lFBQWZts= X-Gm-Message-State: AOJu0YyIMvkhqA1GaL28I70bSayTwcvDhjLPmfgDI+TaEtOaiKUA3kee NIU6wXQNIGI3bTeNdPMCNyAlJlt8fCbCeeFqFSO3+6AdZcq+uKg6YWCvLT75CDYA5UhUokjCrxs SC7y33MC/q8NlCNQJL9XZAyByx1hDsVV5UcVI7w== X-Google-Smtp-Source: AGHT+IHHDUFl/K1HetE0mzW5kri5N8xbsBqCNkTmJJeTt7YrfyYuarzo+UbXqGSA1CiRu+WPaYURY+GetPMaUocML/g= X-Received: by 2002:a17:907:1b17:b0:a51:da26:9062 with SMTP id mp23-20020a1709071b1700b00a51da269062mr3922756ejc.36.1712645053504; Mon, 08 Apr 2024 23:44:13 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <2C59E3CF-CF00-4E36-9DAC-5DA01C9B0B23@FreeBSD.org> In-Reply-To: <2C59E3CF-CF00-4E36-9DAC-5DA01C9B0B23@FreeBSD.org> From: Warner Losh Date: Tue, 9 Apr 2024 00:44:01 -0600 Message-ID: Subject: Re: Implementing a kexec()-style system call for FreeBSD 14 to boot a Linux kernel directly from FreeBSD. To: Zhenlei Huang Cc: Mario Marietto , freebsd-hackers , FreeBSD Mailing List Content-Type: multipart/alternative; boundary="0000000000000a78850615a44093" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4VDGds55s8z4Fbg --0000000000000a78850615a44093 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 8, 2024, 6:55=E2=80=AFPM Zhenlei Huang wrote= : > > > On Apr 9, 2024, at 4:49 AM, Mario Marietto wrote= : > > Hello. > > surfing the net I found this : > > https://github.com/fail0verflow/ps4-kexec > > It was built for Orbis (based on FreeBSD 9) ; a very old FreeBSD version. > But I'm intrigued by the idea to update the code and make it work for a > recent version of FreeBSD. It would be cool to "boot a Linux kernel > directly from FreeBSD"...Any consideration ? > > > Personally I do not care "boot a Linux kernel directly from FreeBSD". I'm > interested in "boot new FreeBSD kernel directly from FreeBSD" > Aarch64 is in and working in current. Amd64 is about 80% done. But you could also boot FreeBSD from FreeBSD with this... Warner > > -- > Mario. > > > Best regards, > Zhenlei > > --0000000000000a78850615a44093 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Apr 8, 2024, 6:55=E2=80=AFPM Zhenlei Huang <= ;zlei@freebsd.org> wrote:


On Apr = 9, 2024, at 4:49 AM, Mario Marietto <marietto2008@gmail.com> = wrote:

Hello.

= surfing the net I found this :


It was = built for Orbis (based on FreeBSD 9) ; a very old FreeBSD version. But I= 9;m intrigued by the idea to update the code and make it work for a recent = version of FreeBSD. It would be cool to "boot a Linux kernel directly = from FreeBSD"...Any consideration ?
=

Personally I do not care "boot a Linux kernel dire= ctly from FreeBSD". I'm interested in "boot new FreeBSD kerne= l directly from FreeBSD"

Aarch64 is in and working in cur= rent.=C2=A0 =C2=A0Amd64 is about 80% done.

But you could also boot FreeBSD from FreeBSD with this..= .

Warner=C2=A0

--
Mario.

Best regards,
Zhenlei

--0000000000000a78850615a44093--