PUC rewrite

Mike Tancsa mike at sentex.net
Fri Jun 6 15:16:45 UTC 2008


At 08:59 AM 6/6/2008, Mike Tancsa wrote:
>I have been starting to take a look at moving some of our embedded 
>platforms to RELENG_7 and noticed that support for the 3Com PCI 
>cards are broken.  Previously, in pucdata.c, they were defined as
>
>        /* US Robotics (3Com) PCI Modems */
>         {   "US Robotics (3Com) 3CP5609 PCI 16550 Modem",
>             {   0x12b9, 0x1008, 0,      0       },
>             {   0xffff, 0xffff, 0,      0       },
>             {
>                 { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
>             },
>         },
>
>
>However, in the newer version they are not there, and uart is not 
>picking up the device.


Forgot to mention, with just sio and puc defined in the kernel, the 
box will boot up, but it crashes up as soon as I attach to the modem

FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #9: Fri Jun  6 11:05:18 EDT 2008
     mdtancsa at releng7.sentex.ca:/usr/obj/usr/src/sys/nano5501
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (433.25-MHz 586-class CPU)
   Origin = "AuthenticAMD"  Id = 0x5a2  Stepping = 2
   Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
   AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 268435456 (256 MB)
avail memory = 253218816 (241 MB)
K6-family MTRR support enabled (2 registers)
cryptosoft0: <software crypto> on motherboard
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
Geode LX: Soekris net5501 comBIOS ver. 1.33 20070103 Copyright (C) 2000-2007
MFGPT bar: f00100006200
pci0: <encrypt/decrypt, entertainment crypto> at device 1.2 (no 
driver attached)
vr0: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe100-0xe1ff mem 
0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0
vr0: Quirks: 0x6
vr0: Revision: 0x96
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:00:24:ca:41:e8
vr0: [ITHREAD]
vr1: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe200-0xe2ff mem 
0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0
vr1: Quirks: 0x6
vr1: Revision: 0x96
miibus1: <MII bus> on vr1
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr1: Ethernet address: 00:00:24:ca:41:e9
vr1: [ITHREAD]
vr2: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe300-0xe3ff mem 
0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0
vr2: Quirks: 0x6
vr2: Revision: 0x96
miibus2: <MII bus> on vr2
ukphy2: <Generic IEEE 802.3u media interface> PHY 1 on miibus2
ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr2: Ethernet address: 00:00:24:ca:41:ea
vr2: [ITHREAD]
vr3: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe400-0xe4ff mem 
0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0
vr3: Quirks: 0x6
vr3: Revision: 0x96
miibus3: <MII bus> on vr3
ukphy3: <Generic IEEE 802.3u media interface> PHY 1 on miibus3
ukphy3:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr3: Ethernet address: 00:00:24:ca:41:eb
vr3: [ITHREAD]
sio0: <3COM PCI FaxModem> port 0xe500-0xe507 irq 10 at device 14.0 on pci0
sio0: moving to sio4
sio4: type 16550A
sio4: [FILTER]
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
ohci0: <OHCI (generic) USB controller> mem 0xa0005000-0xa0005fff irq 
15 at device 21.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 4 ports with 4 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xa0006000-0xa0006fff 
irq 15 at device 21.1 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: <AMD EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1
uhub1: 4 ports with 4 removable, self powered
orm0: <ISA Option ROM> at iomem 0xc8000-0xd27ff pnpid ORM0000 on isa0
can't re-use a leaf (%desc)!
can't re-use a leaf (%driver)!
can't re-use a leaf (%location)!
can't re-use a leaf (%pnpinfo)!
can't re-use a leaf (%parent)!
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
sio0: [FILTER]
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio1: [FILTER]
Timecounter "TSC" frequency 433251618 Hz quality 800
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
ad0: 977MB <SanDisk SDCFH-1024 HDX 4.09> at ata0-master PIO4
Trying to mount root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: / was not properly dismounted
bridge0: Ethernet address: 82:52:7b:4f:17:fe


# cd /dev
# ls -l cua*
crw-rw----  1 uucp  dialer  -   0,  48 Jun  6 11:12 cuad0
crw-rw----  1 uucp  dialer  -   0,  49 Jun  6 11:12 cuad0.init
crw-rw----  1 uucp  dialer  -   0,  50 Jun  6 11:12 cuad0.lock
crw-rw----  1 uucp  dialer  -   0,  54 Jun  6 11:12 cuad1
crw-rw----  1 uucp  dialer  -   0,  55 Jun  6 11:12 cuad1.init
crw-rw----  1 uucp  dialer  -   0,  56 Jun  6 11:12 cuad1.lock
crw-rw----  1 uucp  dialer  -   0,  39 Jun  6 11:12 cuad4
crw-rw----  1 uucp  dialer  -   0,  40 Jun  6 11:12 cuad4.init
crw-rw----  1 uucp  dialer  -   0,  41 Jun  6 11:12 cuad4.lock
# cu -l /dev/cuad4



Fatal trap 30: reserved (unknown) fault while in kernel mode
instruction pointer     = 0x20:0xc0567960
stack pointer           = 0x28:0xcd09b97c
frame pointer           = 0x28:0xcd09b994
code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, IOPL = 0
current process         = 971 (cu)
trap number             = 30
panic: reserved (unknown) fault
Uptime: 38s
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds - press a key on the console to abort

There is no console on this box unfortunately. 



More information about the freebsd-current mailing list