Installing PlugPBX on the Dreamplug
30 Jan 2012
Now that we've successfully connected to our Dreamplug we need to take a step back and load some software on it before we connect again. The Dreamplug can boot from SD card and that is what we want to do here, and the easiest way to do this is to load a disk image onto our SD card before putting it into the Dreamplug.
The PlugPBX project provides a card image that already has the Debian operating system on it as well as Asterisk, FreePBX and some other useful tools. However, the current version of PlugPBX is quite old so our process is to install it as-is then update both the operating system and telephony software.
Installing PlugPBX
To install PlugPBX as-is:
- Unplug your Dreamplug from power and remove the SD card if there is one in it, otherwise get a blank 4GB or more SD card
- Download betaimageDec22-dhcpfixed4G.img.bz2 from http://downloads.plugpbx.org/
- Extract the disk image (.img) file
- Use Roadkil's Disk Image tool to image the file onto your SD card as explained in the PlugPBX documentation (I found I needed to right-click and 'Run as administrator' to install Roadkil)
- I've got a 8GB SD card and the PlugPBX image is designed for 4GB so I changed the main partition on the image to fill the rest of the card. I couldn't find a free Windows partition manager that could handle ext2 but gparted provides a bootable CD that will give you the ability. (You'll only need to do this step if you're using an 8GB SD card.)
- Download Ext2fsd which will allow you to see the ext2 SD card partitions on your windows machine - you need to assign drive letters to two main card partitions and then the files will appear in Windows file manager
- Download uImage_2.6.33.7, dreamplug_debian_v0.2.zip.001 and dreamplug_debian_v0.2.zip.002 from the Globalscale website
- Rename uImage_2.6.33.7 to simply uImage and copy it over the uImage file in the root of the first partition on the disk
- The zip.001 and zip.002 files are two parts of a single zip file. To unzip these on windows you simply right-click and unzip the first file and it will extract the second automatically into the one folder
- Find the subfolders extracted at /lib/modules and copy both of these into on the second disk partition into /lib/modules there (leave the existing folder in there as well)
- Edit /etc/fstab and change the UUIDs (the long hash-looking strings) back to real devices (use /dev/sdb1 for boot and /dev/sdb2 for root)
Booting to the SD Card
- Some of the Dreamplugs you buy will come set up to boot to SD card already. But mine didn't.
- To make your Dreamplug boot from SD card:
- Put the SD card back into the Dreamplug
- Start putty to connect to your device (see previous post)
- Power up the Dreamplug and interrupt the boot sequence (you only get 3 seconds to press a key)
- Enter the following commands to tell Dreamplug to boot into PlugPBX on the SD Card:
setenv x_bootargs_root root=/dev/sdb2 rootdelay=15
setenv x_bootcmd_kernel fatload usb 0 0x6400000 uImage
saveenv
reset
Updating Debian
To update the software to the latest versions we need to first update the operating system:
- Run apt-get update
- This takes a long time, over half an hour
- Press enter at various points when it asks you about restarting services or existing configuration files - this uses the default selection which worked for me
- You'll see loads of 'locale' errors and later on 'missing LSB' errors , these don't seem to matter
- After the update is complete change /usr/sbin/safe_asterisk line 15 which reads ASTPIDFILE=/var/run/asterisk.pid - change this to be : ASTPIDFILE=/var/run/asterisk/asterisk.pid
- Type 'reboot' to reboot the Dreamplug
- The server should now start as normal
- Log in using 'root' and 'password'
- Type 'ifconfig' and look for the line near the top that says 'inet addr' followed by an IP address. Your Dreamplug PlugPBX web interface will be visible in your browser at this IP, giving you access to FreePBX, Munin, Webmin and some other tools
Updating FreePBX
To update Asterisk and FreePBX we use the web interface:
- Visit the IP you found above in your browser
- Click the 'FreePBX Adminstration' link to open the admin interface
- Click the 'Tools' tab in the sidebar then 'Module admin'
- Click the link that says 'Check for module updates online'
- Click '2.6 Upgrade tool' and and check 'Download and install' then click the 'Process' button top right
- Once downloaded close the popup then click the orange 'Apply changes' button that appears at the top of the page
- Click the new '2.6 Upgrade' option in the sidebar and follow the instructions,
- Update the FreePBX framework module to the latest version
- Then click 'upgrade all' and confirm, then wait while they all download and install
- Once finished close the popup then click the orange 'Apply changes' button that appears at the top of the page
- Repeat the upgrade process until you are at the latest version
(Big thanks to ribblegibble and PlugPBX)
Make a backup, then continue
Now is not the time to let all the hours spent upgrading count for naught. Take a backup of your SD card by slipping it back into your PC card reader and using Roadkil's Disk Image to take an image of it.
Then it's time to set up your PBX using the FreePBX web interface, the same as it would be if FreePBX were running on any other server. I found it confusing at first but once familiar with the interface it allows a lot of functionality and I was able to set up my small office with 5 phones to work quite successfully. There's plenty of information at http://www.freepbx.org/
Let me know how you go!
Comments
06 Apr 2012
RSA Anon (not verified)
Writing betaimageDec22-dhcpfixed4G.img to SD cards creates two ext2 partitions (one for the kernel & the other for the rootfs); however, in your uboot config you have the following: x_bootcmd_kernel fatload usb 2 1x6400000 uImage
The above loads kernel from fat16 filesystem; however, the kernel is on an ext2 partition.
Did you delete the first EXT2 kernel partition(219MB)and create a FAT16 partition? If not, how did you get the dreamplug to load the kernel from ext2 partition when you're specifying "fatload" in uBoot?
03 Sep 2012
Get Rid Of Acne Fast (not verified)
hey there and thank you for your info I've definitely picked up something new from right here. I did however expertise a few technical issues using this website, as I experienced to reload the web site a lot of times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will often affect your placement in google and can damage your high-quality score if advertising and marketing with Adwords. Anyway I'm adding this RSS to my e-mail and could look out for a lot more of your respective fascinating content.
Ensure that you update this again soon.
14 Sep 2012
Ripped Muscle X (not verified)
I do not even know how I ended up right here, but I thought this
put up was once good. I do not realize who you're but certainly you're going to a well-known blogger
for those who are not already. Cheers!
15 Sep 2012
saffron taste (not verified)
My brother recommended I might like this blog.
He was entirely right. This post actually made my day. You cann't imagine simply how much time I had spent for this info! Thanks!
15 Sep 2012
Raspberry Ketones (not verified)
After looking into a handful of the blog articles on your blog, I honestly appreciate your way of writing a
blog. I saved as a favorite it to my bookmark site list and will be checking
back soon. Please check out my web site as well and let me know your opinion.
17 Sep 2012
Buy Saffron Extract (not verified)
My partner and I absolutely love your blog and find many
of your post's to be precisely what I'm looking for. Would you offer
guest writers to write content for you personally? I wouldn't mind writing a post or elaborating on some of the subjects you write related to here. Again, awesome blog!
20 Sep 2012
coach hire Pendle (not verified)
Awesome site you have here but I was wondering if you knew of any user discussion forums that cover the same topics discussed here?
I'd really like to be a part of community where I can get responses from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Thanks!
21 Sep 2012
fish oil (not verified)
I'm not sure why but this web site is loading very slow for me. Is anyone else having this problem or is it a issue on my end? I'll
check back later on and see if the problem still exists.
21 Sep 2012
real news (not verified)
Good post. I learn something new and challenging on sites I stumbleupon
on a daily basis. It's always exciting to read through articles from other writers and use something from their web sites.
29 Sep 2012
garden sheds (not verified)
you're truly a excellent webmaster. The website loading pace is incredible. It sort of feels that you're doing any distinctive trick.
Furthermore, The contents are masterpiece. you've performed a great task in this matter!
01 Oct 2012
Thai Cosmetic v... (not verified)
I'm not sure exactly why but this weblog is loading incredibly slow for me. Is anyone else having this problem or is it a issue on my end? I'll check back
later on and see if the problem still exists.
06 Oct 2012
Raspberry Ketones (not verified)
Hi there to every one, the contents existing at this site are truly remarkable for people experience, well, keep up the
nice work fellows.
22 Oct 2012
verticaljumping... (not verified)
I'm extremely inspired with your writing skills and also with the format for your blog. Is that this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a nice weblog like this one nowadays..
22 Oct 2012
Search People I... (not verified)
Once your knowledge is more complete, then you will feel more confident about
the subject. You must give users a reason to consider visiting your page over and again.
Lastly… While Facebook is highly target and cheap,
the company is very pick on how they ads to be displayed.
17 Nov 2012
Leicester Web Design (not verified)
This is my first time go to see at here and i am in fact pleassant to read all
at single place.
28 Nov 2012
web programmer ... (not verified)
Right now it seems like Drupal is the best blogging platform out
there right now. (from what I've read) Is that what you're using on your blog?
01 Jan 2013
Gustavo (not verified)
Theyve used amazing relevant cultural issues to help and modify the minds of today’s youth
within an optimistic way of humanity. The particular display involves family guy Peter Griffin, full in addition
to body fat which has a mouth-watering pertaining to alcohol.
If you’ve really hit the jackpot, he might be described as a mixture of
all three.
03 Jan 2013
Adelaide Web Design (not verified)
You have provided an incredible resource.
05 Jan 2013
become Pick up ... (not verified)
Amazing! Its actually awesome paragraph, I have got much clear idea concerning from this article.
21 Jan 2013
Testofen Male E... (not verified)
I am curious to find out what blog platform you have been utilizing?
I'm experiencing some small security issues with my latest website and I would like to find something more safe. Do you have any solutions?
22 Feb 2013
autorijles (not verified)
Goedkoop-afrijden.nl is de ideale hulp bij het kiezen van u autorijschool voor het behalen
van u rijbewijs. Op deze website vind u het complete overzicht van de tarieven van
de meeste autorijscholen in Nederland. Er is namelijk flink
wat keuze in rijscholen en het is nog niet zo
makkelijk om de autorijschool te vinden die het beste bij u past.
Een goed gekozen rijschool kan al snel veel geld schelen .
Een rijschool kiezen met een hoog slagingspercentage is geen garantie maar zegt wel
iets over de vaardigheden van de instructeur of instructeurs.
23 Feb 2013
ocala social (not verified)
This info is priceless. When can I find out more?
10 Apr 2012
JmsCrk (not verified)
Hi RSA Anon
I don't know the answer. The instructions I followed on the plugPBX forums indicated that I should change the partition to FAT but I found that I didn't have to, it just worked.
I'm not sure how the uboot config is working, but it seems to load for me without problems with that configuration.
I'm quite a n00b at this - is there a settings file you would like me to put here that will show you the information you need? If so let me know and I can look it up for you.
Add new comment