Jellybean 4.1.1_r1 (JRO03C) Maguro Boot Issues

725 views
Skip to first unread message

Nathaniel Husted

unread,
Aug 8, 2012, 7:20:29 PM8/8/12
to android-...@googlegroups.com
I'm attempting to build 4.1.1_r1 on Maguro/Tuna with a custom kernel
(needed some added functionality not configured in to default Google
kernels). I'm using the kernel branch
origin/android-omap-tuna-3.0-jb-pre1 (it was the only one with jb in
the title so I assumed it was the one to use...). Currently I'm having
looping boot issues with various parts of the Android system failing.
I've also had Zygote crash in another set of errors. These errors seem
to change depending on each build. For example:

I/DEBUG ( 122): memory map around fault addr 91cc2f27:
I/DEBUG ( 122): 5aab2000-5aab7000 /system/lib/libbcinfo.so
I/DEBUG ( 122): (no map for address)
I/DEBUG ( 122): bee6d000-bee8e000 [stack]

My AOSP directory builds perfectly fine with both generic and
generic-x86 targets at "make -j16".

1) Am I using the wrong kernel version? Is that causing the boot issues?

2) Is there a problem with the propitiatory vendor files?

3) I'm following the basic lunch, make -j16 build process, am I doing
something wrong?

Thanks for any assistance.

Cheers,
Nathaniel

Jean-Baptiste Queru

unread,
Aug 9, 2012, 10:49:45 AM8/9/12
to android-...@googlegroups.com
Well, there's an easy way to figure out if #1 is an issue: does your
build work with the official kernel binary?

You might be using the wrong kernel. Kernel branch names aren't
reliable, you should always use the explicit commit.

This tells you that the kernel you want is 6fb96c9

$ repo forall device/samsung/tuna -c git log --max-count=1
android-4.1.1_r1 kernel
commit cc170b73763f7364030d4fada8f5ac11c511a4ed
Author: Dmitry Shmidt <dimi...@google.com>
Date: Thu Jun 28 11:11:20 2012 -0700

tuna: kernel prebuilt

6fb96c9 net: wireless: bcmdhd: Skip inaccurate wl_construct_reginfo() call
0476d43 net: wireless: bcmdhd: Ignore error if "chanspecs" command
is not supported

BUG: b/6749594

Change-Id: I927c3d0d19bf82a88e4bca0dfd39c6012d773141
Signed-off-by: Dmitry Shmidt <dimi...@google.com>
> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Nathaniel Husted

unread,
Aug 9, 2012, 1:30:19 PM8/9/12
to android-...@googlegroups.com
I've gone through and checked the kernel version and it was off
(proceeded to switch to the correct one). I've also retested with the
default kernel (removed the *.img files from out, switched kernels in
device/samsung/tuna, and ran make again). If this is not a safe way of
removing the image files, is there a better way? 'make dataclean'
doesn't seem to do anything with the maguro target.

I'm getting the following boot loop with the default kernel (rm *.img
from out; make):
I/ServiceManager( 115): service 'media.audio_flinger' died
I/ServiceManager( 115): service 'media.player' died
I/ServiceManager( 115): service 'media.camera' died
I/Netd ( 1370): Netd 1.0 starting
I/Netd ( 1374): Netd 1.0 starting
I/mediaserver( 1373): ServiceManager: 0x40d72ce0
I/AudioFlinger( 1373): Using default 3000 mSec as standby time.
I/CameraService( 1373): CameraService started (pid=1373)
I/AudioPolicyManagerBase( 1373): loadAudioPolicyConfig() loaded
/system/etc/audio_policy.conf
I/AudioFlinger( 1373): loadHwModule() Loaded primary audio interface
from Tuna audio HW HAL (audio) handle 1
I/AudioFlinger( 1373): HAL output buffer size 176 frames, normal mix
buffer size 1056 frames
I/AudioMixer( 1373): found effect "Multichannel Downmix To Stereo"
from The Android Open Source Project
E/BandwidthController( 1374): runIptablesCmd(): failed
/system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 1374): runIptablesCmd(): failed
/system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
D/MDnsDS ( 1374): MDnsSdListener::Hander starting up
D/MDnsDS ( 1374): MDnsSdListener starting to monitor
D/MDnsDS ( 1374): Going to poll with pollCount 1

And the following boot loop with my custom kernel (lunch; make -j16) :
I/Netd ( 597): Netd 1.0 starting
E/BandwidthController( 597): runIptablesCmd(): failed
/system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 597): runIptablesCmd(): failed
/system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
D/MDnsDS ( 597): MDnsSdListener::Hander starting up
D/MDnsDS ( 597): MDnsSdListener starting to monitor
D/MDnsDS ( 597): Going to poll with pollCount 1

Thanks for the assistance. I'm just having a difficult time reasoning
about the bug from the logcat output as the build process has no
errors (and is working on other targets).

Cheers,
Nathaniel

Nathaniel Husted

unread,
Aug 9, 2012, 1:32:10 PM8/9/12
to android-...@googlegroups.com
Oh, as a side note, I'm copying the *.img files from the out directory
to my host machine (the build is occuring in a remote vm without
working USB pass through) and running fastboot flashall on the local
machine. I've gotten a successfully booting stock build once.

Cheers,
Nathaniel

Jean-Baptiste Queru

unread,
Aug 9, 2012, 1:43:19 PM8/9/12
to android-...@googlegroups.com
This part of the log doesn't tell us much, it's the tail end of the
system cleaning up after a crash (where all the services die), but the
crash itself was probably a few pages higher.

JBQ

Nathaniel Husted

unread,
Aug 9, 2012, 2:44:16 PM8/9/12
to android-...@googlegroups.com
So, starting from the top until we get to NetD starting:

--------- beginning of /dev/log/main
I/DEBUG ( 121): debuggerd: Aug 9 2012 12:25:31
E/IMGSRV ( 117): :0: SetupuKernel : EDM status value DevVAddr:
0x0F004000 pvLinAddrKM: 0xC88FA000
--------- beginning of /dev/log/system
I/Vold ( 116): Vold 2.1 (the revenge) firing up
E/Vold ( 116): Error reading configuration (No such file or
directory)... continuing anyways
I/Netd ( 142): Netd 1.0 starting
I/Netd ( 159): Netd 1.0 starting
D/ ( 122): [CP BOOT] __boot_6260: START CP BOOT
D/ ( 122): [CP BOOT] __boot_6260: CP POWER ON DONE
D/ ( 122): [CP BOOT] mipi_xmit_atat: SENT ATAT 0
D/ ( 122): [CP BOOT] mipi_xmit_atat: SENT ATAT 1
I/mediaserver( 158): ServiceManager: 0x40bdcce0
I/AudioFlinger( 158): Using default 3000 mSec as standby time.
I/CameraService( 158): CameraService started (pid=158)
D/ ( 122): [CP BOOT] __boot_6260: XIMT PSI DONE
I/AudioPolicyManagerBase( 158): loadAudioPolicyConfig() loaded
/system/etc/audio_policy.conf
I/AudioFlinger( 158): loadHwModule() Loaded primary audio interface
from Tuna audio HW HAL (audio) handle 1
I/AudioFlinger( 158): HAL output buffer size 176 frames, normal mix
buffer size 1056 frames
D/ ( 122): [CP BOOT] __boot_6260: XIMT EBL DONE
I/AudioMixer( 158): found effect "Multichannel Downmix To Stereo"
from The Android Open Source Project
D/ ( 122): [CP BOOT] __boot_6260: SET EBL DONE
D/ ( 122): [CP BOOT] __boot_6260: REQSECSTART CMD DONE
D/MDnsDS ( 159): MDnsSdListener::Hander starting up
D/MDnsDS ( 159): MDnsSdListener starting to monitor
D/MDnsDS ( 159): Going to poll with pollCount 1
D/ ( 122): [CP BOOT] __boot_6260: XMIT MODEM_MAIN DONE
D/ ( 122): [CP BOOT] __boot_6260: XMIT MODEM_NV DONE
D/ ( 122): [CP BOOT] __boot_6260: READ MPS DATA DONE : NEE
D/ ( 122): [CP BOOT] __boot_6260: SEND MPS DONE : NEE(0x61080000)
D/ ( 122): [CP BOOT] __boot_6260: REQSECEND CMD DONE
D/ ( 122): [CP BOOT] __boot_6260: REQFORCEHWRESET CMD DONE
D/ ( 122): [CP BOOT] boot_6260_mipi: CP FLASHLESS ALL DONE
I/ServiceManager( 115): service 'media.audio_flinger' died
I/ServiceManager( 115): service 'media.player' died
I/ServiceManager( 115): service 'media.camera' died
I/Netd ( 307): Netd 1.0 starting
I/Netd ( 317): Netd 1.0 starting

Flashed with 'fastboot -w flashall'.

I'm thinking my issue is very similar to:
https://groups.google.com/forum/?fromgroups#!topic/android-building/G6_62JGkslY%5B1-25%5D

Thus, my next step was using clockwork mod recovery to clear data and
clear cache. Still have a boot loop with the following:

--------- beginning of /dev/log/main
I/DEBUG ( 121): debuggerd: Aug 9 2012 12:25:31
--------- beginning of /dev/log/system
I/Vold ( 116): Vold 2.1 (the revenge) firing up
E/Vold ( 116): Error reading configuration (No such file or
directory)... continuing anyways
I/Netd ( 120): Netd 1.0 starting
E/IMGSRV ( 117): :0: SetupuKernel : EDM status value DevVAddr:
0x0F004000 pvLinAddrKM: 0xC8996000
D/ ( 122): [CP BOOT] __boot_6260: START CP BOOT
I/Netd ( 173): Netd 1.0 starting
I/Netd ( 191): Netd 1.0 starting
D/ ( 122): [CP BOOT] __boot_6260: CP POWER ON DONE
D/ ( 122): [CP BOOT] mipi_xmit_atat: SENT ATAT 0
D/ ( 122): [CP BOOT] mipi_xmit_atat: SENT ATAT 1
I/mediaserver( 189): ServiceManager: 0x415bbce0
I/AudioFlinger( 189): Using default 3000 mSec as standby time.
I/CameraService( 189): CameraService started (pid=189)
D/ ( 122): [CP BOOT] __boot_6260: XIMT PSI DONE
D/MDnsDS ( 191): MDnsSdListener::Hander starting up
D/MDnsDS ( 191): MDnsSdListener starting to monitor
D/MDnsDS ( 191): Going to poll with pollCount 1
I/AudioPolicyManagerBase( 189): loadAudioPolicyConfig() loaded
/system/etc/audio_policy.conf
I/AudioFlinger( 189): loadHwModule() Loaded primary audio interface
from Tuna audio HW HAL (audio) handle 1
I/AudioFlinger( 189): HAL output buffer size 176 frames, normal mix
buffer size 1056 frames
I/AudioMixer( 189): found effect "Multichannel Downmix To Stereo"
from The Android Open Source Project
D/ ( 122): [CP BOOT] __boot_6260: XIMT EBL DONE
D/ ( 122): [CP BOOT] __boot_6260: SET EBL DONE
D/ ( 122): [CP BOOT] __boot_6260: REQSECSTART CMD DONE
D/ ( 122): [CP BOOT] __boot_6260: XMIT MODEM_MAIN DONE
I/ServiceManager( 115): service 'media.audio_flinger' died
I/ServiceManager( 115): service 'media.player' died
I/ServiceManager( 115): service 'media.camera' died
I/Netd ( 336): Netd 1.0 starting
I/mediaserver( 335): ServiceManager: 0x40cfece0
I/AudioFlinger( 335): Using default 3000 mSec as standby time.
I/CameraService( 335): CameraService started (pid=335)
I/AudioPolicyManagerBase( 335): loadAudioPolicyConfig() loaded
/system/etc/audio_policy.conf
I/AudioFlinger( 335): loadHwModule() Loaded primary audio interface
from Tuna audio HW HAL (audio) handle 1
I/AudioFlinger( 335): HAL output buffer size 176 frames, normal mix
buffer size 1056 frames
I/AudioMixer( 335): found effect "Multichannel Downmix To Stereo"
from The Android Open Source Project
D/ ( 122): [CP BOOT] __boot_6260: XMIT MODEM_NV DONE
D/ ( 122): [CP BOOT] __boot_6260: READ MPS DATA DONE : NEE
D/ ( 122): [CP BOOT] __boot_6260: SEND MPS DONE : NEE(0x61080000)
D/ ( 122): [CP BOOT] __boot_6260: REQSECEND CMD DONE
D/ ( 122): [CP BOOT] __boot_6260: REQFORCEHWRESET CMD DONE
D/ ( 122): [CP BOOT] boot_6260_mipi: CP FLASHLESS ALL DONE
E/BandwidthController( 336): runIptablesCmd(): failed
/system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 336): runIptablesCmd(): failed
/system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
D/MDnsDS ( 336): MDnsSdListener::Hander starting up
D/MDnsDS ( 336): MDnsSdListener starting to monitor
D/MDnsDS ( 336): Going to poll with pollCount 1
I/ServiceManager( 115): service 'media.audio_flinger' died
I/ServiceManager( 115): service 'media.player' died
I/ServiceManager( 115): service 'media.camera' died
I/Netd ( 473): Netd 1.0 starting
I/Netd ( 478): Netd 1.0 starting

Cheers,
Nathaniel

Nathaniel Husted

unread,
Aug 9, 2012, 4:07:06 PM8/9/12
to android-...@googlegroups.com
I've found what I _think_ is a solution to the issue:

1. fastboot -w flashall # This was my initial full system flash after
changing the kernels.
2. adb reboot-bootloader
3. fastboot flash system

Step 3 seemed to have done it.

Cheers,
Nathaniel
Reply all
Reply to author
Forward
0 new messages