Fragile Taiwan
09/15/2006, 17:49 - 生活


珍惜台灣,小心輕放 From 傅瑞德繼續貼
發表回應 發表回應 ( 499預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 1997 )

GA-965P-S3 with Linux OS
09/15/2006, 09:12 - Open Source
Last time I said that the Gigabyte GA-965-S3 not work very well with Linux, I am already resolved the problems.

The problems and solutions :

1.SATA2 can not enable DMA and work on 66MHz IDE mode only.

Add Linux kernel option on boot loader

append=" idebus=66 pci=routeirq libata.atapi_enabled=1 all-generic-ide"

The important one is "all-generic-ide", this option will let kernel identidy the device on IDE bus, and enable DMA.

2.Can not access CD/DVD on IDE bus.
Add Linux kernel option same as problem 1.

3.Marvell 8056 Gigabit Ethernet driver

Download from Marvell and install it when every kernel change.
http://www.marvell.com/drivers/driverDi ... amp;pId=36
Resolved problem.

4.Realtek ALC883 Sound card Driver
Download from
Realtek ALC880 Driver download
but still has some problem, this driver installer, will change the alsa to 0.9, and can not work. keep going!

5.nVIDIA GeForce 6200 TC 128MB Driver

Download Driver from nVIDIA install every kernel change.
http://www.nvidia.com/object/linux_disp ... -8774.html
Resolved problem.

So, still problem on sound card only.


$ hdparm /dev/hda

/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 24321/255/63, sectors = 390721968, start = 0


Here are my dmesg:

$ more /var/log/dmesg
Linux version 2.6.17.13 (root@Slackware) (gcc version 4.1.1) #1 SMP PREEMPT Tue
Sep 12 21:10:30 CST 2006
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003fff0000 (usable)
BIOS-e820: 000000003fff0000 - 000000003fff3000 (ACPI NVS)
BIOS-e820: 000000003fff3000 - 0000000040000000 (ACPI data)
BIOS-e820: 00000000f0000000 - 00000000f4000000 (reserved)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
Warning only 896MB will be used.
Use a HIGHMEM enabled kernel.
896MB LOWMEM available.
found SMP MP-table at 000f5410
On node 0 totalpages: 229376
DMA zone: 4096 pages, LIFO batch:0
Normal zone: 225280 pages, LIFO batch:31
DMI 2.3 present.
ACPI: RSDP (v000 GBT ) @ 0x000f6d80
ACPI: RSDT (v001 GBT AWRDACPI 0x42302e31 AWRD 0x01010101) @ 0x3fff3040
ACPI: FADT (v001 GBT AWRDACPI 0x42302e31 AWRD 0x01010101) @ 0x3fff30c0
ACPI: MCFG (v001 GBT AWRDACPI 0x42302e31 AWRD 0x01010101) @ 0x3fff6a80
ACPI: MADT (v001 GBT AWRDACPI 0x42302e31 AWRD 0x01010101) @ 0x3fff6980
ACPI: SSDT (v001 PmRef Cpu0Ist 0x00003000 INTL 0x20040311) @ 0x3fff6b00
ACPI: SSDT (v001 PmRef CpuPm 0x00003000 INTL 0x20040311) @ 0x3fff6f90
ACPI: DSDT (v001 GBT AWRDACPI 0x00001000 MSFT 0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:15 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 6:15 APIC version 20
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] disabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] disabled)
ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode: Flat. Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:b0000000)
Built 1 zonelists
Kernel command line: BOOT_IMAGE=Linux ro root=302 idebus=66 pci=routeirq libata.
atapi_enabled=1 all-generic-ide
ide_setup: idebus=66
IDE generic will claim all unknown PCI IDE storage controllers.
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 1904.065 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 906124k/917504k available (1852k kernel code, 10976k reserved, 662k data
, 184k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 3811.32 BogoMIPS (lpj=19056622)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd
00000000 00000001
CPU: After vendor identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd 0
0000000 00000001
monitor/mwait feature present.
using mwait in idle threads.
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU: After all inits, caps: bfebfbff 20100000 00000000 00000140 0000e3bd 0000000
0 00000001
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
CPU0: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz stepping 06
SMP alternatives: switching to SMP code
Booting processor 1/1 eip 3000
Initializing CPU#1
Calibrating delay using timer specific routine.. 3808.16 BogoMIPS (lpj=19040802)
CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd
00000000 00000001
CPU: After vendor identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd 0
0000000 00000001
monitor/mwait feature present.
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU: After all inits, caps: bfebfbff 20100000 00000000 00000140 0000e3bd 0000000
0 00000001
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
CPU1: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz stepping 06
Total of 2 processors activated (7619.48 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
checking TSC synchronization across 2 CPUs: passed.
Brought up 2 CPUs
migration_cost=10000
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using MMCONFIG
Setting up standard PCI resources
ACPI: Subsystem revision 20060127
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.2
Boot video device is 0000:01:00.0
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX4._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs *3 4 5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 14 devices
PnPBIOS: Disabled by ACPI PNP
SCSI subsystem initialized
PCI: Using ACPI for IRQ routing
PCI: Routing PCI interrupts for all devices because "pci=routeirq" specified
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 169
ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 16 (level, low) -> IRQ 169
ACPI: PCI Interrupt 0000:00:1a.1 -> GSI 21 (level, low) -> IRQ 177
ACPI: PCI Interrupt 0000:00:1a.7[C] -> GSI 18 (level, low) -> IRQ 185
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 22 (level, low) -> IRQ 193
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 169
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 201
ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16 (level, low) -> IRQ 169
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 209
ACPI: PCI Interrupt 0000:00:1d.1 -> GSI 19 (level, low) -> IRQ 201
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 185
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 209
ACPI: PCI Interrupt 0000:00:1f.2 -> GSI 19 (level, low) -> IRQ 201
ACPI: PCI Interrupt 0000:00:1f.3[C] -> GSI 18 (level, low) -> IRQ 185
ACPI: PCI Interrupt 0000:00:1f.5 -> GSI 19 (level, low) -> IRQ 201
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 169
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 19 (level, low) -> IRQ 201
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 16 (level, low) -> IRQ 169
TC classifier action (bugs to netdev@vger.kernel.org cc hadi@cyberus.ca)
pnp: 00:0a: ioport range 0x400-0x4bf could not be reserved
PCI: Bridge: 0000:00:01.0
IO window: disabled.
MEM window: f4000000-f6ffffff
PREFETCH window: e0000000-efffffff
PCI: Bridge: 0000:00:1c.0
IO window: 7000-7fff
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.3
IO window: 9000-afff
MEM window: f9000000-f90fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.4
IO window: b000-bfff
MEM window: f7000000-f8ffffff
PREFETCH window: 50000000-500fffff
PCI: Bridge: 0000:00:1e.0
IO window: 8000-8fff
MEM window: disabled.
PREFETCH window: disabled.
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:01.0 to 64
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.0 to 64
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 201
PCI: Setting latency timer of device 0000:00:1c.3 to 64
ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.4 to 64
PCI: Setting latency timer of device 0000:00:1e.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1572864 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
IA-32 Microcode Update Driver: v1.14 <tigran@veritas.com>
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:01.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:01.0:pcie00]
Allocate Port Service[0000:00:01.0:pcie03]
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:1c.0:pcie00]
Allocate Port Service[0000:00:1c.0:pcie02]
Allocate Port Service[0000:00:1c.0:pcie03]
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 201
PCI: Setting latency timer of device 0000:00:1c.3 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:1c.3:pcie00]
Allocate Port Service[0000:00:1c.3:pcie02]
Allocate Port Service[0000:00:1c.3:pcie03]
ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.4 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:1c.4:pcie00]
Allocate Port Service[0000:00:1c.4:pcie02]
Allocate Port Service[0000:00:1c.4:pcie03]
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ACPI: Processor [CPU0] (supports 2 throttling states)
ACPI: Processor [CPU1] (supports 2 throttling states)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux agpgart interface v0.101 (c) Dave Jones
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 66MHz system bus speed for PIO modes
Unknown: IDE controller at PCI slot 0000:00:1f.2
ACPI: PCI Interrupt 0000:00:1f.2 -> GSI 19 (level, low) -> IRQ 201
Unknown: chipset revision 2
Unknown: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: ST3200827AS, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
Unknown: IDE controller at PCI slot 0000:00:1f.5
ACPI: PCI Interrupt 0000:00:1f.5 -> GSI 19 (level, low) -> IRQ 201
Unknown: chipset revision 2
Unknown: 100% native mode on irq 201
ide2: BM-DMA at 0xe800-0xe807, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0xe808-0xe80f, BIOS settings: hdg:pio, hdh:pio
Probing IDE interface ide2...
Probing IDE interface ide3...
Unknown: IDE controller at PCI slot 0000:03:00.0
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 19 (level, low) -> IRQ 201
Unknown: chipset revision 2
Unknown: 100% native mode on irq 201
ide4: BM-DMA at 0xa000-0xa007, BIOS settings: hdi:pio, hdj:DMA
ide5: BM-DMA at 0xa008-0xa00f, BIOS settings: hdk:pio, hdl:pio
Probing IDE interface ide4...
hdj: LITE-ON DVD SHD-16P1S, ATAPI CD/DVD-ROM drive
ide4 at 0x9000-0x9007,0x9402 on irq 201
Probing IDE interface ide5...
Probing IDE interface ide1...
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide5...
hda: max request size: 512KiB
hda: Host Protected Area detected.
current capacity is 390719855 sectors (200048 MB)
native capacity is 390721968 sectors (200049 MB)
hda: Host Protected Area disabled.
hda: 390721968 sectors (200049 MB) w/8192KiB Cache, CHS=24321/255/63
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4
libata version 1.20 loaded.
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
PNP: PS/2 controller doesn't have AUX irq; using default 12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
TCP bic registered
TCP highspeed registered
NET: Registered protocol family 1
NET: Registered protocol family 17
acpi-cpufreq: CPU0 - ACPI performance management activated.
acpi-cpufreq: CPU1 - ACPI performance management activated.
Starting balanced_irq
Using IPI No-Shortcut mode
ACPI wakeup devices:
PCI0 PEX0 PEX1 PEX2 PEX3 PEX4 PEX5 HUB0 IGBE USB0 USB1 USB2 USB3 US31 USB4 USBE
USE2 AZAL
ACPI: (supports S0 S1 S4 S5)
ReiserFS: hda2: found reiserfs format "3.6" with standard journal
input: AT Translated Set 2 keyboard as /class/input/input0
ReiserFS: hda2: using ordered data mode
ReiserFS: hda2: journal params: device hda2, size 8192, journal first block 18,
max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda2: checking transaction log (hda2)
ReiserFS: hda2: journal-1153: found in header: first_unflushed_offset 5679, last
_flushed_trans_id 189903
ReiserFS: hda2: journal-1206: Starting replay from offset 815631469385263, trans
_id 3225184896
ReiserFS: hda2: journal-1299: Setting newest_mount_id to 90
ReiserFS: hda2: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 184k freed
Adding 1204864k swap on /dev/hda3. Priority:-1 extents:1 across:1204864k
Adding 1373548k swap on /dev/hda4. Priority:-2 extents:1 across:1373548k
ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as devic
e
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: LITE-ON Model: DVD SHD-16P1S Rev: GS03
Type: CD-ROM ANSI SCSI revision: 00
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
sr 0:0:0:0: Attached scsi CD-ROM sr0



And I also tune the BIOS of CPU speed setting to 272 x 7 to 1904.065 MHz for squaze more power.

1 回應 1 回應 ( 6112預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 1483 )

error: `va_start' used in function with fixed args
09/14/2006, 08:54 - Open Source
When build the GNU C Library - glibc, sometime will has an error message error: `va_start' used in function with fixed args, that is Variable argument function, to prevent the err, can simply mark it out from source.

void foo(char *fmt, ...)
{
va_list ap;
int d;
char c, *p, *s;

/*va_start(ap, fmt);*/
while (*fmt)
switch(*fmt++) {
case 's': /* string */
s = va_arg(ap, char *);
printf("string %s\n", s);
break;
case 'd': /* int */
d = va_arg(ap, int);
printf("int %d\n", d);
break;
case 'c': /* char */
c = va_arg(ap, char);
printf("char %c\n", c);
break;
}
/* va_end(ap);*/
}

發表回應 發表回應 ( 690預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3.1 / 347 )

Slackware for x86 64bit
09/12/2006, 21:50 - Open Source
目前使用的電腦是 Intel Core 2 Duo, 可以跑 64 bit mode ,但是我是安裝 Slackware 10.2,只有 32bit mode,沒有道理買了 64bit CPU 但只跑 32bit。要用 64 bit mode 要裝其他的 Linux distribution 像 SuSE Linux Enterprise 10Fedora Linux 才有,在網路上有找到一個 SLAMD64 是給 ADM64 用的 Slackware 10.2 版本,但是應該也可以給 Intel 的 EM64T CPU 用。看來自己也可以試試看作一個 Slackware 10.2 for Intel Core2Duo 64 bit,所以就先參考Building the x86_64 cross-compiling toolchain 開始吧!

有消息說 Slackware 11.0 己經在 RC 5 了,應該不久就會出了。
Slackware 也己經要出 11 版了,我可是由 Slackware 1.0 就用到現在的老客戶了,不過只有買過一次 30 片裝的 1.44 Floppy版。說真的,Slackware 簡單,又小,真的很好用。
發表回應 發表回應 ( 685預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3.1 / 394 )

Asterisk 1.2.12 and FreeTDS 0.65 patch
09/12/2006, 10:58 - Open Source
Because my FreeTDS already change to version 0.65, but the Asterisk1.2.12 source can not followed this upgraded and make some error in compile, so change the cdr/cdr_tds.c and cdr/Makefile inside the Asterisk source directory


--- asterisk-1.2.12/cdr/Makefile 2006-04-30 22:27:56.000000000 +0800
+++ asterisk-1.2.12p/cdr/Makefile 2006-09-12 10:51:43.000000000 +0800
@@ -46,6 +46,12 @@
# FreeTDS stuff...
#
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_
COMPILE_TARGET)/usr/local/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/i
nclude/freetds/tds.h),)
+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsv
er.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/
usr/include/freetds/tdsver.h | grep -c 0.65),1)
+ CFLAGS += -DFREETDS_0_63
+ else
+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/td
sver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET
)/usr/include/freetds/tdsver.h | grep -c 0.64),1)
+ CFLAGS += -DFREETDS_0_63
+ else
ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsv
er.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/
usr/include/freetds/tdsver.h | grep -c 0.63),1)
CFLAGS += -DFREETDS_0_63
else
@@ -55,6 +61,8 @@
CFLAGS += -DFREETDS_PRE_0_62
endif
endif
+ endif
+ endif
MODS+=cdr_tds.so
endif


and

--- asterisk-1.2.12/cdr/cdr_tds.c 2006-03-02 01:41:52.000000000 +0800
+++ asterisk-1.2.12p/cdr/cdr_tds.c 2006-09-12 10:51:34.000000000 +0800
@@ -346,7 +346,7 @@
tds_set_packet(login, 512);
tds_set_version(login, 7, 0);

- if (!(context = tds_alloc_context()))
+ if (!(context = tds_alloc_context(connection)))
{
ast_log(LOG_ERROR, "tds_alloc_context() failed.\n");
goto connect_fail;


to follow the FreeTDS version upgrade change definition!

發表回應 發表回應 ( 1281預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 1344 )

2006-09-09
09/11/2006, 01:25 - 有的沒的
看了參加的人,只想到

失“憶“陣線?
失“意“陣線?


說是要靜坐,可是一點都不,所有的人都在搶,不論是搶話說,或是搶鐙光,大動作等等,都只是求自己可以在這之中得到什麼,不管結果會如何,有那個人是真的“靜靜“的坐著?
看看 Wikipedia 的9月9日這一天大事紀!有那麼多日子可以選,卻要選這一天,還要一片“紅“,真是很怪。不過也算是和平收場了,而這個就是自由的價值,您可以隨意表達自己心中的感想,而不用感到害怕。現在要看的是主事者要如何完美的畫下句點了。不過說真的,若這些人敢到天安門去“靜“坐抗議一下,“為何要用飛彈對準台灣“,或發揮一下台灣式的媒體言論自由,發表個異論,討論一下對面的領導作人、作事如何如何,會更有意義。不然看來,這些活動只是給對面的人一個可以使用武力的藉口在作球,以及讓全世界看笑話而己!台灣人可以在台灣,駡台灣的總統,而對面的人也一樣可以在天安門,駡台灣的總統,這種也叫“自由“


ㄢ\ 不知所謂!



2 回應 2 回應 ( 11209預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 2129 )

HTTP can not connected from Sep 7
09/11/2006, 00:49 - 今天
看來好像是 mod_perl 有問題,不過也發現可能是作 subversion SVN 的程式更新至 1.3.2 版本有關,再查查吧!不過因為這樣就不動作,也有點不太爽!在安裝 svn 時會在 /etc/httpd/httpd.conf 中加入:

LoadModule dav_svn_module /usr/modules/mod_dav_svn.so
LoadModule authz_svn_module /usr/modules/mod_authz_svn.so

看來可能要為 mod_perl 再動一下 apache 及相關程式了。
發表回應 發表回應 ( 496預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 1975 )

Some library installed tips
09/07/2006, 18:09 - Open Source
I use the compile under for compile jpeg6b source

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-threads --enable-shared --enable-ipv6 --disable-nls --disable-debug --with-gnu-ld --with-x --with-gtk --with-cairo --with-gtk-doc --enable-static

but fail, because it require a symblic link to the original library
libjpeg.so.62.0.0 in .lib directory

so I must to

ln -s /usr/lib/libjpeg.so.62.0.0 .lib/.

then make again,

it is work!

PS: After change newer libtool from http://www.gnu.org
this kind of problem is gone!


Compile faad and faac require some tricky

unarchive the source code
then
faac
sed -i 's/\r//' bootstrap
sed -i 's/\r//' configure.in

./bootstrap
./configure

faad2
sed -i 's/\r//' bootstrap
sed -i 's/\r//' configure.in
sed -i 's/\r//' Makefile.am

mkdir plugins/bmp

./bootstrap

./configure

that is because the 3 files is not in UNIX format, it content a '\r' after each line cause error.

change inside Makefile to use system libtool with /usr/bin/libtool
to prevent link .libs problem

Install ClamAV for Linux as Virus scaner,
it will automatic to update now virus definetion code,
but Who need a virus scanner inside Linux system ?

Get the libgsm for GSM quality voice codec from
http://www.cs.tu-berlin.de/~jutta/toast.html

Version 1.0.12
but require some modify inside Makefile

change the INSTALL_ROOT to /usr
and INCLUDE DIR to $(INSTALL_ROOT)/include
and remove the tcat and tosot relate setting.

install GPAC codecs, require 2 archived files to download,
one is the main source gpac and others is gpac_extra_libs
unarchied the gpac file then cd to gpac directory and unarchived the gpac_extra_libs inside the gpac directory, and go into the gpac_extra_lib to build the extra libs, and install them, after that then make and install gpac.
when install the gpac, must do
make install
make install-lib

to install the headers file and librarys.


Also because the computer is new, so after the ffmpeg ffplay can not link the libX11.so, so I symlink the /usr/X11/lib/libX11.so and /usr/X11/lib/libX11.a to /usr/lib


發表回應 發表回應 ( 1211預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 1351 )

Steve Irwin
09/05/2006, 00:53 - 今天
有點意外,但又不太意外!
http://en.wikipedia.org/wiki/Steve_Irwi ... teve_Irwin
Australia Zoo - Home of the Crocodile Hunter
Animal Planet :: The Crocodile Hunter

不過倒也算是一個完美的句點。
發表回應 發表回應 ( 514預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 1918 )

開學了--卡關
09/05/2006, 00:42 - 想到的
開學了,要選課,要註冊,要交錢,要辦通行/停車證,有很多事要作!
不過上面的工作都可以經由網路完成,但是就會發生有一些網頁用了無腦的 VB script 寫的,全部都很好,可以相容,只有在 summit 時不能用,只是因為有一個欄位,而且我己經是第二次發現(第一次是 PCHome 的第一次登入資料畫面,一定是擇地址時的動態變化欄位有問題,就是若第一欄選擇縣市後,次欄應該自動出現該縣市的相對鄉鎮,結果,那個無腦的 script 一定不會有動作,而“卡關“無法完成輸入資料。只是輸入個地址,就讓我自己來吧!
發表回應 發表回應 ( 710預覽 )   |  [ 0 引用 ]   |  permalink   |   ( 3 / 1558 )


<<開始 <前一頁 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 下一頁> 最後>>