From nobody Tue Aug 16 18:00:22 2022 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 4M6f7q4CYvz4Z2V5 for ; Tue, 16 Aug 2022 18:00:23 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4M6f7q0wJQz40Xy for ; Tue, 16 Aug 2022 18:00:23 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from smtpclient.apple (unknown [10.0.1.14]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4M6f7p4HZNz2gF6n; Tue, 16 Aug 2022 11:00:22 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: How fast can I get FBSD to boot? From: Doug Hardie In-Reply-To: Date: Tue, 16 Aug 2022 11:00:22 -0700 Cc: Doug Hardie , Alejandro Imass , FreeBSD Questions Content-Transfer-Encoding: quoted-printable Message-Id: References: To: =?utf-8?Q?Andreas_Kusalananda_K=C3=A4h=C3=A4ri?= X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Virus-Scanned: clamav-milter 0.105.0 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4M6f7q0wJQz40Xy X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bc979@lafn.org designates 47.181.130.121 as permitted sender) smtp.mailfrom=bc979@lafn.org X-Spamd-Result: default: False [-1.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N -- Doug > On 16 August 2022, at 10:57, Andreas Kusalananda K=C3=A4h=C3=A4ri = wrote: >=20 > On Tue, Aug 16, 2022 at 10:47:12AM -0700, Doug Hardie wrote: >>> On 16 August 2022, at 08:05, Alejandro Imass = wrote: >>>=20 >>> Hi there ! >>>=20 >>> I=E2=80=99ve developed a nice framework for embedded touch screen = app development based on Perl Tk.=20 >>>=20 >>> I would like to create a single purpose OS that you can boot on a = Raspberry Pi or similar device and debating between sticking with Linux = or using FBSD (I would prefer FBSD). It needs to boot in just a few = seconds and only load X and then run a dedicated Perl app (no desktop = env or anything else). >>>=20 >>> Is there a group or list for embedded FBSD ? Can anyone provide some = pointers on how to make FBSD boot as fast or faster than some of the = embedded Linux out there ? >>=20 >> RSX-11D solved that problem by having a console command that wrote = all of memory to a specific disk file. You got the system setup the way = you wanted and then entered that command. You could add additional = commands to start your application to that command. >>=20 >> On boot, I believe the hardware was initialized first, and them = memory was completely overlaid from the file and then the CLI executed = any additional commands. It was faster than greased lightening. On the = PDP-11/45 it was way less than one second. >>=20 >> That would take some serious modifications to FreeBSD to implement = that, but I don't think you would find anything faster. >>=20 >> -- Doug >>=20 >>=20 >=20 > That almost sounds like suspending to disk ("hibernation") on > halt/poweroff and then resuming instead of booting. >=20 > --=20 > Andreas (Kusalananda) K=C3=A4h=C3=A4ri > SciLifeLab, NBIS, ICM > Uppsala University, Sweden >=20 > .