[Dec 27] Ubuntu for HTC HD2 - v0.3 released

Search This thread

plopper

Senior Member
Dec 7, 2008
102
25
It does boot to keyboard and mouse and desktop though !

can you tell us what you did on getting ubuntu to boot this way?

So what do I do then ?.

i had a quick try on parted but it gave me some errors, due to a time issue here i suggest you look up the man pages of parted.
beside that there are other tools to schrink the filesystem, don't remember all there names tho a google search should bring them up.
a 3th option would be to build the root filesystem from scratch, i personaly stopped doing that due to the hardware limitations i have right now.

Downloaded and started to test this build yesterday. I'm new to Linux in general, but have been wanting to have a desktop-like environment on my HD2 (like has been achieved with Win98 in Qemu, with limitations).

Wifi works for me at home, with a router, but at the office I have an access point with AdHoc Wifi, and I can't connect (the same happens with Android, and it is a known issue.) So, can Ubuntu for HD2 use adhoc wifi?

android uses the same kernel sources and drivers as ubuntu, so same problem is at hand here.
the wifi drivers aren't finished yet.

If I remember right, I saw in a previous post that you use the Ubuntu image in Qemu on your PC first to test thing. Is it a special version of Qemu? Can I use it on WinXP? Or do I need to run Ubuntu on my laptop? I would like to try and install a (few) software on Ubuntu for HD2 and then transfer the image to the SDCard.

currently i have only access to my little netbook and on that i have fedora linux, and fedora has currently some bugs which cause qemu not to run like it should.
the test images run fine, but none of the normal images are showing any life.
and as my harddrive is filled with the maximum amount of partitions, i couldn't install ubuntu on it either (also no usb sticks at hand to install it on 1 of those).
so i had to install ubuntu in a virtual machine (virtualbox), this is great to try and learn linux in.
but running qemu in this virtual machine on this tiny atom cpu which is in the netbook is far from workable.
when i'm back home from holiday i will install ubuntu on a spare normal computer to try again tho.

i had a quick look at the windows version of qemu for windows, and yes that is available, but not the arm extension which is needed for this version of ubuntu, thats a no go.
so it seems you like me have to do a normal instalation of ubuntu (not insde a virtual machine).
the ubuntu installer has a option to schrink the partitions so you can install it beside the windows which is on your laptop.

Thanks for your replies, but i didn't get it to work...
(no big problem, as everything else works wonderfully, and i have all my data i use on SD Card :D)

I get the message that fuse-utils already has the latest version.

I only have the files SDA and SDA1 inside /dev/ folder
tried them both to mount, but on sda1 it says Fatal: Module fuse not found, and at sda it says i have to specify the filesystem, so i tried "mount -t ntfs /dev/sda /media/toklusb" but with error "failed to access /dev/sda (i assume this is the SD card?)...

no look at dmesg as dcordes suggested, that shows all the hardware and the initialization it does.
plug the stick in when the system is running and type "dmesg" in a terminal and the last lines should show the info about the stick.
sda is indeed the sd card, but dmesg should show something like sdb (it counts on)
post the last couple of lines from dmesg for us pls.

I had this problem, trying ndiswrapper. Installed in software center, always wants to update and if i try via console it says its installed, but does not finde the programm :/

Im not good with linux but maby there is a problem, that the programms are installed but not listed as run-able programms... i remember something like linking the programms to a specific folder and mark them runable to use them properly..
(sory if this is wrong or a completly different thing)

what i personaly remember of nidswrapper is that i makes linux able to load windows drivers.
i have no idea in how far this works on an arm cpu tho, and if it works you probably need the arm version of the windows drivers (winmo).
but this brings another problem up, supplying those drivers with a linux distribution (and possible even the ndis package) is not allowed in many country's.
as the hd2 comes shipped with windows mobile this could give a loophole for the licenses tho, but i'm no lawyer so i'm not sure how this works precisely.

I really appreciate Ubuntu on the hd2 because it lets me do things that can neither be done in winmo nor in android: Reading usb flash drives on the go (I use a solar usb hub from dtech with built in lipo cell, which can power usb host for about 50min), annotating pdfs (with program called Xournal) and having a complete desktop office suite with open office (for some reason you cannot install the open office suite in the ubuntu software center, which will give you an error, but it works if you install the single open office programs (writer, spreadsheet ...) one after another).
I wanted to use ubuntu for holding presentations and bought a DisplayLink usb2vga device from Kensington called "Universal Multi-Display Adapter". It should work with this ubuntu because the driver for "all DisplayLink devices to date (all DL1xx devices) is in the staging tree of the Linux 2.6.32 kernel" according to their website. However when I connect it to my leo I do not get the green screen that I am supposed to get before xorg configuration. But if I connect it to my ubuntu notebook I will get the green screen without installing anything. Has someone an idea how to get this working on leo?

the laptop: you have to explain xorg how to use the usb screen and what resolution to use, plus some more details.
in other words, you have to modify the xorg.conf file, info about this should be available on the site from kensington, if not google should be able to help you further.
if that still doesn't work, try compiling your own version of the driver for your current kernel and repeat the above process.

the hd2: reverse order of the above, compile the driver and see if the screen turns green, if yes then jump to the xorg config to set it up (much of this config can be cloned from your laptop, the screen stays the same).

i guess the screen has it's own powersuply as i doubt it works on the standard 5 volts with 0.5 amps which normal usb ports are supplying (2.5 watt).
yesterday i been looking up some powered usb hubs available in the shops here, and they all come with a very weak powersupply.
1.2 amps max, the htc linux site warns about this, those only give 6 watt of power.
this works fine for a keyboard and a mouse, but when it comes to harddisk for example, the lack of power shows up.
i have an external 2.5 inch harddisk which comes shipped with a Y cable, this because it needs more then the 2.5 watt which comes from 1 usb plug, it needs 2 usb plugs to provide the power.
it may work without the Y cable but you risc blowing up your port.

Hi

I am interested in this for my son to try play a regular Java game (JAR file) called minecraft on the phone.

Is it possible to compile a JVM for the platform, or is that side closed from the Sun/Oracle side? Or does this build already come with a JVM?

Thanks

look up the games section of the install centre of ubuntu, wouldn't be suprised if it comes with a minecraft clone.

plopper.
 
  • Like
Reactions: Tokl

dertester123

Senior Member
Oct 11, 2008
960
202
can you tell us what you did on getting ubuntu to boot this way?

Look in the startup file of the package. Im not home atm but you have to select the right kernel to load. This is what is meant by the 3 methods in the first post here.
Just exclude the actual one (i think it was usb theter) and activate the usb host mode.

You need the right cable of course, but its easy to build one yourself.


/EDIT
Im home now and here is what to change in the startup.txt in linux folder of the package you downloaded:

Code:
...

# USBETH allows for conventional usb ethernet connectivity
# ADB will provide android debug bridge conectivity
# USBHOST will allow connection of peripheral usb devices
# when supplying +5V externally.

set kernel zImage_htcleo_adb_2.6.32.9-38182-g6ad7e77
[COLOR="Red"]#[/COLOR] set kernel zImage_htcleo_usbhost_2.6.32.9-38182-g6ad7e77
# set kernel zImage_htcleo_usbeth_2.6.32.9-38182-g6ad7e77

...

to

Code:
...

# USBETH allows for conventional usb ethernet connectivity
# ADB will provide android debug bridge conectivity
# USBHOST will allow connection of peripheral usb devices
# when supplying +5V externally.

[COLOR="Red"]#[/COLOR] set kernel zImage_htcleo_adb_2.6.32.9-38182-g6ad7e77
set kernel zImage_htcleo_usbhost_2.6.32.9-38182-g6ad7e77
# set kernel zImage_htcleo_usbeth_2.6.32.9-38182-g6ad7e77

...


---------

The ndiswrapper thing was just a test. I dont know enough to get this to work or to understand why some programms behave strange.
 
Last edited:
  • Like
Reactions: dcordes

dcordes

Retired Senior Recognized Developer
Nov 20, 2007
707
254
I really appreciate Ubuntu on the hd2 because it lets me do things that can neither be done in winmo nor in android: Reading usb flash drives on the go (I use a solar usb hub from dtech with built in lipo cell, which can power usb host for about 50min), annotating pdfs (with program called Xournal) and having a complete desktop office suite with open office (for some reason you cannot install the open office suite in the ubuntu software center, which will give you an error, but it works if you install the single open office programs (writer, spreadsheet ...) one after another).
I wanted to use ubuntu for holding presentations and bought a DisplayLink usb2vga device from Kensington called "Universal Multi-Display Adapter". It should work with this ubuntu because the driver for "all DisplayLink devices to date (all DL1xx devices) is in the staging tree of the Linux 2.6.32 kernel" according to their website. However when I connect it to my leo I do not get the green screen that I am supposed to get before xorg configuration. But if I connect it to my ubuntu notebook I will get the green screen without installing anything. Has someone an idea how to get this working on leo?

Can you drop dmesg shortly after connecting u2bvga devices and paste it ?

I build me a powerd USB Cable and using this with mouse and keyboard is really amazing.

I never thought that it could be so fast!

Maby it will work with jdownloader or apache and other little server tools, would be great.



Somehow it did not find my own wifi hotspot, only the neighbours^^

I dont know why, maby the refresh time is to short? But i tried atleast 20-30 times... I dont have any special letters in my ap name :/
nice.
hm maybe wicd client program is too hectic and your AP beacon interval is too small?
adobe flash plugin for firefox or adobe air in ubuntu software center is not availabe and dont install !
how can install adobe flash player for firefox ?!
You can get flashlite plugin that will work. But it's difficult legal situation because adobe will only license it for certain manufacturers so I can't help with it.
There is an included greasemonkey script in firefox in ubuntu 0.3 for hd2. It will let you download youtube videos in various quality levels and then you can view them with mplayer (see below field where yt video should show. It's a drop down menu). Read the readme!
how can connect to a VPN in ubuntu ?
or get flash player for firefox?
http://wiki.ubuntu.com on the vpn
for basic flash use you can install gnash or swfdec packages and for youtube etc use downloader (See above)
Thanks for your replies, but i didn't get it to work...
(no big problem, as everything else works wonderfully, and i have all my data i use on SD Card :D)



I get the message that fuse-utils already has the latest version.



I only have the files SDA and SDA1 inside /dev/ folder
tried them both to mount, but on sda1 it says Fatal: Module fuse not found, and at sda it says i have to specify the filesystem, so i tried "mount -t ntfs /dev/sda /media/toklusb" but with error "failed to access /dev/sda (i assume this is the SD card?)...

sda is the full device sda1 is the partition which you wanna mount.
I can compile the fuse module with the next kernel. You might as well want to check the option to do it yourself. See first post and readme for kernel info.
It will be easier to reformat your usb stick with fat32 or so. You can even do it on your hd2 :cool:: install and use gparted program
 
  • Like
Reactions: Tokl

nmambre

Member
Oct 25, 2010
37
0
Guarenas
i had a quick look at the windows version of qemu for windows, and yes that is available, but not the arm extension which is needed for this version of ubuntu, thats a no go.
so it seems you like me have to do a normal instalation of ubuntu (not insde a virtual machine).
the ubuntu installer has a option to schrink the partitions so you can install it beside the windows which is on your laptop.

What I meant is I want to be able to use this exact same image for the HD2 in a virtual machine. I'll try Virtualbox on Win, and see if it handles ARM. I've downloaded Ubuntu 10.10 to install on another laptop, but my 1st need now is to be able to use the HD2 image to test some stuff (for example, install/use python). I would like to be able to run stuff like this on the HD2:
http://mblogic.sourceforge.net/
http://pvbrowser.de/pvbrowser/index.php

Regarding the ad hoc problem, there are workarounds for android, but I haven't tested them. If I can get the software I want working on the HD2, next step would be solving ad hoc problem.
 

pantizol

Member
Nov 24, 2009
30
7
Can you drop dmesg shortly after connecting u2bvga devices and paste it ?
I did dmesg. It gave me 670 lines which is probably to much to post. So here are the last 70 lines:
[ 181.923903] new vbus = 1
[ 181.924109] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 181.924235] msm_hsusb msm_hsusb: GetStatus port 1 status 80001803 POWER sig=j CSC CONNECT
[ 181.924346] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 182.081062] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 182.201107] usb 1-1: new high speed USB device using msm_hsusb and address 2
[ 182.352902] usb 1-1: default language 0x0409
[ 182.353412] usb 1-1: udev 2, busnum 1, minor = 1
[ 182.353454] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101
[ 182.353504] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 182.353550] usb 1-1: Product: USB 2.0 Hub [MTT]
[ 182.354802] usb 1-1: uevent
[ 182.361225] usb 1-1: usb_probe_device
[ 182.361279] usb 1-1: configuration #1 chosen from 1 choice
[ 182.363126] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 182.363728] usb 1-1:1.0: uevent
[ 182.364615] hub 1-1:1.0: usb_probe_interface
[ 182.364658] hub 1-1:1.0: usb_probe_interface - got id
[ 182.364695] hub 1-1:1.0: USB hub found
[ 182.371075] hub 1-1:1.0: 4 ports detected
[ 182.371121] hub 1-1:1.0: standalone hub
[ 182.371153] hub 1-1:1.0: ganged power switching
[ 182.371187] hub 1-1:1.0: global over-current protection
[ 182.372048] hub 1-1:1.0: TT per port
[ 182.372088] hub 1-1:1.0: TT requires at most 8 FS bit times (666 ns)
[ 182.372130] hub 1-1:1.0: Port indicators are supported
[ 182.372168] hub 1-1:1.0: power on to power good time: 100ms
[ 182.373024] hub 1-1:1.0: local power source is good
[ 182.373064] hub 1-1:1.0: no over-current condition exists
[ 182.373112] hub 1-1:1.0: enabling power on all ports
[ 182.375439] drivers/usb/core/inode.c: creating file '002'
[ 182.375895] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 182.381106] acpuclk_set_vdd_level 1275 no regulator
[ 182.421221] acpuclk_set_vdd_level 1150 no regulator
[ 182.451084] acpuclk_set_vdd_level 1050 no regulator
[ 182.472870] usb 1-1: link qh256-0001/c65894e0 start 1 [1/0 us]
[ 182.472983] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0000
[ 185.921123] acpuclk_set_vdd_level 1275 no regulator
[ 186.141192] acpuclk_set_vdd_level 1175 no regulator
[ 186.151447] microp_set_bkl(0)
[ 186.161076] acpuclk_set_vdd_level 1050 no regulator
[ 186.211313] acpuclk_set_vdd_level 1275 no regulator
[ 186.231150] acpuclk_set_vdd_level 1050 no regulator
[ 187.111082] acpuclk_set_vdd_level 1275 no regulator
[ 187.151505] acpuclk_set_vdd_level 1050 no regulator
[ 189.007640] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 189.008595] hub 1-1:1.0: port 1, status 0100, change 0001, 12 Mb/s
[ 189.161534] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
[ 189.519714] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 189.520601] hub 1-1:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 189.681534] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 189.771536] usb 1-1.1: new high speed USB device using msm_hsusb and address 3
[ 189.883660] usb 1-1.1: skipped 1 descriptor after interface
[ 189.884521] usb 1-1.1: default language 0x0409
[ 189.887171] usb 1-1.1: udev 3, busnum 1, minor = 2
[ 189.887215] usb 1-1.1: New USB device found, idVendor=17e9, idProduct=0036
[ 189.887265] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 189.887312] usb 1-1.1: Product: Kensington M01063
[ 189.887348] usb 1-1.1: Manufacturer: DisplayLink
[ 189.887383] usb 1-1.1: SerialNumber: 000000000000222
[ 189.888697] usb 1-1.1: uevent
[ 189.897395] usb 1-1.1: usb_probe_device
[ 189.897453] usb 1-1.1: configuration #1 chosen from 1 choice
[ 189.898587] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
[ 189.899269] usb 1-1.1:1.0: uevent
[ 189.910678] drivers/usb/core/inode.c: creating file '003'
[ 189.911164] acpuclk_set_vdd_level 1275 no regulator
[ 189.972295] acpuclk_set_vdd_level 1075 no regulator
[ 189.991127] acpuclk_set_vdd_level 1050 no regulator
[ 190.241074] acpuclk_set_vdd_level 1275 no regulator
[ 190.261193] acpuclk_set_vdd_level 1050 no regulator
[ 191.981106] acpuclk_set_vdd_level 1275 no regulator
 

dcordes

Retired Senior Recognized Developer
Nov 20, 2007
707
254
I did dmesg. It gave me 670 lines which is probably to much to post. So here are the last 70 lines:
[ 181.923903] new vbus = 1
[ 181.924109] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 181.924235] msm_hsusb msm_hsusb: GetStatus port 1 status 80001803 POWER sig=j CSC CONNECT
[ 181.924346] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 182.081062] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 182.201107] usb 1-1: new high speed USB device using msm_hsusb and address 2
[ 182.352902] usb 1-1: default language 0x0409
[ 182.353412] usb 1-1: udev 2, busnum 1, minor = 1
[ 182.353454] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101
[ 182.353504] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 182.353550] usb 1-1: Product: USB 2.0 Hub [MTT]
[ 182.354802] usb 1-1: uevent
[ 182.361225] usb 1-1: usb_probe_device
[ 182.361279] usb 1-1: configuration #1 chosen from 1 choice
[ 182.363126] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 182.363728] usb 1-1:1.0: uevent
[ 182.364615] hub 1-1:1.0: usb_probe_interface
[ 182.364658] hub 1-1:1.0: usb_probe_interface - got id
[ 182.364695] hub 1-1:1.0: USB hub found
[ 182.371075] hub 1-1:1.0: 4 ports detected
[ 182.371121] hub 1-1:1.0: standalone hub
[ 182.371153] hub 1-1:1.0: ganged power switching
[ 182.371187] hub 1-1:1.0: global over-current protection
[ 182.372048] hub 1-1:1.0: TT per port
[ 182.372088] hub 1-1:1.0: TT requires at most 8 FS bit times (666 ns)
[ 182.372130] hub 1-1:1.0: Port indicators are supported
[ 182.372168] hub 1-1:1.0: power on to power good time: 100ms
[ 182.373024] hub 1-1:1.0: local power source is good
[ 182.373064] hub 1-1:1.0: no over-current condition exists
[ 182.373112] hub 1-1:1.0: enabling power on all ports
[ 182.375439] drivers/usb/core/inode.c: creating file '002'
[ 182.375895] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 182.381106] acpuclk_set_vdd_level 1275 no regulator
[ 182.421221] acpuclk_set_vdd_level 1150 no regulator
[ 182.451084] acpuclk_set_vdd_level 1050 no regulator
[ 182.472870] usb 1-1: link qh256-0001/c65894e0 start 1 [1/0 us]
[ 182.472983] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0000
[ 185.921123] acpuclk_set_vdd_level 1275 no regulator
[ 186.141192] acpuclk_set_vdd_level 1175 no regulator
[ 186.151447] microp_set_bkl(0)
[ 186.161076] acpuclk_set_vdd_level 1050 no regulator
[ 186.211313] acpuclk_set_vdd_level 1275 no regulator
[ 186.231150] acpuclk_set_vdd_level 1050 no regulator
[ 187.111082] acpuclk_set_vdd_level 1275 no regulator
[ 187.151505] acpuclk_set_vdd_level 1050 no regulator
[ 189.007640] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 189.008595] hub 1-1:1.0: port 1, status 0100, change 0001, 12 Mb/s
[ 189.161534] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
[ 189.519714] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002
[ 189.520601] hub 1-1:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 189.681534] hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 189.771536] usb 1-1.1: new high speed USB device using msm_hsusb and address 3
[ 189.883660] usb 1-1.1: skipped 1 descriptor after interface
[ 189.884521] usb 1-1.1: default language 0x0409
[ 189.887171] usb 1-1.1: udev 3, busnum 1, minor = 2
[ 189.887215] usb 1-1.1: New USB device found, idVendor=17e9, idProduct=0036
[ 189.887265] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 189.887312] usb 1-1.1: Product: Kensington M01063
[ 189.887348] usb 1-1.1: Manufacturer: DisplayLink
[ 189.887383] usb 1-1.1: SerialNumber: 000000000000222
[ 189.888697] usb 1-1.1: uevent
[ 189.897395] usb 1-1.1: usb_probe_device
[ 189.897453] usb 1-1.1: configuration #1 chosen from 1 choice
[ 189.898587] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
[ 189.899269] usb 1-1.1:1.0: uevent
[ 189.910678] drivers/usb/core/inode.c: creating file '003'
thanks, could you post 'lsusb' output with connected hub and usb2vga device as well ?
 

plopper

Senior Member
Dec 7, 2008
102
25
@dertester: sorry had you mixed up.
thought you found an alternative for using haret to boot linux.

What I meant is I want to be able to use this exact same image for the HD2 in a virtual machine. I'll try Virtualbox on Win, and see if it handles ARM. I've downloaded Ubuntu 10.10 to install on another laptop, but my 1st need now is to be able to use the HD2 image to test some stuff (for example, install/use python). I would like to be able to run stuff like this on the HD2:
http://mblogic.sourceforge.net/
http://pvbrowser.de/pvbrowser/index.php

Regarding the ad hoc problem, there are workarounds for android, but I haven't tested them. If I can get the software I want working on the HD2, next step would be solving ad hoc problem.

maby dcordes can help us with the right command line for qemu to boot the image correctly.
could be that i forgot a couple settings on booting it, and it has a realy big load of options you can set.

plopper
 

plopper

Senior Member
Dec 7, 2008
102
25
hardcore usb hub mod

i just finished making a bit more hardcore modification to get a usb hub for the hd2.
unlike the manual which talks about making a special cable, i modified the usb hub internaly.
i managed to find a usb hub which didn't come with a power supply, but had the necessary plug to connect 1 tho.
and i found a nice universal powersupply capable of 5V with a nice 2250mA.
and offcourse a standard nokia micro usb to usb cable.
i removed the standard cable which had the standard size usb plug and replaced it for a nokia cable, so it now has a micro usb plug in that place.
now i didn't do that in a standard fashion, i placed the data cables on the normal location they used to be.
but i attached the power cables to the output usb ports, that way the cable also gets power delivered to it.
my hub, and i expect that this could be pretty standard, has a loop on the print, delivering the power to everything around the board, so it doesn't even mather which port you use.
but were not there yet, this way it is not gone work.
if you look closely at the last picture from the attachments, you can see that the original usb cable still has the 2 power cables connected.
this was just to test, using my netbook to see if it all worked.
the last step which i'm sorry to say, forgot to make a picture of, is now also connected to the power ring, just used another usb port for that.

for the people who have notiched that the board is broken.
yes i was a bit to eager to start the mod and broke the print on opening the usb hub.
i have replaced this board for a new 1 and it all fits nicely inside.
it looks now like the hub was produced like this.

plopper
 

Attachments

  • P1130002.small.jpg
    P1130002.small.jpg
    58 KB · Views: 138
  • P1130003.small.jpg
    P1130003.small.jpg
    41.5 KB · Views: 109
  • P1130008.small.jpg
    P1130008.small.jpg
    48.1 KB · Views: 146
Last edited:

plopper

Senior Member
Dec 7, 2008
102
25
@dcordes: see attachment.
2 kernel traces with a vigo usb sound adapter attached.

could you pls put the kernel headers in the next release, so we can try to compile kernel modules ourselfs.
right now i picked the full kernel source, should work to i guess, but sutch a waste of space. lol

keyboard, mouse and usb sticks working fine.

plopper
 

Attachments

  • dmesg.txt
    35.9 KB · Views: 9
Last edited:

Tokl

Senior Member
Sep 19, 2007
377
76
Heart of BW
no look at dmesg as dcordes suggested, that shows all the hardware and the initialization it does.
plug the stick in when the system is running and type "dmesg" in a terminal and the last lines should show the info about the stick.
sda is indeed the sd card, but dmesg should show something like sdb (it counts on)
post the last couple of lines from dmesg for us pls.
Thanks :)
"Last couple of lines from dmesg" :D:D:D
When i plug in the USB Stick its generating over 100 pages (if pasted to writer) of Text :eek:
But it says shortly after plugging in: sda1 sd0:0:0:0 [SDA] Attached SCSI removable Disk usb 1-1.3:1.0: uevent
sda is the full device sda1 is the partition which you wanna mount.
I can compile the fuse module with the next kernel. You might as well want to check the option to do it yourself. See first post and readme for kernel info.
It will be easier to reformat your usb stick with fat32 or so. You can even do it on your hd2 :cool:: install and use gparted program

OK, i see i have to learn a lot new things to use Linux for real, and i am so spoiled from Windows... ;)

Main problem of using Fat32 is, that it can not handle files > 4Gb so some Movies, ISOs etc. are not working, and this filesystem sucks really because it often corrupts files. :(
I will try ExFat, not sure Ubuntu can handle it, but i think so :)

Had an quick look into the QuickDeveloperStartGuide for Compile Linux kernels,
but i understand to less with my knowledge of linux, so its better for me to wait for the next release HD2 Ubuntu v0.4 :cool: with the hope you can compile the fuse module.

Keep up the great work!

Thanks and Greetz Tokl
 

plopper

Senior Member
Dec 7, 2008
102
25
Thanks :)
"Last couple of lines from dmesg" :D:D:D
When i plug in the USB Stick its generating over 100 pages (if pasted to writer) of Text :eek:
But it says shortly after plugging in: sda1 sd0:0:0:0 [SDA] Attached SCSI removable Disk usb 1-1.3:1.0: uevent

try the next line in a terminal.
Code:
dmesg | grep usb > dmesg.txt
this sends the output of dmesg to grep, which filters it for lines containing the word usb, and finaly saves it to a file called dmesg.txt

OK, i see i have to learn a lot new things to use Linux for real, and i am so spoiled from Windows... ;)
linux is indeed harder to learn, but once you learn you have more time left, it keeps running unlike windows. lol

Main problem of using Fat32 is, that it can not handle files > 4Gb so some Movies, ISOs etc. are not working, and this filesystem sucks really because it often corrupts files. :(
I will try ExFat, not sure Ubuntu can handle it, but i think so :)

ext2 might be an option even on windows.
http://www.fs-driver.org/

plopper
 

arbalah

Member
Aug 26, 2010
33
3
Mersin
hey hi, i downloaded Ubuntu and extracted to my sd card but whenever i triy to run haret exe. it says unknown app. and haret icon seems like a white sheet.My system is MDJ's android nand, i have to use wm ? please help thanks.
 

nmambre

Member
Oct 25, 2010
37
0
Guarenas
hey hi, i downloaded Ubuntu and extracted to my sd card but whenever i triy to run haret exe. it says unknown app. and haret icon seems like a white sheet.My system is MDJ's android nand, i have to use wm ? please help thanks.

Yes, haret.exe is a windows application.
You have to search and see if magldr can load ubuntu.
 

dcordes

Retired Senior Recognized Developer
Nov 20, 2007
707
254
Hey guys it's really good to see that you work out stuff on yor own and help each other!
It's the good part when you see people actually use this :)
I'm short on time: I used following usb audio device successfully in the 0.2 release which had very similar kernel. it worked ootb with pulseaudio. no hack needed!

Bus 002 Device 009: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter

@dcordes: see attachment.
2 kernel traces with a vigo usb sound adapter attached.

could you pls put the kernel headers in the next release, so we can try to compile kernel modules ourselfs.
right now i picked the full kernel source, should work to i guess, but sutch a waste of space. lol

keyboard, mouse and usb sticks working fine.

plopper
 

plopper

Senior Member
Dec 7, 2008
102
25
Hey guys it's really good to see that you work out stuff on yor own and help each other!
It's the good part when you see people actually use this :)
I'm short on time: I used following usb audio device successfully in the 0.2 release which had very similar kernel. it worked ootb with pulseaudio. no hack needed!

Bus 002 Device 009: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter

so far no luck.
my netbook (fedora) detects it instandly, but as alsa, gets listed in the gnome config tool and in pacmd.
on the phone neither of those show the stick.
found a manual to setup pulse and the needed tools for ubuntu 10.10.
followed that, didn't work.
notiched that on ubuntu 8 and earlier it needed some manual config, same effect.
pulse shows audio streaming but no sound or device detected.
might destroy 1 of my usb sticks tomorrow and see what the netbook shows when running ubuntu.

tryed ubuntu 0.2 but saw no life in the mouse, guessed there was no usb support there.
could have overlooked it tho.
but in all i'm having fun.

plopper
 
Last edited:

dcordes

Retired Senior Recognized Developer
Nov 20, 2007
707
254
so far no luck.
my netbook (fedora) detects it instandly, but as alsa, gets listed in the gnome config tool and in pacmd.
on the phone neither of those show the stick.
found a manual to setup pulse and the needed tools for ubuntu 10.10.
followed that, didn't work.
notiched that on ubuntu 8 and earlier it needed some manual config, same effect.
pulse shows audio streaming but no sound or device detected.
might destroy 1 of my usb sticks tomorrow and see what the netbook shows when running ubuntu.

tryed ubuntu 0.2 but saw no life in the mouse, guessed there was no usb support there.
could have overlooked it tho.
but in all i'm having fun.

plopper

did you check dmesg if driver is loaded and if you get the sound interface etc ?
what is the usb id of the device ? lsusb
 

daz1uk

Senior Member
Jun 11, 2010
237
27
Can Ubuntu be started from within android? or would I have to revert to windows if I wanted to use it?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 146
    Ubuntu for the HTC HD2 version 0.3

    This is the new v0.3 release of Ubuntu for the HTC HD2 I announced a while ago on twitter.

    Ubuntu is a full Linux distribution - and it's not designed for smartphones. But with the large touchscreen, high display resolution and fast system speed of the HTC HD2 I decided to make Ubuntu easily available to HD2 end users!
    This is not a secret warez ROM proprietary junk. Source code information below ! Wiki use for contribution purposes is highly encouraged! You can find all information needed to reconstruct my builds there.

    The interest seems large enough so you can expect an improved version 0.4 :
    -The no-menu problem will be solved
    -It will be bootable via cotulla's MAGLDR and HaRET (Handhelds Revers Engineering Tool)

    beta closed!! please do not in quire any longer.
    => I am looking for people to test a 0.4 beta version soon as I'm done. If you are interested please direct message or @ me via twitter @htc_linux as I will send the beta download link there.


    Features

    * You can get online using 3G and WiFi
    * Attach all kinds of USB devices like mice, keyboards, flash drives, card readers, networking devbices, etc. to turn your HD2 into a full PC
    * Use full desktop like web browser without the usual limitations found in smartphone browsers
    * Use instant messaging
    * Watch videos
    * Handle text messages and make calls (without sound so far)
    * Install thousands of programs for your internet experience, office needs, social networking fun, etc.
    * Be cooler because you have something special on your phone!

    It is difficult to create a release like this as opposed to all the Android builds for the HD2.
    Technical background to this:

    The Linux kernel we ported to the HD2 is originally designed for use with Android user space (because we based our work on the Linux kernels of official Android devices) and Ubuntu is originally designed for large laptop or desktop computers.
    This means many workarounds on kernel and user space level must be made in order to make this usable.
    Despite lots of work not all problems could be tackled yet: Audio and suspend/resume do not work as of v0.3 and it is a bit tricky to navigate.


    http://oe.netripper.com/files/hd2-ubuntu_0.3.zip.torrent
    md5sum hd2-ubuntu_0.3.zip aa7ad65d247594e95bb7abe2e7aa7688
    You can run an Md5sum program on your download. If you get the above hash you have a 100% trusted release.

    Direct mirror: ( Torrent usage encouraged. )
    http://hotfile.com/dl/92426365/63801e6/hd2-ubuntu_0.3.zip.html thx to shah_vm
    Additional direct mirrors welcome.

    If you like it you can buy me a beer

    Posted from my HD2 via firefox-3 on hd2-ubuntu-0.3 :cool:

    Thanks to Jaxbot (from windowsphonehacker website) for shooting this video!
    Additional pics / videos welcome

    INSTALL
    ######

    1)Extract the linux folder to the main directory(!) of your Storage Card.
    If the linux folder is not located in the main directory of the Card,
    it will not work.
    Note: This will not touch your phone's internal memory. WinMo or other Linux/Android builds remain unchanged.


    QUICKSTART
    #########

    1) Save all your current work and start the HaRET exectuable to boot Linux.
    2) Watch the system boot up fully until you see a graphical desktop interface.
    3) It is useful to set the CPU speed up for better performance. Tap the CPU speed meter in the mid of top bar.
    4) Use shutdown icon in the home menu to bring the system down savely.
    Enjoy!



    TUTORIAL VIDEO
    ############
    Thanks to Jaxbot for shooting this video


    SIGNIFICANT CHANGES
    ##################
    Please read the attached and included readme.txt for detailed information.

    Ubuntu 10.10 Maverick basis
    -optimized for our hd2 CPU
    -large performance improvement
    -up to date app versions
    -new graphical interface

    Better connectivity
    -3 modes to interact via USB selectable
    -file transfer and interactive shell via ADB and USB ETHERNET (ssh)
    -USB HOST mode to connect thousands of peripheral devices like keyboards, mice, usb mass storage devices.

    Improved drivers
    -Backlight control
    -Battery charging and state reading


    IMPORTANT NOTES
    ##############
    -There is a known problem with the menu not appearing so you will only see a single icon on a normal desktop instead of the fancy menu seen above. You can fix it as explained below.
    -There is still no audio in calls and generally due to lack fo ALSA driver for hd2.
    -The hardware keys don't work
    -No screen rotation added
    -The battery % can only be read via shortcut. Icon will always show low state

    Please do not report these problems.

    In case you are affected by the no-menu problem here is a quick fix:
    Add the 'main menu' in the top panel in order to start apps:

    -Tap and hold a free spot in the top panel for like 3 secs (note that the area between the left and middle icons is not free s1pace but the window picker) and release the cursor. This is supposed to simulate right click. It is a big tricky..
    -A drop down menu should appear
    -Select add to panel
    -Drag the 'main menu' item to the panel
    -You can now start programs and edit settings.
    a)In settings menu select session settings and make 'Ubuntu netbook 2d' session default settings menu. Only drawback is you can't add programs to the panel in it.
    b)Go to 'startup applications' and try raising the delay in seconds for nbl (netbook-launcher-efl) to start.

    Let me know if you get the workaround going in case you were affected


    DEVELOPERS' CORNER
    ################

    I documented the most important stuff about 'Ubuntu for HD2' in the htc-linux wiki. With that information you can rebuild it from scratch - or implement other OS like meego, kubuntu, etc.
    http://htc-linux.org/wiki/index.php?title=Ubuntu/Leo
    Some parts are not yet updated to match the 0.3 status but I hope I can do it soon.

    Get the Linux kernel souce code:
    git clone git://git.linuxtogo.org/home/groups/mobile-linux/kernel.git htc-msm-2.6.32

    Compile Linux kernels for your HTC
    http://htc-linux.org/wiki/index.php?title=QuickDeveloperStartGuide#Kernel
    38
    http://www.multiupload.com/BQPKC7PPHF

    Mirror to ease server loads, should be up soon. :)
    8
    Here is screenshot:

    SsM7x.jpg
    5
    Hey guys,
    yesterday i finally found the time to try out the fix posted a couple pages before in this thread. And since there were many requests to write a guide on how to boot ubuntu 0.3 with magldr and nand android, i wanna share the following. please notice, that you wont be able to use the touchscreen or the hardware keys. at this time i dont know what causes this problem, but the only way to input ubuntu on my htc hd2 was through a hardware mouse.

    Guide to get ubuntu 0.3 running with magldr and nand android:

    1. first of all download all the required stuff ... ubuntu 0.3 (first thread) is needed, linit.zip (look at the attachments of this post) and if you not allready have a linux distribution, download a ubuntu or opensuse livecd on distrowatch.com or somewhere else

    2. now unzip hd2-ubuntu_0.3.zip and linit.zip to whatever folder you like.
    rename a zimage of your choice to "zImage", rename "initrd.cpio.gz" to "initrd.gz", put your zimage and initrd.gz to the root of your sdcard. all the other files inside hd2-ubuntu_0.3.zip belong into /linux

    3. open up your terminal and execute the following command to gain root rights: "sudo -s" if your on ubuntu or simple as can be "su" on other distributions.

    4. mount your ext2 image: to do so, execute the following commands:
    a. "mkdir /mnt/ext2" (creates a folder ext2 in your mnt folder)
    b. "mount /path/to/your/image/rootfs.ext2 /mnt/ext2 -o loop"
    (mounts the image rootfs.ext2 to the previously created folder)

    5. now the command "mount -l" should be listing your image ("/dev/loop0") as mounted, followed by the directory "/mnt/ext2" where it has been mounted in

    6. now you can access the mounted image with the following command:
    "cd /mnt/ext2" (changes directory to "/mnt/ext2")
    "ls" (shows you the content of the mounted image)

    7. after that you need to copy the "linit"-file to the bin directory of the mounted image with the following command:
    "cp /path/to/linit/file/linit /mnt/ext2/bin" (copys your linit file)
    "ls /mnt/ext2/bin" (should now show you the linit file inside the binfolder)

    8. the last step to success is the following:
    open up "/mnt/ext2/etc/rc.local" with your favorite text editor. you could use kwrite or vim, and edit the following:
    before editing rc.local looks something like this:
    __________________________
    #!/bin/sh -e
    #
    # rc.local
    # stuff
    # stuff
    # stuff
    # stuff
    # stuff

    exit 0
    __________________________

    after editing rc.local should look like this:

    __________________________
    #!/bin/sh -e
    #
    # rc.local
    # stuff
    # stuff
    # stuff
    # stuff
    # stuff

    /bin/linit >> /var/log/linitlog
    exit 0
    __________________________

    dont forget to save rc.local

    9. now you can unmount the rootfs.ext2 image again by executing
    "umount /dev/loop0"

    10. congratz your rootfs.ext2 image has been successfully edited and the reboot loop problem should be fixed. you can check if "linit" is being executed correctly by reading the "/var/log/linitlog"- logfile. of course you need to mount your image again before being able to access the logfile.

    please gimme some feedback on this guide since i dont know if i forgot something or made a mistake.

    greetz :)