Emulator Screen Size

636 views
Skip to first unread message

Anand

unread,
Mar 2, 2010, 10:39:19 AM3/2/10
to android-platform
I am trying to build the emulator to support a larger screen.

The best I have been able to do so far is 1024x600. What I am looking
for is 1366x768

There is a previous post on this topic [http://groups.google.com/group/
android-porting/browse_thread/thread/18ae836676b0282b/894c9f36922f7331?
hl=en&q=#894c9f36922f7331]

In that post I do not follow how to modify the dalvik startup option
and would that even effect the screen size?

Here is the repo diff that I have currently. Would appreciate any help
on this context. Thanks!

project bionic/
diff --git a/libc/kernel/arch-arm/asm/memory.h b/libc/kernel/arch-arm/
asm/memory.h
index c1137a7..743b6ef 100644
--- a/libc/kernel/arch-arm/asm/memory.h
+++ b/libc/kernel/arch-arm/asm/memory.h
@@ -46,7 +46,7 @@
#define MODULE_START (PHYS_OFFSET)

#ifndef CONSISTENT_DMA_SIZE
-#define CONSISTENT_DMA_SIZE SZ_2M
+#define CONSISTENT_DMA_SIZE SZ_4M
#endif

#ifndef __virt_to_phys

project external/kernel-headers/
diff --git a/original/asm-arm/memory.h b/original/asm-arm/memory.h
index 91d536c..fcec3b1 100644
--- a/original/asm-arm/memory.h
+++ b/original/asm-arm/memory.h
@@ -114,7 +114,7 @@
* between 2MB and 14MB inclusive.
*/
#ifndef CONSISTENT_DMA_SIZE
-#define CONSISTENT_DMA_SIZE SZ_2M
+#define CONSISTENT_DMA_SIZE SZ_4M
#endif

/*
diff --git a/original/linux/mmzone.h b/original/linux/mmzone.h
index f45163c..043a812 100644
--- a/original/linux/mmzone.h
+++ b/original/linux/mmzone.h
@@ -18,7 +18,7 @@

/* Free memory management - zoned buddy allocator. */
#ifndef CONFIG_FORCE_MAX_ZONEORDER
-#define MAX_ORDER 11
+#define MAX_ORDER 12
#else
#define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
#endif

project external/qemu/
diff --git a/vl.c b/vl.c
index 3242c23..154f44f 100644
--- a/vl.c
+++ b/vl.c
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
# define LOG_IOPORT(...) do { } while (0)
#endif

-#define DEFAULT_RAM_SIZE 128
+#define DEFAULT_RAM_SIZE 512

/* Max number of USB devices that can be specified on the
commandline. */
#define MAX_USB_CMDLINE 8


--anand

Eric Finseth

unread,
Mar 2, 2010, 3:12:52 PM3/2/10
to android-...@googlegroups.com
Here is a blog post on supporting large screen sizes in the emulator:

http://foldedtoadfroth.blogspot.com/2009/10/android-emulator-goldfish-big-screen.html

I'd include a kernel I made for this (using the blog post above), but
I'm guessing it will get stripped from the email.

-Eric

> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
>
>

Anand

unread,
Mar 3, 2010, 1:35:48 AM3/3/10
to android-platform
Yes, this is exactly the same changes that I have made following the
directions in the Google Group post.

However with these changes also I am not able to get a screen size
greater than 1280x720.

Any clues on how to get to 1366x768 ?

Thanks!
--anand

On Mar 2, 12:12 pm, Eric Finseth <eric.fins...@gmail.com> wrote:
> Here is a blog post on supporting large screen sizes in the emulator:
>

> http://foldedtoadfroth.blogspot.com/2009/10/android-emulator-goldfish...

Harish

unread,
Mar 4, 2010, 5:30:11 AM3/4/10
to android-platform
I was able to configure 1024 X 768 resolution using latest gold fish
kernel. But when i also tried to
configure with 1366 X 768, emulator is stops at initializing surface
flinger. After initial analysis, i found framebuffer is not able to
allocate memory in the probe function.

If any body has any idea on how to proceed further will be of great
help

Regards
Harish.H

Harish

unread,
Mar 5, 2010, 6:34:02 AM3/5/10
to android-platform
Changing the MAX_ORDER to 12 in the file ./include/linux/mmzone.h
fixes the issue

#ifndef CONFIG_FORCE_MAX_ZONEORDER
#define MAX_ORDER 11


#else
#define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
#endif

#define MAX_ORDER_NR_PAGES (1 << (MAX_ORDER - 1))

Change it to

#ifndef CONFIG_FORCE_MAX_ZONEORDER


#define MAX_ORDER 12
#else
#define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
#endif

#define MAX_ORDER_NR_PAGES (1 << (MAX_ORDER - 1))

Regards
Harish

Reply all
Reply to author
Forward
0 new messages