c********l 发帖数: 8138 | 1 【 以下文字转载自 Hardware 讨论区 】
发信人: coupondeal (coupon and deal), 信区: Hardware
标 题: Pogoplug(神座) 上如何安装Asterisk??
发信站: BBS 未名空间站 (Sun Dec 18 02:13:32 2011, 美东)
神座不准备共享文件(因为另外有NAS)
因神座是linux系统,所以准备装Asterisk和OPENVPN服务器。
在打算安装Asterisk之前,先做了research,看到这么一篇文章
http://archlinuxarm.org/forum/viewtopic.php?f=29&t=1846&p=10192
We have asterisk in the repo, though it may be getting
a little old at this point.
The only ways to appreciably speed up package building are:
1. distcc compilations to a cross-toolchain on a fast x86 computer
2. run builds on a SATA attached drive, USB induces a ton of IO wait
3. create about a 1GB file in tmpfs (thus RAM) on the x86 host, export over
iSCSI as the swapfile for the device
After building thousands of packages, that's really it. There's only so much
faster you can go on these small devices.
大意就是说:神座如果要装asterisk,需要编译,但由于神座一般外接USB闪盘
而USB的盘在编译时非常慢。所以要么神座开膛接SATA,要么用distcc。
但distcc显然不是我这种级别的人准备的
请问版上大牛:在神座上装Asterisk有什么好办法? | a9 发帖数: 21638 | 2 慢慢编译就行。说是非常慢,但基本上用个1-2小时应该差不多。扔那儿不管就行。
注意给asterisk打好补丁再编译,尤其是那个对齐的补丁,要不然编译没问题,运行起
来错误非常多。
over
much
【在 c********l 的大作中提到】 : 【 以下文字转载自 Hardware 讨论区 】 : 发信人: coupondeal (coupon and deal), 信区: Hardware : 标 题: Pogoplug(神座) 上如何安装Asterisk?? : 发信站: BBS 未名空间站 (Sun Dec 18 02:13:32 2011, 美东) : 神座不准备共享文件(因为另外有NAS) : 因神座是linux系统,所以准备装Asterisk和OPENVPN服务器。 : 在打算安装Asterisk之前,先做了research,看到这么一篇文章 : http://archlinuxarm.org/forum/viewtopic.php?f=29&t=1846&p=10192 : We have asterisk in the repo, though it may be getting : a little old at this point.
| c********l 发帖数: 8138 | 3
Thanks
展开说说?
【在 a9 的大作中提到】 : 慢慢编译就行。说是非常慢,但基本上用个1-2小时应该差不多。扔那儿不管就行。 : 注意给asterisk打好补丁再编译,尤其是那个对齐的补丁,要不然编译没问题,运行起 : 来错误非常多。 : : over : much
| a9 发帖数: 21638 | 4 Index: channels/chan_gtalk.c
===================================================================
--- channels/chan_gtalk.c (revision 346898)
+++ channels/chan_gtalk.c (working copy)
@@ -481,7 +481,8 @@
break;
}
if (!strcasecmp(name, "error") &&
- (redirect = iks_find_cdata(traversenodes, "r
edirect")) &&
+ ( (redirect = iks_find_cdata(traversenodes,
"redirect")) ||
+ (redirect = iks_find_cdata(traversenodes,
"sta:redirect")) ) &&
(redirect = strstr(redirect, "xmpp:"))) {
redirect += 5;
ast_log(LOG_DEBUG, "redirect %s\n", redirect
);
Index: addons/chan_mobile.c
===================================================================
--- addons/chan_mobile.c (revision 346898)
+++ addons/chan_mobile.c (working copy)
@@ -1371,7 +1371,7 @@
memset(&addr, 0, sizeof(addr));
addr.rc_family = AF_BLUETOOTH;
bacpy(&addr.rc_bdaddr, &src);
- addr.rc_channel = (uint8_t) 1;
+ addr.rc_channel = (uint8_t) 0;
if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
ast_debug(1, "bind() failed (%d).\n", errno);
close(s);
@@ -1383,7 +1383,7 @@
bacpy(&addr.rc_bdaddr, &dst);
addr.rc_channel = remote_channel;
if (connect(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
- ast_debug(1, "connect() failed (%d).\n", errno);
+ ast_debug(1, "connect() failed (%d).remote_channel=%d\n,src=
%lu,dst=%lu", errno,remote_channel,src,dst);
close(s);
return -1;
}
Index: main/utils.c
===================================================================
--- main/utils.c (revision 346898)
+++ main/utils.c (working copy)
@@ -1666,7 +1666,7 @@
}
result = (*pool_head)->base + (*pool_head)->used;
-#ifdef __sparc__
+#if defined(__sparc__) || defined(__arm__)
/* SPARC requires that the allocation field be aligned. */
if ((long) result % sizeof(ast_string_field_allocation)) {
result++;
@@ -1747,7 +1747,7 @@
}
} else {
target = (*pool_head)->base + (*pool_head)->used + sizeof(as
t_string_field_allocation);
-#ifdef __sparc__
+#if defined(__sparc__) || defined(__arm__)
if ((long) target % sizeof(ast_string_field_allocation)) {
target++;
space--;
Index: makeopts.in
===================================================================
--- makeopts.in (revision 346898)
+++ makeopts.in (working copy)
@@ -45,7 +45,7 @@
HOST_VENDOR=@HOST_VENDOR@
HOST_OS=@HOST_OS@
-PROC=@HOST_CPU@
+PROC=arm
OSARCH=@OSARCH@
OSREV=@PBX_OSREV@
行起
【在 c********l 的大作中提到】 : : Thanks : 展开说说?
|
|