Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 1998 20:19:59 +0000
From:      "Paolo Di Francesco" <paipai@tin.it>
To:        freebsd-sparc@FreeBSD.ORG
Subject:   Porting process (Again)
Message-ID:  <19981117191824.ELKO23830.fep03-svc@winworkstation>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981117191824.ELKO23830.fep03-svc>