hi all,
I am trying to boot android froyo from NAND flash on my DM368 board.
I am flashing NAND in this way ,I have created system and data
partions on nand flash with the help of this structure .
static struct mtd_partition davinci_nand_partitions[] = {
{
// UBL (a few copies) plus U-Boot
.name = "bootloader",
.offset = 0,
.size = 15 * NAND_BLOCK_SIZE,
.mask_flags = MTD_WRITEABLE, //force read-only
}, {
//U-Boot environment
.name = "params",
.offset = MTDPART_OFS_APPEND,
.size = 1 * NAND_BLOCK_SIZE,
.mask_flags = 0,
}, {
.name = "kernel",
.offset = MTDPART_OFS_APPEND,
.size = SZ_4M,
.mask_flags = 0,
},
{
.name = "system",
.offset = MTDPART_OFS_APPEND,
.size = SZ_96M,
.mask_flags = 0,
},
{
.name = "userdata",
.offset = MTDPART_OFS_APPEND,
.size = SZ_48M,
.mask_flags = 0,
},
{
.name = "cache",
.offset = MTDPART_OFS_APPEND,
.size = SZ_2M,
.mask_flags = 0,
},
}
to flash the system and data partioins ,i am booting the DM368 board
using NFS filesystem and mounting the partitions using the command
"mount -t yaffs2 /dev/mtdblock3 /mnt/nand " and untar the system.tar
and data.tar in their corrsponding partitions.
I have got the following problems when i am booting from nand
flash .here is the logcat msg.
D/skia ( 2207): ---- failed to open </system/fonts/DroidSans.ttf>
as a font
D/skia ( 2207): ---- failed to open </system/fonts/DroidSans-
Bold.ttf> as a font
D/skia ( 2207): ---- failed to open </system/fonts/DroidSerif-
Regular.ttf> as a font
D/skia ( 2207): ---- failed to open </system/fonts/DroidSerif-
Bold.ttf> as a font
D/skia ( 2207): ---- failed to open </system/fonts/DroidSerif-
Italic.ttf> as a font
D/skia ( 2207): ---- failed to open </system/fonts/DroidSerif-
BoldItalic.ttf> as a font
D/skia ( 2207): ---- failed to open </system/fonts/
DroidSansMono.ttf> as a font
I/DEBUG ( 1739): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 1739): Build fingerprint: 'generic/generic/generic/:2.2.1/
MASTER/eng.root.20110418.102426:eng/test-keys'
I/DEBUG ( 1739): pid: 2207, tid: 2207 >>> zygote <<<
I/DEBUG ( 1739): signal 11 (SIGSEGV), fault addr 00000004
I/DEBUG ( 1739): r0 ab214bb8 r1 00000000 r2 00000000 r3 00000060
I/DEBUG ( 1739): r4 00000000 r5 ab214bb8 r6 00000000 r7 ab211184
I/DEBUG ( 1739): r8 ab21112c r9 00000000 10 00000000 fp ab214410
I/DEBUG ( 1739): ip 000007a8 sp be891598 lr ab147e2c pc
ab147e50 cpsr 60000010
I/DEBUG ( 1739): #00 pc 00047e50 /system/lib/libskia.so
I/DEBUG ( 1739): #01 pc 00047fe0 /system/lib/libskia.so
I/DEBUG ( 1739): #02 pc 00098030 /system/lib/libskia.so
I/DEBUG ( 1739): #03 pc 0007a770 /system/lib/libskia.so
I/DEBUG ( 1739): #04 pc 0007ac14 /system/lib/libskia.so
I/DEBUG ( 1739): #05 pc 0007b458 /system/lib/libskia.so
I/DEBUG ( 1739): #06 pc 0004eed2 /system/lib/
libandroid_runtime.so
I/DEBUG ( 1739): #07 pc 00013974 /system/lib/libdvm.so
I/DEBUG ( 1739): #08 pc 0003de3c /system/lib/libdvm.so
I/DEBUG ( 1739): #09 pc 00037216 /system/lib/libdvm.so
I/DEBUG ( 1739): #10 pc 00018714 /system/lib/libdvm.so
I/DEBUG ( 1739): #11 pc 0001e8c4 /system/lib/libdvm.so
I/DEBUG ( 1739): #12 pc 0001d790 /system/lib/libdvm.so
I/DEBUG ( 1739): #13 pc 00053eec /system/lib/libdvm.so
I/DEBUG ( 1739): #14 pc 00054102 /system/lib/libdvm.so
I/DEBUG ( 1739): #15 pc 0005f198 /system/lib/libdvm.so
I/DEBUG ( 1739): #16 pc 0005f162 /system/lib/libdvm.so
I/DEBUG ( 1739): #17 pc 0005f162 /system/lib/libdvm.so
I/DEBUG ( 1739): #18 pc 0005f162 /system/lib/libdvm.so
I/DEBUG ( 1739): #19 pc 0005fb96 /request_suspend_state:
wakeup (0->0) at 663928713907 (2000-01-01 00:11:01.354032730 UTC)
system/lib/libdvm.so
I/DEBUG ( 1739): #20 pc 00058d30 /system/lib/libdvm.so
I/DEBUG ( 1739): #21 pc 0005af0c /system/lib/libdvm.so
I/DEBUG ( 1739): #22 pc 00018714 /sinit: untracked pid
2201 exited
ystem/lib/libdvm.so
I/DEBUG ( 1739): #23 pc 0001e8c4 /system/lib/libdvm.so
I/DEBUG ( 1739): #24 pc 0001d790 /system/lib/libdvm.so
I/DEBUG ( 1739): #25 pc 00053eec /system/lib/libdvm.so
I/DEBUG ( 1739): #26 pc 0004072c /system/lib/libdvm.so
I/DEBUG ( 1739): #27 pc 00034454 /system/lib/libdvm.so
I/DEBUG ( 1739): #28 pc 0002c930 /system/lib/
libandroid_runtime.so
I/DEBUG ( 1739): #29 pc 0002d85c /system/lib/
libandroid_runtime.so
I/DEBUG ( 1739): #30 pc 00008c86 /system/bin/app_process
I/DEBUG ( 1739): #31 pc 0000d362 /system/lib/libc.so
I/DEBUG ( 1739):
I/DEBUG ( 1739): code around pc:
I/DEBUG ( 1739): ab147e30 e28b3008 e3530060 e58d3004 1affff34
I/DEBUG ( 1739): ab147e40 e59db008 e59dc00c e08b000c e5902054
I/DEBUG ( 1739): ab147e50 e5923004 e3530000 0a000023 e59de00c
I/DEBUG ( 1739): ab147e60 e59d1034 e3a00000 e08b200e e082c101
I/DEBUG ( 1739): ab147e70 e58c0020 e5823018 eaffff07 e2862005
I/DEBUG ( 1739):
I/DEBUG ( 1739): code around lr:
I/DEBUG ( 1739): ab147e0c eb013de0 e5b81004 e3510000 1affffdd
I/DEBUG ( 1739): ab147e1c e59d6020 e1a04006 e59d0010 ebffa393
I/DEBUG ( 1739): ab147e2c e59db004 e28b3008 e3530060 e58d3004
I/DEBUG ( 1739): ab147e3c 1affff34 e59db008 e59dc00c e08b000c
I/DEBUG ( 1739): ab147e4c e5902054 e5923004 e3530000 0a000023
I/DEBUG ( 1739):
I/DEBUG ( 1739): stack:
I/DEBUG ( 1739): be891558 41105398 /dev/ashmem/dalvik-
LinearAlloc (deleted)
I/DEBUG ( 1739): be89155c ab212180 /system/lib/libskia.so
I/DEBUG ( 1739): be891560 00000001
I/DEBUG ( 1739): be891564 00000000
I/DEBUG ( 1739): be891568 000ac690 [heap]
I/DEBUG ( 1739): be89156c 0008db10 [heap]
I/DEBUG ( 1739): be891570 80287fc4 /system/lib/libdvm.so
I/DEBUG ( 1739): be891574 00000000
I/DEBUG ( 1739): be891578 ab214bb8 /system/lib/libskia.so
I/DEBUG ( 1739): be89157c 00000000
I/DEBUG ( 1739): be891580 ab211184 /system/lib/libskia.so
I/DEBUG ( 1739): be891584 ab21112c /system/lib/libskia.so
I/DEBUG ( 1739): be891588 00000000
I/DEBUG ( 1739): be89158c 00000000
I/DEBUG ( 1739): be891590 df002777
I/DEBUG ( 1739): be891594 e3a070ad
I/DEBUG ( 1739): #00 be891598 80287fc4 /system/lib/libdvm.so
I/DEBUG ( 1739): be89159c 00000060
I/DEBUG ( 1739): be8915a0 ab214410 /system/lib/libskia.so
I/DEBUG ( 1739): be8915a4 000007a8
I/DEBUG ( 1739): be8915a8 be8915dc [stack]
I/DEBUG ( 1739): be8915ac 0000026c
I/DEBUG ( 1739): be8915b0 ffffcd1c
I/DEBUG ( 1739): be8915b4 be8915d8 [stack]
I/DEBUG ( 1739): be8915b8 be8915e4 [stack]
I/DEBUG ( 1739): be8915bc 00000328
I/DEBUG ( 1739): be8915c0 ab1f4bc8 /system/lib/libskia.so
I/DEBUG ( 1739): be8915c4 ab1f4bd8 /system/lib/libskia.so
I/DEBUG ( 1739): be8915c8 ab214a40 /system/lib/libskia.so
I/DEBUG ( 1739): be8915cc 00000000
I/DEBUG ( 1739): be8915d0 be8915e4 [stack]
I/DEBUG ( 1739): be8915d4 00000000
I/DEBUG ( 1739): be8915d8 4003db68 /dev/ashmem/mspace/dalvik-
heap/zygote/0 (deleted)
I/DEBUG ( 1739): be8915dc ab1ec144 /system/lib/libskia.so
I/DEBUG ( 1739): be8915e0 425e139c /data/dalvik-cache/
system@[email protected]@classes.dex
I/DEBUG ( 1739): be8915e4 80287fc4 /system/lib/libdvm.so
I/DEBUG ( 1739): be8915e8 0000ccb0 [heap]
I/DEBUG ( 1739): be8915ec 400094b0 /dev/ashmem/mspace/dalvik-
heap/zygote/0 (deleted)
I/DEBUG ( 1739): be8915f0 0000ccb0 [heap]
I/DEBUG ( 1739): be8915f4 80248e0f /system/lib/libdvm.so
I/DEBUG ( 1739): be8915f8 80288d1c /system/lib/libdvm.so
I/DEBUG ( 1739): be8915fc 4003dad0 /dev/ashmem/mspace/dalvik-
heap/zygote/0 (deleted)
I/DEBUG ( 1739): be891600 80287fc4 /system/lib/libdvm.so
I/DEBUG ( 1739): be891604 80258c29 /system/lib/libdvm.so
I/DEBUG ( 1739): be891608 00000000
I/DEBUG ( 1739): be89160c afd103f0 /system/lib/libc.so
I/DEBUG ( 1739): be891610 00012258 [heap]
I/DEBUG ( 1739): be891614 80287fc4 /system/lib/libdvm.so
I/DEBUG ( 1739): be891618 000b9c14
I/DEBUG ( 1739): be89161c 000b9c1c
I/DEBUG ( 1739): be891620 00000000
I/DEBUG ( 1739): be891624 00000000
I/DEBUG ( 1739): be891628 4104bdfc
I/DEBUG ( 1739): be89162c de847d5c
I/DEBUG ( 1739): be891630 00035f98 [heap]
I/DEBUG ( 1739): be891634 ab214410 /system/lib/libskia.so
I/DEBUG ( 1739): be891638 000007a8
I/DEBUG ( 1739): be89163c 00000000
I/DEBUG ( 1739): be891640 00000000
I/DEBUG ( 1739): be891644 ab214bb8 /system/lib/libskia.so
I/DEBUG ( 1739): be891648 00000000
I/DEBUG ( 1739): be89164c 00000000
I/DEBUG ( 1739): be891650 4003fa28 /dev/ashmem/mspace/dalvik-
heap/zygote/0 (deleted)
I/DEBUG ( 1739): be891654 ab147fe4 /system/lib/libskia.so
I/DEBUG ( 1739): #01 be891658 ab214410 /system/lib/libskia.so
I/DEBUG ( 1739): be89165c 00000cdc
I/DEBUG ( 1739): be891660 ab2150ec
I/DEBUG ( 1739): be891664 00000002
I/DEBUG ( 1739): be891668 00000000
I/DEBUG ( 1739): be89166c 00000000
I/DEBUG ( 1739): be891670 41400000
I/DEBUG ( 1739): be891674 ab198034 /system/lib/libskia.so
I/ServiceManager( 1736): service 'media.audio_flinger' died
I/ServiceManager( 1736): service 'media.player' died
I/ServiceManager( 1736): service 'media.camera' died
I/ServiceManager( 1736): service 'media.audio_policy' died
1.this logcat messages keep on repeating .
2. when i restart the board ,yaffss driver is not able to mount the
system and data partitions and the board hangs at the
point ,attempting to mount /dev/mtdblock3
3. seems like the yaffs2 partitions got corrupted and cant be mounted
next time.
4. i have given full permissions to the /system/fonts directory ,but
this didnt solve my problem.
can anyone help me in understanding what exactly causing this
problem .
Thanks,
Siva.
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting