Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2005 11:34:18 +0100
From:      Gerald Heinig <gheinig@syskonnect.de>
To:        Stephan Uphoff <ups@tree.com>
Cc:        hackers@freebsd.org
Subject:   Re: Firewire blues
Message-ID:  <420B38AA.9050306@syskonnect.de>
In-Reply-To: <1107964038.6309.1137.camel@palm.tree.com>
References:  <420731DD.3050206@syskonnect.de> <1107798981.6309.9.camel@palm.tree.com> <42088232.1030001@syskonnect.de> <4208B9C2.6020007@syskonnect.de> <1107888844.6309.221.camel@palm.tree.com> <4209C640.3070502@syskonnect.de> <1107964038.6309.1137.camel@palm.tree.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Stephan Uphoff wrote:
> On Wed, 2005-02-09 at 03:13, Gerald Heinig wrote:
> 
>> Stephan Uphoff wrote:
>> 
>>> There are two ways using kgdb to debug a target with firewire. 
>>> The first way basically replaces the slow serial cable for 
>>> communication to the remote target gdb stub. The second way uses
>>>  the remote DMA capabilities of firewire to directly read memory
>>>  of the target WITHOUT using any debugging software/stub on the 
>>> target. (Think remote core file)
>>> 
>>> Greg Lehey wrote a nice kernel debugging tutorial that explains 
>>> both types of firewire debugging. 
>>> http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf
>>> 
>>> This should get you started with only minor adjustments 
>>> (gdb->kgdb) .
>> 
>> This is actually the paper I'm using. I've followed the 
>> instructions on both methods, but I can't get it to work. The 
>> direct machine-machine connection is fine (ie. the one with 
>> dconschat). It's the kgdb connection that doesn't work. I presume 
>> it worked out of the box for you then?
> 
> 
> Once I linked in dcons, dcons_crom and firewire into the kernel 
> everything worked. (I think only dcons is really needed - maybe a 
> link set issue?) I only used the gdb stub method.
> 
> Can you send me your dmesg? (After you linked the dcons stuff into 
> the kernel)

Hi Stephan,

here's my dmesg:

Copyright (c) 1992-2004 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.3-RELEASE #0: Thu Feb 10 11:28:00 CET 2005
     root@gheinig-bsd.marvell.com:/usr/src/sys/i386/compile/FIREWIRE
MPTable: <DELL     Opti GX260  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2000.04-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7

Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 535236608 (510 MB)
avail memory = 514101248 (490 MB)
ioapic0: Changing APIC ID to 1
ioapic0: Assuming intbase of 0
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <display> at device 2.0 (no driver attached)
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xff80-0xff9f
irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xff60-0xff7f
irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xff40-0xff5f
irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 29.7 (no driver attached)
pcib1: <MPTable PCI-PCI bridge> at device 30.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 7.0 (no driver attached)
fwohci0: <VIA Fire II (VT6306)> port 0xec80-0xecff mem
0xff8fb800-0xff8fbfff irq 17 at device
8.0 on pci1
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:01:08:00:37:01:c3:be
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
dcons_crom0: <dcons configuration ROM> on firewire0
dcons_crom0: bus_addr 0x1f2fc000
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:01:08:01:c3:be
fwe0: Ethernet address: 02:01:08:01:c3:be
fwe0: if_start running deferred for Giant
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc000ffc1, gen=1, CYCLEMASTER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
firewire0: bus manager 1 (me)
pci1: <network, ethernet> at device 9.0 (no driver attached)
pci1: <network, ethernet> at device 10.0 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port
0xec40-0xec7f mem 0xff8c0000-0xff8dffff irq 18 at device 12.0 on pci1
em0: Ethernet address: 00:08:74:f5:ca:44
em0:  Speed:N/A  Duplex:N/A
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port
0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <multimedia, audio> at device 31.5 (no driver attached)
cpu0 on motherboard
orm0: <ISA Option ROMs> at iomem
0xc9800-0xcbfff,0xc8000-0xc97ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0303> can't assign resources (port)
Timecounter "TSC" frequency 2000036632 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 39205MB <Maxtor 6E040L0/NAR61590> [79656/16/63] at ata0-master UDMA100
firewire0: New S400 device ID:0001080038022bcf
Mounting root from ufs:/dev/ad0s4a
em0: Link is up 100 Mbps Full Duplex




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