navit-project.org
http://forum.navit-project.org/

Help me about navit on Linux Embedded System !
http://forum.navit-project.org/viewtopic.php?f=17&t=417
Page 2 of 2

Author:  Kdich199 [ 22 Jul 2013, 08:45 ]
Post subject:  Re: Help me about navit on Linux Embedded System !

Hi usul !

I tested sdl library and same problem, maybe this is true my problem.
I cross compile sdl test, download to board and run:
Code:
[root@FriendlyARM sdl]# ls
checkkeys      picture.xbm    testbitmap     testerror      testiconv      testoverlay    testsprite     testwm
graywin        sail.bmp       testblitspeed  testfile       testjoystick   testoverlay2   testtimer      threadwin
icon.bmp       sample.bmp     testcdrom      testgamma      testkeys       testpalette    testver        torturethread
loopwave       sample.wav     testcursor     testgl         testloadso     testplatform   testvidinfo    utf8.txt
moose.dat      testalpha      testdyngl      testhread      testlock       testsem        testwin
[root@FriendlyARM sdl]# ./testbitmap
Segmentation fault
[root@FriendlyARM sdl]# LD_DEBUG=files ./testbitmap
      1005:     
      1005:     file=libSDL-1.2.so.0 [0];  needed by ./testbitmap [0]
      1005:     file=libSDL-1.2.so.0 [0];  generating link map
      1005:       dynamic: 0x40149ed8  base: 0x400fe000   size: 0x0007065c
      1005:         entry: 0x40102e88  phdr: 0x400fe034  phnum:          7
      1005:     
      1005:     
      1005:     file=libpthread.so.0 [0];  needed by ./testbitmap [0]
      1005:     file=libpthread.so.0 [0];  generating link map
      1005:       dynamic: 0x4018bef0  base: 0x4016f000   size: 0x0001f20c
      1005:         entry: 0x401733b0  phdr: 0x4016f034  phnum:         11
      1005:     
      1005:     
      1005:     file=libc.so.6 [0];  needed by ./testbitmap [0]
      1005:     file=libc.so.6 [0];  generating link map
      1005:       dynamic: 0x402bbf08  base: 0x4018f000   size: 0x001304cc
      1005:         entry: 0x401a4b30  phdr: 0x4018f034  phnum:         12
      1005:     
      1005:     
      1005:     file=libm.so.6 [0];  needed by /sdcard/navit/lib/libSDL-1.2.so.0 [0]
      1005:     file=libm.so.6 [0];  generating link map
      1005:       dynamic: 0x40330ef8  base: 0x402c0000   size: 0x000710a8
      1005:         entry: 0x402c31f8  phdr: 0x402c0034  phnum:          9
      1005:     
      1005:     
      1005:     file=libts-0.0.so.0 [0];  needed by /sdcard/navit/lib/libSDL-1.2.so.0 [0]
      1005:     file=libts-0.0.so.0 [0];  generating link map
      1005:       dynamic: 0x40045f08  base: 0x4003c000   size: 0x0000a488
      1005:         entry: 0x4003ca70  phdr: 0x4003c034  phnum:          6
      1005:     
      1005:     
      1005:     file=libdl.so.2 [0];  needed by /sdcard/navit/lib/libSDL-1.2.so.0 [0]
      1005:     file=libdl.so.2 [0];  generating link map
      1005:       dynamic: 0x4005bef8  base: 0x40052000   size: 0x0000a0b0
      1005:         entry: 0x4005291c  phdr: 0x40052034  phnum:          9
      1005:     
      1005:     
      1005:     file=libgcc_s.so.1 [0];  needed by /sdcard/navit/lib/libSDL-1.2.so.0 [0]
      1005:     file=libgcc_s.so.1 [0];  generating link map
      1005:       dynamic: 0x400d0f08  base: 0x400bf000   size: 0x00012114
      1005:         entry: 0x400c1688  phdr: 0x400bf034  phnum:          7
      1005:     
      1005:     
      1005:     calling init: /lib/libpthread.so.0
      1005:     
      1005:     
      1005:     calling init: /lib/libc.so.6
      1005:     
      1005:     
      1005:     calling init: /lib/libgcc_s.so.1
      1005:     
      1005:     
      1005:     calling init: /lib/libdl.so.2
      1005:     
      1005:     
      1005:     calling init: /sdcard/navit/lib/libts-0.0.so.0
      1005:     
      1005:     
      1005:     calling init: /lib/libm.so.6
      1005:     
      1005:     
      1005:     calling init: /sdcard/navit/lib/libSDL-1.2.so.0
      1005:     
      1005:     
      1005:     initialize program: ./testbitmap
      1005:     
      1005:     
      1005:     transferring control: ./testbitmap
      1005:     
      1005:     
      1005:     file=/usr/lib/ts/friendlyarm-ts-input.so [0];  needed by /sdcard/navit/lib/libts-0.0.so.0 [0]
      1005:     file=/usr/lib/ts/friendlyarm-ts-input.so [0];  generating link map
      1005:       dynamic: 0x40385f20  base: 0x4037d000   size: 0x0000906c
      1005:         entry: 0x4037d6a4  phdr: 0x4037d034  phnum:          6
      1005:     
      1005:     
      1005:     calling init: /usr/lib/ts/friendlyarm-ts-input.so
      1005:     
      1005:     opening file=/usr/lib/ts/friendlyarm-ts-input.so [0]; direct_opencount=1
      1005:     
Segmentation fault



my debug :
Code:
[root@FriendlyARM sdl]# gdb
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-none-linux-gnueabi".
(gdb) file /sdcard/navit/sdl/testbitmap
Reading symbols from /sdcard/navit/sdl/testbitmap...done.
(gdb) run
Starting program: /sdcard/navit/sdl/testbitmap

Program received signal SIGSEGV, Segmentation fault.
0x403d70a0 in ?? ()
(gdb) bt
#0  0x403d70a0 in ?? ()
(gdb) list
1       /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/libgcc/../gcc/config/arm/lib1funcs.asm: No such file or directory.
        in /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/libgcc/../gcc/config/arm/lib1funcs.asm



any fix for me ?

Author:  usul [ 22 Jul 2013, 09:55 ]
Post subject:  Re: Help me about navit on Linux Embedded System !

As this is a SDL problem, I'm sorry but have no idea about their internals. I assume you need to ask at their chans, or over at friendlyARM/QTopia forums.

Maybe FB issue?
http://www.friendlyarm.net/forum/topic/219

Author:  xenos1984 [ 22 Jul 2013, 13:55 ]
Post subject:  Re: Help me about navit on Linux Embedded System !

Which SDL driver are you using, and which SDL environment variables did you specify? These are the ones I use for TomTom, but I don't know whether they also work for your device:

Code:
export SDL_MOUSEDRV=TSLIB
export SDL_MOUSEDEV=/dev/ts
export SDL_NOMOUSE=1
export SDL_FBDEV=/dev/fb
export SDL_VIDEODRIVER=fbcon
export SDL_AUDIODRIVER=dsp

Page 2 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/