При запуске pjsip_simpleua перезагружается embox

20 views
Skip to first unread message

Александр Фатеев

unread,
Aug 1, 2017, 7:45:52 AM8/1/17
to embox-devel
Добрый день, подскажите пожалуйста в чем может быть проблема?
Собрал platform/pjsip/stm32f4discovery. Версия embox-0.3.16. Изменил только include embox.kernel.thread.core(thread_pool_size=2,thread_stack_size=2750)
Постоянно перезапускается после старта pjsip_simpleua:

 Embox kernel start
runlevel: init level is 0
        unit: initializing embox.driver.serial.stm_usart: done
        unit: initializing embox.driver.clock.cortexm_systick: done
runlevel: init level is 1
        unit: initializing embox.kernel.task.task_resource: done
        unit: initializing embox.mem.static_heap: done
        unit: initializing embox.kernel.task.kernel_task: done
        unit: initializing embox.kernel.time.kernel_time: done
        unit: initializing embox.kernel.time.jiffies: done
        unit: initializing embox.kernel.sched.sched: done
        unit: initializing embox.fs.driver.fs_driver: done                     
        unit: initializing embox.fs.node: done                                 
        unit: initializing embox.kernel.time.timekeeper: done                  
        unit: initializing embox.kernel.time.timer_handler: done               
        unit: initializing embox.net.neighbour: done                           
        unit: initializing embox.net.tcp: done                                 
        unit: initializing embox.net.net_entry: done                           
        unit: initializing embox.driver.tty.serial_oldfs: done                 
        unit: initializing embox.driver.net.stm32f4_eth: done                  
        unit: initializing embox.kernel.sched.sched_ticker_preempt: done       
        unit: initializing embox.mem.static_heap2: done                        
        unit: initializing embox.cmd.shell: done                               
runlevel: init level is 2                                                      
        unit: initializing embox.init.start_script:                            
Started shell [diag_shell] on device []                                        
loading start script:                                                          
> ifconfig lo 127.0.0.1 netmask 255.0.0.0 up                                   
lo: unknown interface                                                          
ifconfig: Command returned with code -19: No such device                       
> route add 127.0.0.0 netmask 255.0.0.0 lo                                     
Unknown interface: lo.                                                         
route: Command returned with code -19: No such device                          
> ifconfig eth0 192.168.1.128 netmask 255.255.255.0 up                         
> route add 192.168.1.0 netmask 255.255.255.0 eth0                             
                                                                               
Welcome to Embox and have a lot                                                
embox>pjsip_simpleua                                                           
of fun!00:00:08.343        critsec !...........................................d
00:00:08.354 os_core_unix.c !pjlib 2.2.1 for POSIX initialized                 
00:00:08.360 sip_endpoint.c  Creating endpoint instance...                     
00:00:08.369  ept0x100004a4  Mutex created                                     
00:00:08.374 edpt0x10006664  Mutex created                                     
00:00:08.377  mtx0x10006a64  Mutex created                                     
00:00:08.381  mtx0x10006c64  Mutex created                                     
00:00:08.385  mtx0x10006e64  Mutex created                                     
00:00:08.389  mtx0x10007064  Mutex created                                     
00:00:08.393  mtx0x10007264  Mutex created                                     
00:00:08.397  mtx0x10007464  Mutex created                                     
00:00:08.400  mtx0x10007664  Mutex created                                     
00:00:08.404  mtx0x10007864  Mutex created                                     
00:00:08.408  mtx0x10007a64  Mutex created                                     
00:00:08.412  ioq0x10007b24  Mutex created                                     
00:00:08.416          pjlib  select() I/O Queue created (0x10006724)           
00:00:08.422 sip_endpoint.c  Module "mod-msg-print" registered                 
00:00:08.427        hashtbl  hash table 0x10007fd4 created from pool pooldbg   
00:00:08.434 tmgr0x10008124  Mutex created                                     
00:00:08.438  atm0x100081e4  Mutex created                                     
00:00:08.442 sip_transport.  Transport manager created.                        
00:00:08.447  atm0x10008424  Mutex created                                     
00:00:08.451  udp0x100084e4  Mutex created                                     
00:00:08.455        hashtbl  0x10007fd4: New p_entry 0x100085fc created, pool u7
00:00:08.464        hashtbl  0x10007fd4: p_entry 0x100085fc value set to 0x10004
00:00:08.471          udp%p  SIP UDP transport started, published address is 190
00:00:08.480        hashtbl  hash table 0x100080dc created from pool pooldbg   
00:00:08.487       tsxlayer  Mutex created                                     
00:00:08.491 sip_endpoint.c  Module "mod-tsx-layer" registered                 
00:00:08.496 sip_endpoint.c  Module "mod-stateful-util" registered             
00:00:08.502   ua0x1000a9a4  Mutex created                                     
00:00:08.506        hashtbl  hash table 0x1000aa1c created from pool pooldbg   
00:00:08.513 sip_endpoint.c  Module "mod-ua" registered                        
00:00:08.518 sip_endpoint.c  Module "mod-invite" registered                    
00:00:08.523 sip_endpoint.c  Module "mod-100rel" registered                    
00:00:08.528 sip_endpoint.c  Module "mod-simpleua" registered                  
00:00:08.534 sip_endpoint.c  Module "mod-msg-log" registered                   
Pa_Initialize                                                                  
00:00:08.540       pa_dev.c  PortAudio sound library initialized, status=0     
00:00:08.547       pa_dev.c  PortAudio host api count=1                        
00:00:08.552       pa_dev.c  Sound device count=1                              
Pa_GetDeviceInfo: 0 = 0x08056d68                                               
00:00:08.560      codec-mgr  Mutex created                                     
00:00:08.563  mtx0x1000c5e4  Mutex created                                     
00:00:08.567  mtx0x1000c7e4  Mutex created                                     
00:00:08.571  mtx0x1000c9e4  Mutex created                                     
00:00:08.575  mtx0x1000cbe4  Mutex created                                     
00:00:08.579  mtx0x1000cde4  Mutex created                                     
00:00:08.583  mtx0x1000cfe4  Mutex created                                     
00:00:08.587  mtx0x1000d1e4  Mutex created                                     
00:00:08.591  mtx0x1000d3e4  Mutex created                                     
00:00:08.595  mtx0x1000d5e4  Mutex created                                     
00:00:08.598  ioq0x1000d6a4  Mutex created                                     
00:00:08.602          pjlib  select() I/O Queue created (0x1000c2a4)           
00:00:000:00:08.608    00:00:08.609          media !Thread started             
8ted                                                                           
!Thr      media !Thread started                                                
00:00:08.614           g611 !Mutex created                                     
                                                                               
                                                                               
  ______                                                                       
 |  ____|                                            __          __            
 | |___  _ __ ___            ____  ____  ____  _____/ /   _____ / /            
 |  ___|| '_ ` _ \          / __ \/ __ \/ __ \/ ___/ /   |_____| |             
 | |____| | | | | |_ _ _   / /_/ / /_/ / /_/ (__  )_/    |_____| |             
 |______|_| |_| |_(_|_|_)  \____/\____/ .___/____(_)           | |             
                                     /_/                        \_\            
 ASSERTION FAILED on CPU 0                                                     
        at src/mem/pagealloc/bitmask.c:43                                      
        in function check_n_free                                               
                                                                               
start_page + page_q <= allocator->pages_n                                      
Embox kernel start                                                             
runlevel: init level is 0                                                      
        unit: initializing embox.driver.serial.stm_usart: done                 
        unit: initializing embox.driver.clock.cortexm_systick: done            
runlevel: init level is 1                                                      
        unit: initializing embox.kernel.task.task_resource: done  

И еще смущает отсутсивие интерфейса lo.
Позже добавил ping. Но пинг запускается, выдает ошибку:

embox>ping 192.168.1.1                                                         
of fun!ping: unknown host 192.168.1.1                                          
ping: Command returned with code -22: Invalid argument

embox>ifconfig -a                                                              
eth0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00                          
        inet addr:192.168.1.128  Bcast:192.168.1.255  Mask:255.255.255.0       
        inet6 addr: ::/??  Scope:Host                                          
        UP BROADCAST MULTICAST  MTU:1514  Metric:0                             
        RX packets:0 errors:0 dropped:0 overruns:0 frame:0                     
        TX packets:4 errors:0 dropped:0 overruns:0 carrier:0                   
        collisions:0                                                           
        RX bytes:0 (0 MiB)  TX bytes:168 (0 MiB)                               
        Interrupt:77 Base address:0x40028000       

При этом с компьютера плата пингуется. Т.е. eternet работает.

Alex Kalmuk

unread,
Aug 2, 2017, 7:06:19 AM8/2/17
to embox...@googlegroups.com
Добрый день!

Нужно разбираться, похоже что памяти ему не хватило.
Попробуйте сейчас наш master собрать, мы исправили сборку новым компилятором.

С уважением,
Александр Калмук

--
You received this message because you are subscribed to the Google Groups "embox-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Александр Фатеев

unread,
Aug 2, 2017, 8:14:23 AM8/2/17
to embox-devel
master не собирается, выдает ошибку. Создал тему на гитхабе https://github.com/embox/embox/issues/1106

среда, 2 августа 2017 г., 14:06:19 UTC+3 пользователь Александр Калмук написал:
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel...@googlegroups.com.

Alex Kalmuk

unread,
Aug 2, 2017, 8:18:30 AM8/2/17
to embox...@googlegroups.com
Это из-за openlibm. Там нужен новый компилятор поновее, типа 5.4

To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel+unsubscribe@googlegroups.com.

Александр Фатеев

unread,
Aug 2, 2017, 8:21:44 AM8/2/17
to embox-devel
А скажите насчет памяти, если у меня чип STM32F429 с 256к памяти, что нужно в проекте увеличить, что б перестало вываливатся? В файле линкера изменил с 128 на 192К, не помогло.

среда, 2 августа 2017 г., 15:18:30 UTC+3 пользователь Александр Калмук написал:

Alex Kalmuk

unread,
Aug 2, 2017, 8:30:34 AM8/2/17
to embox...@googlegroups.com
После того как Вы lds.conf изменили и собрали, можно поиграться с размером кучи. Там 2 модуля в конфиге, насколько я вижу

    include embox.mem.static_heap(heap_size=0x10000,section="")
    include embox.mem.static_heap2(heap_size=58000)

Попробуйте увеличить размер heap_size насколько будет памяти хватать.


To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages