Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2002 00:30:59 +0900 (JST)
From:      kaz@kobe1995.net (NAKAMURA Kazushi)
To:        simokawa@sat.t.u-tokyo.ac.jp
Cc:        freebsd-firewire@freebsd.org, ikob@koganei.wide.ad.jp
Subject:   Re: Status of adding Firewire support to kernel?
Message-ID:  <200203101530.AAA05124@ns.kobe1995.net>
In-Reply-To: Your message of "Wed, 20 Feb 2002 17:19:09 %2B0900". <ybspu30wooy.wl@ett.sat.t.u-tokyo.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <ybspu30wooy.wl@ett.sat.t.u-tokyo.ac.jp>
simokawa@sat.t.u-tokyo.ac.jp writes:
>I have updated the tarball.
>
>http://people.FreeBSD.org/~simokawa/firewire-20020220.tar.gz 
>
>You don't need 'bus reset' or 'camcontrol rescan' anymore.
>You may still need to do mknod or patch cam/scsi code, see MAKEDEV and
>CAM-patch in the archive.

I added VIA VT6306 support to firewire-20020309.tar.gz .
It seems to be work. Please merge VT6306 code.
My IEEE1394 card is "KUROUTO SHIKOU IEEE1394V2-PCI",
2000+ yen(under $20?).
BTW, where is IEEE1394 applications such like FXTV ?

Thank you.

==> diff from 20020309, at /sys/dev/firewire
--- fwohcireg.h-	Sun Feb 17 22:00:34 2002
+++ fwohcireg.h	Sun Mar 10 20:49:11 2002
@@ -45,11 +45,13 @@
 #define		FW_VENDORID_NEC		0x1033
 #define		FW_VENDORID_TI		0x104c
 #define		FW_VENDORID_SONY	0x104d
+#define		FW_VENDORID_VIA		0x1106
 #define		FW_DEVICE_U861		0x0063
 #define		FW_DEVICE_TITSB22	0x8009
 #define		FW_DEVICE_TITSB23	0x8019
 #define		FW_DEVICE_TITSB26	0x8020
 #define		FW_DEVICE_CX3022	0x8039
+#define		FW_DEVICE_VT6306	0x3044
 
 #define		OHCI_DMA_ITCH		0x20
 #define		OHCI_DMA_IRCH		0x20
--- fwohci_pci.c-	Fri Mar  8 13:25:36 2002
+++ fwohci_pci.c	Sun Mar 10 20:49:23 2002
@@ -65,6 +65,7 @@
 #define FW_VENDORID_NEC		0x1033
 #define FW_VENDORID_TI		0x104c
 #define FW_VENDORID_SONY	0x104d
+#define FW_VENDORID_VIA		0x1106
 
 #define	FW_DEVICE_UPD861	0x0063
 #define	FW_DEVICE_TITSB22	0x8009
@@ -72,6 +73,7 @@
 #define	FW_DEVICE_TITSB26	0x8020
 #define	FW_DEVICE_TITSB43	0x8021
 #define	FW_DEVICE_CX3022	0x8039
+#define	FW_DEVICE_VT6306	0x3044
 
 #define FW_OHCI_BASE_REG	0x10
 
@@ -114,6 +116,11 @@
 		device_set_desc(dev, "SONY CX3022");
 		return 0;
 	}
+	if ((pci_get_vendor(dev) == FW_VENDORID_VIA) &&
+	    (pci_get_device(dev) == FW_DEVICE_VT6306)) {
+		device_set_desc(dev, "VIA VT6306");
+		return 0;
+	}
 	return ENXIO;
 }
 
@@ -212,6 +219,13 @@
 		switch(pci_get_device(self)) {
 		case FW_DEVICE_CX3022:
 			device_set_desc(sc->fc.bdev, "SONY CX3022");
+			break;
+		}
+		break;
+	case FW_VENDORID_VIA:
+		switch(pci_get_device(self)) {
+		case FW_DEVICE_VT6306:
+			device_set_desc(sc->fc.bdev, "VIA VT6306");
 			break;
 		}
 		break;

==> dmesg
ACPI debug layer 0x0  debug level 0x0
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT-20020219-JPSNAP #1: Sun Mar 10 15:05:32 JST 2002
    kaz@milk.kobe1995.net:/mnt/ftp/pub/obj/usr/src/sys/KOBE5SMP
Preloaded elf kernel "/boot/kernel/kernel" at 0xc04ed000.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc04ed0a8.
Preloaded elf module "/boot/kernel/bktr.ko" at 0xc04ed154.
Preloaded elf module "/boot/kernel/bktr_mem.ko" at 0xc04ed200.
Preloaded elf module "/boot/kernel/agp.ko" at 0xc04ed2b0.
Timecounter "i8254"  frequency 1192979 Hz
CPU: AMD Athlon(tm) Processor (1327.19-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x662  Stepping = 2
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 268369920 (262080K bytes)
avail memory = 256126976 (250124K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): apic id:  1, version: 0x00040010, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040010, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
bktr_mem: memory holder loaded
Pentium Pro MTRR support enabled
Using $PIR table, 268435454 entries at 0xc00fdf10
acpi0: <PTLTD    RSDT  > on motherboard
acpi0: power button is handled as a fixed feature programming model.
acpi0: sleep button is handled as a fixed feature programming model.
Timecounter "ACPI"  frequency 3579545 Hz
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_pcib0: <Host-PCI bridge> port 0x8080-0x80ff,0x8000-0x807f,0xcf8-0xcff iomem 0xdc000-0xdffff on acpi0
pci0: <PCI bus> on acpi_pcib0
agp0: <AMD 762 host to AGP bridge> mem 0xf4003000-0xf4003fff,0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 5.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 766 ATA100 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
amdpm0: <AMD 766 Power Management Controller> port 0x8000-0x80ff at device 7.3 on pci0
amdsmb0: AMD 756 SMBus interface
smbus0: <System Management Bus> on amdsmb0
smb0: <SMBus general purpose I/O> on smbus0
ohci0: <AMD-766 USB Controller> mem 0xdc000-0xdcfff irq 11 at device 7.4 on pci0
ohci_init: start
usb0: OHCI version 1.0, legacy support
ohci_init: SMM active, request owner change
usb0: SMM does not respond, resetting
usb0: resetting
usb0: <AMD-766 USB Controller> on ohci0
usb0: USB revision 1.0
uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
bktr0: <BrookTree 848A> mem 0xf4004000-0xf4004fff irq 11 at device 8.0 on pci0
bktr0: Pinnacle/Miro TV, Temic NTSC tuner.
sis0: <SiS 900 10/100BaseTX> port 0x1000-0x10ff mem 0xf4001000-0xf4001fff irq 5 at device 9.0 on pci0
sis0: Ethernet address: 00:07:40:23:01:1e
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <serial bus, FireWire> at device 10.0 (no driver attached)
bt0: <Buslogic Multi-Master SCSI Host Adapter> port 0x1814-0x1817 irq 11 at device 11.0 on pci0
bt0: BT-946C FW Rev. 4.25J Narrow SCSI Host Adapter, SCSI ID 7, 100 CCBs
pci0: <multimedia, audio> at device 13.0 (no driver attached)
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
npx0: <math processor> on motherboard
npx0: INT 16 interface
ata: ata0 already exists; skipping it
ata: ata1 already exists; skipping it
atkbdc: atkbdc0 already exists; skipping it
bt: bt0 already exists; skipping it
ppc: ppc0 already exists; skipping it
sio: sio0 already exists; skipping it
sio: sio1 already exists; skipping it
sc: sc0 already exists; skipping it
vga: vga0 already exists; skipping it
orm0: <Option ROMs> at iomem 0xe0000-0xe3fff,0xc8800-0xcc7ff,0xc0000-0xc87ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
ad0: 57259MB <MAXTOR 4K060H3> [116336/16/63] at ata0-master UDMA100
ad2: 58623MB <Maxtor 96147H6> [119108/16/63] at ata1-master UDMA100
Waiting 2 seconds for SCSI devices to settle
sa0 at bt0 bus 0 target 2 lun 0
sa0: <HP C1533A 9606> Removable Sequential Access SCSI-2 device 
sa0: 10.000MB/s transfers (10.000MHz, offset 8)
Mounting root from ufs:/dev/ad2s1a
WARNING: / was not properly dismounted
/: lost blocks 28 files 9
SMP: AP CPU #1 Launched!
/: reload pending error: blocks 28 files 9
WARNING: /altroot was not properly dismounted
WARNING: /mnt was not properly dismounted

==> kldload firewire; kldload sbp
fwohci0: <VIA VT6306> port 0x1400-0x147f mem 0xf4002000-0xf40027ff irq 10 at device 10.0 on pci0
fwohci0: PCI bus latency was changing to 250.
cache size 16.
fwohciinit -1
fwohci0: No. of Isochronous channel is 8.
fwohci0: Link 1394a available S400, 3 ports, maxrec 2048 bytes.
fwohci0: a9:44:00:aa:00:06:11:00
firewire0: <IEEE1394(Firewire) bus> on fwohci0
firewire0: firewire bus attach
firewire0: BUS reset
firewire0: Unknown tcode 14
fwohci_arcv: no packets
sbp_identify
sbp_probe
sbp0: <SBP2/SCSI over firewire> on firewire0
sbp_attach
sbp_post_explore
sbp_login


==> SWed on of DV-cam
firewire0: BUS reset
firewire0: Unknown tcode 14
fwohci_arcv: no packets
firewire0: node_id = 0xc8000001
firewire0: CYCLEMASTER mode
node: 0
node: 1
firewire0:cable IRM = 1
firewire0: BUS reset
firewire0: Unknown tcode 14
fwohci_arcv: no packets
firewire0: node_id = 0xc8000000
firewire0: CYCLEMASTER mode
node: 0
firewire0:cable IRM = 0

sbp_post_explore
sbp_login
firewire0: BUS reset
firewire0: Unknown tcode 14
fwohci_arcv: no packets
firewire0: node_id = 0xc8000001
firewire0: CYCLEMASTER mode
node: 0
node: 1
firewire0:cable IRM = 1
firewire0: BUS reset
firewire0: Unknown tcode 14
fwohci_arcv: no packets
firewire0: node_id = 0xc8000001
firewire0: CYCLEMASTER mode
node: 0
node: 1
firewire0:cable IRM = 1
start DMA
firewire0:Discover new S100 device ID:008088000008b9d6

sbp_post_explore
sbp_alloc_target
NULL management address
sbp_login
-- 
$BCfB<OB;V!w?@8M(B		<mailto:kaz@kobe1995.net>
NAKAMURA Kazushi@KOBE	<http://kobe1995.net/>;
- Break the hate chain. No more kill!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-firewire" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203101530.AAA05124>