android is not booting with yaffs2 filesystem

by jack » Wed, 11 Nov 2009 03:12:42 GMT


Sponsored Links
 I am trying to port android on custom board ARM CORTEX-A8 based with
128MB of onenand device.
I can see "android" text coming up on the LCD screen but after that
nothing is coming. I am using YAFFS2 filesystem. Below is log last few
lines:

***************** log start ***********************

Freeing init memory: 152K
init: cannot open '/initlogo.rle'
yaffs: dev is 32505860 name is "mtdblock4"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.4, "mtdblock4"
block 363 is bad
yaffs: dev is 32505862 name is "mtdblock6"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.6, "mtdblock6"
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
android_usb gadget: high speed config #1: UMS Only (Not debugging
mode)
init: cannot find '/system/bin/sh', disabling 'console'
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/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/playmp3', disabling 'bootsound'
init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'
init: cannot find '/system/bin/installd', disabling 'installd'
init: cannot find '/system/bin/flash_image', disabling
'flash_recovery'
init: cannot find '/system/bin/keystore', disabling 'keystore'
enabling adb
android_usb gadget: high speed config #1: UMS + ADB (Debugging mode)
************************* End of log ******************************
please advise what could be the reason for this.
any help will be appreciated.

Regards,
Jack.

-- 



android is not booting with yaffs2 filesystem

by Alim Akhtar » Wed, 11 Nov 2009 11:09:50 GMT


 Ok I got it. My onenand device is if 2Kb page side and in the mkyaffs2 utils
4KB page support was enabled.
Now the board boots till prompt but still i cann't see the Android coming up
on the LCD and text is there.
Any idea whats still wrong with it?

Regards,
Jack.




> website: 


Sponsored Links


android is not booting with yaffs2 filesystem

by jack » Wed, 11 Nov 2009 20:21:21 GMT


 i all,
more info in the below problem...
here i am sending the logcat massages..its seems these massages are
getting repeated..
Any help will be appreciated..

************ logcat massage start ****************

I/DEBUG ( 1701): debuggerd: Nov 3 2009 18:39:21
I/vold ( 1700): Android Volume Daemon version 2.0
D/vold ( 1700): Bootstrapping complete
E/flash_image( 1709): error opening /system/recovery.img: No such file
or directory
D/DHCP ( 1724): failed to set ip addr for eth0 to 0.0.0.0: No such
device
D/AndroidRuntime( 1703):
D/AndroidRuntime( 1703): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 1703): CheckJNI is ON
D/dalvikvm( 1703): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 1703): Stale deps in cache file; removing and retrying
I/ ( 1704): ServiceManager: 0xad18
D/AudioHardwareALSA( 1704): Mixer: element name: 'DAC1'
D/AudioHardwareALSA( 1704): Mixer: element name: 'DAC2'
D/AudioHardwareALSA( 1704): Mixer: element name: 'DAC3'
D/AudioHardwareALSA( 1704): Mixer: master 'PCM' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Earpiece' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Speaker' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Bluetooth' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Headphone' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Bluetooth A2DP' not found.
D/AudioHardwareALSA( 1704): Mixer: master 'Capture' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Capture' not found.
D/AudioHardwareALSA( 1704): Mixer: route '' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Bluetooth Capture' not
found.
D/AudioHardwareALSA( 1704): Mixer: route 'Capture' not found.
D/AudioHardwareALSA( 1704): Mixer: route 'Bluetooth A2DP Capture' not
found.
D/AudioHardwareALSA( 1704): mixer initialized.
D/AudioHardwareInterface( 1704): setMode(NORMAL)
I/CameraService( 1704): CameraService started: pid=1704
V/AudioHardwareALSA( 1704): virtual android::AudioStreamOut*
android::AudioHardwareALSA::openOutputStream(uint32_t, int*,
uint32_t*, uint32_t*, android::status_t*) - format = 0, channels = 0,
sampleRate = 0
V/AudioHardwareALSA( 1704): ALSAStreamOps - input - format = 0,
channels = 0, rate = 0
V/AudioHardwareALSA( 1704): ALSAStreamOps - default - format = 2,
channels = 2, rate = 44100
E/ALSALib ( 1704): external/alsa-lib/src/control/setup.c:555:
(add_elem) Cannot obtain info for CTL elem (MIXER,'Playback Path',
0,0,0): No such file or directory
E/ALSALib ( 1704): external/alsa-lib/src/control/setup.c:555:
(add_elem) Cannot obtain info for CTL elem (MIXER,'Playback Path',
0,0,0): No such file or directory
I/AudioHardwareALSA( 1704): Initialized ALSA PLAYBACK device
AndroidPlayback
D/AudioHardwareALSA( 1704): Set PLAYBACK PCM format to S16_LE (Signed
16 bit Little Endian)
I/AudioHardwareALSA( 1704):
I/AudioHardwareALSA( 1704): android::status_t
android::ALSAStreamOps::channelCount(int)::671
D/AudioHardwareALSA( 1704): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA( 1704): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA( 1704): Buffer size: 4096
D/AudioHardwareALSA( 1704): Latency: 92879
I/AudioFlinger( 1704): openOutput() created mixer output: ID 1 thread
0x26178
I/AudioFlinger( 1704): AudioFlinger's thread 0x26178 ready to run
W/dalvikvm( 1703): partial write in inflate (20440 v



android is not booting with yaffs2 filesystem

by mvniekerk » Wed, 11 Nov 2009 22:49:42 GMT


 ave you've checked for read only partitions?

What Android does upon initial bootup it will extract the apk files
into the /data/ folder. If it doesn't have write access it will fail.
Also, if there is no space on the device to extract these it also
won't work.

On Nov 11, 1:21pm, jack <alim.akh...@gmail.com> wrote:

--



android is not booting with yaffs2 filesystem

by jack » Wed, 11 Nov 2009 23:10:36 GMT


  have given full permissions to /data
chmod 0777 /data
even after booting, i deleted the contains of data folder and rebooted
the system, its still the same.
One thing, some time i can see only 24kb space is left on data
partition and some time its show 2345kb free space, after i run df
command.
any other clue?

Regards,
Jack

On Nov 11, 7:49pm, mvniekerk <mvniek...@gmail.com> wrote:

--



android is not booting with yaffs2 filesystem

by jack » Thu, 12 Nov 2009 12:59:54 GMT


 ello again,
i changed my data partition from 11MB to 31MB. Now the logcat massages
has changed as below, please give some pointer if any one have face
similar problem:

************* logcat start *******************
D/AndroidRuntime( 1766): CheckJNI is ON
D/dalvikvm( 1766): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 1766): Stale deps in cache file; removing and retrying
D/dalvikvm( 1766): DexOpt: --- BEGIN 'framework.jar' (bootstrap=1) ---
I/DEBUG ( 1701): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 1701): pid: 1767, tid: 1767 >>> /system/bin/dexopt <<<
I/DEBUG ( 1701): signal 11 (SIGSEGV), fault addr 456d1abc
I/DEBUG ( 1701): r0 4223a008 r1 000162b0 r2 04000a24 r3 00000001
I/DEBUG ( 1701): r4 400aa4c8 r5 41a290f2 r6 416d1098 r7 4174584c
I/DEBUG ( 1701): r8 00000000 r9 00000000 10 00000000 fp 00000000
I/DEBUG ( 1701): ip becc5580 sp becc5620 lr afe0eca8 pc
ad057486 cpsr 00000030
I/DEBUG ( 1701): #00 pc 00057486 /system/lib/libdvm.so
I/DEBUG ( 1701): #01 pc 00057afe /system/lib/libdvm.so
I/DEBUG ( 1701): #02 pc 0005828a /system/lib/libdvm.so
I/DEBUG ( 1701): #03 pc 0005849a /system/lib/libdvm.so
I/DEBUG ( 1701): #04 pc 00057d84 /system/lib/libdvm.so
I/DEBUG ( 1701): #05 pc 00059602 /system/lib/libdvm.so
I/DEBUG ( 1701): #06 pc 00058530 /system/lib/libdvm.so
I/DEBUG ( 1701): #07 pc 000582e2 /system/lib/libdvm.so
I/DEBUG ( 1701): #08 pc 0005849a /system/lib/libdvm.so
I/DEBUG ( 1701): #09 pc 00057d84 /system/lib/libdvm.so
I/DEBUG ( 1701): #10 pc 00059602 /system/lib/libdvm.so
I/DEBUG ( 1701): #11 pc 00058530 /system/lib/libdvm.so
I/DEBUG ( 1701): #12 pc 000582e2 /system/lib/libdvm.so
I/DEBUG ( 1701): #13 pc 0005849a /system/lib/libdvm.so
I/DEBUG ( 1701): #14 pc 00057d84 /system/lib/libdvm.so
I/DEBUG ( 1701): #15 pc 000492f4 /system/lib/libdvm.so
I/DEBUG ( 1701): #16 pc 00045a88 /system/lib/libdvm.so
I/DEBUG ( 1701): #17 pc 0004683e /system/lib/libdvm.so
I/DEBUG ( 1701): #18 pc 00048ffc /system/lib/libdvm.so
I/DEBUG ( 1701): #19 pc 0004923a /system/lib/libdvm.so
I/DEBUG ( 1701): #20 pc 0004b678 /system/lib/libdvm.so
I/DEBUG ( 1701): #21 pc 0004b6fa /system/lib/libdvm.so
I/DEBUG ( 1701): #22 pc 0004b7a0 /system/lib/libdvm.so
I/DEBUG ( 1701): #23 pc 0004a74c /system/lib/libdvm.so
I/DEBUG ( 1701): #24 pc 0004a8fe /system/lib/libdvm.so
I/DEBUG ( 1701): #25 pc 00008e1c /system/bin/dexopt
I/DEBUG ( 1701): #26 pc 00008ed2 /system/bin/dexopt
I/DEBUG ( 1701): #27 pc 0000bf66 /system/lib/libc.so
I/DEBUG ( 1701): #28 pc b00016d0 /system/bin/linker
I/DEBUG ( 1701): stack:
I/DEBUG ( 1701): becc55e0 400aa4c8 /dev/ashmem/mspace/dalvik-
heap/0 (deleted)
I/DEBUG ( 1701): becc55e4 ad0428f1 /system/lib/libdvm.so
I/DEBUG ( 1701): becc55e8 00000000
I/DEBUG ( 1701): becc55ec ad080be8 /system/lib/libdvm.so
I/DEBUG ( 1701): becc55f0 00000000
I/DEBUG ( 1701): becc55f4 ad080be8 /system/lib/libdvm.so
I/DEBUG ( 1701): becc55f8 0000034c
I/DEBUG ( 1701): becc55fc 00010008 [heap]
I/DEB



android is not booting with yaffs2 filesystem

by jack » Thu, 12 Nov 2009 14:12:02 GMT


 ello again,
at last i got it working..android home page is coming up..
after increasing the size of data partition to 31MB and deleting the /
data folder contains, i rebooted the system and android booted.

Hope this will help to other people who are facing (might face)
similar problem.

Regards,
Jack

On Nov 12, 9:59am, jack <alim.akh...@gmail.com> wrote:

--



Other Threads

1. managedQuery() terminating the application.

Hi,

I am trying to write a simple application that displays the contents
of Contacts content provider in the phone. So far, I have only one
statement in this program (pasted below) and all it does is tries to
get a cursor over the contacts list. However, when I run the
application in the emulator, I see the following run time error on the
emulator screen:

"Sorry! The application MyApp (process com.android.myapp) has stopped
unexpectedly. Please try again."

How do I start debugging this ? Is there any de{*filter*} that can help ?
Any logs that I can look at ? Here is my test application.

Thanks,
Sarath

import android.app.Activity;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.Contacts.People;

public class MyApp extends Activity {
    // array specifying which columns to return.
    private String[] projection = new String[] {
        People._ID,
        People.NAME,
        People.NUMBER,
    };
    Cursor managedCursor;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        managedCursor = managedQuery(People.CONTENT_URI,
                projection,
                null,
                null,
                People.NAME + " ASC");
    }

--~--~---------~--~----~------------~-------~--~----~

2. recommendaed packages/classes to learn about?

hi people,

thanks for all your kind advise so far. May I ask hat are the common
classes/packages should I learn about first to at list printIn some
stuff onto the screen?

are there any graph API in android?

Zi Yong
--~--~---------~--~----~------------~-------~--~----~

3. Question about the int bundle

4. Android Developer Challenge II

5. Undocumented Intents

6. How to post values using HttpURLConnection

7. List and Expandable List Combo