The Following User Says Thank You to javispedro For This Useful Post: | ||
![]() |
2011-04-25
, 02:03
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#12
|
I see, i think i had to root because i thought accessing /usr/bin/gamefile requires rooting..
The Following User Says Thank You to javispedro For This Useful Post: | ||
![]() |
2011-04-25
, 02:18
|
Posts: 173 |
Thanked: 106 times |
Joined on Jun 2010
|
#13
|
![]() |
2011-04-25
, 02:28
|
Posts: 136 |
Thanked: 14 times |
Joined on Feb 2011
|
#14
|
Can you please stop spamming the board with the same unnecessary set of commands at every single opportunity? You're also suggesting running the game as root, which I am at this point really considering to block in a future version...
Also, in recent versions there's a suggested place to place your applications folder into, /media/cryptofs/apps/usr/palm/applications (which is a symlink to somewhere into /opt/preenv/data)
Then we do the test
1.apt-get install libGLES * (Have you ever failed)
2. apt-get install libsdl-net1.2
3. replace jflatt libsdlpre.so 78kb http://members.cox.net/jflatt/libsdlpre.so
Do something like "strace -e trace=open /path/to/game.executable" to get a list of the files it tries to open, and see if it fails with EACCES for any of them. Strace should be available in the extras repository iirc, otherwise it will be available in the SDK repository.
![]() |
2011-04-25
, 02:28
|
Posts: 173 |
Thanked: 106 times |
Joined on Jun 2010
|
#15
|
![]() |
2011-04-25
, 03:11
|
Posts: 136 |
Thanked: 14 times |
Joined on Feb 2011
|
#16
|
Do something like "strace -e trace=open /path/to/game.executable" to get a list of the files it tries to open, and see if it fails with EACCES for any of them. Strace should be available in the extras repository iirc, otherwise it will be available in the SDK repository.
home/user/MyDocs # strace -trace=open /usr/bin/com-gameloft-app-settlers 0.000000 execve("/usr/bin/com-gameloft-app-settlers", ["/usr/bin/com-gameloft-app-settle"...], [/* 25 vars */]) = 0 0.002381 brk(0) = 0x69000 0.000305 uname({sys="Linux", node="Nokia-N900", ...}) = 0 0.001404 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000 0.000335 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 0.000489 open("/etc/ld.so.cache", O_RDONLY) = 3 0.000305 fstat64(3, {st_mode=S_IFREG|0644, st_size=42261, ...}) = 0 0.000610 mmap2(NULL, 42261, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000 0.000214 close(3) = 0 0.000274 open("/lib/libcrypt.so.1", O_RDONLY) = 3 0.000306 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\214\6\0\0004\0\0\0"..., 512) = 512 0.000396 fstat64(3, {st_mode=S_IFREG|0644, st_size=22016, ...}) = 0 0.000519 mmap2(NULL, 213288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40030000 0.000214 mprotect(0x40035000, 28672, PROT_NONE) = 0 0.000183 mmap2(0x4003c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x4003c000 0.000274 mmap2(0x4003e000, 155944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003e000 0.000245 close(3) = 0 0.000213 open("/lib/libc.so.6", O_RDONLY) = 3 0.000275 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0hK\1\0004\0\0\0"..., 512) = 512 0.000366 fstat64(3, {st_mode=S_IFREG|0755, st_size=1160576, ...}) = 0 0.000519 mmap2(NULL, 1196468, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40065000 0.000213 mprotect(0x4017c000, 32768, PROT_NONE) = 0 0.000184 mmap2(0x40184000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x117) = 0x40184000 0.000244 mmap2(0x40187000, 8628, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40187000 0.000244 close(3) = 0 0.000275 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000 0.000244 set_tls(0x4001d3a0, 0x4001e000, 0x4001daf8, 0x4001da78, 0x40024050) = 0 0.000671 mprotect(0x40184000, 4096, PROT_READ) = 0 0.000244 mprotect(0x4003c000, 4096, PROT_READ) = 0 0.000336 munmap(0x40025000, 42261) = 0 0.000397 getuid32() = 0 0.000549 brk(0) = 0x69000 0.000183 brk(0x8a000) = 0x8a000 0.000275 getpid() = 2742 0.000305 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0 0.000580 getppid() = 2741 0.000305 stat64("/home/user/MyDocs", {st_mode=S_IFDIR|0777, st_size=65536, ...}) = 0 0.000641 stat64(".", {st_mode=S_IFDIR|0777, st_size=65536, ...}) = 0 0.000641 open("/usr/bin/com-gameloft-app-settlers", O_RDONLY|O_LARGEFILE) = 3 0.000366 fcntl64(3, F_DUPFD, 10) = 10 0.000183 close(3) = 0 0.000153 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0 0.000183 rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0 0.000274 rt_sigaction(SIGINT, {0x1ade4, ~[RTMIN RT_1], 0x4000000 /* SA_??? */}, NULL, 8) = 0 0.000275 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0 0.000244 rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], 0x4000000 /* SA_??? */}, NULL, 8) = 0 0.000275 rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0 0.000244 rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], 0x4000000 /* SA_??? */}, NULL, 8) = 0 0.000336 read(10, "#!/bin/sh\n\nexport PREENV_ROOT=/o"..., 8191) = 193 0.000610 open("/opt/preenv/env.sh", O_RDONLY|O_LARGEFILE) = 3 0.013184 fcntl64(3, F_DUPFD, 10) = 11 0.000213 close(3) = 0 0.000183 fcntl64(11, F_SETFD, FD_CLOEXEC) = 0 0.000244 read(11, "\nif [ -n \"$PREENV_ROOT\" ]; then\n"..., 8191) = 600 0.002503 read(11, "", 8191) = 0 0.000213 close(11) = 0 0.000336 chdir("/usr/palm/applications/com.gameloft.app.settlers/Settlers") = 0 0.006134 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4001cf48) = 2743 0.000946 wait4(-1, PDL: Playing music notification: Playing PDL: Init: Preenv 0.1.7 PDL: Init: Service name is com.javispedro.preenv.Settlers PDL: You are root. Don't do this unless you know what you're doing! PDL: Failed to initialize libosso SDLGL: Called sdl_init with flags = 0x100030 Home directory /home/user not ours. X11: PID is 2743 SDLGL: Requested GL major version 1 SDLGL: SDL_GLES initialized (res=0) SDLGL: Ignoring doublebuffer preference 1 SDLGL: Requested GL minor version 1 (ignored) SDLGL: Called SetVideoMode(320, 480, 0, 0x80000002) SDLGL: Requested OpenGL video mode SDLGL: Asked if video mode 800x480x16 (flags=0x80000000) is ok SDLGL: Creating shadow surface (w=320, h=480) PDL: Application asked for device ID SDLGL: Called SDL_Quit [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2743 2.575592 --- SIGCHLD (Child exited) @ 0 (0) --- 0.000305 read(10, "", 8191) = 0 0.000306 exit_group(1) = ?
![]() |
2011-04-25
, 04:30
|
Posts: 136 |
Thanked: 14 times |
Joined on Feb 2011
|
#17
|
0.000488 stat64("/lib/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000488 open("/lib/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000489 stat64("/lib", {st_mode=S_IFDIR|0755, st_size=6496, ...}) = 0 0.000885 open("/usr/lib/tls/v7l/fast-mult/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000732 stat64("/usr/lib/tls/v7l/fast-mult/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000641 open("/usr/lib/tls/v7l/fast-mult/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000671 stat64("/usr/lib/tls/v7l/fast-mult", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000641 open("/usr/lib/tls/v7l/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000855 stat64("/usr/lib/tls/v7l/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000702 open("/usr/lib/tls/v7l/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.019653 stat64("/usr/lib/tls/v7l", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.047790 open("/usr/lib/tls/fast-mult/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000885 stat64("/usr/lib/tls/fast-mult/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000641 open("/usr/lib/tls/fast-mult/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000611 stat64("/usr/lib/tls/fast-mult", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000488 open("/usr/lib/tls/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000549 stat64("/usr/lib/tls/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000489 open("/usr/lib/tls/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000488 stat64("/usr/lib/tls", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000488 open("/usr/lib/v7l/fast-mult/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000549 stat64("/usr/lib/v7l/fast-mult/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000519 open("/usr/lib/v7l/fast-mult/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000550 stat64("/usr/lib/v7l/fast-mult", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000488 open("/usr/lib/v7l/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000519 stat64("/usr/lib/v7l/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.019806 open("/usr/lib/v7l/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000701 stat64("/usr/lib/v7l", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000519 open("/usr/lib/fast-mult/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.009613 stat64("/usr/lib/fast-mult/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000519 open("/usr/lib/fast-mult/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000427 stat64("/usr/lib/fast-mult", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000275 open("/usr/lib/half/libIMGegl.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000275 stat64("/usr/lib/half", 0xbeeae5a0) = -1 ENOENT (No such file or directory) 0.000702 open("/usr/lib/libIMGegl.so", O_RDONLY) = 3 0.024200 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0p\27\0\0004\0\0\0"..., 512) = 512 0.000397 fstat64(3, {st_mode=S_IFREG|0644, st_size=51228, ...}) = 0 0.000580 mmap2(NULL, 80148, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4095d000 0.000274 mprotect(0x40969000, 28672, PROT_NONE) = 0 0.000183 mmap2(0x40970000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb) = 0x40970000 0.000336 close(3) = 0 0.000427 open("/lib/libsrv_um.so", O_RDONLY) = -1 ENOENT (No such file or directory) 0.000366 open("/usr/lib/libsrv_um.so", O_RDONLY) = 3 0.000275 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\314\35\0\0004\0\0\0"..., 512) = 512 0.000397 fstat64(3, {st_mode=S_IFREG|0644, st_size=82228, ...}) = 0 0.025116 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40971000 0.000519 mmap2(NULL, 111204, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40972000 0.000335 mprotect(0x40985000, 32768, PROT_NONE) = 0 0.000214 mmap2(0x4098d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0x4098d000 0.000336 close(3) = 0 0.000915 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4098e000 0.000885 set_tls(0x4098e840, 0x4098f000, 0x4098ef98, 0x4098ef18, 0x40024050) = 0 0.001160 mprotect(0x408f0000, 4096, PROT_READ) = 0 0.000336 mprotect(0x408e3000, 4096, PROT_READ) = 0 0.051483 mprotect(0x4087e000, 4096, PROT_READ) = 0 0.004272 mprotect(0x4074c000, 4096, PROT_READ) = 0 0.004151 mprotect(0x4044f000, 4096, PROT_READ) = 0 0.002105 mprotect(0x4033a000, 4096, PROT_READ) = 0 0.001648 mprotect(0x40208000, 57344, PROT_READ|PROT_WRITE) = 0 0.000794 mprotect(0x40208000, 57344, PROT_READ|PROT_EXEC) = 0 0.000213 cacheflush(0x40208000, 0x40216000, 0, 0xbeeafef0, 0) = 0 0.001068 mprotect(0x40198000, 4096, PROT_READ) = 0 0.000306 mprotect(0x40050000, 4096, PROT_READ) = 0 0.000518 munmap(0x40039000, 42261) = 0 0.000275 set_tid_address(0x4098e3e8) = 2998 0.000153 set_robust_list(0x4098e3f0, 0xc) = 0 0.000274 rt_sigaction(SIGRTMIN, {0x40321e88, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0 0.000305 rt_sigaction(SIGRT_1, {0x40321d58, [], SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0 0.000275 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 0.000275 getrlimit(RLIMIT_STACK, {rlim_cur=2048*1024, rlim_max=2048*1024}) = 0 0.000702 futex(0x40970910, FUTEX_WAKE, 2147483647) = 0 0.000518 getuid32() = 29999 0.000214 getgid32() = 29999 0.000183 setgid32(29999) = 0 0.000519 setuid32(29999) = 0 0.000793 brk(0) = 0x69000 0.000184 brk(0x8a000) = 0x8a000 0.000305 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0 0.050628 getppid() = 2997 0.000367 stat64("/home/user", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 0.000763 stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 0.000610 open("/usr/bin/com-gameloft-app-uno", O_RDONLY|O_LARGEFILE) = 3 0.000366 fcntl64(3, F_DUPFD, 10) = 10 0.000183 close(3) = 0 0.000153 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0 0.000152 rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0 0.000306 rt_sigaction(SIGINT, {0x1ade4, ~[RTMIN RT_1], 0x4000000 /* SA_??? */}, NULL, 8) = 0 0.000305 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0 0.000244 rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], 0x4000000 /* SA_??? */}, NULL, 8) = 0 0.000244 rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0 0.000244 rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], 0x4000000 /* SA_??? */}, NULL, 8) = 0 0.000336 read(10, "#!/bin/sh\n\nexport PREENV_ROOT=/o"..., 8191) = 122 0.000641 open("/opt/preenv/env.sh", O_RDONLY|O_LARGEFILE) = 3 0.000274 fcntl64(3, F_DUPFD, 10) = 11 0.000153 close(3) = 0 0.000153 fcntl64(11, F_SETFD, FD_CLOEXEC) = 0 0.000213 read(11, "\nif [ -n \"$PREENV_ROOT\" ]; then\n"..., 8191) = 600 0.053375 read(11, "", 8191) = 0 0.000245 close(11) = 0 0.000305 chdir("/usr/palm/applications/com.gameloft.app.uno/uno") = 0 0.000549 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4098e3e8) = 2999 0.004822 wait4(-1, SDLGL: Called sdl_init with flags = 0x100030 X11: PID is 2999 PDL: Playing music notification: Playing PDL: Init: Preenv 0.1.7 PDL: Init: Service name is com.javispedro.preenv.Uno PDL: Main thread created PDL: Screen dimming prevention ON SDLGL: Requested GL major version 1 SDLGL: Called SetVideoMode(480, 320, 0, 0x2) SDLGL: Requested OpenGL video mode SDLGL: SDL_GLES initialized (res=0) SDLGL: Asked if video mode 800x480x16 (flags=0x80000000) is ok SDLGL: Creating shadow surface (w=320, h=480) PDL: Application asked for device ID PDL: Switch UI orientation to 270° PDL: Waiting for main loop thread to die PDL: Main loop thread died SDLGL: Called SDL_Quit SDLGL: Called SDL_Quit [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2999 2.250702 --- SIGCHLD (Child exited) @ 0 (0) --- 0.000274 read(10, "", 8191) = 0 0.000275 exit_group(0) = ?
![]() |
2011-04-25
, 06:08
|
Posts: 101 |
Thanked: 29 times |
Joined on Aug 2010
|
#18
|
![]() |
2011-04-25
, 06:52
|
Posts: 136 |
Thanked: 14 times |
Joined on Feb 2011
|
#19
|
Try a different Settlers.ipk.
I had the same problem initially but then its resolved by using a different ipk.
![]() |
2011-04-25
, 08:07
|
Posts: 218 |
Thanked: 128 times |
Joined on Dec 2010
@ Abu Dhabi , UAE
|
#20
|
Also, in recent versions there's a suggested place to place your applications folder into, /media/cryptofs/apps/usr/palm/applications (which is a symlink to somewhere into /opt/preenv/data)
Last edited by javispedro; 2011-04-25 at 02:09.