From nobody Tue Apr 09 06:44:01 2024 X-Original-To: freebsd-questions@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 4VDGdt0bwtz5GnlJ for ; Tue, 9 Apr 2024 06:44:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (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 4VDGds55ssz4FHp for ; Tue, 9 Apr 2024 06:44:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-56e48d0a632so4199025a12.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=pbx+A5o9ITaG7d4+AMhcrbCQItwhfVkiR/u4Mtq2rARknEqY8l50CGeiNLCmjZcs7L uo/udeod0kLrqv16lIopaxxulX67KwQEBUH3fAX5zFxR44ta0AvZ9bNRincSwWrB2/8O ryzm0l5jq6aHlMz5LxTOUU2sKAaIZppbJrVBX2NNWjl03hRGnDHpDrfdCmpMF0bc2OO4 /xcnGDvfqxnZKMe/7FiAsSIjYfp/B1g7TKsQAvPsK+89h9gptD4pvK2aIpHmL6IRlsCZ ULBAmfCoaoiGJ2yrbOoRm/Ec4JgfL7YckTjC2w/h1tTJqb80EGFq/VQWFelF+4Pw5K9c f2rQ== X-Forwarded-Encrypted: i=1; AJvYcCWLeTjdKbEJ3eJsQK+1MbDLWf3GyJgRXkIQ0LfmsimlK+NedrZWzy0TG8o1jc9KRteHdhHHu7f06F2xkhZOfjOpEmKAk0YEU4UBh/wB9A== X-Gm-Message-State: AOJu0Yx8HGYPW/UYBldk87JlqAYYsnDJyJGzKW1H05PLKBybV/ptRcdo zjU/DVKIiXcs/MWBSuScSNqyFqMTAMtz6oHyacw2ceiZiVC8+nttCUy51VOvLAG9GvtulGiuyw3 31yzWTBRpRZJOwj8xIO4hvPs0SqHibv3RrXLMZg== 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: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@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: 4VDGds55ssz4FHp --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--