Ubuntu Phone for the HTC HD2

Search This thread

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
Here, or in other thread?

Btw, crashing android services are normal, as most of the system files are removed.
What exactly is the current state of development?

I've moved to NativeSD, and currently, and finally, it seems that i've succeed and i am in the Android now.
But unfortunately, because of million tests, my micro usb port just broken....
 

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
Has it detached from the motherboard? or hopefully just fluff in port or broken data cable :fingers-crossed:?

ADB is working now.
Form the logcat, i saw surfaceflnger is crashing continuously...

Robbie: It is not broken cable, but in fact, the silvery metal around the port is very loose, and my computer doesn't recognize my device anymore...
I might find a phone repair shop tomorrow...
 

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
No, but in Ubuntu lots of Android files are removed. Its remaining part is needed because the drivers. Just ignore the crashes and focus on the chrooted environment.

No, Ubuntu Touch rely on surfaceflinger, without it, it won't start.
Moreover, it seems that i don't have some egl libraries, too.

EDIT: My phone may get fixed in the end of this week
 
Last edited:
  • Like
Reactions: pirlano

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
Okay, then we will need that (so it should be the reason why the GUI was not accessible), but dalvikvm and app_process will crash if they are not removed.

OK, surfacefligner won't crash anymore, after adding egl libraries, and LOTS of libraries in /system/lib/hw, idk why all of my library is missing, may be there are some problem in the build.
Surfaceflinger won't crash, but mediaserver and drmserver are start crashing, idk why...
Good news is, i got the boot animation screen now. (CM10.1)

I am trying the ubuntu rootfs now.

EDIT: No android services are crashing now. But i get Seg. Fault on ubuntuappmanager, i think that i need to try mwc-demo instead of the newest rootfs.
 
Last edited:

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
Is there any way to access something logcat-like inside chroot?
I'm not sure if this OS manages the display itself, or something vnc-like is outside chroot. Latter seems to have more probability, as the devices I checked used the same ubuntu rootfs. This means, that anything that is device-specific should be part of /system, not ubuntu. It would be a great help if we could connect to wifi, so we could check if there is a running vnc-server we can connect to.

What? Fox port by a vampire?

First of all, i made adbd run as root by:
Code:
adb root
Then, i opened two terminal window, one is logcat, another is:
Code:
ubuntu_chroot shell
ubuntu-session

qml-phone-shell exits itself, without errors/debug messages, this is the most weird point.

This is my logcat:
Code:
root@android:/ # logcat
--------- beginning of /dev/alog/main
D/AK8973  (   83): AK8973 daemon 1.3.3 Start
D/AK8973  (   83): (Library version : 1.2.1.620)
I/installd(   79): installd firing up
I/DEBUG   (   74): debuggerd: Apr  3 2013 02:11:49
I/cm      (  101): ____ _   _ ____ _  _ ____ ____ ____ _  _ _  _ ____ ___ 
I/cm      (  103): |     \_/  |__| |\ | |  | | __ |___ |\ | |\/| |  | |  \ 
I/cm      (  105): |___   |   |  | | \| |__| |__] |___ | \| |  | |__| |__/ 
I/cm      (  113): Welcome to Android 4.2.1 / CyanogenMod-10.1-20130402-UNOFFICIAL-leo 
I/SurfaceFlinger(   76): SurfaceFlinger is starting
I/SurfaceFlinger(   76): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
D/libEGL  (   76): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL  (   76): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL  (   76): loaded /system/lib/egl/libGLESv2_adreno200.so
I/ServiceManager(   81): Waiting for service SurfaceFlinger...
I/Adreno200-EGL(   76): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
I/Adreno200-EGL(   76): Build Date: 07/31/12 Tue
I/Adreno200-EGL(   76): Local Branch: 
I/Adreno200-EGL(   76): Remote Branch: quic/master
I/Adreno200-EGL(   76): Local Patches: NONE
I/Adreno200-EGL(   76): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 +  NOTHING
I/gralloc (   76): using (fd=19)
I/gralloc (   76): id           = msmfb31_0
I/gralloc (   76): xres         = 480 px
I/gralloc (   76): yres         = 800 px
I/gralloc (   76): xres_virtual = 480 px
I/gralloc (   76): yres_virtual = 1600 px
I/gralloc (   76): bpp          = 32
I/gralloc (   76): r            =  0:8
I/gralloc (   76): g            =  8:8
I/gralloc (   76): b            = 16:8
I/gralloc (   76): width        = 48 mm (254.000000 dpi)
I/gralloc (   76): height       = 80 mm (254.000000 dpi)
I/gralloc (   76): refresh rate = 60.00 Hz
D/CALCFPS (   76): DEBUG_CALC_FPS: 0
D/CALCFPS (   76): period: 10
D/CALCFPS (   76): ignorethresh_us: 500000
D/CALCFPS (   76): DEBUG_CALC_FPS: 0
D/CALCFPS (   76): period: 10
D/CALCFPS (   76): ignorethresh_us: 500000
I/run-parts(   91): Not loading RMNET module as /system/ppp exists
I/hwcomposer(   76): Initializing Qualcomm Hardware Composer
I/hwcomposer(   76): MDP version: 310
I/hwcomposer(   76): DYN composition threshold : 2.000000
I/hwcomposer(   76): hwc_device_open: Faking Hardware VSYNC
I/SurfaceFlinger(   76): Using composer version 1.0
I/hwcomposer(   76): Initializing UEvent Listener Thread
I/hwcomposer(   76): Initializing VSYNC Thread
W/SurfaceFlinger(   76): getting VSYNC period from fb HAL: 16666666
W/Adreno200-EGL(   76): <qeglDrvAPI_eglChooseConfig:780>: EGL_BAD_ATTRIBUTE
W/SurfaceFlinger(   76): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
W/SurfaceFlinger(   76): no suitable EGLConfig found, trying without EGL_RECORDABLE_ANDROID
E/Trace   (   76): error opening trace file: No such file or directory (2)
I/SurfaceFlinger(   76): EGL informations:
I/SurfaceFlinger(   76): vendor    : Android
I/SurfaceFlinger(   76): version   : 1.4 Android META-EGL
I/SurfaceFlinger(   76): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer 
I/SurfaceFlinger(   76): Client API: OpenGL_ES
I/SurfaceFlinger(   76): EGLSurface: 8-8-8-0, config=0x7
I/SurfaceFlinger(   76): OpenGL ES informations:
I/SurfaceFlinger(   76): vendor    : Qualcomm
I/SurfaceFlinger(   76): renderer  : Adreno (TM) 200
I/SurfaceFlinger(   76): version   : OpenGL ES-CM 1.1
I/SurfaceFlinger(   76): extensions: GL_EXT_debug_marker GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_ARB_vertex_buffer_object GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_draw_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_binning_control GL_QCOM_extended_get GL_QCOM_tiled_rendering GL_AMD_compressed_3DC_texture 
I/SurfaceFlinger(   76): GL_MAX_TEXTURE_SIZE = 4096
I/SurfaceFlinger(   76): GL_MAX_VIEWPORT_DIMS = 4096 x 4096
D/SurfaceFlinger(   76): Screen acquired, type=0 flinger=0x2a007318
W/asset   (  144): Asset path /system/framework/framework-res.apk is neither a directory nor file (type=1).
D/libEGL  (  144): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL  (  144): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL  (  144): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL(  144): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
I/Adreno200-EGL(  144): Build Date: 07/31/12 Tue
I/Adreno200-EGL(  144): Local Branch: 
I/Adreno200-EGL(  144): Remote Branch: quic/master
I/Adreno200-EGL(  144): Local Patches: NONE
I/Adreno200-EGL(  144): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 +  NOTHING
E/Trace   (  144): error opening trace file: No such file or directory (2)
D/memalloc(   76): init_pmem_area: Initializing pmem area
D/memalloc(   76): init_pmem_area_locked: Opening master pmem FD
D/memalloc(   76): init_pmem_area_locked: Total pmem size: 33554432
E/Trace   (   81): error opening trace file: No such file or directory (2)
I/ubuntu::detail::ApplicationManager(   81): virtual bool android::InputSetup::DummyApplication::updateInfo()
I/ubuntu::detail::ApplicationManager(   81): virtual bool android::InputSetup::DummyApplicationWindow::updateInfo()
D/EventHub(   81): No input device configuration file found for device 'lightsensor-level'.
D/EventHub(   81): No input device configuration file found for device 'compass'.
D/EventHub(   81): No input device configuration file found for device 'htcleo-keypad'.
I/EventHub(   81): New device: id=3, fd=33, path='/dev/input/event3', name='htcleo-keypad', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/htcleo-keypad.kl', keyCharacterMap='/system/usr/keychars/htcleo-keypad.kcm', builtinKeyboard=true, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/EventHub(   81): No input device configuration file found for device 'h2w headset'.
I/EventHub(   81): New device: id=4, fd=34, path='/dev/input/event2', name='h2w headset', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/h2w_headset.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/EventHub(   81): No input device configuration file found for device 'proximity'.
I/EventHub(   81): New device: id=6, fd=35, path='/dev/input/event0', name='htcleo-touchscreen', classes=0x15, configuration='/system/usr/idc/htcleo-touchscreen.idc', keyLayout='/system/usr/keylayout/htcleo-keypad.kl', keyCharacterMap='/system/usr/keychars/Virtual.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/SensorService(   80): nuSensorService starting...
I/SensorService(   80): BMA150 3-axis Accelerometer
I/SensorService(   80): AK8973 3-axis Magnetic field sensor
I/SensorService(   80): AK8973 Orientation sensor
I/SensorService(   80): CM3602 Proximity sensor
I/SensorService(   80): CM3602 Light sensor
D/SensorService(   80): nuSensorService thread starting...
D/AK8973  (   83): Compass Start
I/InputReader(   81): Device added: id=-1, name='Virtual', sources=0x00000301
I/InputReader(   81): Device reconfigured: id=6, name='htcleo-touchscreen', size 480x800, orientation 0, mode 1, display id 0
I/InputReader(   81): Device added: id=6, name='htcleo-touchscreen', sources=0x00001103
I/InputReader(   81): Device added: id=4, name='h2w headset', sources=0x00000101
I/InputReader(   81): Device added: id=0, name='htcleo-keypad', sources=0x00000101
D/AK8973  (   83): Compass CLOSE 
E/linker  (  197): ics/linker.c:1598| WARNING: Skipping libc.so
D/EventHub(  197): No input device configuration file found for device 'lightsensor-level'.
D/EventHub(  197): No input device configuration file found for device 'compass'.
D/EventHub(  197): No input device configuration file found for device 'htcleo-keypad'.
I/EventHub(  197): New device: id=3, fd=16, path='/dev/input/event3', name='htcleo-keypad', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/htcleo-keypad.kl', keyCharacterMap='/system/usr/keychars/htcleo-keypad.kcm', builtinKeyboard=true, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/EventHub(  197): No input device configuration file found for device 'h2w headset'.
I/EventHub(  197): New device: id=4, fd=21, path='/dev/input/event2', name='h2w headset', classes=0x1, configuration='', keyLayout='/system/usr/keylayout/h2w_headset.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
D/EventHub(  197): No input device configuration file found for device 'proximity'.
I/EventHub(  197): New device: id=6, fd=22, path='/dev/input/event0', name='htcleo-touchscreen', classes=0x15, configuration='/system/usr/idc/htcleo-touchscreen.idc', keyLayout='/system/usr/keylayout/htcleo-keypad.kl', keyCharacterMap='/system/usr/keychars/Virtual.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false
I/InputReader(  197): Device added: id=-1, name='Virtual', sources=0x00000301
I/InputReader(  197): Device reconfigured: id=6, name='htcleo-touchscreen', size 480x800, orientation 0, mode 1, display id 0
I/InputReader(  197): Device added: id=6, name='htcleo-touchscreen', sources=0x00001103
I/InputReader(  197): Device added: id=4, name='h2w headset', sources=0x00000101
I/InputReader(  197): Device added: id=0, name='htcleo-keypad', sources=0x00000101
I/run-parts(   91): +++ Modules Loaded +++
I/run-parts(   91): Unable to chown /system/bin/pppd: No such file or directory
I/run-parts(   91): Unable to chmod /system/bin/pppd: No such file or directory
I/run-parts(   91): run-parts: /system/etc/init.d/97ppp exited with code 10
I/logwrapper(   91): /system/xbin/run-parts terminated by exit(1)
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.
I/InputDispatcher(   81): Dropping event because there is no touched window.

BTW, we don't need wifi for VNC connection, simpily, adb+port forward should be fine :D

EDIT: Seems that ubuntu-session / ubuntu_chroot won't start as intended, i will look into it.
 
Last edited:

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
Thanks, I forgot about port-forward in adb...
So you can access chroot, but things don't seem to work.
Do you use rootfs built by yourself or the one released with the test-builds?
I will have a look inside ubuntu rootfs, maybe I can find something that can help us

Ubuntu rootfs is from ubuntu-touch cdimage's site. Using mwc-demo
The system is built by myself.

btw, after changing my logcat level to 8 (the highest) in init.rc, i got the following dmesg:
http://pastebin.com/eJ4yj6Pt

It seems that the init have ran "ubuntu-session", but for some reason, it won't start the phone shell. (GUI)
I confirm that swap is on, too.
 
Last edited:

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
Can you try an older init version? U can just use one from any CM10.1(U used that, right?) ROM. I had init problems with B2G. Using newest init system did not boot up.

I see. but unfortunately, i must use this init as this init has been customized for Ubuntu-touch, including changing in Android log location (to /dev/alog instead of /dev/log), so if i use an older init which is not customized, the system will not work too...
 

z3nful

Senior Member
Jan 22, 2011
260
304
Phoenix
www.hookupcellular.com
Ubuntu rootfs is from ubuntu-touch cdimage's site. Using mwc-demo
The system is built by myself.

btw, after changing my logcat level to 8 (the highest) in init.rc, i got the following dmesg:
http://pastebin.com/eJ4yj6Pt

It seems that the init have ran "ubuntu-session", but for some reason, it won't start the phone shell. (GUI)
I confirm that swap is on, too.

Check the Xorg log (I can't remember the equivalent from when I was working on this for ubuntu touch).

Ubuntu-session restarting over and over like that points that the error is caused by one of the processes ubuntu-session is trying to start. The error is not passed back to the kernel system, so dmesg wont show it.

Its been a few months since I working on this myself, but I was stuck at a similar issue regarding a problem with one of the packages ubuntu-session used (can't remember which one unfortunately).

Hope this helps :)

Sent from my NexusHD2 using xda premium
 

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
Check the Xorg log (I can't remember the equivalent from when I was working on this for ubuntu touch).

Ubuntu-session restarting over and over like that points that the error is caused by one of the processes ubuntu-session is trying to start. The error is not passed back to the kernel system, so dmesg wont show it.

Its been a few months since I working on this myself, but I was stuck at a similar issue regarding a problem with one of the packages ubuntu-session used (can't remember which one unfortunately).

Hope this helps :)

Sent from my NexusHD2 using xda premium

Seems that Ubuntu-Touch is not using Xorg, so there i could not find anything about Xorg under /data/ubuntu/var/log
However, i have noticed this:
Code:
cannot read proc file system 1 - operation not permitted
 

HypoTurtle

Senior Member
May 5, 2011
1,970
1,257
Seems that Ubuntu-Touch is not using Xorg, so there i could not find anything about Xorg under /data/ubuntu/var/log
However, i have noticed this:
Code:
cannot read proc file system 1 - operation not permitted

I take it you ran
Code:
sudo mount -t proc proc /proc

UT isn't / wasn't using Xorg last I checked (although you can install it and export to an X server via adb / ssh).

And by init I would think he means the init binary and I don't think that's changed between android and UT, a few .rc files in the ramdisk (initrd.cpio.gz) have been but don't think the binary has been)
 
Last edited:

hopkinskong

Senior Member
Nov 8, 2008
194
131
Hong Kong
I take it you ran
Code:
sudo mount -t proc proc /proc

UT isn't / wasn't using Xorg last I checked (although you can install it and export to an X server via adb / ssh).

And by init I would think he means the init binary and I don't think that's changed between android and UT, a few .rc files in the ramdisk (initrd.cpio.gz) have been but don't think the binary has been)

I confirm that the binary has been changed, at least, "/dev/log" has been changed to "/dev/alog", i asked someone on their IRC.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Okay, then we will need that (so it should be the reason why the GUI was not accessible), but dalvikvm and app_process will crash if they are not removed.

    OK, surfacefligner won't crash anymore, after adding egl libraries, and LOTS of libraries in /system/lib/hw, idk why all of my library is missing, may be there are some problem in the build.
    Surfaceflinger won't crash, but mediaserver and drmserver are start crashing, idk why...
    Good news is, i got the boot animation screen now. (CM10.1)

    I am trying the ubuntu rootfs now.

    EDIT: No android services are crashing now. But i get Seg. Fault on ubuntuappmanager, i think that i need to try mwc-demo instead of the newest rootfs.
    9
    Development for this slightly slowed over the weekend as I broke my Nexus 4 and had to go back to using my HD2 as the business phone, but I should have something soon. Its going to be magldr only at first, and probably only fit on US HD2 (since EU has half the space)

    Once I have it up, if someone with knowledge of SD builds and Native SD can give a quick hand (I never had time to do more than nand installs), we can get it working for all models.

    Sent from my NexusHD2 using xda premium
    7
    OK...
    My public exam is approaching, and i only got a little time for this now.
    July and August will be the final development (for me) of the Ubuntu Touch on HTC HD2 (at least for me).
    I am still stuck on the GUI.

    Current state:
    (2013-06-30) I suspect my Android build is defect, some important HAL modules does not being built. Still solving.
    5
    I've gotten the rom itself to build right for the HD2, but the jellybean kernel has a few things that aren't compiling right, namely, the Kernel Namespace Support for networking. Which I should probably just ignore for now anyways since wifi doesn't work yet for Android CM10.1 on HD2.

    If I get time today, ill try to get an installable zip setup.
    5
    I've gotten the rom itself to build right for the HD2, but the jellybean kernel has a few things that aren't compiling right, namely, the Kernel Namespace Support for networking. Which I should probably just ignore for now anyways since wifi doesn't work yet for Android CM10.1 on HD2.

    If I get time today, ill try to get an installable zip setup.
    Thanks, looking forward to it:D
    FYI marc1706 posted a jb kernel with bcmdhd support here http://xdaforums.com/showpost.php?p=35571547&postcount=167
    I think he tried it on 4.2.2 rom here http://xdaforums.com/showpost.php?p=38059342&postcount=37 and then posted this http://xdaforums.com/showpost.php?p=38063992&postcount=47