From owner-freebsd-current Sat Mar 13 18:23:24 1999 Delivered-To: freebsd-current@freebsd.org Received: from freja.webgiro.com (10.0.29.209.212.in-addr.arpa [212.209.29.10]) by hub.freebsd.org (Postfix) with ESMTP id 1683014F69 for ; Sat, 13 Mar 1999 18:23:21 -0800 (PST) (envelope-from abial@webgiro.com) Received: by freja.webgiro.com (Postfix, from userid 1001) id 5F12618C2; Sun, 14 Mar 1999 03:23:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by freja.webgiro.com (Postfix) with ESMTP id 5836849CB; Sun, 14 Mar 1999 03:23:14 +0100 (CET) Date: Sun, 14 Mar 1999 03:23:14 +0100 (CET) From: Andrzej Bialecki To: Chuck Robey Cc: "Daniel C. Sobral" , current@FreeBSD.ORG Subject: Re: HEADS UP: new loader.rc stuff In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 13 Mar 1999, Chuck Robey wrote: > > load kernel > > load -t userconfig_script /kernel.config > > > > and then putting your pnp configuration line on /kernel.config (if > > it is not there already). > > This is good info for current, right? And I don't need to worry about > "userconfig_script"? What's load -t do (I don't need a man page, but at > least a few words on the -t, please). '-t' does basically two things. First of all, it selects right loading procedure, e.g. just suck it in instead of interpreting it as an ELF binary. The other thing is that it attaches a magic label to this piece of code, so that later from within the kernel you can do preload_search_by_type("my_lovely_magic_string") and it will return a pointer to the right data, be it an executable code or a text or a graphics image. > > The pnp line will be the only thing in /kernel.config, that's normal? Yes. Since you're running -current, you should be able to use kget(8) as a dset replacement to generate /kernel.config for you, based on the changes in UserConfig. Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message