Home Forum Developers IP0x problems compiling for IP04

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


Blousson
useravatar
User Info

problems compiling for IP04

Hi,
I'm compiling an IP04 image from trunk version and I'm having some trouble.

If I don't select the g729 codec, everything runs fine, but when I try to compile an image including the g729 codec I'm getting this error:

arch/blackfin/mach-bf533/boards/ip0x.c:55:2: error: #error Unknown board
make[3]: *** [arch/blackfin/mach-bf533/boards/ip0x.o] Error 1
make[2]: *** [arch/blackfin/mach-bf533/boards] Error 2
make[2]: Leaving directory `/usr/src/switchfin/build_ip04/uClinux-dist/linux-2.6.x'
make[1]: *** [linux] Error 1
make[1]: Leaving directory `/usr/src/switchfin/build_ip04/uClinux-dist'
make: *** [uClinux] Error 2

I have e2fsprogs-devel installed, so that's not the problem sad 

Thank you in advance.

Gonzalo



Edited By:  Blousson
May-03-10 16:59:57

Administrator has disabled public posting
Albi90
useravatar
User Info

Re: problems compiling for IP04

I had the same problem, if i recall this is how i solved it.

Go into build_ip04/uClinux-dist and run make menuconfig,
then select "Kernel/Library/Defaults Selection" then select "Customize Kernel Settings" now save your settings you will then be presented with the kernel config select "Blackfin Processor Options" then set the CPU setting to "BF532" not "BF533"

Save settings and compile.

Good luck!!


Administrator has disabled public posting
Blousson
useravatar
User Info

Re: problems compiling for IP04

Thanks, but the problem is that if I select BF532 the codec_g729 won't load sad
On astfin 2.0 they've solve this, but I can't find what is the problem.


Administrator has disabled public posting
admin
useravatar
User Info

Re: problems compiling for IP04

Hi Blousson,

Oh really? Let me take a look.

Dimitar


Administrator has disabled public posting
admin
useravatar
User Info

Re: problems compiling for IP04

Hi Blousson,

I have fixed in the trunk, please update.

Dimitar


Administrator has disabled public posting
Blousson
useravatar
User Info

Re: problems compiling for IP04

Hi dimitar,

Thank you for your promt response.

I did an svn update, compiled and load the new new image to my IP04, but I still can't get the codec G729 to load.

This is the error I'm getting:

[May  5 18:21:40] ERROR[379]: codec_g729.c:467 load_module: Error opening libg729ab.so : File not found

Regards,

Gonzalo


Administrator has disabled public posting
Blousson
useravatar
User Info

Re: problems compiling for IP04

Hi Dimitar:

I've found one of the errors, there is a problem on uClinux-dist.mk, but fixing this doesn't solve the problem.  Now the libg729ab.so get compiled, but I'm getting this error: "Attempt to share mismatched mappings" and the codec is still not avaiable on asterisk

Do you know what else could be wrong?

(I'm copying the patch file to fix the uClinux-dist.mk)

--- ./package/uClinux-dist/uClinux-dist.mk.old  2010-05-05 20:44:17.000000000 -0300
+++ ./package/uClinux-dist/uClinux-dist.mk      2010-05-05 20:44:56.000000000 -0300
@@ -220,12 +220,12 @@


ifeq ($(strip $(SF_PACKAGE_ASTERISK_G729)),y)
-       if egrep "^# CONFIG_LIB_LIBBFGDOTS_FORCE is not set" $(LIBS_CONFIG) > /dev/null; then \
+       if egrep "^# CONFIG_LIB_LIBBFGDOTS is not set" $(LIBS_CONFIG) > /dev/null; then \
                echo "LIBBFGDOTS has been enabled..."; \
-                sed -i -e "s/^# CONFIG_LIB_LIBBFGDOTS_FORCE is not set/CONFIG_LIB_LIBBFGDOTS_FORCE=y/" $(LIBS_CONFIG); \
+                sed -i -e "s/^# CONFIG_LIB_LIBBFGDOTS is not set/CONFIG_LIB_LIBBFGDOTS=y/" $(LIBS_CONFIG); \
        fi
else
-       sed -i -e "s/^CONFIG_LIB_LIBBFGDOTS_FORCE=y/# CONFIG_LIB_LIBBFGDOTS_FORCE is not set/" $(LIBS_CONFIG)
+       sed -i -e "s/^CONFIG_LIB_LIBBFGDOTS=y/# CONFIG_LIB_LIBBFGDOTS is not set/" $(LIBS_CONFIG)
endif

ifeq ($(strip $(SF_PACKAGE_CURL)),y)


Administrator has disabled public posting
admin
useravatar
User Info

Re: problems compiling for IP04

Hi Blousson,

I have run the standard G729A test using SINE test data on a IP08 and I got:

root@ip0x:/persistent> ./g729ab_test SINE.BIN SINEA.BIT --enc --g729a --mips --multi
Multi-threaded test, 2 encoders and 2 decoders
Average MIPs: 15.31 G729A  Encoder
Average MIPs: 10.36 G729A  Encoder
Average MIPs: 15.36 G729A  Encoder
Average MIPs: 14.66 G729A  Encoder

So the codec is actually working
What we face now is something related with the shared library loading of libg729ab.so

I will take a look.

Dimitar


Administrator has disabled public posting
admin
useravatar
User Info

Re: problems compiling for IP04

Hi Blousson,

In th NO-MMU CPU liek Blackfin we don't support shared memory mapping.
I did a quick ugly low level hack whcih definitely needs to be revised,
but will allow you to proceed with g729.  Please update your local copy.

Please lte me know if you hit something, thought I will be out next 3 days

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: 191
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