Subject: Re: dmesg on PCI_CONFIG_DUMP
To: None <fox@tcnet.ch>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: port-cobalt
Date: 01/25/2004 14:00:03
----Next_Part(Sun_Jan_25_14:00:04_2004_053)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi


Very thanks & sorry.
All the messages at the time of boot want me. A message is too long and
the buffer only of a few is carried out.

Do I extract messages or have script used?

  ex.
  ---
  1. /var/log/messages ->

       cobalt# cp /var/log/messages ~/BOOT_MESSAGES
       cobalt# vi ~/BOOT_MESSAGES   #<-----  Extract

  or

  2. script

       YOUR_HOST# script
       YOUR_HOST# tip -115200 dty0   #<----- dty0 is connected with cobalt

         <--- your cobalt power on.



From: Andreas Fuchs <fox@tcnet.ch>
Date: Sat, 24 Jan 2004 19:36:49 +0100

> You where requesting a dmesg with USB Debug option on from a Cobalt Qube2.
> Attached my kernel conf and dmesg.
> 
> i hope this helps.
> 
> I was able to compile a kernel which makes no mem errors by just 
> configuring the NEC device 10 function 0, but i have no /dev/usb??? 
> devices and have no idea how to create them, do you have any idea ?

I worked umass0 yet. (other some problems.)
# My card cannot be working on i386.

Please perform it as follows.

  1. multifunction correspondence.

       patching this.
         http://mail-index.netbsd.org/port-cobalt/2004/01/10/0001.html

  2. PCI memory space correspondence

       Correction is temporarily required!!
       see. pciconf.tmp.diff

  3. majors & files

       see. cobalt_conf.diff

  4. GENERIC

       Please edit your GENERIC. I am doing in this way. see GENERIC_add

  5. build

  6. Please reconstruct, if MAKEDEV is required.
     Since I needed dtyUX, it reconstructed.

      cobalt# cd /usr/src/etc
      cobalt# <TOOLDIR>/bin/nbmake-cobalt MAKEDEV
      cobalt# mv MAKEDEV /dev/MAKEDEV.new
      cobalt# cd /dev
      cobalt# sh MAKEDEV.new usbs

  7. reboot!!!


umm..
It seems that it may work by chance if there are USB_DEBUG and
EHCI_DEBUG although my card does not work on i386. This is under
investigation. teaching the name of a card, when your card works well ?
my card is IFC-PCI7IU2 (IO DATA).

thanks
--
kiyohara


----Next_Part(Sun_Jan_25_14:00:04_2004_053)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="pciconf.tmp.diff"

Index: pciconf.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/pciconf.c,v
retrieving revision 1.22
diff -c -r1.22 pciconf.c
*** pciconf.c	2003/12/02 16:31:06	1.22
--- pciconf.c	2004/01/24 16:57:30
***************
*** 1002,1008 ****
--- 1002,1011 ----
  		class = pci_conf_read(pd->pc, pd->tag, PCI_CLASS_REG);
  		misc = pci_conf_read(pd->pc, pd->tag, PCI_BHLC_REG);
  		cmd = pci_conf_read(pd->pc, pd->tag, PCI_COMMAND_STATUS_REG);
+ /*
  		cmd |= PCI_COMMAND_SERR_ENABLE | PCI_COMMAND_PARITY_ENABLE;
+ */
+ 		cmd |= PCI_COMMAND_PARITY_ENABLE;
  		if (pb->fast_b2b)
  			cmd |= PCI_COMMAND_BACKTOBACK_ENABLE;
  		if (PCI_CLASS(class) != PCI_CLASS_BRIDGE ||

----Next_Part(Sun_Jan_25_14:00:04_2004_053)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="cobalt_conf.diff"

Index: conf/files.cobalt
===================================================================
RCS file: /cvsroot/src/sys/arch/cobalt/conf/files.cobalt,v
retrieving revision 1.19
diff -c -r1.19 files.cobalt
*** conf/files.cobalt	2003/10/17 18:20:10	1.19
--- conf/files.cobalt	2004/01/24 16:53:42
***************
*** 56,58 ****
--- 56,61 ----
  include "dev/ata/files.ata"
  
  include "arch/cobalt/conf/majors.cobalt"
+ 
+ include "dev/usb/files.usb"
+ include "dev/ieee1394/files.ieee1394"
Index: conf/majors.cobalt
===================================================================
RCS file: /cvsroot/src/sys/arch/cobalt/conf/majors.cobalt,v
retrieving revision 1.11
diff -c -r1.11 majors.cobalt
*** conf/majors.cobalt	2003/12/10 02:04:00	1.11
--- conf/majors.cobalt	2004/01/24 16:53:42
***************
*** 41,46 ****
--- 41,53 ----
  device-major	cgd		char 35  block 11	cgd
  device-major	panel		char 36			panel
  device-major	ksyms		char 37			ksyms
+ device-major	usb		char 55			usb
+ device-major	uhid		char 56			uhid
+ device-major	ulpt		char 57			ulpt
+ device-major	ugen		char 64			ugen
+ device-major	ucom		char 66			ucom
+ device-major	urio		char 70			urio
+ device-major	uscanner	char 75			uscanner
  
  # Majors up to 143 are reserved for machine-dependant drivers.
  # New machine-independant driver majors are assigned in 

----Next_Part(Sun_Jan_25_14:00:04_2004_053)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="GENERIC.add"

options		PCI_NETBSD_CONFIGURE
options		PCI_CONFIG_DUMP
options		EHCI_DEBUG
options		USB_DEBUG
ehci*	at pci? dev ? function ?
uhci*	at pci? dev ? function ?

usb*	at ehci?
usb*	at uhci?

uhub*	at usb?
uhub*	at uhub? port ? configuration ? interface ?

umass*	at uhub? port ? configuration ? interface ?
scsibus* at umass? channel ?

uplcom*	at uhub? port ?
ucom*	at uplcom? portno ?

fwohci*	at pci? dev ? function ?
fw*	at fwbus?

fwnode*	at fwbus? idhi ? idlo ?
sbpscsi* at fwnode?
scsibus* at sbpscsi?

----Next_Part(Sun_Jan_25_14:00:04_2004_053)----