oh yeah. that's the problem.

I fixed it by adding a line to init.rc:
    chmod 0771 /dev/fb0

I can see the green robot now.

Thank you, Mathias

--
John Zheng
WWW.DAOTNAG.COM


On Nov 9, 1:18 pm, Mathias Agopian <[EMAIL PROTECTED]> wrote:
> Hello,
>
> The errors that matter here are:
>
> E/GLLogger( 1553): validate_display_surface:779 error 300d (EGL_BAD_SURFACE)
> E/SurfaceFlinger( 1553): not enough memory for layer bitmap size=234668032
> D/MemoryDealer( 1553):   LayerBitmap (0x870d8, size=8388608)
> D/MemoryDealer( 1553):     0: 00087110 | 0x00000000 | 0x00800000 | F
> D/MemoryDealer( 1553):   size allocated: 0 (0 KB)
>
> For some reason it's trying to allocate 234 MB.
>
> My guess is that the system wasn't able to open the framebuffer.
> Have a look at EGLDisplaySurface::mapFrameBuffer(), it probably fails here.
>
> Mathias
>
> On Sat, Nov 8, 2008 at 8:45 PM, 宇江 <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I have a arm926ej-s board which has a 800x600 LCD.
> > I have ported the android kernel to that board. And I also built the rootfs
> > from source code.
> > After the kernel boot up, just the text "ANDROID" on the screen.
> > The log message show there are some errors.
> > But I don't know what exactly mean of those message.
> > Such as:
> > E/MemoryHeapBase( 1553): error opening /dev/pmem: No such file or directory
> > E/SurfaceFlinger( 1553): Couldn't open /sys/android_power/wait_for_fb_sleep
> > or /sys/android_power/wait_for_fb_wake
> > E/GLLogger( 1553): couldn't load <libhgl.so> library (Cannot find library)
>
> > Anybody see these before?
>
> > --
>
> > John Zheng
> > WWW.DAOTNAG.COM
>
> > Linux version 2.6.25 ([EMAIL PROTECTED]) (gcc version 4.2.1) #20 Sun Nov 9
> > 11:57:00 CST 2008
> > CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ) Cirrus Logic EP9608,
> > cr=00053177
> > Machine: Cirrus Logic EDB9608A Engineering Evaluation Board
> > Memory policy: ECC disabled, Data cache writeback
> > CPU0: D VIVT write-back cache
> > CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
> > CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
> > Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16192
> > Kernel command line: root=/dev/nfs nfsroot=192.168.1.72:/nfsroot/leo/android
> > init=/init ip=192.168.1.79 console=ttyAM
> > mtdparts=ep96xx_nand:8m(boot),120m(root)
> > PID hash table entries: 256 (order: 8, 1024 bytes)
> > Console: colour dummy device 80x30
> > Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> > Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> > Memory: 32MB 32MB = 64MB total
> > Memory: 60024KB available (3920K code, 788K data, 136K init)
> > Mount-cache hash table entries: 512
> > CPU: Testing write buffer coherency: ok
> > net_namespace: 156 bytes
> > NET: Registered protocol family 16
> > ep96xx: PLL1 running at 168 MHz, PLL2 at 12 MHz
> > ep96xx: FCLK 168 MHz, HCLK 84 MHz, PCLK 21 MHz
> > SCSI subsystem initialized
> > usbcore: registered new interface driver usbfs
> > usbcore: registered new interface driver hub
> > usbcore: registered new device driver usb
> > NET: Registered protocol family 2
> > IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
> > TCP established hash table entries: 2048 (order: 2, 16384 bytes)
> > TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
> > TCP: Hash tables configured (established 2048 bind 2048)
> > TCP reno registered
> > ashmem: initialized
> > VFS: Disk quotas dquot_6.5.1
> > Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> > Installing knfsd (copyright (C) 1996 [EMAIL PROTECTED]).
> > JFFS2 version 2.2. (NAND) (c) 2001-2006 Red Hat, Inc.
> > fuse init (API version 7.9)
> > yaffs Nov  9 2008 11:56:50 Installing.
> > io scheduler noop registered
> > io scheduler anticipatory registered (default)
> > io scheduler deadline registered
> > io scheduler cfq registered
> > Console: switching to colour frame buffer device 100x30
> > fb0: EP93xx frame buffer at 800x480x24bpp
> > Serial: AMBA driver $Revision: 1.41 $
> > apb:uart1: ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
> > console [ttyAM0] enabled
> > apb:uart2: ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
> > apb:uart3: ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
> > brd: module loaded
> > loop: module loaded
> > nbd: registered device at major 43
> > usbcore: registered new interface driver zd1201
> > Driver 'sd' needs updating - please use bus_type methods
> > NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
> > block2mtd: version $Revision: 1.30 $
> > Scan the NAND device.
> > NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V
> > 8-bit)
> > Scanning device for bad blocks
> > Bad eraseblock 320 at 0x02800000
> > 2 cmdlinepart partitions found on MTD device ep96xx_nand
> > Using command line partition definition
> > Creating 2 MTD partitions on "ep96xx_nand":
> > 0x00000000-0x00800000 : "boot"
> > 0x00800000-0x08000000 : "root"
> > usb resource 0 start 800d0000, end 800d0fff
> > ep96xx-hcd0 capbase register = 01000040
> > ep96xx-ehci ep96xx-ehci: ep96xx EHCI
> > ep96xx-ehci ep96xx-ehci: new USB bus registered, assigned bus number 1
> > ep96xx-ehci ep96xx-ehci: irq 58, io mem 0x800d0000
> > ep96xx-ehci ep96xx-ehci: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
> > usb usb1: configuration #1 chosen from 1 choice
> > hub 1-0:1.0: USB hub found
> > hub 1-0:1.0: 1 port detected
> > usb resource 1 start 800e0000, end 800e0fff
> > ep96xx-hcd1 capbase register = 01000040
> > ep96xx-ehci ep96xx-ehci: ep96xx EHCI
> > ep96xx-ehci ep96xx-ehci: new USB bus registered, assigned bus number 2
> > ep96xx-ehci ep96xx-ehci: irq 63, io mem 0x800e0000
> > ep96xx-ehci ep96xx-ehci: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
> > usb usb2: configuration #1 chosen from 1 choice
> > hub 2-0:1.0: USB hub found
> > hub 2-0:1.0: 1 port detected
> > Initializing USB Mass Storage driver...
> > usbcore: registered new interface driver usb-storage
> > USB Mass Storage support registered.
> > EHCI/OTG High-Speed USB SOC Device Controller driver (Oct 10, 2008)
> > ep96xx_ehci_udc res from 80020000 to 80020fff
> > ep96xx_ehci_udc irq  56
> > mice: PS/2 mouse device common for all mice
> > ep96xx_ts_probe
> > request Touchscreen interrupt.
> > Request Timer interrupt.
> > Register Touchscreen Driver
> > EP96xx touchscreen driver configured for 4-wire operation
> > i2c /dev entries driver
> > EP96XX I2C: initialized.
> > ep96xx_wdt: EP96XX watchdog, driver version 0.3
> > ep96xx_wdt: Timeout 30 seconds.(-29616)
> > ep96xx_wdt: WDStatus = 0x00000000
> > sdhci: Secure Digital Host Controller Interface driver, 0.12
> > sdhci:Build Nov  5 2008 23:29:38
> > SWCap Bus=[1,4] MaxClock
> > mmc0: SDHCI at 0x80050000 irq 6 DMA
> > usbcore: registered new interface driver usbhid
> > drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
> > logger: created 64K log 'log_main'
> > logger: created 256K log 'log_events'
> > logger: created 64K log 'log_radio'
> > Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31
> > 16:40:16 2008 UTC).
> > ASoC version 0.13.2
> > EDB9608A ALSA Driver on Port1
> > asoc: CS42L52 <-> ep96xx-i2s mapping ok
> > Cirrus Logic ALSA SoC codec cs42l52 driver verison 1.0 11/07
> > ALSA device list:
> >   #0: edb9608a (CS42L52)
> > NET: Registered protocol family 26
> > IPv4 over IPv4 tunneling driver
> > GRE over IPv4 tunneling driver
> > TCP cubic registered
> > Initializing XFRM netlink socket
> > NET: Registered protocol family 1
> > NET: Registered protocol family 17
> > NET: Registered protocol family 15
> > RPC: Registered udp transport module.
> > RPC: Registered tcp transport module.
> > 802.1Q VLAN Support v1.8 Ben Greear <[EMAIL PROTECTED]>
> > All bugs added by David S. Miller <[EMAIL PROTECTED]>
> > ieee80211: 802.11 data/management/control stack, git-1.1.13
> > ieee80211: Copyright (C) 2004-2005 Intel Corporation
> > <[EMAIL PROTECTED]>
> > Initlize power management for ep9608
> > IP-Config: Guessing netmask 255.255.255.0
> > IP-Config: Complete:
> >      device=eth0, addr=192.168.1.79, mask=255.255.255.0, gw=255.255.255.255,
> >      host=192.168.1.79, domain=, nis-domain=(none),
> >      bootserver=255.255.255.255, rootserver=192.168.1.72, rootpath=
> > Looking up port of RPC 100003/2 on 192.168.1.72
> > Looking up port of RPC 100005/1 on 192.168.1.72
> > VFS: Mounted root (nfs filesystem).
> > Freeing init memory: 136K
> > Warning: unable to open an initial console.
> > init: cannot open '/initlogo.rle'
> > init: do_mount 5
> > init: mount tmpfs, /sqlite_stmt_journals, tmpfs, 8000, size=4m
> > init: mount return 0
> > init: cannot find '/system/bin/playmp3', disabling 'bootsound'
> > sh: can't access tty; job control turned off
> > # warning: `rild' uses 32-bit capabilities (legacy support in use)
>
> > # logcat &
> > # I/DEBUG   ( 1538): debuggerd: Nov  5 2008 21:06:18
> > E/mountd  ( 1537): could not read initial mass storage state
> > E/flash_image( 1544): can't find recovery partition
> > D/AndroidRuntime( 1540):
> > D/AndroidRuntime( 1540): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
> > D/AndroidRuntime( 1540): CheckJNI is ON
> > I/        ( 1541): ServiceManager: 0xaab8
> > W/AudioHardwareInterface( 1541): Using stubbed audio hardware. No sound will
> > be produced.
> > I/AudioFlinger( 1541): AudioFlinger's main thread ready to run.
> > I/CameraService( 1541): CameraService started: pid=1541
> > D/AndroidRuntime( 1540): --- registering native functions ---
> > I/Zygote  ( 1540): Preloading classes...
> > D/dalvikvm( 1540): GC freed 746 objects / 41240 bytes in 34ms
> > D/dalvikvm( 1540): GC freed 302 objects / 18584 bytes in 34ms
> > D/dalvikvm( 1540): GC freed 309 objects / 18720 bytes in 37ms
> > D/dalvikvm( 1540): Trying to load lib /system/lib/libmedia_jni.so 0x0
> > D/dalvikvm( 1540): Added shared lib /system/lib/libmedia_jni.so 0x0
> > D/dalvikvm( 1540): Trying to load lib /system/lib/libmedia_jni.so 0x0
> > D/dalvikvm( 1540): Shared lib '/system/lib/libmedia_jni.so' already loaded
> > in same CL 0x0
> > D/dalvikvm( 1540): Trying to load lib /system/lib/libmedia_jni.so 0x0
> > D/dalvikvm( 1540): Shared lib '/system/lib/libmedia_jni.so' already loaded
> > in same CL 0x0
> > D/dalvikvm( 1540): GC freed 3698 objects / 177088 bytes in 114ms
> > D/dalvikvm( 1540): GC freed 284 objects / 23032 bytes in 82ms
>
> ...
>
> read more >>
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to