Subject: Re: Adding a driver for Disk On Chip support
To: Brian Rose <lists@brianrose.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 06/22/2003 19:21:10
On Sat, Jun 21, 2003 at 07:13:46PM -0400, Brian Rose wrote:
> (also posted to tech-embed)
> 
> My goal is to get my PC104 system booting off of the on board Disk-On-Chip 
> 2000. Currently the D.O.C. has MSDOS on it. I am booting the machine off of 
> the floppy drive and have created a kernel based on the INSTALL-TINY. I 
> then populate the kernel memdrive with whatever tools that I need. However 
> the kernel is not seeing the D.O.C. and I'm assuming that the reason for 
> this is that the driver is not installed.
> 
> I found a post in the archives that indicates that you can use the FreeBSD 
> driver. It privides a link to a tarball that has some source files. The 
> readme file seems to be for FreeBSD and not NetBSD. I'm trying to figure 
> out how to incorporate the driver into NetBSD.
> 
> The post is here...
> http://mail-index.netbsd.org/tech-embed/2003/01/22/0001.html
> 
> What exactly do I need to do to incorporate this driver into the kernel? I 
> have copied the driver into the sys/dev/fla directory. I assume that I need 
> to make an entry into the config file. The readme file states that I must 
> do the following for pre-4.0 FreeBSD kernels

I fear it's much more work than that, you have to port the whole driver
to NetBSD.

> 
> config          kernel  root on major 28 minor 65538

One you have ported the driver, you don't need to tell the kernel where root
is, it should be able to find it by itself.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--