New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
bardzusny
Old
(Last edited by bardzusny; 16th September 2012 at 12:28 AM.)
#1  
Junior Member - OP
Thanks Meter 48
Posts: 17
Join Date: Apr 2012
Default [24 Jun][WIP][MAGLDR] Debian for HTC HD2 - v0.1 alpha

Gentlemen,

Lately I have found myself experimenting with Debian on my beloved Leo. It's very much WIP, but even right now it may be fun to play around for some. And most of the stuff that *doesn't* work, well, solutions are in the line of sight.

I won't have time to finish it anytime soon. So, partly in hope someone will join the effort, and partly to simply make sure I won't lose effects of my work in the darkest corners of my hard drive, I upload it as it is.

It's very much bare-bones Debian Unstable system. To install it, copy all three unpacked files (rootfs.ext4, zImage, initrd.gz) to "debian" directory on your SD card. Then, choose this directory in MAGLDR settings. Then boot from SD.

It boots directly into the desktop and allows you to connect to wifi and launch terminal (and install any software you want using apt-get/aptitude).

DOWNLOAD:
http://www.multiupload.nl/8D7ZS99UTX
http://d-h.st/Tx9 (thanks to Robbie P)
MD5: 9f5a9961d8ace10d38f7ea493a12ab4a
(mirrors appreciated)

Features:
*Touchscreen, UI works perfectly fine
*Wifi works perfectly fine too
*Sound kinda works (playback is too fast for me, please test)
*It's full Debian GNU/Linux - 15901141666 packages to apt-get!

Various technical info:
*Kernel based on linux_on_wince_htc from gitorious with some modifications:
-applied USB host patch by liiochen
-applied patch from tytung kernel that enables ALSA driver to be compiled as module (without that it wouldn't work at all)
-custom defconfig
*Rootfs size is 1GB. Filesystem is ext4 (to avoid data corruption).
*Window manager is E17, it's optimized for phones, very beautiful, and very impressive overall. Network manager is Wicd.
*Also installed: Xterm, SSH server.
*Default username is "htcleo". Default password for this account is "htcleo". Default root password is..."htcleo".
*As it is Debian Unstable, anything can break at any time and not much can be done about it. I also recommend using aptitude over apt-get (it is better at solving dependency problems).

Important To-Do:
*Phone functionality & suspend/resume (all of this should be supported! sadly, fso-deviced in Debian repositories is currently broken)
*Landscape mode (easy)
*Hardware buttons (easy)
*Bluetooth (at least partial support should be easy)
*??? to be continued

Wish-list (the less important stuff):
*Switch to armhf for performance gains (should be easy)
*At least partial hardware acceleration (should be possible thanks to xf86-video-msm driver)
*Bully someone into cooking newer kernel (2.6.32 is old)
*If the above doesn't work, backport brcmfmac wifi driver to current kernel
*Compass, GPS, camera, multitouch (aka the stuff not many really care about)
*??? to be continued

If you want to help me in the effort to make this port work perfectly, take a look at this:
http://www.multiupload.nl/BXNBMMECH0

It's a package with everything you need to reconstruct my rootfs on your own. There are some files and there is a dirty bash script ("createrootfs") that does everything that has to be done. Instructions are inside of it.

There is a lot of valuable information on htc-linux wiki (http://htc-linux.org). I'm available in this topic, on pm, and on #htc-linux freenode channel.

Big thanks to #htc-linux, Cotulla, liiochen, tytung, dcordes, many others I forgot about and will add later.

[EDIT 16.09.12]
Some people requested kernel sources, here they are:
http://www.multiupload.nl/IWL07GL78D
MD5: c698454af38ad7ed3dbec120eae84daa

Clever ones will notice ".git" subdirectory. There's full history and anyone's more than welcome to upload it onto github/gitorious/similar.

Please refer to this htc-linux wiki page for compiling: http://htc-linux.org/wiki/index.php?...rtGuide#Kernel . Use htcleo-gnu_defconfig (it's in arch/arm/configs/ directory).
The Following 28 Users Say Thank You to bardzusny For This Useful Post: [ Click to Expand ]
 
bardzusny
Old
#2  
Junior Member - OP
Thanks Meter 48
Posts: 17
Join Date: Apr 2012
I would appreciate someone testing USB host functionality. It should work (proper patches were applied), but I don't have cables to check it out myself.
 
ivicabrus
Old
#3  
ivicabrus's Avatar
Member
Thanks Meter 1
Posts: 48
Join Date: Sep 2010
Location: Kraljevo
Won't load from magldr-stop on " 123fatal hit 3 "

Sent from my HTC HD2
The Following User Says Thank You to ivicabrus For This Useful Post: [ Click to Expand ]
 
Robbie P
Old
(Last edited by Robbie P; 25th June 2012 at 11:37 PM.) Reason: added mirror
#4  
Robbie P's Avatar
Recognized Contributor
Thanks Meter 2035
Posts: 2,733
Join Date: Feb 2011
Location: London
USB host works, keyboard and mouse. Connected to wifi ok. But when I tried to take a screenshot, it just hung and had to press soft reset button. Will test more.
Excellent work bardzusny, BTW there are Ladies on this forum too
@ivicabrus, be sure to unzip the .tar.gz, the .tar and also the rootfs.zip
Edit; mirror- http://d-h.st/Tx9

HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14 & Thanks to everyone@XDA
Recognised Contributor Code of Conduct

Learning Never Ends Team member
The Following 3 Users Say Thank You to Robbie P For This Useful Post: [ Click to Expand ]
 
ivicabrus
Old
#5  
ivicabrus's Avatar
Member
Thanks Meter 1
Posts: 48
Join Date: Sep 2010
Location: Kraljevo
In my debian folder...is it correct?

Sent from my HTC HD2
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1340544448341.jpg
Views:	2357
Size:	16.6 KB
ID:	1152562  
 
Robbie P
Old
#6  
Robbie P's Avatar
Recognized Contributor
Thanks Meter 2035
Posts: 2,733
Join Date: Feb 2011
Location: London
Quote:
Originally Posted by ivicabrus View Post
In my debian folder...is it correct?

Sent from my HTC HD2
Looks good m8

HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14 & Thanks to everyone@XDA
Recognised Contributor Code of Conduct

Learning Never Ends Team member
 
ivicabrus
Old
#7  
ivicabrus's Avatar
Member
Thanks Meter 1
Posts: 48
Join Date: Sep 2010
Location: Kraljevo
Quote:
Originally Posted by Robbie P View Post
Looks good m8
But won't load..

Sent from my HTC HD2 using xda premium
 
Robbie P
Old
#8  
Robbie P's Avatar
Recognized Contributor
Thanks Meter 2035
Posts: 2,733
Join Date: Feb 2011
Location: London
Quote:
Originally Posted by ivicabrus View Post
But won't load..

Sent from my HTC HD2 using xda premium
magldr>10.services>1.bootsettings>1.bootsource>3.A D SD Dir>DEBIAN
maldr>2.boot ad sd
Did you do the above?
Edit; magldr 1.13?

HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14 & Thanks to everyone@XDA
Recognised Contributor Code of Conduct

Learning Never Ends Team member
 
ivicabrus
Old
#9  
ivicabrus's Avatar
Member
Thanks Meter 1
Posts: 48
Join Date: Sep 2010
Location: Kraljevo
Quote:
Originally Posted by Robbie P View Post
magldr>10.services>1.bootsettings>1.bootsource>3.A D SD Dir>DEBIAN
maldr>2.boot ad sd
Did you do the above?
Edit; magldr 1.13?
Yes,do everything and mgldr 1.13 i have android 4 on nand , ext 512 on sd card 8gb class 6, android load but this stop on 123 in magldr when load zlmage and initrd.gz

Sent from my HTC HD2 using xda premium
 
Robbie P
Old
#10  
Robbie P's Avatar
Recognized Contributor
Thanks Meter 2035
Posts: 2,733
Join Date: Feb 2011
Location: London
Quote:
Originally Posted by ivicabrus View Post
Yes,do everything and mgldr 1.13 i have android 4 on nand , ext 512 on sd card 8gb class 6, android load but this stop on 123 in magldr when load zlmage and initrd.gz

Sent from my HTC HD2 using xda premium
Try 10.services>1.bootsettings>1.boot source>1.android from sd
Then the above

HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14 & Thanks to everyone@XDA
Recognised Contributor Code of Conduct

Learning Never Ends Team member