initプロセスからのServiceManagerの起動問題について(Android2.3 GingerBread)

1,212 views
Skip to first unread message

doimsr

unread,
Sep 26, 2012, 8:16:12 AM9/26/12
to android-emb...@googlegroups.com
みなさん

こんにちは。
doimsrと申します。

私は今Coretex-A9 MPの搭載されたカスタムボード上へ
Android2.3をポーティングしているのですが、
init.rcから起動されるSerivceManagerが起動に失敗し
4回目でRebootという問題に遭遇しております。

ポーティングをしているAndroidは、
PandaBoard上で動作確認済みのAndroid2.3、Linux2.6.35+となります。
これを私のカスタムボード上にポーティングするため、
Linuxカーネルに手を入れております。

Androidに関しては手を入れておりません。


WEBを見ている限り同様の問題があるようですが、
具体的な解決方法が分からず困っております。

何かアドバイスを頂けますと幸いです。
よろしくお願いいたします。


【ログ抜粋※init.rcのLoglevelをあげて動作ログを収集】
Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpuset
Linux version 2.6.35 (root@ubuntu) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #228 SMP Mon Sep 24 16:05:20 JST 2012
CPU: ARMv7 Processor [412fc092] revision 2 (ARMv7), cr=10c5387f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: My CustomBoard
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writealloc
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
PERCPU: Embedded 7 pages/cpu @80959000 s4576 r8192 d15904 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,57600 mem=512M@0x0 root=/dev/mmcblk0p1 init=/init vram=32M rootdelay=1 rootwait=1 androidboot.console=ttyS0
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 514252k/514252k available, 10036k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xa0800000 - 0xf8000000   (1400 MB)
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .init : 0x80008000 - 0x8002d000   ( 148 kB)
      .text : 0x8002d000 - 0x8041a724   (4022 kB)
      .data : 0x8041c000 - 0x80441160   ( 149 kB)
       .bss : 0x80441184 - 0x80554fc4   (1104 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:256
Console: colour dummy device 80x30
Calibrating delay loop... 23.70 BogoMIPS (lpj=118528)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
twd_timer_setup: no clock found
Calibrating local timer... 20.57MHz.
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
CPU1: failed to come online
Brought up 1 CPUs
SMP: Total of 1 processors activated (23.70 BogoMIPS).
devtmpfs: initialized
NET: Registered protocol family 16
hw-breakpoint: debug architecture 0x4 unsupported.
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer3
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
ashmem: initialized
NTFS driver 2.1.30 [Flags: R/W].
JFFS2 version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
msgmni has been set to 1004
io scheduler noop registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xff902000 (irq = 135) is a SOCFPGA5XS1 DWAPB
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xff903000 (irq = 136) is a SOCFPGA5XS1 DWAPB
brd: module loaded
customboard_qspi : bits per word 8, chip select 1, speed 108000000 KHz
customboard_mtd spi2.1: n25q128 (16384 Kbytes)
customboard_qspi : bits per word 8, chip select 5, speed 108000000 KHz
customboard_mtd spi2.5: n25q128 (16384 Kbytes)
customboard_qspi customboard_qspi: customboard QSPI controller driver
STMMAC driver:
        platform registration...
        done!
        DWMAC1000 - user ID: 0x10, Synopsys ID: 0x34
        Enhanced descriptor structure
        no valid MAC address;please, use ifconfig or nwhwconfig!
        eth0 - (dev. name: stmmaceth - id: 0, IRQ #114
        IO base addr: 0xa085c000)
STMMAC MII Bus: probed
eth0: PHY ID 00000000 at 0 IRQ -2 (0:00) active
eth0: PHY ID 00000000 at 1 IRQ 0 (0:01)
eth0: PHY ID 00000000 at 2 IRQ 0 (0:02)
eth0: PHY ID 00000000 at 3 IRQ 0 (0:03)
eth0: PHY ID 00000000 at 4 IRQ 0 (0:04)
eth0: PHY ID 00000000 at 5 IRQ 0 (0:05)
eth0: PHY ID 00000000 at 6 IRQ 0 (0:06)
eth0: PHY ID 00000000 at 7 IRQ 0 (0:07)
eth0: PHY ID 00000000 at 8 IRQ 0 (0:08)
eth0: PHY ID 00000000 at 9 IRQ 0 (0:09)
eth0: PHY ID 00000000 at 10 IRQ 0 (0:0a)
eth0: PHY ID 00000000 at 11 IRQ 0 (0:0b)
eth0: PHY ID 00000000 at 12 IRQ 0 (0:0c)
eth0: PHY ID 00000000 at 13 IRQ 0 (0:0d)
eth0: PHY ID 00000000 at 14 IRQ 0 (0:0e)
eth0: PHY ID 00000000 at 15 IRQ 0 (0:0f)
eth0: PHY ID 00000000 at 16 IRQ 0 (0:10)
eth0: PHY ID 00000000 at 17 IRQ 0 (0:11)
eth0: PHY ID 00000000 at 18 IRQ 0 (0:12)
eth0: PHY ID 00000000 at 19 IRQ 0 (0:13)
eth0: PHY ID 00000000 at 20 IRQ 0 (0:14)
eth0: PHY ID 00000000 at 21 IRQ 0 (0:15)
eth0: PHY ID 00000000 at 22 IRQ 0 (0:16)
eth0: PHY ID 00000000 at 23 IRQ 0 (0:17)
eth0: PHY ID 00000000 at 24 IRQ 0 (0:18)
eth0: PHY ID 00000000 at 25 IRQ 0 (0:19)
eth0: PHY ID 00000000 at 26 IRQ 0 (0:1a)
eth0: PHY ID 00000000 at 27 IRQ 0 (0:1b)
eth0: PHY ID 00000000 at 28 IRQ 0 (0:1c)
eth0: PHY ID 00000000 at 29 IRQ 0 (0:1d)
eth0: PHY ID 00000000 at 30 IRQ 0 (0:1e)
eth0: PHY ID 00000000 at 31 IRQ 0 (0:1f)
STMMAC driver:
        platform registration...
        done!
        DWMAC1000 - user ID: 0x10, Synopsys ID: 0x34
        Enhanced descriptor structure
        no valid MAC address;please, use ifconfig or nwhwconfig!
        eth1 - (dev. name: stmmaceth - id: 1, IRQ #115
        IO base addr: 0xa0860000)
STMMAC MII Bus: probed
eth1: PHY ID 00000000 at 0 IRQ -2 (1:00) active
eth1: PHY ID 00000000 at 1 IRQ 0 (1:01)
eth1: PHY ID 00000000 at 2 IRQ 0 (1:02)
eth1: PHY ID 00000000 at 3 IRQ 0 (1:03)
eth1: PHY ID 00000000 at 4 IRQ 0 (1:04)
eth1: PHY ID 00000000 at 5 IRQ 0 (1:05)
eth1: PHY ID 00000000 at 6 IRQ 0 (1:06)
eth1: PHY ID 00000000 at 7 IRQ 0 (1:07)
eth1: PHY ID 00000000 at 8 IRQ 0 (1:08)
eth1: PHY ID 00000000 at 9 IRQ 0 (1:09)
eth1: PHY ID 00000000 at 10 IRQ 0 (1:0a)
eth1: PHY ID 00000000 at 11 IRQ 0 (1:0b)
eth1: PHY ID 00000000 at 12 IRQ 0 (1:0c)
eth1: PHY ID 00000000 at 13 IRQ 0 (1:0d)
eth1: PHY ID 00000000 at 14 IRQ 0 (1:0e)
eth1: PHY ID 00000000 at 15 IRQ 0 (1:0f)
eth1: PHY ID 00000000 at 16 IRQ 0 (1:10)
eth1: PHY ID 00000000 at 17 IRQ 0 (1:11)
eth1: PHY ID 00000000 at 18 IRQ 0 (1:12)
eth1: PHY ID 00000000 at 19 IRQ 0 (1:13)
eth1: PHY ID 00000000 at 20 IRQ 0 (1:14)
eth1: PHY ID 00000000 at 21 IRQ 0 (1:15)
eth1: PHY ID 00000000 at 22 IRQ 0 (1:16)
eth1: PHY ID 00000000 at 23 IRQ 0 (1:17)
eth1: PHY ID 00000000 at 24 IRQ 0 (1:18)
eth1: PHY ID 00000000 at 25 IRQ 0 (1:19)
eth1: PHY ID 00000000 at 26 IRQ 0 (1:1a)
eth1: PHY ID 00000000 at 27 IRQ 0 (1:1b)
eth1: PHY ID 00000000 at 28 IRQ 0 (1:1c)
eth1: PHY ID 00000000 at 29 IRQ 0 (1:1d)
eth1: PHY ID 00000000 at 30 IRQ 0 (1:1e)
eth1: PHY ID 00000000 at 31 IRQ 0 (1:1f)
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-onetouch
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mousedev: PS/2 mouse device common for all mice
dw_mmc dw_mmc.0: Using internal DMA controller.
dw_mmc dw_mmc.0: DW MMC controller at irq 124, 32 bit host data width
logger: created 256K log 'log_main'
logger: created 256K log 'log_events'
logger: created 256K log 'log_radio'
logger: created 256K log 'log_system'
oprofile: using arm/armv7-ca9
TCP cubic registered
mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 25000000HZ div = 1)
mmc0: new high speed MMC card at address 0001
NET: Registered protocol family 10
NET: Registered protocol family 17
NET: Registered protocol family 15
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
ThumbEE CPU extension supported.
Registering SWP/SWPB emulation handler
mmcblk0: mmc0:0001 SDM064 512 MiB
 mmcblk0: p1
Waiting 1sec before mounting root device...
EXT2-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 179:1.
Freeing init memory: 148K
init: /init.rc: 154: invalid option 'root'
init: cannot open '/initlogo.rle'
init: command 'loglevel' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'symlink' r=0
init: command 'symlink' r=0
init: command 'symlink' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mount' r=-1
init: command 'mkdir' r=0
init: command 'symlink' r=0
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mount' r=0
init: command 'mkdir' r=0
init: command 'mount' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=-2
init: command 'write' r=-2
init: command 'write' r=-2
init: command 'write' r=0
init: command 'mkdir' r=0
init: command 'mount' r=-1
init: command 'chown' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=0
init: command 'mkdir' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=0
init: command 'mkdir' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=0
init: processing action 0x27f98 (fs)
init: mtd partition 0, n25q128_cs1
init: mtd partition 1, n25q128_cs5
init: command 'mount' r=-1
init: command 'mount' r=-1
init: command 'mount' r=-1
init: command 'mount' r=-1
init: processing action 0x28080 (post-fs)
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'mkdir' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'copy' r=-1
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'copy' r=-1
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=-2
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'chmod' r=0
init: command 'chmod' r=-2
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'mkdir' r=0
init: command 'mkdir' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: processing action 0x2a9d8 (property_service_init)
init: Created socket '/dev/socket/property_service' with mode '666', user '0', group '0'
init: command 'property_service_init' r=0
init: processing action 0x2aa20 (signal_init)
init: command 'signal_init' r=0
init: processing action 0x2aa68 (check_startup)
init: command 'check_startup' r=0
init: processing action 0x28878 (boot)
init: command 'ifup' r=0
init: command 'hostname' r=0
init: command 'domainname' r=0
init: command 'setrlimit' r=0
<3>t:  poll  ufds[fdcount].revents = 2
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chmod' r=0
<3>t:  poll  ufds[fdcount].events = 2396
init: command 'chmod' r=0
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'chown' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: starting 'servicemanager'
init: starting 'vold'
init: starting 'netd'
init: starting 'debuggerd'
init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: starting 'ril-daemon'
init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
init: starting 'zygote'
init: starting 'media'
init: starting 'dbus'
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: Created socket '/dev/socket/dbus' with mode '660', user '1002', group '1002'
init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'
init: starting 'installd'
init: Created socket '/dev/socket/installd' with mode '600', user '1000', group '1000'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: starting 'keystore'
init: command 'class_start' r=0
init: Created socket '/dev/socket/keystore' with mode '666', user '0', group '0'
init:  poll  ufds[fdcount].fd = 135500        ★poll()コール前
init:  poll  ufds[fdcount].events = 2396    ★poll()コール前
init:  poll  ufds[fdcount].revents = 2        ★poll()コール前
init:  poll  fd_count = 2                    ★poll()コール前
init:  poll  timeout = 0                    ★poll()コール前
                                            ★ココでpoll()がコールされる
init:  poll  nr = 1                            ★poll()コール後
                                             init.cのmain()内 poll()の戻り値が1になるためプロセスがKillされる。
                                             Pandaの動作はnr = 0と出ておりTimeoutしている。
init:  poll  ufds[fdcount].revents = 2
init:  poll  errno = 2
init: waitpid returned pid 885, status = 0000000b    ★ここでシグナルを受け取ってプロセスがKILLされる
init: process 'servicemanager', pid 885 exited
init: process 'servicemanager' killing any children in process group
init: service 'zygote' is being killed
init: starting 'zygote'
init: service 'media' is being killed
init: starting 'media'
init: waitpid returned pid 886, status = 0000000b
init: process 'vold', pid 886 exited
init: process 'vold' killing any children in process group
init: waitpid returned pid 887, status = 0000000b
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: process 'netd', pid 887 exited
init: process 'netd' killing any children in process group
init: waitpid returned pid 888, status = 0000000b
init: process 'debuggerd', pid 888 exited
init: process 'debuggerd' killing any children in process group
init: waitpid returned pid 889, status = 0000000b
init: process 'ril-daemon', pid 889 exited
init: process 'ril-daemon' killing any children in process group
init: waitpid returned pid 890, status = 0000000b
init: untracked pid 890 exited
init: waitpid returned pid 891, status = 0000000b
init: untracked pid 891 exited
init: waitpid returned pid 892, status = 0000000b
init: process 'dbus', pid 892 exited
init: process 'dbus' killing any children in process group
init: waitpid returned pid 893, status = 0000000b
init: process 'installd', pid 893 exited
init: process 'installd' killing any children in process group
init: waitpid returned pid 894, status = 0000000b
init: process 'keystore', pid 894 exited
init: process 'keystore' killing any children in process group
init: waitpid returned pid 895, status = 0000000b
init: process 'zygote', pid 895 exited
init: process 'zygote' killing any children in process group
request_suspend_state: wakeup (3->0) at 8134437545 (1970-01-01 00:00:08.127531254 UTC)
init: service 'media' is being killed
init: starting 'media'
init: starting 'netd'
init: waitpid returned pid 896, status = 0000000b
init: untracked pid 896 exited
init: processing action 0x2aab0 (queue_propety_triggers)
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: command 'queue_propety_triggers' r=0
init: waitpid returned pid 897, status = 0000000b
init: process 'media', pid 897 exited
init: process 'media' killing any children in process group
init: waitpid returned pid 898, status = 0000000b
init: process 'netd', pid 898 exited
init: process 'netd' killing any children in process group
init: processing action 0x29538 (property:ro.secure=0)
init: starting 'console'
init: command 'start' r=0
init: processing action 0x29690 (property:persist.service.adb.enable=1)
init: starting 'adbd'
init: command 'start' r=0
init: waitpid returned pid 899, status = 0000000b
init: process 'console', pid 899 exited
init: process 'console' killing any children in process group
init: starting 'servicemanager'
init: starting 'vold'
init: starting 'debuggerd'
init: starting 'ril-daemon'
init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
init: starting 'dbus'
init: starting 'installd'
init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'
init: Created socket '/dev/socket/dbus' with mode '660', user '1002', group '1002'
init: Created socket '/dev/socket/installd' with mode '600', user '1000', group '1000'
init: waitpid returned pid 903, status = 0000000b
init: process 'servicemanager', pid 903 exited
init: process 'servicemanager' killing any children in process group
init: starting 'zygote'
init: starting 'media'
init: waitpid returned pid 904, status = 0000000b
init: process 'vold', pid 904 exited
init: process 'vold' killing any children in process group
init: waitpid returned pid 905, status = 0000000b
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: process 'debuggerd', pid 905 exited
init: process 'debuggerd' killing any children in process group
init: waitpid returned pid 906, status = 0000000b
init: process 'ril-daemon', pid 906 exited
init: process 'ril-daemon' killing any children in process group
init: waitpid returned pid 907, status = 0000000b
init: process 'dbus', pid 907 exited
init: process 'dbus' killing any children in process group
init: waitpid returned pid 909, status = 0000000b
init: process 'installd', pid 909 exited
init: process 'installd' killing any children in process group
init: waitpid returned pid 910, status = 0000000b
init: process 'zygote', pid 910 exited
init: process 'zygote' killing any children in process group
request_suspend_state: wakeup (0->0) at 12445125045 (1970-01-01 00:00:12.438218754 UTC)
init: service 'media' is being killed
init: starting 'media'
init: starting 'netd'
init: waitpid returned pid 911, status = 0000000b
init: untracked pid 911 exited
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: waitpid returned pid 912, status = 0000000b
init: process 'media', pid 912 exited
init: process 'media' killing any children in process group
init: waitpid returned pid 913, status = 0000000b
init: process 'netd', pid 913 exited
init: process 'netd' killing any children in process group
init: starting 'console'
init: starting 'keystore'
init: Created socket '/dev/socket/keystore' with mode '666', user '0', group '0'
init: waitpid returned pid 914, status = 0000000b
init: process 'console', pid 914 exited
init: process 'console' killing any children in process group
init: waitpid returned pid 915, status = 0000000b
init: process 'keystore', pid 915 exited
init: process 'keystore' killing any children in process group
init: starting 'servicemanager'
init: starting 'vold'
init: starting 'netd'
init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
init: starting 'debuggerd'
init: starting 'ril-daemon'
init: starting 'zygote'
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
init: starting 'media'
init: starting 'dbus'
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'
init: Created socket '/dev/socket/dbus' with mode '660', user '1002', group '1002'
init: starting 'installd'
init: Created socket '/dev/socket/installd' with mode '600', user '1000', group '1000'
init: waitpid returned pid 916, status = 0000000b
init: process 'servicemanager', pid 916 exited
init: process 'servicemanager' killing any children in process group
init: service 'zygote' is being killed
init: starting 'zygote'
init: service 'media' is being killed
init: starting 'media'
init: waitpid returned pid 917, status = 0000000b
init: process 'vold', pid 917 exited
init: process 'vold' killing any children in process group
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: waitpid returned pid 918, status = 0000000b
init: process 'netd', pid 918 exited
init: process 'netd' killing any children in process group
init: waitpid returned pid 919, status = 0000000b
init: process 'debuggerd', pid 919 exited
init: process 'debuggerd' killing any children in process group
init: waitpid returned pid 920, status = 0000000b
init: process 'ril-daemon', pid 920 exited
init: process 'ril-daemon' killing any children in process group
init: waitpid returned pid 922, status = 0000000b
init: untracked pid 922 exited
init: waitpid returned pid 923, status = 0000000b
init: untracked pid 923 exited
init: waitpid returned pid 924, status = 0000000b
init: process 'dbus', pid 924 exited
init: process 'dbus' killing any children in process group
init: waitpid returned pid 925, status = 0000000b
init: process 'installd', pid 925 exited
init: process 'installd' killing any children in process group
init: waitpid returned pid 926, status = 0000000b
init: process 'zygote', pid 926 exited
init: process 'zygote' killing any children in process group
request_suspend_state: wakeup (0->0) at 17789937546 (1970-01-01 00:00:17.783031256 UTC)
init: service 'media' is being killed
init: starting 'media'
init: starting 'netd'
init: waitpid returned pid 927, status = 0000000b
init: untracked pid 927 exited
init: waitpid returned pid 928, status = 0000000b
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: process 'media', pid 928 exited
init: process 'media' killing any children in process group
init: waitpid returned pid 929, status = 0000000b
init: process 'netd', pid 929 exited
init: process 'netd' killing any children in process group
init: starting 'console'
init: starting 'keystore'
init: Created socket '/dev/socket/keystore' with mode '666', user '0', group '0'
init: waitpid returned pid 930, status = 0000000b
init: process 'console', pid 930 exited
init: process 'console' killing any children in process group
init: waitpid returned pid 931, status = 0000000b
init: process 'keystore', pid 931 exited
init: process 'keystore' killing any children in process group
init: starting 'servicemanager'
init: starting 'vold'
init: starting 'netd'
init: starting 'debuggerd'
init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: starting 'ril-daemon'
init: starting 'zygote'
init: starting 'media'
init: starting 'dbus'
init: starting 'installd'
init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: Created socket '/dev/socket/dbus' with mode '660', user '1002', group '1002'
init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'
init: starting 'keystore'
init: Created socket '/dev/socket/installd' with mode '600', user '1000', group '1000'
init: Created socket '/dev/socket/keystore' with mode '666', user '0', group '0'
init: waitpid returned pid 932, status = 0000000b
init: process 'servicemanager', pid 932 exited
init: process 'servicemanager' killing any children in process group
init: service 'zygote' is being killed
init: starting 'zygote'
init: service 'media' is being killed
init: starting 'media'
init: waitpid returned pid 933, status = 0000000b
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: process 'vold', pid 933 exited
init: process 'vold' killing any children in process group
init: waitpid returned pid 934, status = 0000000b
init: process 'netd', pid 934 exited
init: process 'netd' killing any children in process group
init: waitpid returned pid 935, status = 0000000b
init: process 'debuggerd', pid 935 exited
init: process 'debuggerd' killing any children in process group
init: waitpid returned pid 936, status = 0000000b
init: process 'ril-daemon', pid 936 exited
init: process 'ril-daemon' killing any children in process group
init: waitpid returned pid 937, status = 0000000b
init: untracked pid 937 exited
init: waitpid returned pid 938, status = 0000000b
init: untracked pid 938 exited
init: waitpid returned pid 939, status = 0000000b
init: process 'dbus', pid 939 exited
init: process 'dbus' killing any children in process group
init: waitpid returned pid 941, status = 0000000b
init: process 'installd', pid 941 exited
init: process 'installd' killing any children in process group
init: waitpid returned pid 942, status = 0000000b
init: process 'keystore', pid 942 exited
init: process 'keystore' killing any children in process group
init: waitpid returned pid 943, status = 0000000b
init: process 'zygote', pid 943 exited
init: process 'zygote' killing any children in process group
request_suspend_state: wakeup (0->0) at 23149562547 (1970-01-01 00:00:23.142656256 UTC)
init: service 'media' is being killed
init: starting 'media'
init: starting 'netd'
init: waitpid returned pid 944, status = 0000000b
init: untracked pid 944 exited
init: waitpid returned pid 945, status = 0000000b
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: process 'media', pid 945 exited
init: process 'media' killing any children in process group
init: starting 'console'
init: waitpid returned pid 946, status = 0000000b
init: process 'netd', pid 946 exited
init: process 'netd' killing any children in process group
init: waitpid returned pid 947, status = 0000000b
init: process 'console', pid 947 exited
init: process 'console' killing any children in process group
init: starting 'servicemanager'
init: starting 'vold'
init: starting 'debuggerd'
init: starting 'ril-daemon'
init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
init: starting 'dbus'
init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'
init: Created socket '/dev/socket/dbus' with mode '660', user '1002', group '1002'
init: process 'servicemanager', pid 948 exited
init: process 'servicemanager' killing any children in process group
init: critical process 'servicemanager' exited 4 times in 4 minutes; rebooting into recovery mode
Restarting system with command 'recovery'.
Reboot failed -- System halted

Kobayashi Tetsuyuki

unread,
Sep 26, 2012, 9:54:16 AM9/26/12
to android-emb...@googlegroups.com
こんにちは。

2012/9/26 doimsr <droi...@gmail.com>:

> init: poll ufds[fdcount].fd = 135500 ★poll()コール前
> init: poll ufds[fdcount].events = 2396 ★poll()コール前
> init: poll ufds[fdcount].revents = 2 ★poll()コール前
> init: poll fd_count = 2 ★poll()コール前
> init: poll timeout = 0 ★poll()コール前
> ★ココでpoll()がコールされる
> init: poll nr = 1 ★poll()コール後
>  init.cのmain()内
> poll()の戻り値が1になるためプロセスがKillされる。
>  Pandaの動作はnr =
> 0と出ておりTimeoutしている。
> init: poll ufds[fdcount].revents = 2
> init: poll errno = 2
> init: waitpid returned pid 885, status = 0000000b
> ★ここでシグナルを受け取ってプロセスがKILLされる
> init: process 'servicemanager', pid 885 exited
> init: process 'servicemanager' killing any children in process group
> init: service 'zygote' is being killed
> init: starting 'zygote'
> init: service 'media' is being killed
> init: starting 'media'

initがservicemanagerをkillしたのではなくて、servicemanagerが終了したという通知を
signalで受け取って、initはその後始末のためにwaitpidを呼んでいます。
正常動作するPandaではinitにプロセスの終了を通知が来ないのでpoll()がタイムアウトしています。

adbdとdebuggerdは生きているようですから、consoleまたはadbから logcatを実行すれば
servicemanagerが落ちたときのクラッシュダンプが見られるのではないでしょうか。


http://blog.kmckk.com/archives/3137191.html
http://blog.kmckk.com/archives/3505138.html

l.b.

unread,
Sep 26, 2012, 10:04:41 AM9/26/12
to android-emb...@googlegroups.com

 村上です。

 カーネルのログで1つ気になったのですが、 "android_init" といった
Android Feature関連のログが出力されていません。

 使用したカーネルにAndroidに必要なドライバが入っておらず、
ServiceManagerがBinderをopenしようとして出来ずに異常終了、でinitに通知されている
ということはないでしょうか。

 kobaさんの言う通り、logcatでServiceManagerの出力するログを確認してServiceManagerで
何が起きているかを見るのがよいかと思います。

 では。

mizmit1222

unread,
Sep 26, 2012, 10:02:20 PM9/26/12
to Android-Embedded-Japan
みずのです。

村上さんの指摘どおり、binder等のドライバが組み込まれていない
ようですね。カーネルのmake menuconfigを見て、stagingの
Android関連が入っているかどうか、確認するといいと思います。

ashmemは入ってるようですが。

ではでは。
> ...
>
> もっと読む ≫

doimsr

unread,
Sep 27, 2012, 1:08:02 AM9/27/12
to android-emb...@googlegroups.com
kobaさん、村上さん、みずのさん

アドバイスありがとうございます。
現在ポーティングしている環境が非常にPoorな環境なのでadb接続できるか、
正直微妙ではあるところではあるのですが、
まずはServiceManagerの動きをLocgcatで追ってみたいと思います。

またログ上にandroid_initやbinderのドライバ初期化などが見当たらず。、
入っていないのではないかという点ですが、
ベースとして使っているPandaBoardのGingerBreadのログにも
そのようなログは出力されていない状況です。

kobaさんが投稿されたログには出力されているようなのです。
https://groups.google.com/forum/#!searchin/android-embedded-japan/android_init/android-embedded-japan/CWWdkAh_YaU/3aYSJlvnFDIJ

Makeの状況を見る限りはAndroid関連のドライバは組み込まれている様子なのですが、
このログは必ずでるものなのでしょうか。

無知で恐縮ですがご教授いただけますと幸いです。

よろしくお願いいたします。

[PanadaBoardのLog]
Texas Instruments X-Loader 1.41 (Aug 31 2010 - 18:03:49)
mmc read: Invalid size
Starting OS Bootloader from MMC/SD1 ...


U-Boot 1.1.4-gcebe815a-dirty (Sep 24 2010 - 15:03:03)

Load address: 0x80e80000
DRAM:  512 MB
Flash:  0 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   KS8851SNL
Hit any key to stop autoboot:  0
PANDA #
PANDA #
PANDA #
PANDA # setenv bootargs 'console=ttyO2,115200n8 mem=463M root=/dev/mmcblk0p3 rw rootfstype=ext3 rootwait noinitrd init=/init vram="32M" omapfb.vram="0:24M"';mmcinit 0;fatload mmc 0 0x80000000 uimage; bootm 80000000
mmc read: Invalid size

3083892 bytes read
## Booting image at 80000000 ...
   Image Name:   Linux-2.6.35-g109142b
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3083828 Bytes =  2.9 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...


Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35-g109142b (root@ubuntu-vm) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Thu Sep 20 10:38:41 JST 2012
CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP4430 Panda Board

Memory policy: ECC disabled, Data cache writealloc
***********************
OMAP4430 ES2.1 type(GP)
id-code  (3b95c02f)
Die-id   (21F80003-00000001-0A6CBF8B-0C00D)
Prod-id  (0001B95C-000300F0)
***********************
SRAM: Mapped pa 0x40300000 to va 0xfe400000 size: 0x100000
FIXME: omap44xx_sram_init not implemented
Reserving 33554432 bytes SDRAM for VRAM
PERCPU: Embedded 6 pages/cpu @c2a8a000 s3936 r8192 d12448 u65536
pcpu-alloc: s3936 r8192 d12448 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 117602
Kernel command line: console=ttyO2,115200n8 mem=463M root=/dev/mmcblk0p3 rw rootfstype=ext3 rootwait noinitrd init=/init vram="32M" omapfb.vram="0:24M"

PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 463MB = 463MB total
Memory: 430140k/430140k available, 43972k reserved, 0K highmem

Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xdd000000 - 0xf8000000   ( 432 MB)
    lowmem  : 0xc0000000 - 0xdcf00000   ( 463 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .init : 0xc0008000 - 0xc003f000   ( 220 kB)
      .text : 0xc003f000 - 0xc05ec000   (5812 kB)
      .data : 0xc05ec000 - 0xc063a540   ( 314 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:388
omap_hwmod: sys_32k_ck: missing clockdomain for sys_32k_ck.
omap_hwmod: l3_div_ck: missing clockdomain for l3_div_ck.
omap_hwmod: dpll_mpu_m2_ck: missing clockdomain for dpll_mpu_m2_ck.
omap_hwmod: mailbox: resetting
omap_hwmod: omap-mcpdm-dai: cannot be enabled (3)
omap_hwmod: mcspi1: resetting
omap_hwmod: mcspi2: resetting
omap_hwmod: mcspi3: resetting
omap_hwmod: mcspi4: resetting
omap_hwmod: mmc1: resetting
omap_hwmod: mmc2: resetting
omap_hwmod: mmc3: resetting
omap_hwmod: mmc4: resetting
omap_hwmod: mmc5: resetting
omap_hwmod: timer3: resetting
omap_hwmod: timer4: resetting
omap_hwmod: timer5: resetting
omap_hwmod: timer6: resetting
omap_hwmod: timer7: resetting
omap_hwmod: timer8: resetting
omap_hwmod: timer9: resetting
omap_hwmod: timer11: resetting
GPMC revision 6.0
 dmtimer.0: omap_dm_timer_probe:[id=0]
 dmtimer.0:  registered
 dmtimer.1: omap_dm_timer_probe:[id=1]
 dmtimer.1:  registered
 dmtimer.9: omap_dm_timer_probe:[id=9]
 dmtimer.9:  registered
OMAP clockevent source: GPTIMER1 at 32768 Hz

Console: colour dummy device 80x30
Calibrating delay loop... 2013.49 BogoMIPS (lpj=7864320)

pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Calibrating local timer... 491.14MHz.
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x0e470000
CPU1: Booted secondary processor
Brought up 2 CPUs
SMP: Total of 2 processors activated (3976.57 BogoMIPS).
devtmpfs: initialized
regulator: core version 0.5

NET: Registered protocol family 16
OMAP GPIO hardware version 0.1
PandaBoard Revision: 003
res->start = 49022000
res->start = 49024000
res->start = 49026000
res->start = 48096000
OMAP DMA hardware revision 0.0
dma dma.0: System DMA registered
HSI: device registered

bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_omap i2c_omap.1: bus 1 rev4.0 at 400 kHz
Skipping twl internal clock init and using bootloader value (unknown osc rate)
twl6030: PIH (irq 39) chaining IRQs 368..387
twl6030_usb twl6030_usb: Initialized TWL6030 USB module
regulator: VMMC: 1200 <--> 3000 mV at 3000 mV normal standby
regulator: VPP: 1800 <--> 2500 mV at 1900 mV normal standby
regulator: VANA: 2100 mV normal standby
regulator: VCXIO: 1800 mV normal standby
regulator: VDAC: 1800 mV normal standby
regulator: VUSB: 3300 mV normal standby
regulator: VAUX2_6030: 1200 <--> 2800 mV at 1800 mV normal standby
regulator: VAUX3_6030: 1000 <--> 3000 mV at 1200 mV normal standby
Advanced Linux Sound Architecture Driver Version 1.0.23.
Sangoma WANPIPE Router v1.1 (c) 1995-2000 Sangoma Technologies Inc.
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Switching to clocksource timer-32k
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.35-g109142b musb-hcd
usb usb1: SerialNumber: musb_hdrc
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb_hdrc musb_hdrc: USB Host mode controller at fc0ab000 using DMA, IRQ 124

NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 5, 196608 bytes)

TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
ipu-power ipu0: Test of writing to the device message log,done from ipu_pm_init
ipu-power initialized ipu, major: 251, minor: 0
sdp4430_wifi_init: start
omap-iommu omap-iommu.0: ducati registered
omap-iommu omap-iommu.1: tesla registered
iovmm-omap initialized ducati, major: 250, base-minor: 0
iovmm-omap initialized tesla, major: 250, base-minor: 1
dmtimer dmtimer.0: omap_dm_timer_probe:[id=0]
dmtimer dmtimer.0: omap2_dm_timer_enable: pm_runtime_get_sync FAILED
dmtimer dmtimer.1: omap_dm_timer_probe:[id=1]
dmtimer dmtimer.9: omap_dm_timer_probe:[id=9]
dmtimer dmtimer.2: omap_dm_timer_probe:[id=2]
dmtimer dmtimer.2:  registered
dmtimer dmtimer.3: omap_dm_timer_probe:[id=3]
dmtimer dmtimer.3:  registered
dmtimer dmtimer.4: omap_dm_timer_probe:[id=4]
dmtimer dmtimer.4:  registered
dmtimer dmtimer.5: omap_dm_timer_probe:[id=5]
dmtimer dmtimer.5:  registered
dmtimer dmtimer.6: omap_dm_timer_probe:[id=6]
dmtimer dmtimer.6:  registered
dmtimer dmtimer.7: omap_dm_timer_probe:[id=7]
dmtimer dmtimer.7:  registered
dmtimer dmtimer.8: omap_dm_timer_probe:[id=8]
dmtimer dmtimer.8:  registered
dmtimer dmtimer.10: omap_dm_timer_probe:[id=10]
dmtimer dmtimer.10:  registered
omap-remoteproc omap-remoteproc.0: omap_rproc_probe: adding rproc tesla
omap-remoteproc omap-remoteproc.0: omap-rproc initialized tesla, major: 249, base-minor: 0
omap-remoteproc omap-remoteproc.1: omap_rproc_probe: adding rproc ducati-proc0
omap-remoteproc omap-remoteproc.1: omap-rproc initialized ducati-proc0, major: 249, base-minor: 1
omap-remoteproc omap-remoteproc.2: omap_rproc_probe: adding rproc ducati-proc1
omap-remoteproc omap-remoteproc.2: omap-rproc initialized ducati-proc1, major: 249, base-minor: 2
ashmem: initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 840
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OMAP DSS rev 4.0
OMAP DISPC rev 4.0
OMAP DSI rev 3.0
OMAP DSI2 rev 3.0
Enter hdmi_init()
OMAP HDMI W1 rev 2.0
init_display
ENTER hdmi_panel_probe()
hdmi_panel_probe x_res= 1280 y_res = 800
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap-hsuart.0: ttyO0 at MMIO 0x4806a000 (irq = 104) is a OMAP UART0
omap-hsuart.1: ttyO1 at MMIO 0x4806c000 (irq = 105) is a OMAP UART1
omap-hsuart.2: ttyO2 at MMIO 0x48020000 (irq = 106) is a OMAP UART2
console [ttyO2] enabled
omap-hsuart.3: ttyO3 at MMIO 0x4806e000 (irq = 102) is a OMAP UART3
brd: module loaded
loop: module loaded
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver dm9601
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap ehci-omap: OMAP-EHCI Host Controller
ehci-omap ehci-omap: new USB bus registered, assigned bus number 2
ehci-omap ehci-omap: irq 109, io mem 0x4a064c00
ehci-omap ehci-omap: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: OMAP-EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.35-g109142b ehci_hcd
usb usb2: SerialNumber: ehci-omap
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
using rtc device, twl_rtc, for alarms
twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
twl_rtc twl_rtc: Power up reset detected.
twl_rtc twl_rtc: Enabling TWL-RTC.
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
Linux video capture interface: v2.00
virtual_battery: registered
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
logger: created 64K log 'log_main'

logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
logger: created 64K log 'log_system'
proc4430_drv_initializeModule
omap-devicehandler omap-devicehandler.0: omap_devh_probe: adding devh Tesla
omap-devh initialized Tesla, major: 240, base-minor: 0
omap-devicehandler omap-devicehandler.1: omap_devh_probe: adding devh SysM3
omap-devh initialized SysM3, major: 240, base-minor: 1
omap-devicehandler omap-devicehandler.2: omap_devh_probe: adding devh AppM3
omap-devh initialized AppM3, major: 240, base-minor: 2
SDP4430 SoC init
asoc: null-codec-dai <-> MultiMedia1 mapping ok
asoc: null-codec-dai <-> MultiMedia2 mapping ok
asoc: null-codec-dai <-> Voice mapping ok
asoc: null-codec-dai <-> Tones mapping ok
asoc: null-codec-dai <-> Vibra mapping ok
asoc: null-codec-dai <-> MODEM mapping ok
asoc: null-codec-dai <-> MultiMedia1 LP mapping ok
asoc: HDMI <-> hdmi-dai mapping ok
asoc: FM Digital <-> omap-mcbsp-dai.1 mapping ok
asoc: twl6040-dl1 <-> mcpdm-dl mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.0 mapping ok
asoc: twl6040-dl1 <-> mcpdm-dl1 mapping ok
asoc: twl6040-ul <-> mcpdm-ul1 mapping ok
asoc: twl6040-dl2 <-> mcpdm-dl2 mapping ok
asoc: twl6040-vib <-> mcpdm-vib mapping ok
asoc: Bluetooth <-> omap-mcbsp-dai.0 mapping ok
asoc: FM Digital <-> omap-mcbsp-dai.1 mapping ok
asoc: MODEM <-> omap-mcbsp-dai.1 mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.0 mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.1 mapping ok
asoc: dmic-hifi <-> omap-dmic-dai.2 mapping ok
input: SDP4430 Headset Jack as /devices/platform/soc-audio/sound/card0/input0
ALSA device list:
  #0: TI OMAP4 SDP4430 Board
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (6720 buckets, 26880 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ctnetlink v0.93: registering with nfnetlink.
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
Initializing XFRM netlink socket

NET: Registered protocol family 10
usb 2-1: new high speed USB device using ehci-omap and address 2
lo: Disabled Privacy Extensions
Mobile IPv6
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions

NET: Registered protocol family 17
NET: Registered protocol family 15
Bluetooth: L2CAP ver 2.14
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
ThumbEE CPU extension supported.
omap_hwmod: Initialize debugfs support
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 1
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SDHC card at address c111
mmcblk0: mmc0:c111 SM04G 3.69 GiB
 mmcblk0: p1 p2 p3
usb 2-1: New USB device found, idVendor=0424, idProduct=9514
usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 5 ports detected
Console: switching to colour frame buffer device 160x50
Temp_hsync = 700 , temp_vsync = 700 ,                           timing_hsync = 370, timing_vsync = 30Temp_hsync = 370 , temp_vsync = 370 ,                          timing_hsync = 370, timing_vsync = 30
omapdss HDMI: hot plug event 1
omapdss HDMI: error sending hot plug event 1 (-2)
regulator_init_complete: incomplete constraints, leaving VAUX3_6030 on
regulator_init_complete: incomplete constraints, leaving VAUX2_6030 on
regulator_init_complete: incomplete constraints, leaving VUSB on
regulator_init_complete: incomplete constraints, leaving VDAC on
regulator_init_complete: incomplete constraints, leaving VCXIO on
regulator_init_complete: incomplete constraints, leaving VANA on
regulator_init_complete: incomplete constraints, leaving VPP on
twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
omap_vout omap_vout: : registered and initialized video device 0
omap_vout omap_vout: : registered and initialized video device 1
omap_vout omap_vout: : registered and initialized video device 2
omap_wb: registered and initialized wb device 3 [v4l2]
EXT3-fs: barriers not enabled
usb 2-1.1: new high speed USB device using ehci-omap and address 3
usb 2-1.1: New USB device found, idVendor=0424, idProduct=ec00
usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 2-1.3: new low speed USB device using ehci-omap and address 4
usb 2-1.3: New USB device found, idVendor=192f, idProduct=0416
usb 2-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
usb 2-1.3: Product: USB Optical Mouse
input: USB Optical Mouse as /devices/platform/ehci-omap/usb2/2-1/2-1.3/2-1.3:1.0/input/input1
generic-usb 0003:192F:0416.0001: input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-ehci-omap-1.3/input0
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p3): using internal journal
EXT3-fs (mmcblk0p3): recovery complete
EXT3-fs (mmcblk0p3): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:3.
devtmpfs: mounted
Freeing init memory: 220K
init: /init.rc: 152: invalid option 'root'

init: cannot open '/initlogo.rle'
init: command 'loglevel' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'export' r=0
init: command 'symlink' r=-1
init: command 'symlink' r=-1
init: command 'symlink' r=-1

init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mount' r=-1
init: command 'mkdir' r=-17
init: command 'symlink' r=-1

init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mount' r=0
init: command 'mkdir' r=-17

init: command 'mount' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=-2
init: command 'write' r=-2
init: command 'write' r=0
init: command 'write' r=0

init: command 'mkdir' r=0
init: command 'mount' r=-1
init: command 'chown' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=0
init: command 'mkdir' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=0
init: command 'mkdir' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=0
init: processing action 0x26f98 (fs)

init: command 'mount' r=-1
init: command 'mount' r=-1
init: command 'mount' r=-1
init: command 'mount' r=-1
init: processing action 0x27080 (post-fs)

init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'mkdir' r=-17

init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'copy' r=-1
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'copy' r=-1
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'write' r=-2
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'chmod' r=0
init: command 'chmod' r=-2
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17

init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'mkdir' r=-17
init: command 'mkdir' r=-17
init: command 'chown' r=0
init: command 'chmod' r=0
init: command 'chown' r=0
init: command 'chmod' r=0
init: processing action 0x29c58 (property_service_init)

init: Created socket '/dev/socket/property_service' with mode '666', user '0', group '0'
init: command 'property_service_init' r=0
init: processing action 0x29ca0 (signal_init)
init: command 'signal_init' r=0
init: processing action 0x29ce8 (check_startup)
init: command 'check_startup' r=0
init: processing action 0x27878 (boot)

init: command 'ifup' r=0
init: command 'hostname' r=0
init: command 'domainname' r=0
init: command 'setrlimit' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'write' r=0
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chown' r=-2
init: command 'chmod' r=-2
init: command 'chmod' r=-2
init: command 'chmod' r=-2
init: command 'chmod' r=0
init: cannot find '/system/bin/pvrsrvinit', disabling 'pvrsrvinit'

init: starting 'servicemanager'
init: starting 'vold'
init: starting 'netd'
init: starting 'debuggerd'
init: starting 'ril-daemon'
init: starting 'zygote'
init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
init: Created socket '/dev/socket/netd' with mode '660', user '0', group '1000'
init: starting 'media'
init: starting 'dbus'
init: starting 'installd'
init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'
init: starting 'keystore'
init: command 'class_start' r=0
init: processing action 0x29a20 (boot)

init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: command 'setprop' r=0
init: processing action 0x29d30 (queue_propety_triggers)
init: command 'queue_propety_triggers' r=0
init: processing action 0x28618 (property:ro.secure=0)

init: starting 'console'
init: command 'start' r=0
init: processing action 0x28770 (property:persist.service.adb.enable=1)

init: starting 'adbd'
init: command 'start' r=0
init: Created socket '/dev/socket/zygote' with mode '666', user '0', group '0'
init: Created socket '/dev/socket/installd' with mode '600', user '1000', group '1000'
init: Created socket '/dev/socket/dbus' with mode '660', user '1002', group '1002'
init: Created socket '/dev/socket/keystore' with mode '666', user '0', group '0'
sh: can't access tty; job control turned off
# warning: `zygote' uses 32-bit capabilities (legacy support in use)
init: starting 'bootanim'
init: service 'bootanim' is being killed
init: waitpid returned pid 1245, status = 0000000f
init: process 'bootanim', pid 1245 exited


2012年9月27日木曜日 11時02分22秒 UTC+9 mizmit1222:

l.b.

unread,
Sep 27, 2012, 8:26:26 AM9/27/12
to android-emb...@googlegroups.com

 村上です。

>Makeの状況を見る限りはAndroid関連のドライバは組み込まれている様子なのですが、
>このログは必ずでるものなのでしょうか。

 AOSPのKernel-commonの3.x系とKernel-OMAPの2.6.39を見てみましたが、OMAPの方は
printkでログ出力しているところ無いですね、commonにはあるのですが。
 なので正常動作でもログ出力しなさそうです。

 外部からのADB接続が厳しければ、init.cなどでlogcatコマンドを叩いてSDカードに
ログ保存するようなコード仕込んだりしてみてはどうでしょう。

 では。

doimsr

unread,
Nov 4, 2012, 3:30:44 AM11/4/12
to android-emb...@googlegroups.com
皆様

こんばんは。
dmsrです。

1か月も立ってしってからの状況報告となり、
大変申し訳ございません。

現状のご報告となりますが、
なんとかServiveManagerの起動問題はクリアすることができました。
まだAndroidのホーム画面までは起動しておりませんが、
ほぼ起動処理最終局面まできているという段階です。

ここまで来るためにやってきたことは、
CPUのTLSやSMPなどの設定周りの合わせこみ、
ペリフェラル関連の合わせこみをしたという所です。
Linuxカーネルの差分で動作不良になっていたようです。

現在は他問題にぶつかっておりますが、
取り急ぎ本スレッドはCLOSEとさせていただければと思います。

その点あらためまして質問させていただきたいと考えておりますが、
その際にはまたお力添えをいただければと思います。
よろしくお願いいたします。

皆様ありがとうございました。

2012年9月27日木曜日 21時26分26秒 UTC+9 l.b.:

koba

unread,
Nov 4, 2012, 5:15:19 AM11/4/12
to android-emb...@googlegroups.com

先に進めてよかったですね。

私も最近、Android4.
0をビルドして動かしたときにinit, adb,
debuggerdは生きているのに、/bin/shやservicemanager, voldがSEGVで
死んでしまうという現象に遭遇しました。
makeのときに以下が抜けていたためでした。

export ARCH_ARM_HAVE_TLS_REGISTER=true

このメモが参考になれば。
2012年01月13日
KZM-A9-DualボードでAndroid 4.0.3(Ice Cream Sandwich)を動かす
blog.kmckk.com/archives/4075163.html

2012年11月4日日曜日 17時30分44秒 UTC+9 doimsr:

doimsr

unread,
Nov 4, 2012, 5:57:01 AM11/4/12
to android-emb...@googlegroups.com
kobaさん

ありがとうございます。
まだ正常に起動したわけではありませんが、
1ヶ月以上かけてやっとここまで到達しました…

AndroidはLinuxにあまり依存しないのかと
思っていましたが非常に密接に関わっているということに驚きました。
(特にCPU周りなど関係ないと思っていましたが…)

さきほどAndroidのホーム画面を出すことができました。
なぜか浮動小数点ユニットにアクセスした際にEXCPTIONが起きており、
暫定でコメントアウトとしております。

まだまだアプリケーションのエラーが多く出ているので、
解消していかなければなりませんが、
取り急ぎなにか先は見えてきたかもしれません。

2012年11月4日日曜日 19時15分19秒 UTC+9 koba:

Kobayashi Tetsuyuki

unread,
Nov 4, 2012, 6:12:29 AM11/4/12
to android-emb...@googlegroups.com
> なぜか浮動小数点ユニットにアクセスした際にEXCPTIONが起きており、
> 暫定でコメントアウトとしております。

FPUを使うためにはカーネルのコンフィグでもそれを有効にしておく必要があります。
CONFIG_VFP だったかな?

FPUは最初は使用不可の状態にセットされていて、使ったときに初めてFPU例外が
発生し、カーネルの中でFPUレジスタの退避、復帰が行われます。
CONFIG_VFPがセットされていないとその例外がそのままスルーされてプロセスが
落ちてしまうのかもしれません。

参考になるかも。
2011年07月19日
ARM LinuxでのVFP(FPU)レジスタの退避、復帰
http://blog.kmckk.com/archives/3859742.html

doimsr

unread,
Nov 4, 2012, 6:26:31 AM11/4/12
to android-emb...@googlegroups.com
kobaさん

情報ありがとうございます。
本日そちらもホームページも拝見させていただいておりました。

カーネルのコンフィグでは、
CONFIG_VFP、CONFIG_VFPv3
を有効としている状態ですので、
浮動小数点ユニットは有効の状態となります。

Karnel Panicのログから追ってみますと、
arch/arm/vfp/vfpmodule.c VFP_bounce()の
オフセット+0x4cのコードでEXCEPTIONが発生していました。
ログを掲載させていただきますので、
もしなにかお気づきの点がございましたらアドバイスいただけますと
大変有り難く存じます。

【arch/arm/vfp/vfpmodule.o をobjdumpしたログから抜粋】
/*
 * Package up a bounce condition.
 */
void VFP_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs)
{
 304:    e1a07000     mov    r7, r0
 308:    e1a05001     mov    r5, r1
 30c:    e1a06002     mov    r6, r2
     *                implementation), undefined otherwise
     *
     * Clear various bits and enable access to the VFP so we can
     * handle the bounce.
     */
    fmxr(FPEXC, fpexc & ~(FPEXC_EX|FPEXC_DEX|FPEXC_FP2V|FPEXC_VV|FPEXC_TRAP_MASK));
 310:    e3c3309f     bic    r3, r3, #159    ; 0x9f
 314:    eee83a10     vmsr    fpexc, r3

    fpsid = fmrx(FPSID);
 318:    eef03a10     vmrs    r3, fpsid
    orig_fpscr = fpscr = fmrx(FPSCR);

    /*
     * Check for the special VFP subarch 1 and FPSCR.IXE bit case
     */
    if ((fpsid & FPSID_ARCH_MASK) == (1 << FPSID_ARCH_BIT)
 31c:    e203380f     and    r3, r3, #983040    ; 0xf0000
     * handle the bounce.
     */
    fmxr(FPEXC, fpexc & ~(FPEXC_EX|FPEXC_DEX|FPEXC_FP2V|FPEXC_VV|FPEXC_TRAP_MASK));

    fpsid = fmrx(FPSID);
    orig_fpscr = fpscr = fmrx(FPSCR);
 320:    eef14a10     vmrs    r4, fpscr

    /*
     * Check for the special VFP subarch 1 and FPSCR.IXE bit case
     */
    if ((fpsid & FPSID_ARCH_MASK) == (1 << FPSID_ARCH_BIT)
 324:    e3530801     cmp    r3, #65536    ; 0x10000
 328:    1a000001     bne    334 <VFP_bounce+0x40>
        && (fpscr & FPSCR_IXE)) {
 32c:    e3140a01     tst    r4, #4096    ; 0x1000
 330:    1a00001a     bne    3a0 <VFP_bounce+0xac>
         * Synchronous exception, emulate the trigger instruction
         */
        goto emulate;
    }

    if (fpexc & FPEXC_EX) {
 334:    e3550000     cmp    r5, #0
 338:    aa000004     bge    350 <VFP_bounce+0x5c>
        /*
         * Asynchronous exception. The instruction is read from FPINST
         * and the interrupted instruction has to be restarted.
         */
        trigger = fmrx(FPINST);
        regs->ARM_pc -= 4;
 33c:    e596303c     ldr    r3, [r6, #60]    ; 0x3c
#ifndef CONFIG_CPU_FEROCEON
        /*
         * Asynchronous exception. The instruction is read from FPINST
         * and the interrupted instruction has to be restarted.
         */
        trigger = fmrx(FPINST);                                 ▲↓の理由により、とりあえずコメントアウト
 340:    eef97a10     vmrs    r7, fpinst    @ Impl def   ▲ここでEXCEPTION
        regs->ARM_pc -= 4;                                     ▲↑の理由により、とりあえずコメントアウト
 344:    e2433004     sub    r3, r3, #4
 348:    e586303c     str    r3, [r6, #60]    ; 0x3c
 34c:    ea000002     b    35c <VFP_bounce+0x68>
#endif
    } else if (!(fpexc & FPEXC_DEX)) {
 350:    e3150202     tst    r5, #536870912    ; 0x20000000
        /*
         * Illegal combination of bits. It can be caused by an
         * unallocated VFP instruction but with FPSCR.IXE set and not
         * on VFP subarch 1.
         */
         vfp_raise_exceptions(VFP_EXCEPTION_ERROR, trigger, fpscr, regs);
 354:    03e00c01     mvneq    r0, #256    ; 0x100
         * and the interrupted instruction has to be restarted.
         */
        trigger = fmrx(FPINST);
        regs->ARM_pc -= 4;
#endif
    } else if (!(fpexc & FPEXC_DEX)) {
 358:    0a000015     beq    3b4 <VFP_bounce+0xc0>
    /*
     * Modify fpscr to indicate the number of iterations remaining.
     * If FPEXC.EX is 0, FPEXC.DEX is 1 and the FPEXC.VV bit indicates
     * whether FPEXC.VECITR or FPSCR.LEN is used.
     */




2012年11月4日日曜日 20時12分32秒 UTC+9 koba:

Kobayashi Tetsuyuki

unread,
Nov 4, 2012, 7:53:13 AM11/4/12
to android-emb...@googlegroups.com
kobaです。
(休日の余暇として書いています。あまりあてにしないで。)

今までそこで問題になったことはないです。その部分はボードに依存するとも
思えないですし。
最初のメールでCortex-A9と書いてありましたが、もしかしてMarvellのCPUだと
いうことはありませんか。
ざっとソースを検索してみましたが、Marvelのコアだと
CONFIG_CPU_FEROCEON
が定義されるので、該当の箇所は通らないことになります。
(そんなことはとっくに調査済みとは思いますが。。)

2012年11月4日 20:26 doimsr <droi...@gmail.com>:
> --
> ---------------------------------------------------------------------
> 日本Androidの会組み込みWG
> http://www.android-group.jp/index.php?%A5%EF%A1%BC%A5%AD%A5%F3%A5%B0%A5%B0%A5%EB%A1%BC%A5%D7%2F%C1%C8%A4%DF%B9%FE%A4%DF
>
> 日本Androidの会
> http://www.android-group.jp/
> ---------------------------------------------------------------------
> このグループに投稿するには、次の宛先にメールを送信してください。
> android-emb...@googlegroups.com
> このグループから退会するには、次へメールをお送りください。
> android-embedded-...@googlegroups.com
> その他のオプションについては、次の URL からグループにアクセスしてください。
> http://groups.google.co.jp/group/android-embedded-japan?hl=ja
> ---------------------------------------------------------------------

doimsr

unread,
Nov 4, 2012, 8:06:14 PM11/4/12
to android-emb...@googlegroups.com
kobaさん

休日のお時間を頂戴してしまい、
申し訳ございません。

たしかにCONFIG_CPU_FEROCEON は、
Marvel製 CPUのコンフィグレーションとなりますが、
私がターゲットとしているCPUはCortex-A9 MPで間違いはありません。

ただしデバイスが現在開発中なので、
PC上の仮想CPUでデバッグをしています。

その仮想CPU向けのLinuxをベースに、
BinderとAshmmemドライバをポーティングし、
CPU設定周りを変更して動かしているのですが、
AndroidだとこのEXCEPTIONが発生します。

Linux単体だとこのEXCEPTIONは発生していません。
(浮動小数点演算をしていないだけかもしれませんが…)

もしかしたら実デバイスではないので、
Errataなどにヒットしている可能性もありますが…

2012年11月4日日曜日 21時53分15秒 UTC+9 koba:
> android-embedded-japan+unsub...@googlegroups.com

doimsr

unread,
Nov 7, 2012, 12:22:27 AM11/7/12
to android-emb...@googlegroups.com
みなさま

こんにちは。doimsrです。
浮動小数点ユニットのEXCEPTIONの件ですが、
原因が判明しました。

やはり仮想CPUのErattaにHitしていまして、
メーカから入手したパッチを充てたところ
問題なく起動できました。

次のStepはアプリケーションの実装と、
まだまだ開発は続きますが、
ひとまずAndroid起動までようやく漕ぎつけました…

皆様本当にありがとうございました。

2012年11月5日月曜日 10時06分14秒 UTC+9 doimsr:
Reply all
Reply to author
Forward
0 new messages