hi,
   i am still porting android 2.3.4 to omap3430 based palm-pre-plus, 
android 2.3.7 souce has patched VMPLIT_2G with  make 
TARGET_USES_2G_VM_SPLIT=true TARGET_ARCH_VARIANT=armv7-a 
ARCH_ARM_HAVE_TLS_REGISTER=true. But can not boot up.
   I have straced it, found ./init died after read "/default.prop" with 
SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x80000000}. Since 
si_addr=0x80000000, which is on KERNEL SPACE, maybe it is a kernel error? 

Any suggestion is appriciated.

strace log below:
-------------------------------------------------------
~ # ./astrace ./init
execve("./init", ["./init"], [/* 7 vars */]) = 0
gettid()                                = 542
set_tls(0x20188, 0x2014c, 0, 0x40, 0x1d754) = 0
open("/dev/urandom", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or 
directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2aaab000
mprotect(0x2aaab000, 4096, PROT_READ)   = 0
brk(0)                                  = 0x21000
brk(0x21000)                            = 0x21000
brk(0x23000)                            = 0x23000
umask(0)                                = 022
mkdir("/dev", 0755)                     = -1 EEXIST (File exists)
mkdir("/proc", 0755)                    = -1 EEXIST (File exists)
mkdir("/sys", 0755)                     = -1 EEXIST (File exists)
mount("tmpfs", "/dev", "tmpfs", 0, "mode=0755") = 0
mkdir("/dev/pts", 0755)                 = 0
mkdir("/dev/socket", 0755)              = 0
mount("devpts", "/dev/pts", "devpts", 0, NULL) = 0
mount("proc", "/proc", "proc", 0, NULL) = -1 EBUSY (Device or resource busy)
mount("sysfs", "/sys", "sysfs", 0, NULL) = -1 EBUSY (Device or resource 
busy)
mknod("/dev/__null__", S_IFCHR|0600, makedev(1, 3)) = 0
open("/dev/__null__", O_RDWR|O_LARGEFILE) = 3
unlink("/dev/__null__")                 = 0
dup2(3, 0)                              = 0
dup2(3, 1)                              = 1
dup2(3, 2)                              = 2
close(3)                                = 0
mknod("/dev/__kmsg__", S_IFCHR|0600, makedev(1, 11)) = 0
open("/dev/__kmsg__", O_WRONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
unlink("/dev/__kmsg__")                 = 0
open("/init.rc", O_RDONLY|O_LARGEFILE)  = 4
lseek(4, 0, SEEK_END)                   = 14749
lseek(4, 0, SEEK_SET)                   = 0
brk(0x26000)                            = 0x26000
read(4, "on early-init\n    start ueventd\n"..., 14749) = 14749
close(4)                                = 0
mprotect(0x2aaab000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0x2aaab000, 4096, PROT_READ)   = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(1, 3), ...}) = 0
brk(0x27000)                            = 0x27000
mprotect(0x2aaab000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0x2aaab000, 4096, PROT_READ)   = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 
0x7e9de9c0) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x28000)                            = 0x28000
brk(0x29000)                            = 0x29000
brk(0x2a000)                            = 0x2a000
open("/proc/cmdline", O_RDONLY|O_LARGEFILE) = 4
read(4, "root=/dev/nfs init=/linuxrc nfsr"..., 1023) = 353
close(4)                                = 0
chmod("/proc/cmdline", 0440)            = 0
open("/proc/cpuinfo", O_RDONLY|O_LARGEFILE) = 4
read(4, "Processor\t: ARMv7 Processor rev "..., 1023) = 715
close(4)                                = 0
open("/init.sirloin.rc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or 
directory)
brk(0x2b000)                            = 0x2b000
stat64("/sbin/ueventd", {st_mode=S_IFREG|0775, st_size=90084, ...}) = 0
fork()                                  = 543
clock_gettime(CLOCK_MONOTONIC, {132, 684763183}) = 0
poll(0x7e9dee44, 0, 0)                  = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {132, 688760986}) = 0
clock_gettime(CLOCK_MONOTONIC, {132, 689432373}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 701944580}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 714395751}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 726480712}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 738687744}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 751688232}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 764230957}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 775858154}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 788889160}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 801737060}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 814249267}) = 0
stat64("/dev/.coldboot_done", 0x7e9ded90) = -1 ENOENT (No such file or 
directory)
nanosleep({0, 10000000}, 0x7e9ded80)    = 0
clock_gettime(CLOCK_MONOTONIC, {132, 826608886}) = 0
stat64("/dev/.coldboot_done", {st_mode=S_IFREG, st_size=0, ...}) = 0
poll(0x7e9dee44, 0, 0)                  = 0 (Timeout)
open("/dev/__properties__", O_RDWR|O_CREAT|O_LARGEFILE, 0600) = 4
ftruncate(4, 32768)                     = 0
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = 0x2aaac000
close(4)                                = 0
open("/dev/__properties__", O_RDONLY|O_LARGEFILE) = 4
unlink("/dev/__properties__")           = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
open("/default.prop", O_RDONLY|O_LARGEFILE) = 5
lseek(5, 0, SEEK_END)                   = 118
lseek(5, 0, SEEK_SET)                   = 0
read(5, "#\n# ADDITIONAL_DEFAULT_PROPERTIE"..., 118) = 118
close(5)                                = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x80000000} ---
+++ killed by SIGSEGV +++
Segmentation fault
 

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to