PlugPBX Forums
February 23, 2012, 02:07:25 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 2 3 [4]
  Print  
Author Topic: PlugPBX on a Seagate DockStar  (Read 11218 times)
txcas
Newbie
*
Posts: 13


« Reply #45 on: July 24, 2010, 06:45:39 AM »

Just finished installing. I left mine with the toggle boot intact, ie boot into original image, reboot into debian, reboot original image etc. One thing I did have to do for it to boot debian is to set the boot flag with fdisk:

/sbin/fdisk /dev/sda
a (then select 1)
w
/sbin/reboot

I also finished installing Debian on my Dockstar.  I also set the boot flag. cold starts take me to original image and reboot takes me to Debian.  I will now try to install Asterisk and FreePBX.
Logged
mattmc97
Administrator
Full Member
*****
Posts: 144


« Reply #46 on: July 24, 2010, 06:49:55 AM »

Please try the script on the "Roll your own plugpbx" thread. Since it is being compiled and installed it should work on lenny or squeeze with the dockstar.
Logged
txcas
Newbie
*
Posts: 13


« Reply #47 on: July 24, 2010, 07:37:11 AM »

I tried the script.  It ran with no errors, but FreePBX did not run.  I could not open the web page for FreePBX on the Dockstar.  I am reinstalling Debian and will run the script again.  Maybe I did something wrong when I ran the script.

ETA:  I paid closer attention to the script this time.  Here is the problem:

Code:
+----------------------------------------------------------------+
| Compiling Dahdi-linux-complete...                              |
+----------------------------------------------------------------+
./install-asterisk.sh: line 63: make: command not found
./install-asterisk.sh: line 64: make: command not found
./install-asterisk.sh: line 65: make: command not found
FATAL: Module dahdi_dummy not found.
+----------------------------------------------------------------+
| Compiling Asterisk...                                          |
+----------------------------------------------------------------+
./install-asterisk.sh: line 74: cd: /usr/src/asterisk-1.6.2.9: No such file or directory
./install-asterisk.sh: line 75: ./configure: No such file or directory
./install-asterisk.sh: line 76: make: command not found
sed: can't read /usr/src/asterisk-1.6.2.9/makeopts: No such file or directory
./install-asterisk.sh: line 78: make: command not found
./install-asterisk.sh: line 79: make: command not found
./install-asterisk.sh: line 80: make: command not found
./install-asterisk.sh: line 81: make: command not found
+----------------------------------------------------------------+
| Compiling Asterisk Addons                                      |
+----------------------------------------------------------------+
checking build system type... ./config.guess: line 859: echo: write error: Broken pipe
armv5tel-unknown-linux-gnueabi
checking host system type... armv5tel-unknown-linux-gnueabi
checking target system type... armv5tel-unknown-linux-gnueabi
checking for uname... /bin/uname
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/src/asterisk-addons-1.6.2.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
./install-asterisk.sh: line 91: make: command not found
./install-asterisk.sh: line 92: make: command not found
./install-asterisk.sh: line 93: make: command not found
+----------------------------------------------------------------+
| Creating symlinks (Modules)                                    |
+----------------------------------------------------------------+
+----------------------------------------------------------------+
| Changing PHP Settings for FreePBX...                           |
+----------------------------------------------------------------+
cp: cannot stat `/etc/php5/apache2/php.ini': No such file or directory
sed: can't read /etc/php5/apache2/php.ini: No such file or directory
+----------------------------------------------------------------+
| Setting permissions for the asterisk user...                   |
+----------------------------------------------------------------+
Adding user `asterisk' ...
Adding new group `asterisk' (1000) ...
Adding new user `asterisk' (1000) with group `asterisk' ...
Creating home directory `/var/lib/asterisk' ...
Copying files from `/etc/skel' ...
Adding user `www-data' to group `asterisk' ...
Adding user www-data to group asterisk
Done.
chown: cannot access `/var/www': No such file or directory
chown: cannot access `/etc/asterisk': No such file or directory

And here is why that is failing:

Code:
debian:/sbin# apt-get -y install ssh kernel-package g++ libncurses5-dev linux-libc-dev sqlite libnewt-dev libusb-dev zlib1g-dev libmysqlclient-dev libsqlite0-dev php5 mysql-server php-pear php5-mysql php-db php5-gd linux-headers-$(uname -r) bison openssl libssl-dev libeditline0 libeditline-dev libedit-dev gcc make mc php5-cli sox
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting libmysqlclient15-dev instead of libmysqlclient-dev
E: Couldn't find package linux-headers-2.6.33

I am replacing linux-headers-$(uname -r) with linux-headers-2.6.32-5-kirkwood and will try again.

ETA:
Using linux-headers-2.6.32-5-kirkwood got me closer, but the script still did  not work.

Code:
debian:/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0# make all
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.33 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.3.0.1+2.3.0/linux'
make: *** [all] Error 2

Uname -r returns: 2.6.33, when I run apt-get linux-headers I get:
Code:
Package linux-headers is a virtual package provided by:
  linux-headers-2.6.32-5-orion5x 2.6.32-13
  linux-headers-2.6.32-5-kirkwood 2.6.32-13
  linux-headers-2.6-orion5x 2.6.32+27
  linux-headers-2.6-kirkwood 2.6.32+27
  linux-headers-2.6.26-1-versatile 2.6.26-13lenny2
  linux-headers-2.6.26-1-orion5x 2.6.26-13lenny2
  linux-headers-2.6.26-1-ixp4xx 2.6.26-13lenny2
  linux-headers-2.6.26-1-iop32x 2.6.26-13lenny2
  linux-headers-2.6-versatile 2.6.26+17+lenny1
  linux-headers-2.6-ixp4xx 2.6.26+17+lenny1
  linux-headers-2.6-iop32x 2.6.26+17+lenny1
  linux-headers-2.6.26-2-versatile 2.6.26-24
  linux-headers-2.6.26-2-orion5x 2.6.26-24
  linux-headers-2.6.26-2-ixp4xx 2.6.26-24
  linux-headers-2.6.26-2-iop32x 2.6.26-24
It looks like there is no headers package for version 2.6.33.
« Last Edit: July 24, 2010, 11:01:49 AM by txcas » Logged
klingon
Newbie
*
Posts: 41


« Reply #48 on: July 24, 2010, 11:15:00 AM »

linux-headers-$(uname -r) is simple if the pkg is available.  Not all kernel packs are in lenny, unless you're running squeeze.  I'm using the latest kernel 2.6.34.1 which got released a few days ago at plugapps but the headers for 34.1 are not avail in lenny.  So, I manually installed the kernel modules needed to compile asterisk.  Follow instructions below if you dont have the std kernel pkgs :

NOTE : wherever it says 2.6.34.1, replace with your own kernel version which you can get from "uname -r"

>> cd /usr/src

DOWNLOAD kernel -
>> wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.gz
>> tar -zxvf linux-2.6.34.1.tar.gz

Once you have downloaded and unpacked the kernel source code, executing the command:
>> ls -ld /usr/src/linux*
should give you something like:
   lrwxrwxrwx  1 root root   12 Feb 10 2003 /usr/src/linux -> linux-2.6.34.1
   drwxr-xr-x 17 root root 4096 Jan 27 2003 /usr/src/linux-2.6.34.1

DOWNLOAD config and kernel headers -
>> wget http://sheeva.with-linux.com/sheeva/2.6.34.1/sheeva-2.6.34.1.config
copy to /usr/src/linux-2.6.34.1/ and Rename file to ".config"
>> cp sheeva-2.6.34.1.config /usr/src/linux-2.6.34.1/.config

>> cd /
>> wget http://sheeva.with-linux.com/sheeva/2.6.34.1/sheeva-2.6.34.1-KernelHeaders.tar.gz
>> tar -zxvf sheeva-2.6.34.1-KernelHeaders.tar.gz

Now make sure your config file is fully conformant with your kernel source. Do this:
>> cd /usr/src/linux-2.6.34.1
>> make menuconfig
When the menuconfig program starts up, it reads the .config file automatically. Simply tell the menuconfig program to quit, and have it save the .config file when you are asked.

Check Makefile - If needed, modify the EXTRAVERSION statement in Makefile so it matches what you see in "uname -r". It should look like :
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 34
EXTRAVERSION = .1

>> rm /lib/modules/`uname -r`/build
>> rm /lib/modules/`uname -r`/source
>> ln -s /usr/src/linux-2.6.34.1 /lib/modules/`uname -r`/build
>> ln -s /usr/src/linux-2.6.34.1 /lib/modules/`uname -r`/source

>> make modules_prepare
Logged
mattmc97
Administrator
Full Member
*****
Posts: 144


« Reply #49 on: July 24, 2010, 01:41:09 PM »

klingon-

So I followed your step above and am not able to compile dahdi.

Let's go back a minute...

Here is what I have done to date.

Installed debian per Jeff Doozan's guide. Change the apt repos to squeeze and then apt-get update && apt-get dist-upgrade.

I then followed this guide...

http://plugapps.com/forum/viewtopic.php?f=24&t=173#p933

to be able to boot into squeeze.

I have rebooted several times and I have a fully working squeeze.

Then I tried to follow xdm's script and while it fully ran, it would hang any time I tried to start asterisk.

So then I found that you guys were having issues on this thread and tried your fix listed right above mine.

Here is my /usr/src.

debian:/tmp# cd /usr/src
debian:/usr/src# ls
asterisk                              linux-2.6.34.1.tar.gz
asterisk-1.6.2.9                      linux-headers-2.6.32-5-common
asterisk-addons-1.6.2.1               linux-headers-2.6.32-5-kirkwood
dahdi-linux-complete-2.2.1.2+2.2.1.1  linux-kbuild-2.6.32
freepbx-2.8.0                         sheeva-2.6.34.1.config
linux                                 vpb-driver.tar.bz2
linux-2.6.34.1

uname -a & uname -r both report 2.6.34.1

Here is what happens when I try to compile Dahdi.

+----------------------------------------------------------------+
| Compiling Dahdi-linux-complete...                              |
+----------------------------------------------------------------+
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/firmware'
make -C /lib/modules/2.6.34.1/build SUBDIRS=/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory `/usr/src/linux-2.6.34.1'

  WARNING: Symbol version dump /usr/src/linux-2.6.34.1/Module.symvers
           is missing; modules will have no dependencies and modversions.

/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/Kbuild:85: CPU Architecture 'arm' does not support VPMADT032 or HPEC. Skipping.
  CC [M]  /usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/dahdi-base.o
In file included from /usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/include/dahdi/kernel.h:39,
                 from /usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/dahdi-base.c:62:
/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/include/dahdi/dahdi_config.h:27:28: error: linux/autoconf.h: No such file or directory
make[3]: *** [/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/dahdi-base.o] Error 1
make[2]: *** [_module_/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.34.1'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux'
make: *** [all] Error 2
make -C linux all
make[1]: Entering directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/firmware'
make -C /lib/modules/2.6.34.1/build SUBDIRS=/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory `/usr/src/linux-2.6.34.1'

  WARNING: Symbol version dump /usr/src/linux-2.6.34.1/Module.symvers
           is missing; modules will have no dependencies and modversions.

/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/Kbuild:85: CPU Architecture 'arm' does not support VPMADT032 or HPEC. Skipping.
  CC [M]  /usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/dahdi-base.o
In file included from /usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/include/dahdi/kernel.h:39,
                 from /usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/dahdi-base.c:62:
/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/include/dahdi/dahdi_config.h:27:28: error: linux/autoconf.h: No such file or directory
make[3]: *** [/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi/dahdi-base.o] Error 1
make[2]: *** [_module_/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.34.1'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.2.1.2+2.2.1.1/linux'
make: *** [all] Error 2
FATAL: Module dahdi_dummy not found.
debian:/tmp#


I can't find any asterisk specific examples of the WARNING: above. It looks to be a general kernel error.  Any idea what to do next?
Logged
klingon
Newbie
*
Posts: 41


« Reply #50 on: July 24, 2010, 07:19:39 PM »

Matt

Dahdi versions below 2.3 has this error with <linux/autoconf.h>.  See the following fix - http://svnview.digium.com/svn/dahdi?view=revision&revision=7732.  Remove all such statements as per the changes listed.  Then you will compile fine.  But unfortunately 2.3 had the CPU resource issue we discussed in the other post, so take your poison Smiley  This one is at least fixable.

I also had to add the following in order to compile properly.  Try without and see if you can compile, else add it at the beginning.
cd /usr/src/dahdi-linux-complete-2.2.1+2.2.1/linux/include/dahdi
edit dahdi_config.h

#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/proc_fs.h>

« Last Edit: July 24, 2010, 07:22:41 PM by klingon » Logged
mattmc97
Administrator
Full Member
*****
Posts: 144


« Reply #51 on: July 24, 2010, 10:22:02 PM »

Yes, that was it. I had to remove AND add the other header files as well.

I guess I was looking at the wrong error.

Got further along in the script and got...


WARNING: Can't read module /lib/modules/2.6.34.1/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.34.1/asterisk/asterisk/2.6.34.1/2.6.34.1/asterisk/2.6.34.1/asterisk/asterisk/2.6.34.1/kernel/drivers/net/pppox.ko: Cannot allocate memory

I checked my plug installed and it has the same multiple asterisk directory structure as well.

Is this a memory problem or is it from installing asterisk multiple times?

UPDATE

I am now running script one install at a time...

asterisk installs fine
asterisk addons installs fine
depmod is causing the memory allocation problem, searching for a solution
« Last Edit: July 25, 2010, 06:48:46 AM by mattmc97 » Logged
klingon
Newbie
*
Posts: 41


« Reply #52 on: July 25, 2010, 06:32:43 AM »

I think it may be due to this statement - ln -s /lib/modules/`uname -r`/ /lib/modules/`uname -r`/asterisk

When you run the same script multiple times, its symlinking itself multiple times.
Logged
mattmc97
Administrator
Full Member
*****
Posts: 144


« Reply #53 on: July 25, 2010, 06:54:54 AM »

Did you get freepbx up and running?

I am researching the depmod problem above now.
Logged
klingon
Newbie
*
Posts: 41


« Reply #54 on: July 25, 2010, 07:11:54 AM »

Yes, everything is up and running. No Freepbx memory errors etc.  Still fine tuning my install instructions as I may have installed too many modules! I only have around 3-4M memory left when Asterisk is running. But better more than less as its easier to just not load the modules rather than  having to re-compile for missing modules. I'm a die hard so doing everything manually rather than running a script as you tend to miss errors when its zipping by so fast.  I have the following Asterisk modules successfully installed.  I'll share my manual install instructions once its ready.  I can also post a working image later if thats a good start for others. Just let me know where to place it.

Code:
app_addon_sql_mysql.so
app_adsiprog.so
app_alarmreceiver.so
app_amd.so
app_authenticate.so
app_cdr.so
app_chanisavail.so
app_channelredirect.so
app_chanspy.so
app_confbridge.so
app_controlplayback.so
app_dahdibarge.so
app_dahdiras.so
app_dahdiscan.so
app_db.so
app_dial.so
app_dictate.so
app_directed_pickup.so
app_directory.so
app_disa.so
app_dumpchan.so
app_echo.so
app_exec.so
app_externalivr.so
app_festival.so
app_flash.so
app_followme.so
app_forkcdr.so
app_getcpeid.so
app_ices.so
app_image.so
app_macro.so
app_meetme.so
app_milliwatt.so
app_minivm.so
app_mixmonitor.so
app_morsecode.so
app_mp3.so
app_nbscat.so
app_originate.so
app_page.so
app_parkandannounce.so
app_playback.so
app_playtones.so
app_privacy.so
app_queue.so
app_readexten.so
app_readfile.so
app_read.so
app_record.so
app_saycountpl.so
app_sayunixtime.so
app_senddtmf.so
app_sendtext.so
app_setcallerid.so
app_sms.so
app_softhangup.so
app_speech_utils.so
app_stack.so
app_system.so
app_talkdetect.so
app_test.so
app_transfer.so
app_url.so
app_userevent.so
app_verbose.so
app_voicemail.so
app_waitforring.so
app_waitforsilence.so
app_waituntil.so
app_while.so
app_zapateller.so
bridge_builtin_features.so
bridge_multiplexed.so
bridge_simple.so
bridge_softmix.so
cdr_addon_mysql.so
cdr_csv.so
cdr_custom.so
cdr_manager.so
cdr_sqlite.so
chan_agent.so
chan_bridge.so
chan_dahdi.so
chan_iax2.so
chan_local.so
chan_mgcp.so
chan_ooh323.so
chan_oss.so
chan_phone.so
chan_sip.so
chan_skinny.so
chan_unistim.so
codec_adpcm.so
codec_alaw.so
codec_a_mu.so
codec_dahdi.so
codec_g722.so
codec_g726.so
codec_gsm.so
codec_lpc10.so
codec_ulaw.so
format_g723.so
format_g726.so
format_g729.so
format_gsm.so
format_h263.so
format_h264.so
format_ilbc.so
format_jpeg.so
format_mp3.so
format_pcm.so
format_siren14.so
format_siren7.so
format_sln16.so
format_sln.so
format_vox.so
format_wav_gsm.so
format_wav.so
func_aes.so
func_audiohookinherit.so
func_base64.so
func_blacklist.so
func_callerid.so
func_cdr.so
func_channel.so
func_config.so
func_curl.so
func_cut.so
func_db.so
func_devstate.so
func_dialgroup.so
func_dialplan.so
func_enum.so
func_env.so
func_extstate.so
func_global.so
func_groupcount.so
func_iconv.so
func_lock.so
func_logic.so
func_math.so
func_md5.so
func_module.so
func_rand.so
func_realtime.so
func_sha1.so
func_shell.so
func_sprintf.so
func_strings.so
func_sysinfo.so
func_timeout.so
func_uri.so
func_version.so
func_vmcount.so
func_volume.so
modlist2.txt
pbx_ael.so
pbx_config.so
pbx_dundi.so
pbx_loopback.so
pbx_realtime.so
pbx_spool.so
res_adsi.so
res_ael_share.so
res_agi.so
res_clialiases.so
res_clioriginate.so
res_config_curl.so
res_config_ldap.so
res_config_mysql.so
res_config_sqlite.so
res_convert.so
res_crypto.so
res_curl.so
res_limit.so
res_monitor.so
res_musiconhold.so
res_phoneprov.so
res_realtime.so
res_smdi.so
res_speech.so
res_timing_dahdi.so
res_timing_pthread.so
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 419



« Reply #55 on: July 25, 2010, 07:55:37 AM »

Perhaps its time I create some FTP accounts for contributors to upload to.

When people have something to share, PM me and I'll create the needed FTP accounts and we can start exchanging material!
Logged

-Greg
twinclouds
Jr. Member
**
Posts: 96


Email
« Reply #56 on: July 25, 2010, 10:32:35 AM »

......  I'll share my manual install instructions once its ready.  I can also post a working image later if thats a good start for others. ......

Please do so.  Thanks.
Logged
Pages: 1 2 3 [4]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Install SimpleMachinesForum web hosting Valid XHTML 1.0! Valid CSS!