From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 05:46:44 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 6FD2F16A4CE for ; Fri, 18 Feb 2005 05:46:44 +0000 (GMT) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAA3B43D39 for ; Fri, 18 Feb 2005 05:46:43 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j1I5kgUP020652; Fri, 18 Feb 2005 00:46:43 -0500 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Fri, 18 Feb 2005 00:46:41 -0500 To: Alex Burke , FreeBSD CURRENT From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) 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 05:46:44 -0000 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! About how much does it cost to buy a mini-Mainframe ? >Since I cant write kernel code yet, I was going to try compiling >init and the shared libraries as 390 code and try to get the >system booting further (it would have to be a memory based >filesystem mounted as root, I don't think a driver for mainframe >CKD or FBA disk exists yet). The last update I saw about the s390 port was: > Reaches mount root prompt in emulator. > > More info is on http://tzukanov.narod.ru/freebsd390/ Note: Right now that web page says the project for a s390 port is dead, but maybe someone else has picked up on it. It does include more info and pointers. Also note that even though it may get to single-user mode when running in an emulator, that does not necessarily mean it will get to single-user mode on real hardware. >I was thinking eventually of porting linux 390 drivers to FreeBSD, >but I am not sure if licensing issues come into that. They do. >Apologies if i have posted to the wrong mailing list, i am not >sure what this comes under. I am also have no idea if any work is being done on a s390 port. It was never far enough along to have its own mailing list yet, so this is probably a reasonable mailing list to ask about it. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu