Код: Выделить всё
} umodem_products[] = {
+ { 0x0baf, 0x00ec, 0},
Код: Выделить всё
} umodem_products[] = {
+ { 0x0baf, 0x00ec, 0},
Код: Выделить всё
} umodem_products[] = {
+ { 0x0baf, 0x00ec, 0},
Спасибо за оперативность, но воз и ныне там ((paradox писал(а):umodem.cплюсиком строка которая нужно добавитьКод: Выделить всё
} umodem_products[] = { + { 0x0baf, 0x00ec, 0},
dmesg -aparadox писал(а):подключите модем
перегружайте bsd
и показывайте весьКод: Выделить всё
dmesg -a ls -l /dev/cu*
Код: Выделить всё
Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE #2: Fri Jun 27 14:28:30 MSD 2008
jan@host:/usr/obj/usr/src/sys/main_kernell.2008-27-06
ACPI APIC Table: <PTLTD APIC >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz (1862.01-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6f6 Stepping = 6
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>
Features2=0xe3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,<b9>,CX16,<b14>,<b15>>
AMD Features=0x20100000<NX,LM>
AMD Features2=0x1<LAHF>
Cores per package: 2
real memory = 2146304000 (2046 MB)
avail memory = 2095333376 (1998 MB)
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <PTLTD RSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci9: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 0.0 on pci9
pci10: <ACPI PCI bus> on pcib3
pci9: <base peripheral, interrupt controller> at device 0.1 (no driver attached)
pcib4: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0
pci13: <ACPI PCI bus> on pcib4
em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x4000-0x401f mem 0xe8000000-0xe801ffff irq 16 at device 0.0 on pci13
em0: Ethernet address: 00:30:48:8f:3b:d6
pcib5: <ACPI PCI-PCI bridge> irq 16 at device 28.5 on pci0
pci14: <ACPI PCI bus> on pcib5
em1: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port 0x5000-0x501f mem 0xe8200000-0xe821ffff irq 17 at device 0.0 on pci14
em1: Ethernet address: 00:30:48:8f:3b:d7
uhci0: <UHCI (generic) USB controller> port 0x3000-0x301f irq 23 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <UHCI (generic) USB controller> 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: <UHCI (generic) USB controller> port 0x3020-0x303f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <UHCI (generic) USB controller> 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: <UHCI (generic) USB controller> port 0x3040-0x305f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <UHCI (generic) USB controller> 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
uhci3: <UHCI (generic) USB controller> port 0x3060-0x307f irq 16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <UHCI (generic) USB controller> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xe8600000-0xe86003ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib6: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci15: <ACPI PCI bus> on pcib6
pci15: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x30a0-0x30af at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <Intel ICH7 SATA300 controller> port 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 0xe8600400-0xe86007ff irq 19 at devic
e 31.2 on pci0
atapci1: AHCI Version 01.10 controller with 4 ports detected
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
ata4: <ATA channel 2> on atapci1
ata5: <ATA channel 3> on atapci1
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 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
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcafff,0xcb000-0xcf7ff 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
ugen0: U.S. Robotics U.S. Robotics 56K Faxmodem USB, rev 1.00/0.01, addr 2
ukbd0: No brand KVM, rev 1.10/0.00, addr 3, iclass 3/1
kbd2 at ukbd0
ums0: No brand KVM, rev 1.10/0.00, addr 3, iclass 3/1
ums0: 5 buttons and Z dir.
Timecounter "TSC" frequency 1862008295 Hz quality 800
Timecounters tick every 1.000 msec
IP Filter: v4.1.13 initialized. Default = pass all, Logging = enabled
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to deny, logging limited to 100 packets/entry by default
acd0: CDROM <CD-224E-N/1.AA> at ata0-slave UDMA33
ad4: 381554MB <Seagate ST3400620AS 3.AAK> at ata2-master SATA300
ad6: 381554MB <Seagate ST3400620AS 3.AAK> at ata3-master SATA300
ad8: 381554MB <Seagate ST3400620AS 3.AAK> at ata4-master SATA300
ad10: 381554MB <Seagate ST3400620AS 3.AAK> at ata5-master SATA300
ar0: 381551MB <Intel MatrixRAID RAID1> status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad6 at ata3-master
ar1: 381551MB <Intel MatrixRAID RAID1> status: READY
ar1: disk0 READY (master) using ad8 at ata4-master
ar1: disk1 READY (mirror) using ad10 at ata5-master
Trying to mount root from ufs:/dev/ar0s2a
Loading configuration files.
Entropy harvesting:
interrupts
ethernet
point_to_point
kickstart
.
swapon: adding /dev/ar0s1b as swap device
Starting file system checks:
/dev/ar0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ar0s2a: clean, 132188113 free (841849 frags, 16418283 blocks, 0.4% fragmentation)
Mounting local file systems:
.
Setting hostname: host.
/etc/rc: WARNING: NO IPNAT RULES
net.inet.tcp.blackhole:
0
->
2
net.inet.udp.blackhole:
0
->
1
kern.ipc.somaxconn:
128
->
1024
net.inet.icmp.drop_redirect:
0
->
1
net.inet.icmp.log_redirect:
0
->
1
net.inet.ip.redirect:
1
->
0
net.inet.tcp.recvspace:
65536
->
32768
net.link.ether.inet.max_age:
1200
->
600
net.link.ether.ipfw:
0
->
1
net.inet.ip.fw.one_pass:
1
->
0
net.inet.tcp.icmp_may_rst:
1
->
0
kern.sync_on_panic:
0
->
1
kern.coredump:
1
->
0
бла-бла-бла ТИПА СЕТЕВЫЕ ИНТЕРФЕЙСЫ
Additional routing options:
IP gateway=YES
.
Starting devd.
Configuring keyboard:
keymap
.
Starting ums0 moused:
mousechar_start
.
hw.acpi.cpu.cx_lowest:
C1
->
C1
Starting divert daemons:
Flushed all rules.
бла-бла-бла ТИПА ПРАВИЛА ФАЕРВОЛА
Firewall rules loaded
.
net.inet.ip.fw.enable:
1
->
1
Mounting NFS file systems:
.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat /usr/local/lib/compat/pkg /usr/local/lib/mysq
l /usr/local/lib/pth
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Creating and/or trimming log files:
.
Starting syslogd.
Initial i386 initialization:
.
Additional ABI support:
linux
em0: link state changed to UP
em1: link state changed to UP
.
Starting named.
Setting date via ntp.
Starting mpd4.
Starting local daemons:
add net 10.5.5.0: gateway 10.5.0.1
add net 10.0.0.0: gateway 10.5.0.3
add net 10.1.1.0: gateway 10.5.0.3
add net 10.5.1.0: gateway 10.5.0.4
.
Updating motd
.
Mounting late file systems:
.
Starting ntpd.
Starting usbd.
Removing stale Samba tdb files:
Код: Выделить всё
crw-rw---- 1 uucp dialer 0, 46 27 июн 15:46 /dev/cuad0
crw-rw---- 1 uucp dialer 0, 47 27 июн 15:46 /dev/cuad0.init
crw-rw---- 1 uucp dialer 0, 48 27 июн 15:46 /dev/cuad0.lock
crw-rw---- 1 uucp dialer 0, 52 27 июн 15:46 /dev/cuad1
crw-rw---- 1 uucp dialer 0, 53 27 июн 15:46 /dev/cuad1.init
crw-rw---- 1 uucp dialer 0, 54 27 июн 15:46 /dev/cuad1.lock
Код: Выделить всё
umodem_match(device_t self)
{
сдесь в теле
}
Код: Выделить всё
# uname -a
FreeBSD 7.2-RELEASE-p7 amd64
Код: Выделить всё
# kldload umodem
Код: Выделить всё
# dmesg
ucom0: <CMOTECH CO., LTD. CMOTECH CDMA Technologies, class 2/0, rev 2.00/0.00, addr 2> on uhub2
ucom0: iclass 2/2
ucom0: data interface 1, has CM over data, has break
ucom0: status change notification available
Код: Выделить всё
# usbdevs -v
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), ATI(0x0000), rev 1.00
port 1 addr 2: full speed, power 100 mA, config 1, CMOTECH CDMA Technologies(0x5533), CMOTECH CO., LTD.(0x16d8), rev 0.00
port 2 powered
Код: Выделить всё
Jan 19 14:26:36 pogranichnic kernel: ucom0: at uhub2 port 1 (addr 2) disconnected
Jan 19 14:27:01 pogranichnic root: Unknown USB device: vendor 0x16d8 product 0x5533 bus uhub2
Jan 19 14:27:01 pogranichnic kernel: ucom0: <CMOTECH CO., LTD. CMOTECH CDMA Technologies, class 2/0, rev 2.00/0.00, addr 2> on uhub2
Jan 19 14:27:01 pogranichnic kernel: ucom0: iclass 2/2
Jan 19 14:27:01 pogranichnic kernel: ucom0: data interface 1, has CM over data, has break
Jan 19 14:27:06 pogranichnic kernel: ucom0: status change notification available
Jan 19 14:27:06 pogranichnic root: Unknown USB device: vendor 0x16d8 product 0x5533 bus uhub2
Код: Выделить всё
# ls -lah /dev/cuaU*
crw-rw---- 1 uucp dialer 0, 155 17 янв 16:49 /dev/cuaU0
crw-rw---- 1 uucp dialer 0, 156 17 янв 16:49 /dev/cuaU0.init
crw-rw---- 1 uucp dialer 0, 159 17 янв 16:49 /dev/cuaU0.lock
Код: Выделить всё
# ls -lah /dev/ttyU*
crw------- 1 root wheel 0, 145 19 янв 16:14 ttyU0
crw------- 1 root wheel 0, 148 17 янв 16:49 ttyU0.init
crw------- 1 root wheel 0, 154 17 янв 16:49 ttyU0.lock
Код: Выделить всё
# cu -l /dev/cuaU0
Connected
Код: Выделить всё
# ps aux |grep cu
root 55210 0,0 0,0 4608 1024 p4 I+ 13:03 0:00,00 cu -l /dev/cuaU0
root 55211 0,0 0,0 4608 1008 p4 I+ 13:03 0:00,00 cu -l /dev/cuaU0
Код: Выделить всё
kill -9 55210
kill -9 55211
Код: Выделить всё
cd /usr/src/sys/dev/usb
Код: Выделить всё
{ 0x16d8, 0x5533, 0 },
...
umodem_products[] = {
<------>/* Kyocera AH-K3001V*/
<------>{ USB_VENDOR_KYOCERA, USB_PRODUCT_KYOCERA_AHK3001V, 0 },
<------>{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC5720, 0 },
<------>{ USB_VENDOR_CURITEL, USB_PRODUCT_CURITEL_PC5740, 0 },
<------>{ 0x16d8, 0x5533, 0 },
<------>{ 0, 0, 0 },
};
...
Код: Выделить всё
# cd /usr/src/sys/modules/umodem
# make clean && make && make install
# make unload && make load
Код: Выделить всё
# cu -l /dev/cuaU0
Connected
Так может с девайсом нормально все, а что-то не так сYes. This patch works for me. Thank you Ruslan. I can attach and detach
the device for now:
Jun 6 17:00:00 orion kernel: ucom0: <CMOTECH CO., LTD. CMOTECH CDMA
Technologies, class 2/0, rev 2.00/0.00, addr 2> on uhub1
Jun 6 17:00:00 orion kernel: ucom0: CMOTECH CO., LTD. CMOTECH CDMA
Technologies, rev 2.00/0.00, addr 2, iclass 2/2
Jun 6 17:00:00 orion kernel: ucom0: data interface 1, has CM over data, has
break
Jun 6 17:00:00 orion kernel: ucom0: status change notification available
Jun 6 17:02:08 orion kernel: ucom0: at uhub1 port 1 (addr 2) disconnected
Jun 6 17:02:08 orion kernel: ucom0: detached
Jun 6 17:02:44 orion root: Unknown USB device: vendor 0x16d8 product 0x5533
bus uhub1
Код: Выделить всё
cu -l /dev/cuaU0