[24 Jun][WIP][MAGLDR] Debian for HTC HD2 - v0.1 alpha

Search This thread

retsam88

Senior Member
Feb 23, 2009
358
54
Tried this and what i must say:

Wow. This made me sit in front of my HD2 with disbelief. This is really, really awesome. It's so smooth and good looking I almost wish that it would be THE hd2 operating system.

Also to report, booting is very fast, USB host is working. Mounted generic USB mouse and keyboard, also USB mass storage is working too. Going to test more. WiFi WPA2 is working nicely.

What to say, this is one of the best builds ever and have most potential of them all. It's already wonderful, and to think more awaits!

THANK YOU!
 

laehtis

Senior Member
Feb 4, 2012
506
114
first, thanks for this!=)

But I haven't got it working. I extracted all the files to "debian" folder, to root on my sdcard. Then I boot to magldr, and go to services and set the sd folder. Then I run ad sd. First time it says "kernel open failed" or something like that. Then it goes back to magldr screen, and I try again. Now it goes through the kernel, but then stops and says 123FATAL HIT 3

same happens always:(

any helpful ideas?:)
 

ivicabrus

Senior Member
Sep 14, 2010
54
2
Kraljevo
first, thanks for this!=)

But I haven't got it working. I extracted all the files to "debian" folder, to root on my sdcard. Then I boot to magldr, and go to services and set the sd folder. Then I run ad sd. First time it says "kernel open failed" or something like that. Then it goes back to magldr screen, and I try again. Now it goes through the kernel, but then stops and says 123FATAL HIT 3

same happens always:(

any helpful ideas?:)

Same for me, try with clean sd card-formated and only debian folder with this files... i will try tomorrow when i buy new sd card

Sent from my HTC HD2
 

retsam88

Senior Member
Feb 23, 2009
358
54
guys, make sure to extract rootfs.ext4 from 7z archive.

There should be 3 files in /debian folder
-initrd.gz
-zImage
-rootfs.ext4

And run it from MAGLDR through boot SD android.
 

ivicabrus

Senior Member
Sep 14, 2010
54
2
Kraljevo
guys, make sure to extract rootfs.ext4 from 7z archive.

There should be 3 files in /debian folder
-initrd.gz
-zImage
-rootfs.ext4

And run it from MAGLDR through boot SD android.

Check my post on first page with screenshot of folder...but won't boot. Only i think that the sd card with partition (ext3 for android in my case) maybe confused load debian...
Poor English sorry

Sent from my HTC HD2
 

Robbie P

Senior Member
Feb 8, 2011
5,116
4,017
London
FYI I just booted this using wm6.5, using clrcad, haret and startup.txt (edited- rel-path=debian) from an android sd build. USB host working.
I guess it is easier to run magldr linux from wm6.5 than the other way round;)
 

ionbasa

Senior Member
Aug 1, 2010
147
10
Redlands
Not really , i have 2G ext2 partition , i can still boot it via Magldr.
hmmm, that is strange. I also happen to have an swap partition of 256 Mb. The NAND Android Rom I use is in my signature, It uses an Data to ext method.
When trying to boot to Debian it stops loading right after it checks the SD card for errors:
It says loop2 has an invalid argument while checking the ext3 journal for /dev/block/loop2

then it says:
EXT4-fs (loop2): bad geometry: block count 244140 exceeds size of device (4023 blocks)

So for now my only logical conclusion is that by default any Linux OS will try to mount any EXT 2/3/4 partition because it is native Linux formatting of drive partitions, in this case its mounting my EXT4 partition on my SD card instead of the rootfs file system.

The best solution would probably be to disable auto mounting of partitions, but that would probably require this build to be recompiled, but dont take my word for it as I have never built Linux for ARM...
 

aSiD1712

Senior Member
Jun 27, 2010
245
138
It feels realy smooth. I am not familiar with debian but will try, I connected wifi, managed to bring up terminal and switched to root via - su root. Tried installing "aptitude install iceweasel" but after confirming there are only 404 errors. How to install some software and first how to test sound easy? Can I install java runtime? Is there any similar to "Software-Center" or a software list?
 

cccy

Senior Member
Apr 9, 2009
126
33
Have not tested yet, but I would like to ask the following: Does charging work? I do not need usb host, just charging and wifi. :p
 

bardzusny

Member
Apr 26, 2012
17
48
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
Thanks for testing USB host! And also for mirroring. Will add new link in a second.

It feels realy smooth. I am not familiar with debian but will try, I connected wifi, managed to bring up terminal and switched to root via - su root. Tried installing "aptitude install iceweasel" but after confirming there are only 404 errors. How to install some software and first how to test sound easy? Can I install java runtime? Is there any similar to "Software-Center" or a software list?

First run "aptitude update".

I'm not using any of this stuff, but "synaptic" package might suit your interests. (It's graphical package manager.)

Have not tested yet, but I would like to ask the following: Does charging work? I do not need usb host, just charging and wifi. :p

Yes.

Tried this and what i must say:

Wow. This made me sit in front of my HD2 with disbelief. This is really, really awesome. It's so smooth and good looking I almost wish that it would be THE hd2 operating system.

Also to report, booting is very fast, USB host is working. Mounted generic USB mouse and keyboard, also USB mass storage is working too. Going to test more. WiFi WPA2 is working nicely.

What to say, this is one of the best builds ever and have most potential of them all. It's already wonderful, and to think more awaits!

THANK YOU!

Thanks for kind words.

I'm afraid lack of suspend/resume and any phone functionality are stopping this from becoming much more than proof-of-concept, though.

and after all, please make a NAND-FLASH Version!
So that will be the only One OS on my Handy

On T-MO it could make some sense, but not on EU version (512MB ROM). Install some basic software and you're full.

Even if it wasn't such a bad idea, it's rather low priority right now.

I can confirm that if there is an ext 2/3/4 partition on the SD card this build will not boot.

As long as your first(!) partition is VFAT, it should work. That's how this initrd works.

I did some test on this build and performance is much better than ubu. Ui is very smooth and keybord is good as for smartphone. Tried to test sound but clicking mplayer does not give result. Wifi works but sometimes needs system restart to connect. Dont try screenshot option (just like above). Good work!

Sent from my HTC Sensation (HD2) using XDA

Mplayer isn't even installed (I don't know why it appears in the menu). I agree that UI is very nice.


That's some quick answers. Generally as I said, phone functionality is stalled and I don't have too much time to keep up any serious work on this.
 

laehtis

Senior Member
Feb 4, 2012
506
114
Okay so I have had problems to get this working (booting errors on mgdlr). I founded that my SD card partitions is causing that. In formatted the SD card, and it started booting and working!

Thanks a lot for awesome build!
 

pioterek2666

Senior Member
Jul 14, 2008
72
11
I had the same problem running it from winmob.You have to extract rootfs.ext4 from rootfs.ext4.7z file.The file size is 953.67 Mbytes after extraction. Use 7zip.
And btw. synaptic is not working.
 
  • Like
Reactions: minDark

minDark

Member
Nov 15, 2007
16
6
Targoviste
I had the same problem running it from winmob.You have to extract rootfs.ext4 from rootfs.ext4.7z file.The file size is 953.67 Mbytes after extraction. Use 7zip.
And btw. synaptic is not working.

Thanks, it worked. Regardig Synaptic,m you have to launch it from terminal, from applications menu it doesn't work.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 28
    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?title=QuickDeveloperStartGuide#Kernel . Use htcleo-gnu_defconfig (it's in arch/arm/configs/ directory).
    7
    Hey everyone, I just edited first post to include link to full kernel sources.

    Good luck!
    4
    Hey Spaqin,

    fso-deviced works if you install older version of it (snapshots.debian.org). But trying to suspend phone through it (direct dbus call) doesn't work. So still no luck.

    There is no UI for calling/messaging available in Debian right now (phoneui-apps package is broken, always was for me). As I probably already wrote somewhere...

    I should have some free time with the end of this month, but I remain pessimistic. I'm not at the level to fix these things myself, only wait and maybe bug those who can.

    ~bardzusny
    3
    What happened? Maybe we can help if you tell us symptoms?

    Spilled screen with spiderweb on it, non-responsive digitizer, casing in bad state (*and that's to say the least*). Gore.

    we can can chip in... if you are interested in developing

    If anyone seriously wants to send/lend me replacement Leo, or send outright cash to buy it, by all means PM me (I'm located in Warsaw, Poland by the way). It would definitely be a motivating factor (and beautiful act of altruism all by itself).

    I got requests for kernel sources - changes from linux_on_wince_on_htc are really small, but I will do my best to upload them within ~2 weeks (left them on desktop in another city).

    Unless someone takes it over/I get working Leo, consider this project dead.

    One more time: thanks to anyone interested and all the kind words!
    3
    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