From owner-freebsd-sparc Tue Nov 17 11:19:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA27304 for freebsd-sparc-outgoing; Tue, 17 Nov 1998 11:19:06 -0800 (PST) (envelope-from owner-freebsd-sparc@FreeBSD.ORG) Received: from fep03-svc.tin.it (mta03-acc.tin.it [212.216.176.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA27272 for ; Tue, 17 Nov 1998 11:18:53 -0800 (PST) (envelope-from paipai@box4.tin.it) Received: from winworkstation ([212.216.234.136]) by fep03-svc.tin.it (InterMail v4.0 201-221-105) with SMTP id <19981117191824.ELKO23830.fep03-svc@winworkstation> for ; Tue, 17 Nov 1998 20:18:24 +0100 Comments: Authenticated sender is From: "Paolo Di Francesco" To: freebsd-sparc@FreeBSD.ORG Date: Tue, 17 Nov 1998 20:19:59 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Porting process (Again) X-mailer: Pegasus Mail for Win32 (v2.53/R1) Message-Id: <19981117191824.ELKO23830.fep03-svc@winworkstation> Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Step #1) Read docs about the booting process, and do experiments on it. This means we need to write some asm code and do some unusefull things, such as to print on the screen "Hello world". I can do it on i386 using a floppy. This mean I can boot ANYTHING from the floppy. (Well, I loaded an image directly from the boot sector). The same thing will happen under Sparc. This will improve the asm skill... Step #2) Choose a version to start from. (Maybe 3.0?) Step #3) Isolate the asm (i386) code from the FreeBSD kernel code. This mean : Step #3.1) Isolate the asm directory and then the asm source files. Many of the directories have no asm code, so we need concentrate on the dirs which HAVE asm code. Then, in these dirs many files have no asm code. And so on. So a document with a tree like sys ----+ +-> dir #1 Nothing to modify +-> dir #2 + Here some asm files +-> file #1 to rewrite (partially) +-> file #2 to rewrite (totally) and so on... Step #3.2) Understand priority. What we need NOW to boot... For example we do not need "low priority" files which are not usefull for the first kernel version. Step #4) configure the base kernel and compile it under i386. This means that when we have well understood which files we need and which not, we can try to delete all unecessary files from the /usr/src/sys dir and then try to compile it under i386. This configuration will be the "starting point". Step #n-1) Write the device dependent code. Controller, network cards, misc cards, and so on. ... ... ... Step #n) write the code and compile it.... (Good Luck!) Ciao Ciao Paolo Di Francesco _ ->B<- All Recycled Bytes Message ... ~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message