From hidekazu@pc88.gr.jp  Sun Nov  5 13:50:33 2000
Return-Path: <hidekazu@pc88.gr.jp>
Received: from gate.pc88.gr.jp (gate.pc88.gr.jp [211.17.155.34])
	by hub.freebsd.org (Postfix) with ESMTP id 85CD237B4C5
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  5 Nov 2000 13:50:32 -0800 (PST)
Received: (from root@localhost)
	by gate.pc88.gr.jp (8.10.2+3.3W/3.7Wpl2-smtpcheck.patch2-gate[00-06-18/06:04:43])
	id eA5LoUK21627;
	Mon, 6 Nov 2000 06:50:30 +0900 (JST)
	(envelope-from hidekazu)
Message-Id: <200011052150.eA5LoUK21627@gate.pc88.gr.jp>
Date: Mon, 6 Nov 2000 06:50:30 +0900 (JST)
From: hidekazu@fmx.cs.titech.ac.jp
Sender: hidekazu@pc88.gr.jp
Reply-To: hidekazu@fmx.cs.titech.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: ATA RAID device
X-Send-Pr-Version: 3.2

>Number:         22625
>Category:       misc
>Synopsis:       Unable to install FreeBSD system to ATA RAID disk from boot floppies
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 05 14:00:01 PST 2000
>Closed-Date:    Thu Nov 9 03:53:58 PST 2000
>Last-Modified:  Thu Nov 09 03:54:32 PST 2000
>Originator:     Hidekazu Kuroki
>Release:        FreeBSD 2.2.8-RELEASE i386
>Organization:
Tokyo Institute of Technology 
>Environment:

	CPU           : Celeron 400MHz x 2
        Memory        : 376M
        ATA RAID Card : FastTrak100
        IDE-HDD       : IBM DPTA-*****  x 2

>Description:

	I try to install 4.2-BETA(4.2-20001105-BETA) and 
        5.0-current(5.0-20001105-CURRENT) to new PC
        with kern.flp and mfsroot.flp floppies.

        When installing 4.2-BETA, there is not a ATA RAID device(ar0)
        at 'Custom/Partition' screen in sysinstall. But there ara
        ATA Disk devices(ad0,ad1).
        
        When installing 5.0-CURRENT, there are a ATA RAID device(ar0)
        and ATA Disk devices(ad0,ad1). After I select ar0 and edit Pa
        rtition and Disk Label, start to commit. But abort to commit
        with following message.
          'Unable to make device node for /dev/ar0s1b in /dev!'
          'The creation of filesystem will be aborted.'
        In vty2 screen,
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1b'
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1e'
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1f'
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1g'

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: =?iso-8859-2?Q?Ivan_Debn=E1r?= <debnar@o-c.sk>
To: <freebsd-gnats-submit@FreeBSD.org>,
	<hidekazu@fmx.cs.titech.ac.jp>
Cc:  
Subject: Re: misc/22625: Unable to install FreeBSD system to ATA RAID disk from boot floppies
Date: Tue, 7 Nov 2000 00:05:07 +0100

 I looked through sysinstall source and libdisk source and guess what ! -
 libdisk doesn't know about ar? devices yet.
 
 Could someone update the libdisk source in stable and current to include the
 device?
 The files affected are:
 
 /src/lib/libdisk/create_chunk.c
 /src/lib/libdisk/disk.c
 
 --- disk.c.orig Thu Sep 14 14:10:45 2000
 +++ disk.c      Mon Nov  6 23:41:45 2000
 @@ -461,7 +461,7 @@
  }
  #endif
 
 -static char * device_list[] = {"wd", "ad", "da", "wfd", "fla", "idad",
 "mlxd", "amrd", "twed", 0};
 +static char * device_list[] = {"wd", "ad", "da", "wfd", "fla", "idad",
 "mlxd", "amrd", "twed", "ar", 0};
 
  char **
  Disk_Names()
 
 
 --- create_chunk.c.orig Fri Jul 14 08:30:59 2000
 +++ create_chunk.c      Mon Nov  6 23:46:59 2000
 @@ -300,6 +300,8 @@
         cmaj = 147, p += 4;
      else if (!strncmp(p, "da", 2))     /* CAM support */
         cmaj = 13, p += 2;
 +    else if (!strncmp(p, "ar", 2))     /* ATA RAID */
 +       cmaj = 157, p += 2;
      else {
         msgDebug("MakeDev: Unknown major/minor for devtype %s\n", p);
         return 0;
 
 Unfortunately I am not able to compile and try this, but if someone can
 create a set of 4-STABLE or 5-CURRENT installation disks and e-mail them,
 I'm willing to try.
 
 Those diffs are against 2000-10-30 stable, so they are just to show changes
 what I thing should be done to actual current files. This should make
 Current install on ATA RAID hopefully. I don't know, if it will make STABLE
 sysinstall recognize the ar device. I hope so.
 
 
 Ivan Debnr
 Online Consulting, s.r.o.
 
 tel.://+421 88 4146721
 fax://+421 88 4142231
 http://www.o-c.sk
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: dirk 
State-Changed-When: Wed Nov 8 05:02:01 PST 2000 
State-Changed-Why:  
Support for "ATA RAID" (ar) was added to libdisk and sysinstall, 
meanwhile. 

Can you please check, if it works, now? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22625 
State-Changed-From-To: feedback->closed 
State-Changed-By: dirk 
State-Changed-When: Thu Nov 9 03:53:58 PST 2000 
State-Changed-Why:  
From the originator: 

"I achieved success in installing 4.2-20001108-BETA 
FreeBSD system ( 4.2-RC1-install.iso is very large. ) 
with boot floppies. But, I needed to create new partision 
and disklabel layouts, because occured a kernel panic 
with old layouts(created at failing installation and 
remained on RAID disk)." 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22625 
>Unformatted:
