Author Topic: Linux Port : First Developer Snapshot  (Read 51987 times)

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Linux Port : First Developer Snapshot
« on: July 08, 2009, 06:02:37 PM »
Hello everyone,

After a long road of experimentation, re-thinking and implementation we’ve finally stabilized the Linux port of Askozia®PBX enough for some initial tests. Things are not perfect but are shaping up quite well. Over the last 2 weeks, the system has really fallen into place. A quick run down of some features:

Brand New:
- AskoziaPBX now attempts to assign its interfaces addresses via DHCP when unconfigured
- G722 Support
- Asterisk 1.4.25.1
- DAHDI instead of Zaptel

Working:
- All Basic Settings (username, password, port, protocol…)
- Networking Setup
- Timezone and NTP Settings
- SIP Phones and Providers
- IAX Phones and Providers
- Analog Card Detection
- Analog Phones and Providers

Partially Working:
- Log pages (all display same information)
- Localizations (some languages not displaying correctly)

Thanks to the extreme flexibility of T2 (http://www.t2-project.org), the build system we’re now using instead of the in-house pbxdev.php, we’re now able to define a firmware image piece-by-piece. These images can then be prepared for a variety of platforms and CPU architectures. AskoziaPBX will be able to run on a huge number of new platforms thanks to this. A special thanks to René Rebe at T2 for always having an ear open in IRC.

One personal goal for this release is to improve the developer and user communities of Askozia. We’ve acquired a hosted Trac and SVN system through Wush (http://www.wush.net) and are hoping the issue tracker and wiki will become valuable tools as the project progresses. The still untouched account is located here (https://wush.net/trac/askozia). New material should be appearing there shortly.

The release is available as a binary firmware image with a Live CD in the works. As development progresses, we will not be announcing each and every snapshot. Only the development mailing list will receive constant updates. When a considerable milestone has been reached, however, you can count on it being made public on other channels (forums, blog, etc.)

This has been a huge undertaking and I’m very glad to have come this far. I’ve definitely learned a lot about the differences between FreeBSD and Linux! Give the firmware a test (new install, non-production machines, please) and let us know your impressions. It is only ~10MB in size with all binaries/modules/libraries present. Only the multilingual prompts are yet to come.

Download: http://downloads.askozia.com/pbx/snapshots/r1034

Enjoy!
-Michael Iedema

dfear

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #1 on: July 09, 2009, 03:22:58 AM »
I have had partial sucess updating a vmware virtual machine running r981 to to the first fimware of the linux port.

The linux firmware is accepted and the system boots in a running system (running linux), but there was a problem parsing the existing config file.

After the system updates the firmware from the freebsd based firmware to the linux based firmware, the system has a problem parsing the config file; so when the system restarts a fresh config file is used and not the existing config file.

one issue is the difference in naming of the network interfaces. freebsd, first ethernet interface is called lnc0 and in linux the first ethernet interface is called eth0.

No calls made/recieved or other such testing done yet; but hopefully will do soon.

socrat3

  • Full Member
  • ***
  • Posts: 57
  • Karma: -1
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #2 on: July 09, 2009, 08:05:01 AM »
when soekris net5501 support?

thx

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #3 on: July 09, 2009, 01:19:22 PM »
...added to the Linux Port FAQ
 - https://wush.net/trac/askozia/wiki/PBX/FAQs/LinuxPort

After the system updates the firmware from the freebsd based firmware to the linux based firmware, the system has a problem parsing the config file; so when the system restarts a fresh config file is used and not the existing config file.

one issue is the difference in naming of the network interfaces. freebsd, first ethernet interface is called lnc0 and in linux the first ethernet interface is called eth0.

This is a general problem in upgrading systems between FreeBSD and Linux. I could try to build in logic everywhere to account for the differences but I think the effort could be better spent elsewhere. So, upgrading from the FreeBSD version to Linux will not be supported.

when soekris net5501 support?

The Linux version of AskoziaPBX will have fewer individual firmware images. The generic-pc image should now run on all hardware with at least 486 capability. Optimized versions of the firmware will be made available for complete hardware configurations (i.e. not just the Soekris board but a specific configuration of a Soekris board and peripheral hardware).

devon

  • Full Member
  • ***
  • Posts: 98
  • Karma: 4
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #4 on: July 10, 2009, 06:09:02 AM »
Just loaded the image on a vm and started poking around. I noticed inetd, dropbear, dbclient, tftpd, and ftpd are included, can't wait to start playing...

Nice job!

devon
« Last Edit: July 10, 2009, 06:33:40 AM by devon »

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #5 on: July 10, 2009, 12:15:23 PM »
The popularity of your packages just shows that's a direction people clearly want AskoziaPBX to go. More flexibility is the big focus for 2.0. With just a few extra tools, people will be able to turn their installs into whatever they wish.

Thanks to you and the other package authors for getting the ball rolling! Having that functionality in the base system will be a nice step forward.

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #6 on: July 10, 2009, 09:33:52 PM »
Impressive speed!

It's only on vm and I can play with recordings & audio without lost any audio bit!

Great!
Thanks Michael!

- Roberto

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #7 on: July 11, 2009, 12:59:48 AM »
Glad to hear things are working well!

However, if you find something is broken, please feel free to add it to the open tickets:
 - https://wush.net/trac/askozia/newticket

Thanks for testing

tRr

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #8 on: July 13, 2009, 02:00:19 AM »
Hello,

Congratuatlions! I havn't been able to test it out though... Always says this error on boot:

https://wush.net/trac/askozia/ticket/5

I was wondering how everyone else got it working?

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #9 on: July 14, 2009, 02:55:19 AM »
This change should fix things:
 - https://wush.net/trac/askozia/changeset/1037

I've put up a new snapshot here:
 - http://downloads.askozia.com/pbx/snapshots/r1037/

Let me know if that cures the problem. Thanks again for testing.

tRr

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #10 on: July 14, 2009, 03:54:02 AM »
Hello,

I just spent a bit trying to get it to boot. I still seem to be getting the same error though.

I made sure to blank the drive before writing the new image so it looks like the change hasn't worked for me.

Thanks again!


Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #11 on: July 14, 2009, 11:08:57 AM »
What kind of device are you attempting to boot from? Can you switch to another console (ALT-F2 or ALT-F3) and see what "fdisk -l" outputs?

I'll put debug line in the next snapshot to list the devices so this is easier to troubleshoot.

tRr

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #12 on: July 14, 2009, 05:04:35 PM »
It's an HP Thin Client. It has some form of built in flash for storage and I've tried booting from a USB stick as well. After the error comes up about not finding config.xml it starts halting the system. I'm not home right now but I will try the console switch if it's possible and see what happens. When I boot into Puppy Linux two drives are mountable sda1 and sda2, and I believe gparted showed a 3rd parition of some form and then the unused space (but I'll have to double check when I am home).

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #13 on: July 15, 2009, 12:42:04 AM »
This change adds a rule for udev to create those sda-sdz device nodes. I've uploaded an image with that fix as well.
 - https://wush.net/trac/askozia/changeset/1041
 - http://downloads.askozia.com/pbx/snapshots/r1041/askozia-pbx-generic-pc-x86-i486-uclibc-r1041.img

tRr

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Linux Port : First Developer Snapshot
« Reply #14 on: July 15, 2009, 01:31:59 AM »
Still won't boot unfortunately! Same error both on the built in ATA flash (whatever they call it) as well as a USB stick. Using the USB stick on my main computer brings up a GRUB menu as if I choose to go to the command prompt of grub. I couldn't get another console to do the command you asked for as the system starts halting right after the config.xml error.

I'll keep playing around in case I screwed up somewhere.