From nobody Sat Jan 15 10:53:26 2022 X-Original-To: virtualization@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 8C395195A72A for ; Sat, 15 Jan 2022 10:53:36 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 4JbZlg5RfDz3rP0 for ; Sat, 15 Jan 2022 10:53:35 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: by mail-qt1-x82f.google.com with SMTP id v7so13444495qtw.13 for ; Sat, 15 Jan 2022 02:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=//uv5//mrRGthwcufdisO5iI1f69aanHIyZuVekEoVI=; b=BR5pY/rrEtmiKX057ehTfG3B0QFhPk1N3vFPK/Vux3eBqDs7FOD789o/bUHl3+oKQT c8fheUxxZTs23FH9d//r43s0o6RwrbU4wKYD6Eu+Gek2TX3l4cOcyB36GG/A8UtXIuZ8 15FH0LpE03h1P3rgtocyQdzFijHOx5/Z/l075h/cYUAuKZjtBMUgC9I29afQ0DEgErEL B4vpfTTHRrQwaWFwVNrRn3VaTH49R6IF8ckwUhX7xCoEkcTDGJrqpC9J5KiHI3hPxyWx RnojrLx6KUjdbV/ZGZZW4gpDIhty0UMh5h/7hCqszljZg77+xZEvVA0sAUzSCHPCR8fO /g+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=//uv5//mrRGthwcufdisO5iI1f69aanHIyZuVekEoVI=; b=LYR61JfgKyw4YgA8ZpfHCRzCpbTPOpzKcRCZ2DYmM30WM//yCLNI7GK0dScMUwh3In HaJ89+tMeCyKEd3Y3XJYRv3N5Br2Hv9MqEcuA3tq300VSa+uJcwB6wORb7xFjY2jgiD3 yKLUV+4QC+icIx/XjNn42YEnbCMVi3hxPnb5UeyAvxskiJ51tXXTSYuP7ithgVduU2N6 Zjgx/Z5B8dAfUGa/Y/2wAUDGaNVHby9fG+pSZlOub/5Cktd1cB7DWqYqbJ2wXyRzlndj V9qBfoZYkb1D6TrlknfMtZkks1MTpf5KhcxBPEEbMYNxbRCPzm4NTWdeYzRfkRu5IGQr cuUA== X-Gm-Message-State: AOAM530SgHsSwwVo2uNCBWgQ+Ym0fWvg6Uztbs1AhJGe9k1m1m/GTsPt EUdA9fhV4KgsqarsP3carafXSpgANrdgRA== X-Google-Smtp-Source: ABdhPJxTnt5rCvlE9Jg1q58+ZyGMKdYuw1SqgWNXV9D+PESlnbhUEjuPTvTPg/hWy6qyBc3i46mvew== X-Received: by 2002:ac8:5e4e:: with SMTP id i14mr10472861qtx.221.1642244009491; Sat, 15 Jan 2022 02:53:29 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id t6sm3013428qtr.28.2022.01.15.02.53.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jan 2022 02:53:29 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-C5BD8D5B-7586-40EA-9D72-8BAF79FF2F04 Content-Transfer-Encoding: 7bit From: Bakul Shah List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: Using bhyve to develop and OS -- tips on how? Date: Sat, 15 Jan 2022 02:53:26 -0800 Message-Id: <6B196318-29A4-479B-BC12-99EBBB69397E@iitbombay.org> References: Cc: virtualization@freebsd.org In-Reply-To: To: Aryeh Friedman X-Mailer: iPad Mail (19C63) X-Rspamd-Queue-Id: 4JbZlg5RfDz3rP0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iitbombay-org.20210112.gappssmtp.com header.s=20210112 header.b="BR5pY/rr"; dmarc=none; spf=pass (mx1.freebsd.org: domain of bakul@iitbombay.org designates 2607:f8b0:4864:20::82f as permitted sender) smtp.mailfrom=bakul@iitbombay.org X-Spamd-Result: default: False [0.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[iitbombay-org.20210112.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[iitbombay-org.20210112.gappssmtp.com:s=20210112]; FREEFALL_USER(0.00)[bakul]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[0.999]; NEURAL_HAM_LONG(-1.00)[-0.999]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; DMARC_NA(0.00)[iitbombay.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82f:from]; MLMMJ_DEST(0.00)[virtualization]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail-C5BD8D5B-7586-40EA-9D72-8BAF79FF2F04 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable You may be better off using qemu, at least initially as =E2=80=9Clegacy=E2=80= =9D booting requires jumping through a few more hoops. Another suggestion is= to check out wiki.osdev.org. There are a lot of useful resources on this si= te. > On Jan 15, 2022, at 1:29 AM, Aryeh Friedman wro= te: >=20 > =EF=BB=BF > I want to develop a OS completely from scratch, i.e. starting with the fir= st instruction encountered after POST and everything above it (mostly for fu= n). >=20 > I want to use bhyve to do this any tips on how to get started (I have foun= d a few tutorials on how to do the asm part of a MBR but that's about as far= as I have gotten). >=20 > --=20 > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org --Apple-Mail-C5BD8D5B-7586-40EA-9D72-8BAF79FF2F04 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
You= may be better off using qemu, at least initially as =E2=80=9Clegacy=E2=80=9D= booting requires jumping through a few more hoops. Another suggestion is to= check out wiki.osdev.org. There are a lot of useful resources on this site.=

On Jan 15, 2022, at 1:2= 9 AM, Aryeh Friedman <aryeh.friedman@gmail.com> wrote:

=EF=BB=BF
I want to develop a OS completely from scratch, i.e. starting with t= he first instruction encountered after POST and everything above it (mostly f= or fun).

I want to use bhyve to do this any tips on= how to get started (I have found a few tutorials on how to do the asm part o= f a MBR but that's about as far as I have gotten).

--=
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
= --Apple-Mail-C5BD8D5B-7586-40EA-9D72-8BAF79FF2F04--