From nobody Tue Aug 16 17:57:14 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 4M6f4P5H42z4Z23k for ; Tue, 16 Aug 2022 17:57:25 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Received: from hekla.abc.se (hekla.abc.se [158.174.61.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M6f4N52j6z3xcQ for ; Tue, 16 Aug 2022 17:57:24 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Received: from harpo.local (83-233-37-250.cust.bredband2.com [83.233.37.250]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id 7ed2544a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 16 Aug 2022 19:57:15 +0200 (CEST) Date: Tue, 16 Aug 2022 19:57:14 +0200 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= To: Doug Hardie Cc: Alejandro Imass , FreeBSD Questions Subject: Re: How fast can I get FBSD to boot? Message-ID: Mail-Followup-To: Doug Hardie , Alejandro Imass , FreeBSD Questions References: 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4M6f4N52j6z3xcQ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of andreas.kahari@abc.se designates 158.174.61.227 as permitted sender) smtp.mailfrom=andreas.kahari@abc.se X-Spamd-Result: default: False [-1.47 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_MIXED_CHARSET(0.83)[subject]; R_SPF_ALLOW(-0.20)[+ip4:158.174.61.227]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8473, ipnet:158.174.0.0/16, country:SE]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[abc.se]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On Tue, Aug 16, 2022 at 10:47:12AM -0700, Doug Hardie wrote: > > On 16 August 2022, at 08:05, Alejandro Imass wrote: > > > > Hi there ! > > > > I’ve developed a nice framework for embedded touch screen app development based on Perl Tk. > > > > 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). > > > > 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 ? > > 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. > > 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. > > That would take some serious modifications to FreeBSD to implement that, but I don't think you would find anything faster. > > -- Doug > > That almost sounds like suspending to disk ("hibernation") on halt/poweroff and then resuming instead of booting. -- Andreas (Kusalananda) Kähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden .