• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / Linux distributions / Re: Compilation error - Out of Memory on: September 21, 2009, 05:28:37 AM
Updates!!!

I found a workaround for this problem, i changed my distro to Debian Lenny (I was using Ubuntu) and it worked, it compiled without this error (out of memory)!!

Would this be gcc bug??? To whom I would report this issue?Huh
2  Linux Stuff / Linux distributions / Compilation error - Out of Memory on: September 09, 2009, 02:00:15 PM
Hi all,

I'm trying to compile the dahdi drivers from asterisk and the sangoma U100 drivers.
The compilation process crashes
Code:
# make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory `/root/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
make[1]: Leaving directory `/root/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
make -C /lib/modules/2.6.30.5/build
SUBDIRS=/root/dahdi-linux-2.2.0.2/drivers/dahdi
DAHDI_INCLUDE=/root/dahdi-linux-2.2.0.2/include DAHDI_MODULES_EXTRA="
" HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/mnt/pendrive/MySwitch/linuxKernel/linux-2.6.30.5'
/root/dahdi-linux-2.2.0.2/drivers/dahdi/Kbuild:85: CPU Architecture
'arm' does not support VPMADT032 or HPEC. Skipping.
 CC [M]  /root/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o
Killed
make[2]: *** [/root/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o] Error 137
make[1]: *** [_module_/root/dahdi-linux-2.2.0.2/drivers/dahdi] Error 2
make[1]: Leaving directory `/mnt/pendrive/MySwitch/linuxKernel/linux-2.6.30.5'
make: *** [modules] Error 2

from the dmesg output I got that is a out of memory error and the kernel killed the compilation process.

Code:
sh invoked oom-killer: gfp_mask=0x1200d2, order=0, oomkilladj=0
[<c00309c0>] (unwind_backtrace+0x0/0xe0) from [<c007b534>](oom_kill_process+0x84/0x20c)
[<c007b534>] (oom_kill_process+0x84/0x20c) from [<c007bad0>](__out_of_memory+0x188/0x1ac)
[<c007bad0>] (__out_of_memory+0x188/0x1ac) from [<c007bb70>](out_of_memory+0x7c/0xcc)
[<c007bb70>] (out_of_memory+0x7c/0xcc) from [<c007e580>](__alloc_pages_internal+0x2f0/0x3a0)
[<c007e580>] (__alloc_pages_internal+0x2f0/0x3a0) from [<c008d728>](handle_mm_fault+0x178/0x700)
[<c008d728>] (handle_mm_fault+0x178/0x700) from [<c03d0094>](do_page_fault+0x154/0x2a8)
[<c03d0094>] (do_page_fault+0x154/0x2a8) from [<c002b24c>](do_DataAbort+0x3c/0x9c)
[<c002b24c>] (do_DataAbort+0x3c/0x9c) from [<c03ce65c>](ret_from_exception+0x0/0x10)
Exception stack(0xdf1e1fb0 to 0xdf1e1ff8)
1fa0:                                     1dcdb118 0001fee9 40151000 000014ac
1fc0: 1dcdaf18 4015205c 4015205c 1dcdaf18 4015202c 40152064 00000200 000001ff
1fe0: 000200e8 befc1150 40094578 40092544 60000010 ffffffff
Mem-info:
Normal per-cpu:
CPU    0: hi:  186, btch:  31 usd: 169
Active_anon:99647 active_file:11 inactive_anon:24650
 inactive_file:0 unevictable:0 dirty:0 writeback:0 unstable:0
 free:717 slab:1036 mapped:0 pagetables:337 bounce:0
Normal free:2868kB min:2884kB low:3604kB high:4324kB
active_anon:398588kB inactive_anon:98600kB active_file:44kB
inactive_file:0kB unevictable:0kB present:520192kB pages_scanned:97579
all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 21*4kB 6*8kB 3*16kB 4*32kB 2*64kB 3*128kB 2*256kB 3*512kB
0*1024kB 0*2048kB 0*4096kB = 2868kB
55 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
131072 pages of RAM
1095 free pages
2648 reserved pages
852 slab pages
11 pages shared
0 pages swap cached
Out of memory: kill process 15017 (sh) score 7653 or a child
Killed process 15017 (sh)

I tried to add a USB flash driver (2GB) as a swap partition but in a couple of minutes the compilation process ate the 2GB too and it crashed again with the same error.

In the asterisk list they told me that this can be gcc bug
I installed gcc using apt-get ( version 4:4.3.3-1ubuntu1)
Anybody had/has the same issue?
Can anybody help me???

thanks!!!
Seste
3  Hardware and U-Boot firmware / Hardware / Re: Bluetooth dongle on: July 10, 2009, 06:15:00 AM
The kernel from this site works.
http://sheeva.with-linux.com/sheeva/index.php?dir=2.6.30/

My Plug has this kernel and the bluetooth works, you must install the modules too. The only thing that does not work is my headset, the audio is very choppy. I made a dump of the audio packets and there are a lot of corrupted packets.

4  Linux Stuff / Kernel / Re: headset bluetooth no sound on: June 17, 2009, 06:59:32 AM
Updates

I update to the new kernel 2.6.30 and the new bluez 4.41. Now I can hear and record audio using my headset bluetooth, but the audio is very choppy.
I have the same setup in a x86 and it works perfectly.

Anybody knows how to solve this issue?

tks
5  General Category / Application ideas and development Q/A / Re: Asterisk PBX on: June 15, 2009, 06:09:59 AM

Hi, how did you get around the compilation problems?

I keep getting:



src/add.c:1: error: bad value (armv5tejl) for -march= switch
Assembler messages:
Error: unknown architecture `armv5tejl'

Error: unrecognized option -march=armv5tejl
make[2]: *** [src/add.o] Error 1
make[1]: *** [gsm/lib/libgsm.a] Error 2
make: *** [codecs] Error 2


Thanks!


Edit makeopts, find PROC=armv5tejl and change to PROC=arm, save and exit.

this should work!!
6  Hardware and U-Boot firmware / Hardware / Re: Bluetooth dongle on: June 15, 2009, 06:02:57 AM
Which kernel version are you using? The sheeva default kernel config file does not inclued any bluetooth drivers, it is necessary to build a custom version.

http://www.plugcomputer.org/plugwiki/index.php/Compiling_Linux_Kernel_for_the_Plug_Computer

After step 4 you must select bluetooth modules.
7  Linux Stuff / Kernel / Re: Request for upcoming 2.6.30 on: June 15, 2009, 05:56:25 AM
could you add bluetooth drivers and modules too???

tks
8  General Category / Application ideas and development Q/A / Re: Asterisk PBX on: June 01, 2009, 06:00:15 AM
Thanks for the success story. May I asked how you installed, package or source? Any particular issues, or did it simply just work? Thanks again.

I installed from source because I needed the new version, 1.6.1.0, that is not available from package. The only issue that I found is regarding the bluetooth audio. I didn't try others features....only SIP and chan_mobile.
9  General Category / Application ideas and development Q/A / Re: Asterisk PBX on: May 29, 2009, 01:07:03 PM
I installed Asterisk 1.6.1.0 in my plug and it is working perfectly for SIP. I'm just facing some problems with chan_mobile, the audio through bluetooth is only working on one way. I have the same setup in a x86 and it works. For some reason the bluetooth drivers in the plug are not working properly. The received packets are not properly parsed. I'm trying to investigate this bug.
10  Linux Stuff / Kernel / Re: headset bluetooth no sound on: May 06, 2009, 08:14:32 AM
More information:
When I pluged the usb dongle, I got this message at syslog

Code:
May  6 09:34:53 debian kernel: usb 1-1: new full speed USB device using ehci_marvell and address 3
May  6 09:34:53 debian kernel: usb 1-1: configuration #1 chosen from 1 choice
May  6 09:34:53 debian bluetoothd[1235]: HCI dev 0 registered
May  6 09:34:54 debian bluetoothd[1235]: HCI dev 0 up
May  6 09:34:54 debian bluetoothd[1235]: Starting security manager 0
May  6 09:34:54 debian bluetoothd[1235]: rfcomm_bind: Address already in use (98)
May  6 09:34:54 debian bluetoothd[1235]: audio-headset: Operation not permitted (1)
May  6 09:34:54 debian bluetoothd[1235]: l2cap_bind: Address already in use (98)
May  6 09:34:54 debian bluetoothd[1235]: audio-a2dp: Operation not permitted (1)
May  6 09:34:54 debian bluetoothd[1235]: Registered interface org.bluez.SerialProxyManager on path /org/bluez/1235/hci0
May  6 09:34:54 debian bluetoothd[1235]: Registered interface org.bluez.Service on path /org/bluez/1235/hci0
May  6 09:34:54 debian bluetoothd[1235]: Registered interface org.bluez.Control on path /org/bluez/1235/hci0/dev_00_1D_FD_E4_42_FF
May  6 09:34:54 debian bluetoothd[1235]: Registered interface org.bluez.Serial on path /org/bluez/1235/hci0/dev_00_1D_FD_E4_42_FF
May  6 09:34:54 debian bluetoothd[1235]: probe failed with driver input-headset for device /org/bluez/1235/hci0/dev_00_1D_FD_E4_42_FF
May  6 09:34:54 debian bluetoothd[1235]: Registered interface org.bluez.Control on path /org/bluez/1235/hci0/dev_00_21_FB_B4_45_07
May  6 09:34:54 debian bluetoothd[1235]: Registered interface org.bluez.Serial on path /org/bluez/1235/hci0/dev_00_21_FB_B4_45_07
May  6 09:34:54 debian bluetoothd[1235]: probe failed with driver input-headset for device /org/bluez/1235/hci0/dev_00_21_FB_B4_45_07
May  6 09:34:54 debian bluetoothd[1235]: Adapter /org/bluez/1235/hci0 has been enabled
May  6 09:34:54 debian bluetoothd[1235]: Failed to access HAL

For some reason I got this message
"audio-headset: Operation not permitted (1)"
Somebody knows what is missing??

tks
Seste

11  Linux Stuff / Kernel / headset bluetooth no sound on: May 05, 2009, 01:26:00 PM
Hi all,

I'm trying to connect my bluetooth headset but I can hear no sound.
To make the bluetooth dongle works, I rebuild the kernel with bluetooth drivers. I can scan, and pair the head set but I can hear no sound.
Is it necessary to compile any specific sound or usb driver to make it works??

Has anyone tried something similar?
12  General Category / Application ideas and development Q/A / Re: Bluetooth dongle on: May 04, 2009, 10:43:36 AM
The necessary kernel drivers (usb bluetooth) were not compiled with the provided kernel.
It is necessary to compile static or install as modules.
Pages: [1]