From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 07:54:39 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BC4516A4CE for ; Fri, 18 Feb 2005 07:54:39 +0000 (GMT) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 855E943D1D for ; Fri, 18 Feb 2005 07:54:38 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) j1I7saA8041518; Fri, 18 Feb 2005 08:54:36 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.1/8.12.9) with ESMTP id j1I7saDs008271; Fri, 18 Feb 2005 08:54:36 +0100 (CET) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.1/8.13.1/Submit) id j1I7sZEx008270; Fri, 18 Feb 2005 08:54:35 +0100 (CET) (envelope-from wb) Date: Fri, 18 Feb 2005 08:54:35 +0100 From: Wilko Bulte To: Garance A Drosihn Message-ID: <20050218075435.GA8228@freebie.xs4all.nl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 4.11-STABLE User-Agent: Mutt/1.5.6i X-Virus-Scanned: by XS4ALL Virus Scanner cc: Alex Burke cc: FreeBSD CURRENT Subject: Re: FreeBSD/s390 port (was: single user vs multiuser boot) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 07:54:39 -0000 On Fri, Feb 18, 2005 at 12:46:41AM -0500, Garance A Drosihn wrote.. > At 12:33 AM +0000 2/18/05, Alex Burke wrote: > >Hi, > > > >I was wondering what gives the kernel the ability to boot in > >multiuser mode, and whether it is some code in the kernel or > >whether it is the init process and associated tools? > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/init_main.c > > is the part of the kernel which decides to execute the program > which is in /sbin/init. > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/init/init.c > > is the init program. This is the program which notices you > requested 'boot -s', and it decides whether to go into > multi-user mode, or if it should ask you: > > "Enter full pathname of shell or RETURN for /bin/sh: " > > So, if you're seeing that prompt when the system goes into > single-user mode, then you could check that source file to > see what it does for multi-usermode. > > >As a follow-up question, if the kernel for a new architecture > >can already boot in single user mode, would it be just a matter > >of compiling init and those tools for that particular > >architecture to get the kernel to run in multiuser mode? > > I'm afraid I have no idea how much additional work it would take > to get from single-user mode to multi-user mode. > > >The reason I ask these questions is that I would like to continue > >work on the FreeBSD/390 port. I have a mini mainframe (P/390) which > >I could use to test the code on real hardware, and I'd much rather > >use FreeBSD/390 than Linux/390 on the little box! You should also contact Poul-Henning (phk@FreeBSD.org) as he had an interest in the s/390 work at the time. He might be able to offer some more insight. -- Wilko Bulte wilko@FreeBSD.org