Home Forum Developers IP0x Missing dahdi modules in uImage

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


rterbush
useravatar
User Info

Missing dahdi modules in uImage

New install of trunk in IP02. Custom compiled for BF532 rev6. Some parts of dahdi are installed, but missing most of the dahdi modules from the uImage.

Have been trying to figure out how to mode a new module.dep and move the modules by hand.

Any help would be apprecited.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

hi rterbush

what modules are missing and what custom changes did u make?


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

Aibi90,

Missing everything that lives under build_ip04/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi in the tree.

Only real customizations other than setup for BF532 and rev6 is to add lua, depmod.

Set for Asterisk 1.4 and GUI 4.0


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

im assuming your compiling for a IP02 you should leave the processor settings on BF533 everything should compile properly then! not sure why Dimitar forced the BF533 on the IP0x series but it works :-)


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

Thanks

I'm in the process of rebuilding the tree for a clean compile. Will choose BF533 this time and report back.


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

No joy here. I've done a completely clean pull from svn and tried compile with defaults other than changing for the target platform and am still not getting the dahdi modules included in the uImage.

Any suggestions on where I can go to get past this hurdle? I ultimately would like to be able to compile for target of BF532 and revision 6 given I am trying to sort out some other behaviors on the device that look to me to be related to silicon revision.


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

I actually need to back up here and give a bit more detail as I believe that I have misread the situation.

I have the following modules that are being loaded on my IP02:


root@ip0x:~> lsmod

dahdi_echocan_oslec 1312 2 - Live 0x028da000
echo 2944 1 dahdi_echocan_oslec, Live 0x02af5000
wcfxs 20712 0 - Live 0x00588000
dahdi 177648 2 dahdi_echocan_oslec,wcfxs, Live 0x00640000
crc_ccitt 1136 1 dahdi, Live 0x028d9800
sport_interface 1640 1 wcfxs, Live 0x028d9000
bfsi 4524 1 wcfxs, Live 0x00570000

dahdi_scan says this:


root@ip0x:~> dahdi_scan
[1]
active=yes
alarms=OK
description=Blackfin IP0x Board 1
name=WCTDM/0
manufacturer=Rowetel
devicetype=Blackfin IP0x
location=
basechan=1
totchans=8
irq=0
type=analog
port=1,FXS
port=2,FXO
port=3,none
port=4,none
port=5,none
port=6,none
port=7,none
port=8,none

But the GUI (4.0) in System Setup -> Configure Hardware is defaulting to module named wctdm24xxp which was not part of the uImage.

System Setup -> Configure Trunks says "no FXO ports detected". But appears that dahdi_scan is detecting both FXS and FXO ports.

Any clues where I can chase this down?


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

Hi rterbush

dont worry about wctdm24xxp. what can you see in /persistent/etc/asterisk/gui_confighw.conf

if theres nothing there you need to run dahdi_cfg


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

Aibi,

There is nothing in gui_confighw.conf, but running dahdi_cfg does not change that.

There are also some other notable missing behaviors, for example, uptime in the GUI is blank. This does seem to work in the SwitchVoice 2.16 image, but GUIs in the switchfin tree don't seem to work. If things were not all running as root, I would think there were some permission problems.

Also noticing that even after configuring asterisk with working GUI from SwitchVoice image, modules are not being loaded in the switchfin builds.

running out of ideas here. Have tried about everything I can think of in this build.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

mmmm are you running asterisk 1.6?


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

if you cant see the Uptime then asterisk is not allowing external system calls this is one of the main issues with the 1.6 test, if your on 1.4 can you run asterisk -rvvvvv then click "home" and send the output.


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

No, running 1.4.32


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

Albi90 wrote:

if you cant see the Uptime then asterisk is not allowing external system calls this is one of the main issues with the 1.6 test, if your on 1.4 can you run asterisk -rvvvvv then click "home" and send the output.
Here is the output for my 1.4.32 system:


Message count requested for mailbox 201@default but voicemail not loaded.
[Jul 18 19:21:30] WARNING[810]: channel.c:3472 ast_request: No channel type registered for 'Local'
[Jul 18 19:21:30] NOTICE[810]: channel.c:3299 __ast_request_and_dial: Unable to request channel Local/executecommand@asterisk_guitools


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

mmmm something is not right at all can you run "make asterisk-dirclean" on your build system then "svn up" then "make menuconfig" check uw-imap is not on then "make" and "make image" flash to the new firmware and reset all your configs.

if you cant upload the uImage-md5 using the GUI just ftp it into /persistent/imageupdate and rename it to "uImage" then restart this should flash the IP02.


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

After following your suggestions, I have the same error with an additional write() error. This is with my same config files. Is there a clean way to reset configs? Running /etc/asterisk/reset_config did not appear to have any effect on asterisk config files.

Thanks for your help on this.

Code:



[Jul 18 20:57:03] NOTICE[426]: channel.c:3299 __ast_request_and_dial: Unable to request channel Local/executecommand@asterisk_guitools
[Jul 18 20:57:06] ERROR[399]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
[Jul 18 20:57:06] ERROR[399]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
[Jul 18 20:57:06] ERROR[399]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
[Jul 18 20:57:06] ERROR[399]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

you can reset your configs by running

Code:


sh /var/lib/asterisk/scripts/switchfin_scripts.sh reset_config

but i dont think thats your problem the pipe error is not good.
have you tryed doing a flash from uBoot this will wipe the IP02, if that fails i can build you an image that i no works on IP02.


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

I reset configs just to confirm and you are correct, that is not the problem.

I flashed the device from the serial console to get started with SwitchFin. I have flashed several other images trying AstFin and back to original BAPS image.

If you have an image you can confirm works, I would give it a try before I declare hardware problems at this point.

Again, appreciate the help.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

heheh also just if you run "/etc/asterisk/reset_config" the configs will be reset on reboot using "sh /var/lib/asterisk/scripts/switchfin_scripts.sh reset_config" the configs will be reset without reboot but you will need to run "reload" from the asterisk prompt.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

i will pm you the web address to download


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Missing dahdi modules in uImage

Quick question when you first compiled in the "make menuconfig" did you select the target architecture as IP02/IP04/IP08 or leave it as PR1?


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

with 'make menuconfig', I am choosing IP02/04/08 as the target architecture.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Missing dahdi modules in uImage

Hi rterbush,

The message is very old.
Did you maneg to solve your issue?

Best Regards
Dimitar


Administrator has disabled public posting
rterbush
useravatar
User Info

Re: Missing dahdi modules in uImage

admin wrote:

Hi rterbush,

The message is very old.
Did you maneg to solve your issue?

Best Regards
Dimitar
Good to hear from you.

No, was not able to solve this issue. The workaround is to 'make asterisk' before the final step of 'make image'.

Seems that the 'asterisk' target is not getting included in the 'make' target list. Looking at the Makefiles, not clear to me why it is not. However, this is repeatable for me in both Fedora and Ubuntu build environments.

I set this aside recently to focus on some other issues and was hoping someone closer to the build scripts might have an idea.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Missing dahdi modules in uImage

Hi rterbush

Oh on a second thought I think I know what may be wrong.

Will take a look and will fix tonight

Thanks for the report!
Dimitar


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 249
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked