Problem booting Android on Zoom2

157 views
Skip to first unread message

eternity

unread,
Feb 17, 2010, 3:08:22 AM2/17/10
to android-porting
Hi,

I am having two (downloaded) workspace for Omap Android which are
RLS25.14 and eclair. Both are built with arm-2008q3 i.e gcc 4.3
toochain.

Now when I am trying to boot AFS ( for both) on Zoom2 board:

1. for RLS25.14, the Zoom2 is booting fine
but
2. for eclair I am getting the following error on hyperterminal:

EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 184K
Warning: unable to open an initial console.
init: cannot open '/initlogo.rle'
yaffs: dev is 32505860 name is "mtdblock4"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.4, "mtdblock4"
yaffs_read_super: isCheckpointed 0
yaffs: dev is 32505861 name is "mtdblock5"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.5, "mtdblock5"
yaffs_read_super: isCheckpointed 0
**>> Block 2 needs retiring
**>> Block 2 retired
**>> Block 3 needs retiring
**>> Block 3 retired
**>> Block 4 needs retiring
**>> Block 4 retired
:
:
:
:
**>> Block 247 needs retiring
**>> Block 247 retired
**>> Block 248 needs retiring
**>> Block 248 retired
**>> yaffs write required 247 attempts
page 64 in gc has no object: 0 0 0
**>> Erasure failed 1
**>> Block 1 retired
Block 1 is in state 9 after gc, should be erased
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
yaffs tragedy: no more erased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!
init: Unable to open persistent property directory /data/property
errno: 2
init: cannot find '/system/bin/sh', disabling 'console'
init: cannot find '/system/bin/cexec.out', disabling 'baseimage'
init: cannot find '/system/bin/OMXPolicyManager', disabling 'omx_pm'
init: cannot find '/system/bin/OMXResourceManager', disabling 'omx_rm'
init: cannot find '/system/bin/gsm0710muxd', disabling 'mux'
init: cannot find '/system/bin/servicemanager', disabling
'servicemanager'
init: cannot find '/system/bin/vold', disabling 'vold'
init: cannot find '/system/bin/debuggerd', disabling 'debuggerd'
init: cannot find '/system/bin/sh', disabling 'pvrsrv'
init: cannot find '/system/bin/rild', disabling 'ril-daemon'
init: cannot find '/system/bin/app_process', disabling 'zygote'
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/fw3a', disabling 'fw3a'
init: cannot find '/system/bin/playmp3', disabling 'bootsound'
init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'
init: cannot find '/system/xbin/uim', disabling 'uim'
init: cannot find '/system/bin/installd', disabling 'installd'
init: cannot find '/system/bin/flash_image', disabling
'flash_recovery'
omapdss DISPC error: SYNC_LOST, disabling LCD

Any idea why this AFS is not working. But very surely those binaries
are there in /system/bin and the same SD card I am using for both AFS
(so, its not a SDCARD problem).
Any help will be appreciated!!!!!!!!!!!11

Thanks in advance

eternity

unread,
Feb 17, 2010, 4:28:45 AM2/17/10
to android-porting
With help of a good guy, I found that init.rc in eclair AFS, was
trying to do these following lines:

mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system ro remount
mount yaffs2 mtd@userdata /data nosuid nodev
mount yaffs2 mtd@cache /cache nosuid nodev

So, I commented those lines and found that no more such errors are
coming.

But still UI is not coming on zoom2 screen. It got stuck in "black
screen with small white android" but I am getting android shell in my
hyperterminal.

I got the eclair branch using :

repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b
eclair
repo sync

Is this branch is not stable??

regards,

Deva R

unread,
Feb 17, 2010, 5:09:21 AM2/17/10
to gti...@gmail.com, android-porting
Hi,
Thats a good call to comment yaffs.. i guess you boot via MMC and not NAND.
Default mode of android boot for RLS25 is from nand and hence yaffs is kept enabled for NAND boot.

btw - regarding no UI coming up, i booted the same tree y'day and was ok..
attached my boot log till UI. check against yours.

Regards
Deva



android-boot-ok-log.txt

Deva R

unread,
Feb 17, 2010, 5:14:29 AM2/17/10
to gti...@gmail.com, android-porting

Also, i used below bootargs.
set bootargs 'console=ttyS3,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1 mem=256M init=/init stdin=serial stdout=serial stderr=serial omap_vout.vid1_static_vrfb_alloc=y omapfb.vram="0:4M" '

set bootcmd 'mmcinit;fatload mmc 0 0x80300000 uImage;bootm 0x80300000'

Tirtha Kanti Ghosh

unread,
Feb 17, 2010, 5:27:12 AM2/17/10
to Deva R, android-porting
>Also, i used below bootargs.
>set bootargs 'console=ttyS3,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1 mem=256M init=/init stdin=serial >stdout=serial stderr=serial omap_vout.vid1_static_vrfb_alloc=y omapfb.vram="0:4M" '

>set bootcmd 'mmcinit;fatload mmc 0 0x80300000 uImage;bootm 0x80300000'

I am using almost same bootargs but my memory address is 0x81c00000 as mentioned in http://omappedia.org/wiki/Android_Getting_Started .


>btw - regarding no UI coming up, i booted the same tree y'day and was ok..

do u mean, keep trying until it boots up???


>attached my boot log till UI. check against yours.

thanks a lot.

regards,

eternity

unread,
Feb 18, 2010, 7:07:33 AM2/18/10
to android-porting
So finally I found as posted by Deva R

my bootargs was missing <omapfb.vram="0:4M"> which is mandatory for
eclair.

according to http://wiki.davincidsp.com/index.php/Dual_Frame_Buffer_on_OMAP35x
omapfb.vram allocate buffer for /dev/fb1.

But I saw in kernel .config, CONFIG_FB_OMAP2_NUM_FBS=1 only, even to
make sure after android boots up I checked there is only one frame
buffer in sysfs (/dev/graphics/fb0)

so, why that parameter is required???
any guess??

Deva R

unread,
Feb 18, 2010, 9:35:46 AM2/18/10
to gti...@gmail.com, android-porting
great that its resolved..

> omapfb.vram="0:4M"
btw, its just single fb., and right now not sure why its mandatory to explicitly quote 4M size.
will post, once i get update on it..


Deva

unread,
Feb 22, 2010, 4:14:47 AM2/22/10
to android-porting
Hi,
This's regarding why we need to explicitly mention fb0 size in
bootargs

By default, kernel allocates memory for fb as below
864 X 480 X 4 (width X height X bpp)

When the application needs more memory, it can be sent through
bootargs.
0:4 M allocate 4MB memory to fb.

To suffice eclair requirement, we allocate 4MB for fb0. if not, we'll
run into issues you faced.

reagards,
Deva


On Feb 18, 7:35 pm, Deva R <r.deva...@gmail.com> wrote:
> great that its resolved..
>
> > omapfb.vram="0:4M"
>
> btw, its just single fb., and right now not sure why its mandatory to
> explicitly quote 4M size.
> will post, once i get update on it..
>

> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting
>
>

Reply all
Reply to author
Forward
0 new messages