lollipop x86 5.0.1 build

1,863 views
Skip to first unread message

Geek Till It Hertz

unread,
Dec 16, 2014, 2:11:20 PM12/16/14
to andro...@googlegroups.com
so i was able to successfully build 5.0.1 but when I boot it I kept on getting an error msg saying "Unfortunately Bluetooth share has stopped working".

rbg

unread,
Dec 16, 2014, 2:46:14 PM12/16/14
to andro...@googlegroups.com
two fixes(hacks) that work.....(the changes in #2 APPEAR TO BE CARRIED OVER FROM AOSP 5.0.0_r7....!!???)

1) change device/generic/common/BoardConfig.mk as follows:

# Some framework code requires this to enable BT
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/generic/common/bluetooth
-BLUETOOTH_HCI_USE_USB := true
+BLUETOOTH_HCI_USE_USB := false
BOARD_HAVE_BLUETOOTH_BCM := true


2) change Android.mk files at external/bluetooth/bluedroid/ as follows:

external/bluetooth/bluedroid/hci/Android.mk
----------------------------------------------------------

src/userial_mct.c

-else ifeq ($(BLUETOOTH_HCI_USE_USB),true)

-LOCAL_CFLAGS += -DHCI_USE_USB

-LOCAL_SRC_FILES += \
src/hci_h4.c \
src/usb.c

-LOCAL_C_INCLUDES += \
external/libusb_aah

else


external/bluetooth/bluedroid/main/Android.mk
------------------------------------------------------------

LOCAL_SHARED_LIBRARIES := \
- $(if $(filter true,$(BLUETOOTH_HCI_USE_USB)),libusb) \
libcutils \

rbg

unread,
Dec 16, 2014, 2:51:12 PM12/16/14
to andro...@googlegroups.com
should have said...just doing #1 is easiest until a "real" solution is found

Chih-Wei Huang

unread,
Dec 16, 2014, 10:23:14 PM12/16/14
to Android-x86
I have to say I didn't see such an error probably
because all devices I tested have Bluetooth adapter.

Instead of just disabling Bluetooth in source tree,
please post the log that the process crashed
so people can find a real solution easier.
> --
> You received this message because you are subscribed to the Google Groups
> "Android-x86" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-x86...@googlegroups.com.
> To post to this group, send email to andro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/android-x86.
> For more options, visit https://groups.google.com/d/optout.



--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Dreamcat4

unread,
Dec 16, 2014, 10:43:41 PM12/16/14
to andro...@googlegroups.com
Hello.
I am assuming there are likely to be other issues too, yes ?

rbg

unread,
Dec 16, 2014, 11:50:35 PM12/16/14
to andro...@googlegroups.com
yes that can be done...need to revert some hacks and get a broken build.....

in the mean time could you test with a device without bluetooth....

Geek Till It Hertz

unread,
Dec 17, 2014, 3:34:25 AM12/17/14
to andro...@googlegroups.com
the hacks didn't help !

György Pejović

unread,
Dec 17, 2014, 4:39:23 AM12/17/14
to andro...@googlegroups.com

Carsten Schmied

unread,
Dec 17, 2014, 8:38:18 AM12/17/14
to andro...@googlegroups.com


On Wednesday, December 17, 2014 10:39:23 AM UTC+1, György Pejović wrote:
https://docs.google.com/file/d/0B73McXwkxx69MkpkeHRYMHMwUlE/preview?pli=1

How can I turn a normal ISO into a 32-bit EFI bootable ISO?

Maybe somebody could write a guide? The guide should be made for Linux since Android is mostly compiled on Linux. So no Windows tools please ;)

Thanks! Such a guide would really help a lot of people out there!

Mauro Rossi

unread,
Dec 17, 2014, 2:44:21 PM12/17/14
to andro...@googlegroups.com
Hi,

you can find as attachment  picture of log for 5.0.0_r7 x86_64 bluetooth problems which seems related to BT HCI (bt_hci_bdroid.c is signalling a SEGFAULT).

The crashing process bt_hc_worker and the correlated Error 4 from library libusb.so. There are actually hundreds of bt_hc_worker crash events just after booting in the GUI.
Thousands of "RLIMIT_NICE not set" messages too.

With 5.0.0_r7 these BT errors were not present with x86 iso.

I also attached dmesg/logcat for lollipop 5.0.1_r1 x86 and x86_64 iso boots (In these iso images all three Bluetooth flags were set to false).

x86 No boot but I need to recheck to confirm this, because it's very strange.

x86_64 boot ok, no Bluetooth issues, obviously, but I see a new error "Unfortunately, SuperUser has stopped.", but just once, WiFi dongle (rt2800) is completely crazy with LED going in on and off cycles every few seconds. Besides that the x86_64 build boots and I could also update apps.

Mauro
IMG_3.jpg
dmesg_x86_BT_false_2014-12-15.zip
logcat_x86_BT_false_2014-12-15.zip
dmesg_x64_64_BT_false_2014-12-15.zip
logcat_x86_64_BT_false_2014-12-15.zip

Tony Lucas

unread,
Dec 17, 2014, 9:02:07 PM12/17/14
to andro...@googlegroups.com

Bahasa indonesia aja bisa gak

--

Chih-Wei Huang

unread,
Dec 17, 2014, 9:30:11 PM12/17/14
to Android-x86
2014-12-18 3:44 GMT+08:00 Mauro Rossi <issor...@gmail.com>:
> Hi,
>
> you can find as attachment picture of log for 5.0.0_r7 x86_64 bluetooth
> problems which seems related to BT HCI (bt_hci_bdroid.c is signalling a
> SEGFAULT).
>
> The crashing process bt_hc_worker and the correlated Error 4 from library
> libusb.so. There are actually hundreds of bt_hc_worker crash events just
> after booting in the GUI.
> Thousands of "RLIMIT_NICE not set" messages too.
>
> With 5.0.0_r7 these BT errors were not present with x86 iso.
>
> I also attached dmesg/logcat for lollipop 5.0.1_r1 x86 and x86_64 iso boots
> (In these iso images all three Bluetooth flags were set to false).

I think we are talking about debugging
Bluetooth crashing when the flag is true.

Anyway, I didn't see useful information in the logcat.
If it's a native crashing, I expect to see
the call stack in the crashed library.

> x86 No boot but I need to recheck to confirm this, because it's very
> strange.
>
> x86_64 boot ok, no Bluetooth issues, obviously, but I see a new error
> "Unfortunately, SuperUser has stopped.", but just once, WiFi dongle (rt2800)
> is completely crazy with LED going in on and off cycles every few seconds.
> Besides that the x86_64 build boots and I could also update apps.

You have a incomplete SuperUser apk in /system/priv-app/.
If you built with the latest lollipop-x86 codebase,
the SuperUser app should not exist.
I suggest you rebuild the system image by

rm -rf $OUT/system

Geek Till It Hertz

unread,
Dec 18, 2014, 7:37:32 AM12/18/14
to andro...@googlegroups.com
433 mb thats big !!!!
downloading...

midi jari

unread,
Dec 18, 2014, 12:12:47 PM12/18/14
to andro...@googlegroups.com
Hmm, for me I have a weirder problem: SOME TIMES, it enables itself, OTHERS it is just trying to enable itself and keep trying, until I reboot sevral times and it works :P

György Pejović

unread,
Dec 18, 2014, 4:24:26 PM12/18/14
to andro...@googlegroups.com

Hi Carsten!

There are two options..

1. Modify the
android-x86/out/target/product/x86/system

and write to the terminal:
$ cd android-x86
$ make iso_img

or

The second option

Mount the android_x86.iso (2clicks)
Copy the system.sfs to home directory
Open the terminal

$ cd home
$ unsquashfs system.sfs
$ cd /
$ mkdir /mnt/system
$ sudo mount /home/squashfs-root/system.img /mnt/system
$ sudo chmod -R 777 /mnt/system

This modifies the way you want
after..

$ sudo umount /mnt/system
$ mksquashfs /home/squashfs-root/system.img /home/squashfs-root/system.sfs



2014. december 18., csütörtök 12:37:32 UTC időpontban Geek Till It Hertz a következőt írta:
433 mb thats big !!!!
downloading...


On Wednesday, December 17, 2014 3:09:23 PM UTC+5:30, György Pejović wrote:
https://docs.google.com/file/d/0B73McXwkxx69MkpkeHRYMHMwUlE/preview?pli=1

made of own use.. updated, now 481 mb

Sorry, my english is very bad!!

Carbon Jiao

unread,
Dec 18, 2014, 10:12:53 PM12/18/14
to andro...@googlegroups.com
Thanks for your image...

When it runs on my tablet (Atom Z3735D), and boot into Android, Alt+F1, terminal is full of "binder: 8189 RLIMIT_NICE not set"...

Could you have some advices on how to solve this...?

And could you help to add below CONFIG part when you compile the kernel?
    CONFIG_TOUCHSCREEN_EDT_FT5X06=y
    CONFIG_KXSD9=y
This can make my touchscreen and accelate sensor works...

Thanks a lot!

在 2014年12月17日星期三UTC+8上午3时11分20秒,Geek Till It Hertz写道:

rbg

unread,
Dec 19, 2014, 12:12:45 AM12/19/14
to andro...@googlegroups.com
repo sync'd new today.....no changes, build, lunch 11, is userdebug


On Tuesday, December 16, 2014 10:23:14 PM UTC-5, Chih-Wei Huang wrote:
logcat-5.0.1_r1.txt.zip
dmesg-5.0.1_r1.txt.zip

Verachten Bruno

unread,
Dec 19, 2014, 5:23:01 AM12/19/14
to android-x86
Hi,

I gave a try to your iso file under VirtualBox, and it loops (like my
build btw) on the very nice boot animation.

Regards,

Bruno Verachten

Geek Till It Hertz

unread,
Dec 19, 2014, 7:34:03 AM12/19/14
to andro...@googlegroups.com
firstly, this us an Awesome build.
secondly, a few questions though...
1) How did you get rid of the Bluetooth issue?

2) How did you install gapps?

Geek Till It Hertz

unread,
Dec 19, 2014, 7:35:00 AM12/19/14
to andro...@googlegroups.com
lollipop as of now won't run under virtual box machine etc.

György Pejović

unread,
Dec 19, 2014, 4:45:13 PM12/19/14
to andro...@googlegroups.com
I didn't run it under VirtualBox, i booted it off a usb and it works this way.

lewis donofrio

unread,
Dec 20, 2014, 7:09:57 AM12/20/14
to andro...@googlegroups.com
Anyone gotten resolved the 927 errors on hdinstall?
--
_________________________________________________________
http://www.tinyurl.com/rightprofilestandingatwork2014 - 734-743-1743


On Tuesday, December 16, 2014 2:11:20 PM UTC-5, Geek Till It Hertz wrote:

Geek Till It Hertz

unread,
Dec 20, 2014, 10:07:40 AM12/20/14
to andro...@googlegroups.com
how fid you install gapps and got rid of the Bluetooth crash???

MikeR

unread,
Dec 20, 2014, 10:32:56 AM12/20/14
to andro...@googlegroups.com
Ditto. I haven't found a Gapps package that works yet...

Sent with AquaMail for Android
http://www.aqua-mail.com


On December 20, 2014 9:07:44 AM Geek Till It Hertz <sahaj...@gmail.com>
wrote:

> how fid you install gapps and got rid of the Bluetooth crash???
>

György Pejović

unread,
Dec 20, 2014, 3:51:53 PM12/20/14
to andro...@googlegroups.com
2014. december 20., szombat 15:07:40 UTC időpontban Geek Till It Hertz a következőt írta:
how fid you install gapps and got rid of the Bluetooth crash???

 I followed rbg's post ;

" change device/generic/common/
BoardConfig.mk as follows:

# Some framework code requires this to enable BT
BOARD_HAVE_BLUETOOTH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/generic/common/bluetooth
-BLUETOOTH_HCI_USE_USB := true
+BLUETOOTH_HCI_USE_USB := false
BOARD_HAVE_BLUETOOTH_BCM := true


2) change Android.mk files at external/bluetooth/bluedroid/ as follows:

external/bluetooth/bluedroid/hci/Android.mk
----------------------------------------------------------

src/userial_mct.c

-else ifeq ($(BLUETOOTH_HCI_USE_USB),true)

-LOCAL_CFLAGS += -DHCI_USE_USB

-LOCAL_SRC_FILES += \
src/hci_h4.c \
src/usb.c

-LOCAL_C_INCLUDES += \
external/libusb_aah

else


external/bluetooth/bluedroid/main/Android.mk
------------------------------------------------------------

LOCAL_SHARED_LIBRARIES := \
- $(if $(filter true,$(BLUETOOTH_HCI_USE_USB)),libusb) \
libcutils \"

At this moment I'm trying to build an ISO that could solve the VirtualBox problem

$ make iso_img TARGET_PRODUCT=android_x86 TARGET_KERNEL_CONFIG=vbox_defconfig
vbox_defconfig.zip

Chih-Wei Huang

unread,
Dec 20, 2014, 11:02:59 PM12/20/14
to Android-x86
The logcat contains exact the backtrace I need:

I/DEBUG ( 1437): backtrace:
I/DEBUG ( 1437): #00 pc 00005948 /system/lib/libusb.so
(libusb_submit_transfer+24)

$ addr2line -Cfe out/target/product/x86/symbols/system/lib/libusb.so 00005948
libusb_submit_transfer
/home/cwhuang/git/lollipop-x86/external/libusb_aah/libusb/io.c:1373

I/DEBUG ( 1437): #01 pc 001cd247
/system/lib/hw/bluetooth.default.so (userial_write+167)

$ addr2line -Cfe
out/target/product/x86/symbols/system/lib/hw/bluetooth.default.so
001cd247
userial_write
/home/cwhuang/git/lollipop-x86/external/bluetooth/bluedroid/hci/src/usb.c:1095

Analyzing the code shows the usb_write function
seems to work on a null usb.handle
that causes the crashing.

I've pushed in the fix.
Thank you.

I/DEBUG ( 1437): #02 pc 001cb327
/system/lib/hw/bluetooth.default.so (hci_h4_send_msg+167)
I/DEBUG ( 1437): #03 pc 001c8efc /system/lib/hw/bluetooth.default.so
I/DEBUG ( 1437): #04 pc 001ced5b /system/lib/hw/bluetooth.default.so
I/DEBUG ( 1437): #05 pc 001cf7b8 /system/lib/hw/bluetooth.default.so
I/DEBUG ( 1437): #06 pc 001cedfa /system/lib/hw/bluetooth.default.so
I/DEBUG ( 1437): #07 pc 00021aa8 /system/lib/libc.so
(__pthread_start(void*)+56)
I/DEBUG ( 1437): #08 pc 0001c6a9 /system/lib/libc.so (__start_thread+25)
I/DEBUG ( 1437): #09 pc 00013226 /system/lib/libc.so (__bionic_clone+70)

Geek Till It Hertz

unread,
Dec 21, 2014, 8:11:17 AM12/21/14
to andro...@googlegroups.com
after this I have an error at boot
Error: No configuration file found
No DEFAULT or UI configuration directive found!
boot:

rbg

unread,
Dec 21, 2014, 9:07:44 AM12/21/14
to andro...@googlegroups.com
...works fine for me

a fix for "Unfortunately bluetooth share has stopped" has been added to git...thanks Chih-Wei

test build available here:

Geek Till It Hertz

unread,
Dec 21, 2014, 9:42:52 AM12/21/14
to andro...@googlegroups.com
yup boots on VM
looks like its my USB device.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages