I am trying to port to a higher resolution too. I can scale up to
420x600,
when I tried the 500x600, The framework applications Crash.
I increase the msm_fb memory, but the framework still crashing. It
looks like some hard coded limits are hidden somewhere.
Can anyone help?

I/sysproc (  227): Entered system_init()
I/sysproc (  227): ServiceManager: 0x13fd60
I/SurfaceFlinger(  227): SurfaceFlinger is starting
I/SurfaceFlinger(  227): SurfaceFlinger's main thread ready to run.
Initializing graphics H/W...
D/SurfaceFlinger(  227): pid 227 requesting gpu core (owner = -1)
W/SurfaceFlinger(  227): couldn't grant gpu core to pid 227
D/EGL     (  227): requestGPU returned -1
E/GLLogger(  227): h/w accelerated eglGetDisplay() failed
(EGL_SUCCESS)
I/SurfaceFlinger(  227): EGL informations:
I/SurfaceFlinger(  227): # of configs : 6
I/SurfaceFlinger(  227): vendor    : Android
I/SurfaceFlinger(  227): version   : 1.31 Android META-EGL
I/SurfaceFlinger(  227): extensions:
I/SurfaceFlinger(  227): Client API: OpenGL ES
I/EGLDisplaySurface(  227): using (fd=22)
I/EGLDisplaySurface(  227): id           = msmfb
I/EGLDisplaySurface(  227): xres         = 500 px
I/EGLDisplaySurface(  227): yres         = 600 px
I/EGLDisplaySurface(  227): xres_virtual = 500 px
I/EGLDisplaySurface(  227): yres_virtual = 1200 px
I/EGLDisplaySurface(  227): bpp          = 16
I/EGLDisplaySurface(  227): r            = 11:5
I/EGLDisplaySurface(  227): g            =  5:6
I/EGLDisplaySurface(  227): b            =  0:5
I/EGLDisplaySurface(  227): width        = 500 mm (25.400000 dpi)
I/EGLDisplaySurface(  227): height       = 600 mm (25.400000 dpi)
I/EGLDisplaySurface(  227): refresh rate = 60.00 Hz
W/HAL     (  227): load: module=/system/lib/hw/copybit.trout.so
error=Cannot find library
W/HAL     (  227): load: module=/system/lib/hw/copybit.trout.so
error=Cannot find library
W/SurfaceFlinger(  227): ro.sf.lcd_density not defined, using 160 dpi
by default.
I/SurfaceFlinger(  227): OpenGL informations:
I/SurfaceFlinger(  227): vendor    : Android
I/SurfaceFlinger(  227): renderer  : Android PixelFlinger 1.0
I/SurfaceFlinger(  227): version   : OpenGL ES-CM 1.0
I/SurfaceFlinger(  227): extensions: GL_OES_byte_coordinates
GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format
GL_OES_compressed_paletted_texture GL_OES_draw_texture
GL_OES_matrix_get GL_OES_query_matrix GL_ARB_texture_compression
GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture
GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object
GL_ANDROID_generate_mipmap
W/HAL     (  227): load: module=/system/lib/hw/copybit.trout.so
error=Cannot find library
...
W/HAL     (  227): load: module=/system/lib/hw/overlay.default.so
error=Cannot find library
I/sysproc (  227): System server: starting Android runtime.
I/sysproc (  227): System server: starting Android services.
I/SystemServer(  227): Entered the Android system server!
I/sysproc (  227): System server: entering thread pool.
I/SystemServer(  227): Starting Power Manager.
I/SystemServer(  227): Starting Activity Manager.
I/DEBUG   (   32): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   32): Build fingerprint: 'generic/htc_dream/dream/trout:
1.5/CUPCAKE/eng.peter.20090403.104137:eng/test-keys'
I/DEBUG   (   32): pid: 227, tid: 235  >>> system_server <<<
I/DEBUG   (   32): signal 11 (SIGSEGV), fault addr 450fc000
I/DEBUG   (   32):  r0 450fc000  r1 00000000  r2 0000008c  r3 00000000
I/DEBUG   (   32):  r4 00000096  r5 0177076a  r6 00008000  r7 000001f4
I/DEBUG   (   32):  r8 0000d555  r9 00185500  10 00000000  fp 00000000
I/DEBUG   (   32):  ip 00000000  sp 446fbc24  lr 00000000  pc
afb0451c  cpsr 20000010
I/DEBUG   (   32):          #00  pc 0000451c  /system/lib/libcutils.so
I/DEBUG   (   32):          #01  pc 0000a96c  /system/lib/
libpixelflinger.so
I/DEBUG   (   32):          #02  pc 00009ae4  /system/lib/
libpixelflinger.so
I/DEBUG   (   32):          #03  pc 00011924  /system/lib/libagl.so
I/DEBUG   (   32):          #04  pc 0000a17c  /system/lib/libagl.so
I/DEBUG   (   32):          #05  pc 00009068  /system/lib/libagl.so
I/DEBUG   (   32):          #06  pc 000264fe  /system/lib/
libsurfaceflinger.so
I/DEBUG   (   32):          #07  pc 000252aa  /system/lib/
libsurfaceflinger.so
I/DEBUG   (   32):          #08  pc 00026562  /system/lib/
libsurfaceflinger.so


On Mar 9, 10:52 pm, allstars <[email protected]> wrote:
> for kernel part
> first you need to modify DMA memory size in
> kernel/include/asm-arm/memory.h
> modify CONSISTENT_DMA_SIZE
> originally it was only 2M ,
> so when you specify larger than 800x650 (800 * 650 * 4 = 2080000 =>
> almost 2M)
> you can see out of memory in framebuffer
>
> but the maximux value of DMA_SIZE is only for 4M
> (the size of the page table used by DMA)
>
> if you want to use more video memory
> you can use boot_mem_alloc functions
>
> for emulator part
> i have also enlarge linux memory in qemu
> external/qemu/vl.c
> modify DEFAULT_RAM_SIZE
> otherwise the available memory after booting up is only a few
>
> for framework part
> you need to modify the heap size for dalvikvm and surfaceflinger
> if you want a very highresolution
>
> surfaceflinger:
> mSurfaceHeapManager = new SurfaceHeapManager( SIZE_YOU_WANT << 20)
>
> and modify dalvik startup options
> -Xms4m or 8m
> at that time i found that if the startup memory size and maximux size
> are the same
> dalvik will behave strangely
>
> i've done this several months ago
> so somethins might have changed
> but above is what i have done before
>
> good luck to you anyway
>
> On Mar 9, 8:11 pm, Bill <[email protected]> wrote:
>
> > I'm trying to port Android to a screen with ahigherresolution.  I
> > saw a previous post about this but, no one responded.  Seems the issue
> > has something to do with a limit possibly set in the kernel.  Has
> > anyone had any success porting to a bigger screen withresolution
> > greater than 800x600 and if so could you please share your experience?
>
> > Here is the previous thread on the 
> > topic:http://groups.google.com/group/android-porting/browse_thread/thread/6...
>
> > Thanks!
>
>
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to