Compiling from sources results in bootloop (Galaxy Nexus) 4.0.3-r1

210 views
Skip to first unread message

Milan Berger

unread,
Jan 15, 2012, 4:08:58 PM1/15/12
to Android Building
Hi again,

set up a plain Ubtuntu as I was told and I build the source without
modifications, my image results in a heavy bootloop, attached the
messages here:


after a random "died" it seems to start all over again.
What am I making wrong? What are those permission problems?


Regards
 Milan

Jean-Baptiste Queru

unread,
Jan 17, 2012, 3:25:46 PM1/17/12
to android-...@googlegroups.com
I'm not exactly sure as this doesn't look exactly like what I'm used to. A known issue with Galaxy Nexus is that the bootloader doesn't write a valid filesystem, so in the background of the first boot a new filesystem gets written in the background, while the rest of the system is busy failing to start. When the filesystem is written (which takes a while), the device reboots and the system is able to start.

I should document that.

JBQ
> --
> 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
Software Engineer, 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.

t4c

unread,
Jan 17, 2012, 5:25:31 PM1/17/12
to Android Building
Oh really, so I guess I just have to wait some time?
How long did you let it loop?

Jean-Baptiste Queru

unread,
Jan 17, 2012, 5:30:19 PM1/17/12
to android-...@googlegroups.com
I'd guess up to 5 minutes. It feels especially long on 32GB devices,
to the point where I originally also thought things were stuck in a
bootloop indeed.

JBQ

On Tue, Jan 17, 2012 at 2:25 PM, t4c <t4cg...@gmail.com> wrote:
> Oh really, so I guess I just have to wait some time?
> How long did you let it loop?
>

t4c

unread,
Jan 17, 2012, 6:10:03 PM1/17/12
to Android Building
Hey JBQ,

thank you so, just waited for the device getting black and after this
one I started a adb reboot but
the bluetooth driver seems to fail badly:

I/bluedroid( 179): bt_enable: ret: -1, errno: 19

I got this one scrolling like hell in adb lolcat.
Camera is not working as well. It dies after starting.

I got drivers via:
cd ./device/samsung/maguro
./extract-files.sh with my attached phone using 4.0.2 stock.

Tyler Shultz

unread,
Jan 17, 2012, 6:28:17 PM1/17/12
to Android Building
I had the same issue... honestly I don't know what I did differently
Other then making sure to pull the binaries and make clobber before
another build attempt.

?
On Jan 17, 5:30 pm, Jean-Baptiste Queru <j...@android.com> wrote:
> I'd guess up to 5 minutes. It feels especially long on 32GB devices,
> to the point where I originally also thought things were stuck in a
> bootloop indeed.
>
> JBQ
>

Jean-Baptiste Queru

unread,
Jan 17, 2012, 6:46:55 PM1/17/12
to android-...@googlegroups.com
I've only tested in any kind of depth with the official binaries from
http://code.google.com/android/nexus/drivers.html - I didn't do any
testing with extract-files.sh for Galaxy Nexus recently since the
primary expectation was that people would use the official binaries
instead, and it's very possible that the result just wouldn't work.

Now, that being said, I rarely test bluetooth either way, so it's
possible that making it work fully would rely on some proprietary
configuration option that I'm not aware of.

JBQ

t4c

unread,
Jan 18, 2012, 8:34:35 AM1/18/12
to Android Building
Hi Jean-Baptiste,

me again.

I try to give you all steps I have done perhaps we can find a
soloution together
cause this drives me crazy:

I set up an Ubuntu 10.04 LTS like you advised me to.

Chose repo with:

repo init -u https://android.googlesource.com/platform/manifest -b
android-4.0.3_r1
synced it.

Downloaded the 2 sh files for building properitary modules via
http://code.google.com/intl/de/android/nexus/drivers.html#maguro
Started both sh files to extract? modules.

Started building with:

source build/envsetup.sh
lunch -> 8 for maguro

make clobber
make -j2
make -j2 otapackage

First installationtry was wiping the device and applying the
update.zip file.
This resulted in a non working bluetooth and camera.
So I thought about applying img. files via fastboot and I packed them
alltogether to an .zip file, like the factory images, applied the
android-info.txt and did a
fastboot -w update update.zip.

Got the bootloop, rebooted after some time, android starts up but adb
lolcat gives me those:
I/bluedroid( 208): bt_enable: ret: -1, errno: 19
I/bluedroid( 208): bt_enable: ret: -1, errno: 19
I/bluedroid( 208): bt_enable: ret: -1, errno: 19
I/bluedroid( 208): bt_enable: ret: -1, errno: 19
I/bluedroid( 208): bt_enable: ret: -1, errno: 19

Ok... no bluetooth, I could live without that but after starting
camera, nothing happened.
Screen black, device did not really respond on pressing backkeys in
the Logs I can see:


/ActivityManager( 196): Start proc com.android.camera for activity
com.android.camera/.Camera: pid=968 uid=10007 gids={1006, 1015}
D/OpenGLRenderer( 374): Flushing caches (mode 1)
E/CameraHAL( 120): Couldn't get camera properties
W/dalvikvm( 968): threadid=11: thread exiting with uncaught exception
(group=0x40a351f8)
E/AndroidRuntime( 968): FATAL EXCEPTION: Thread-72
E/AndroidRuntime( 968): java.lang.RuntimeException: Fail to get
camera info
E/AndroidRuntime( 968): at
android.hardware.Camera.getCameraInfo(Native Method)
E/AndroidRuntime( 968): at
com.android.camera.CameraHolder.<init>(CameraHolder.java:102)
E/AndroidRuntime( 968): at
com.android.camera.CameraHolder.instance(CameraHolder.java:66)
E/AndroidRuntime( 968): at
com.android.camera.Util.openCamera(Util.java:267)
E/AndroidRuntime( 968): at com.android.camera.Camera
$4.run(Camera.java:1100)
E/AndroidRuntime( 968): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 196): Force finishing activity
com.android.camera/.Camera
D/OpenGLRenderer( 374): Flushing caches (mode 0)
D/dalvikvm( 968): GC_CONCURRENT freed 207K, 3% free 12857K/13127K,
paused 2ms+3ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 11K, 2% free 12893K/13127K,
paused 13ms
I/dalvikvm-heap( 968): Grow heap (frag case) to 13.283MB for 662416-
byte allocation
D/dalvikvm( 196): GC_FOR_ALLOC freed 1829K, 14% free 16064K/18631K,
paused 38ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 1K, 3% free 13538K/13831K,
paused 11ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 20K, 2% free 13885K/14087K,
paused 14ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 5K, 2% free 14259K/14471K,
paused 12ms
E/CameraHAL( 120): Couldn't get camera properties
D/AndroidRuntime( 968): Shutting down VM
W/dalvikvm( 968): threadid=1: thread exiting with uncaught exception
(group=0x40a351f8)
I/Process ( 968): Sending signal. PID: 968 SIG: 9
I/ActivityManager( 196): Process com.android.camera (pid 968) has
died.
W/InputManagerService( 196): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@416d23f0
I/ActivityManager( 196): START {act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.android.camera/.Camera bnds=[40,785][200,985]} from pid 374
I/ActivityManager( 196): Start proc com.android.camera for activity
com.android.camera/.Camera: pid=990 uid=10007 gids={1006, 1015}
D/dalvikvm( 118): GC_EXPLICIT freed 36K, 3% free 12559K/12867K,
paused 2ms+3ms
D/OpenGLRenderer( 374): Flushing caches (mode 1)
D/dalvikvm( 118): GC_EXPLICIT freed <1K, 3% free 12559K/12867K,
paused 9ms+2ms
D/OpenGLRenderer( 374): Flushing caches (mode 0)
D/dalvikvm( 118): GC_EXPLICIT freed <1K, 3% free 12559K/12867K,
paused 1ms+2ms
E/CameraHAL( 120): Couldn't get camera properties
W/dalvikvm( 990): threadid=11: thread exiting with uncaught exception
(group=0x40a351f8)
E/AndroidRuntime( 990): FATAL EXCEPTION: Thread-75
E/AndroidRuntime( 990): java.lang.RuntimeException: Fail to get
camera info
E/AndroidRuntime( 990): at
android.hardware.Camera.getCameraInfo(Native Method)
E/AndroidRuntime( 990): at
com.android.camera.CameraHolder.<init>(CameraHolder.java:102)
E/AndroidRuntime( 990): at
com.android.camera.CameraHolder.instance(CameraHolder.java:66)
E/AndroidRuntime( 990): at
com.android.camera.Util.openCamera(Util.java:267)
E/AndroidRuntime( 990): at com.android.camera.Camera
$4.run(Camera.java:1100)
E/AndroidRuntime( 990): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 196): Force finishing activity
com.android.camera/.Camera
D/dalvikvm( 196): GC_CONCURRENT freed 530K, 13% free 16374K/18631K,
paused 7ms+6ms
D/dalvikvm( 990): GC_CONCURRENT freed 236K, 3% free 12824K/13127K,
paused 3ms+7ms
D/dalvikvm( 990): GC_FOR_ALLOC freed 12K, 2% free 12899K/13127K,
paused 13ms
I/dalvikvm-heap( 990): Grow heap (frag case) to 13.290MB for 662416-
byte allocation
D/dalvikvm( 990): GC_CONCURRENT freed 3K, 3% free 13543K/13831K,
paused 2ms+4ms
D/dalvikvm( 990): GC_FOR_ALLOC freed 20K, 2% free 13889K/14087K,
paused 20ms
D/dalvikvm( 990): GC_FOR_ALLOC freed 5K, 2% free 14263K/14471K,
paused 13ms
E/CameraHAL( 120): Couldn't get camera properties
D/AndroidRuntime( 990): Shutting down VM
W/dalvikvm( 990): threadid=1: thread exiting with uncaught exception
(group=0x40a351f8)
I/Process ( 990): Sending signal. PID: 990 SIG: 9
I/ActivityManager( 196): Process com.android.camera (pid 990) has
died.
W/InputManagerService( 196): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@4169ca38
D/dalvikvm( 374): GC_CONCURRENT freed 1178K, 30% free 17250K/24583K,
paused 6ms+5ms
I/ActivityManager( 196): START {act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.android.camera/.Camera bnds=[40,785][200,985]} from pid 374
I/ActivityManager( 196): Start proc com.android.camera for activity
com.android.camera/.Camera: pid=1011 uid=10007 gids={1006, 1015}
D/OpenGLRenderer( 374): Flushing caches (mode 1)
D/OpenGLRenderer( 374): Flushing caches (mode 0)
E/CameraHAL( 120): Couldn't get camera properties
W/dalvikvm( 1011): threadid=11: thread exiting with uncaught exception
(group=0x40a351f8)
E/AndroidRuntime( 1011): FATAL EXCEPTION: Thread-78
E/AndroidRuntime( 1011): java.lang.RuntimeException: Fail to get
camera info
E/AndroidRuntime( 1011): at
android.hardware.Camera.getCameraInfo(Native Method)
E/AndroidRuntime( 1011): at
com.android.camera.CameraHolder.<init>(CameraHolder.java:102)
E/AndroidRuntime( 1011): at
com.android.camera.CameraHolder.instance(CameraHolder.java:66)
E/AndroidRuntime( 1011): at
com.android.camera.Util.openCamera(Util.java:267)
E/AndroidRuntime( 1011): at com.android.camera.Camera
$4.run(Camera.java:1100)
E/AndroidRuntime( 1011): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 196): Force finishing activity
com.android.camera/.Camera
D/dalvikvm( 1011): GC_CONCURRENT freed 206K, 3% free 12858K/13127K,
paused 7ms+3ms
D/dalvikvm( 1011): GC_FOR_ALLOC freed 11K, 2% free 12898K/13127K,
paused 13ms
I/dalvikvm-heap( 1011): Grow heap (frag case) to 13.288MB for 662416-
byte allocation
D/dalvikvm( 1011): GC_CONCURRENT freed 1K, 3% free 13543K/13831K,
paused 7ms+1ms
D/dalvikvm( 1011): GC_FOR_ALLOC freed 20K, 2% free 13889K/14087K,
paused 32ms
D/dalvikvm( 1011): GC_FOR_ALLOC freed 5K, 2% free 14263K/14471K,
paused 31ms
E/CameraHAL( 120): Couldn't get camera properties
D/AndroidRuntime( 1011): Shutting down VM
W/dalvikvm( 1011): threadid=1: thread exiting with uncaught exception
(group=0x40a351f8)
I/Process ( 1011): Sending signal. PID: 1011 SIG: 9
I/ActivityManager( 196): Process com.android.camera (pid 1011) has
died.
W/InputManagerService( 196): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@4194d988
I/power ( 196): *** set_screen_state 0
D/SurfaceFlinger( 117): About to give-up screen, flinger = 0xf1b918
D/dalvikvm( 196): GC_CONCURRENT freed 913K, 12% free 16407K/18631K,
paused 6ms+6ms
D/dalvikvm( 196): GC_EXPLICIT freed 54K, 13% free 16352K/18631K,
paused 3ms+6ms
D/NfcService( 359): NFC-C OFF, disconnect
V/TransportControlView( 196): Create TCV
com.android.internal.widget.TransportControlView@41974208
D/PhoneStatusBar( 263): disable: < expand icons alerts ticker
system_info back home RECENT* clock >
D/dalvikvm( 196): GC_CONCURRENT freed 34K, 8% free 17147K/18631K,
paused 3ms+7ms
W/IInputConnectionWrapper( 196): showStatusIcon on inactive
InputConnection

and

I/ActivityManager( 196): START {act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.android.camera/.Camera bnds=[40,785][200,985]} from pid 374
I/ActivityManager( 196): Start proc com.android.camera for activity
com.android.camera/.Camera: pid=968 uid=10007 gids={1006, 1015}
D/OpenGLRenderer( 374): Flushing caches (mode 1)
E/CameraHAL( 120): Couldn't get camera properties
W/dalvikvm( 968): threadid=11: thread exiting with uncaught exception
(group=0x40a351f8)
E/AndroidRuntime( 968): FATAL EXCEPTION: Thread-72
E/AndroidRuntime( 968): java.lang.RuntimeException: Fail to get
camera info
E/AndroidRuntime( 968): at
android.hardware.Camera.getCameraInfo(Native Method)
E/AndroidRuntime( 968): at
com.android.camera.CameraHolder.<init>(CameraHolder.java:102)
E/AndroidRuntime( 968): at
com.android.camera.CameraHolder.instance(CameraHolder.java:66)
E/AndroidRuntime( 968): at
com.android.camera.Util.openCamera(Util.java:267)
E/AndroidRuntime( 968): at com.android.camera.Camera
$4.run(Camera.java:1100)
E/AndroidRuntime( 968): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 196): Force finishing activity
com.android.camera/.Camera
D/OpenGLRenderer( 374): Flushing caches (mode 0)
D/dalvikvm( 968): GC_CONCURRENT freed 207K, 3% free 12857K/13127K,
paused 2ms+3ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 11K, 2% free 12893K/13127K,
paused 13ms
I/dalvikvm-heap( 968): Grow heap (frag case) to 13.283MB for 662416-
byte allocation
D/dalvikvm( 196): GC_FOR_ALLOC freed 1829K, 14% free 16064K/18631K,
paused 38ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 1K, 3% free 13538K/13831K,
paused 11ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 20K, 2% free 13885K/14087K,
paused 14ms
D/dalvikvm( 968): GC_FOR_ALLOC freed 5K, 2% free 14259K/14471K,
paused 12ms
E/CameraHAL( 120): Couldn't get camera properties
D/AndroidRuntime( 968): Shutting down VM
W/dalvikvm( 968): threadid=1: thread exiting with uncaught exception
(group=0x40a351f8)
I/Process ( 968): Sending signal. PID: 968 SIG: 9
I/ActivityManager( 196): Process com.android.camera (pid 968) has
died.
W/InputManagerService( 196): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@416d23f0


I can't see what's going wrong here.
Heard about other user and you too, they all compile without any
problems and got a working camera, gps and bluetooth (did not try gps
til now)


ty in advance and for your time

regards
Milan

Jean-Baptiste Queru

unread,
Jan 18, 2012, 10:37:41 AM1/18/12
to android-...@googlegroups.com
Camera and GPS are known to be broken, they require proprietary files
that aren't available as Google doesn't have a license to distribute
them. I think I've also seen the same log messages about bluetooth, so
I assume that it's also broken when using the factory firmware (and
Google doesn't have a license to distribute the firmware that is used
on consumer devices).

JBQ

Milan Berger

unread,
Jan 18, 2012, 10:54:33 AM1/18/12
to android-...@googlegroups.com
Hey Jean,

On Wed, Jan 18, 2012 at 4:37 PM, Jean-Baptiste Queru <j...@android.com> wrote:
Camera and GPS are known to be broken, they require proprietary files
that aren't available as Google doesn't have a license to distribute
them. I think I've also seen the same log messages about bluetooth, so
I assume that it's also broken when using the factory firmware (and
Google doesn't have a license to distribute the firmware that is used
on consumer devices).

No, the factory images run like a charme with camera and bluetooth
working.
Would be a big mess if you could not use this with a developer device
and a stock rom.

 Regards

Jean-Baptiste Queru

unread,
Jan 18, 2012, 11:43:19 AM1/18/12
to android-...@googlegroups.com
The factory images contain all the necessary files. They're not
covered by the same license.

JBQ

--

Hong Teng

unread,
Feb 8, 2012, 7:49:50 PM2/8/12
to android-...@googlegroups.com
Hi all,

Had this issue been fixed? I met the same problem infinite boot loop while using the android 4.0.3_r1 plus the Graphics and GSM libraries from Google site(http://code.google.com/intl/de/android/nexus/drivers.html#maguro).
Thank you.
BR
Hong

Reply all
Reply to author
Forward
0 new messages