[magldr] ubuntu, 3g, wifi,sound, landscape....

What should be the name of the project ?

  • ubnhd2

    Votes: 8 88.9%
  • ubn2pwn

    Votes: 0 0.0%
  • u2p

    Votes: 1 11.1%
  • hd2pwn

    Votes: 1 11.1%
  • h2p

    Votes: 0 0.0%
  • pwnhd2

    Votes: 0 0.0%

  • Total voters
    9
  • Poll closed .
Search This thread

jerrysue

Member
May 23, 2008
31
2
Beijing
Hello to all and thx zo1d for refreshing ubuntu on our beloved leo. Unfortunately i cant boot ur build under winmo... the screen turns black after "setting sensors limits" message. Im using nativesd also.

Ok ive managed to run this after changing fat32 label to "SD" but after first reboot system cannot boot again (same situation as above).

I got the same problem too while it shows "starting adb demon".
Can anybody help me?
 

Robbie P

Senior Member
Feb 8, 2011
5,116
4,017
London
@Robbie P
Thank you. Ubuntu loads with your haret files. Also I can resize *.ext2 files correctly with toporesize as you suggest.
wisor2006 didn't seem to have problems with haret:confused:
Check md5sum of your download(s). I can't seem to find unextracted zip, so can't post my md5, post yours so you can compare.
Also try formatting your sd card with https://www.sdcard.org/downloads/formatter_3/ but not sure if it formats the whole card, so probably a good time to backup your ext4 partition;)
Sorry not much help:)
 

jerrysue

Member
May 23, 2008
31
2
Beijing
Thank you very much , zo1d and Robbie P. How quickly of your reply!
The attach is the md5sum of my 4 files. I don't know if they are right.
Maybe I should format my 16G sandisk again someday.
 

Attachments

  • md5sum.JPG
    md5sum.JPG
    19.2 KB · Views: 446

jerrysue

Member
May 23, 2008
31
2
Beijing
I replaced the rootfs.ext2 file with the original 0.3 rootfs.ext2 , it booted and works as the origianl except touch screen was abnormal (maybe landscape reason) . after replaced the zImage file , It works as normal.
So I think maybe the file rootfs.ext2 is broken.
 

gilbert32

Senior Member
Apr 4, 2011
1,038
1,438
In the universe
Mirrors please?

great work! Can somebody please upload it via torrents or as parts on other sharing servers like mediafire? because my download cuts many times (bad isp's everywhere near) and i end up with corrupted files :( :(
 

Ever-Never

Member
Feb 4, 2013
12
5
HeNan PingDingShan
I modify init to MAKEDEVS

fail() {
echo "Failed"
echo "$1"
exec /bin/sh
}
while [ ! -e /sys/block/mmcblk0p2 ] ; do
echo "Waiting for SD Card"
sleep 1
done
mkdir -m 0755 /rfs
mount -t ext4 -o noatime,nodiratime,sync,rw /dev/block/mmcblk0p2 /rfs

umount -l /proc
umount -l /sys

echo "Switching to rootfs..."
exec switch_root /rfs /init
but it did nor work .
 

Seventi6

New member
Feb 26, 2011
1
0
bad newroot /rfs

I modify init to MAKEDEVS

fail() {
echo "Failed"
echo "$1"
exec /bin/sh
}
while [ ! -e /sys/block/mmcblk0p2 ] ; do
echo "Waiting for SD Card"
sleep 1
done
mkdir -m 0755 /rfs
mount -t ext4 -o noatime,nodiratime,sync,rw /dev/block/mmcblk0p2 /rfs

umount -l /proc
umount -l /sys

echo "Switching to rootfs..."
exec switch_root /rfs /init
but it did nor work .

I got a similar problem. After loading almost everything it checks the SD card for errors then gives this message before restarting to magldr "bad newroot /rfs"

Any advice??
 

haytham-88

Member
Nov 15, 2009
22
2
35
THANK YOU !!!
you have saved my phone (broken digitizer) now I can use it again, by a mouse.
now I have an OS on my HD2 that has audio and WiFi and I do not need a new digitizer (I can't get one !!) to use the phone :)

flash memory dose not work, I'm not sure if I did something wrong, I will search for it first
Thank you again
 

Spaqin

Senior Member
Oct 5, 2010
398
95
Hey guys,

While I doubt that someone will actually help me, I still have to try.

I can't seem to get my pendrive or my HDD to work. Device Manager tells me that there's 'insufficient power to operate USB device' which is silly - I have a powered USB hub that works well on Windows and I see no reason it shouldn't work with the phone. I'd love to use the system, but without mass storage support I don't think I will. I thought of modifying initrd to use rootfs image from mounted HDD so I wouldn't need to keep it on my already packed SD card, but without working HDD support it will be impossible.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    logosmalla.png


    I continued a bit the Ubuntu 0.3 project from dcordes and i think i achieved some enhancements^^

    But i also need some help to upload this version cause i am currently on a 16kb/s
    upload line :) and to upload some gigs over weeks would **** me up. I can send it
    via mail to someone who is interrested in and has enough bandwith to upload it
    (preferable from germany or europe)


    Thanks to all the people who made the HD2 so awesome,
    Cotulla, XDA ppl, DFT ppl, HTClinux, dcordes, hopkinskong, bardzusny and everyone else involved !

    If you want to spend me a beer, you can do this here.


    What works:
    - Booting via Magldr
    - Landscape Display orientation
    - usb host
    - Haret booting (thanks to the Help of Robbie P look at page 8 of this thread for the files)
    - Touchscreen,
    (with a relative not absolute pointer, feels much more like using a pc than a phone...)
    - Wifi with encryption
    - 3G network connection, sim-pin needs to be disabled !
    (about 350kb/s on my network, maybe even
    higher somewhere else need testers soon !
    - Audio/audio player,
    (The Kernel was compiled with 48.000 kHz in the
    Alsa config what results in a "too fast sound" this
    problem was also mentioned in the 0.1 Debian Thread.
    Workaround i found for at least listen to normal Music
    Was to pitch the sound to normal via AlsaPlayer.
    but beside this, the player is very stable and takes
    just a small amount of cpu-time)
    - Audio Outputs
    (Loudspeaker, Phonespeaker or Headphones)
    - The Hardware Controls
    (Display Brightness, LEDs etc)
    - x11VNC Server
    (not the fastest one due to workarounds, but still usable)
    - PwnPi & Backtrack Tools
    (not all but most atm)
    - dpms
    (..and its also possible to switch off the backlight,
    so if someone finds a cool way to start a script on
    the beginning of the screensaver and another script on
    the end, it would be very helpful to extend the battery life)
    - The common ubuntu stuff


    What doesnt work:
    - Monitor Mode for bc5329
    (I was able to load the arm-compiled firmware from https://code.google.com/p/bcmon/
    Wireshark captured some packets but wicd was not able to see networks anymore.., more
    testing needed, experimental)
    - Phone Feature,
    (no calls no sms/mms sPhone stills needs to be loaded or 3g network wouldnt work
    Edit: PlatinumBox wrote me that he can see incoming calls)
    - Bluetooth,
    (kernel side looking ok, but the rest is incomplete)
    - Battery Stats
    (no percentage, no recharging)
    - Video Player
    (Without Audio it looks delicious with Xine, even in
    fullscreen, but due to the Audio problem mentioned before
    it has desynchronized and laggy sound)
    - Hardware keys,
    (Kernel side ok but the xorg.conf and xinput settings are not correct)
    - Second Mouse Button
    (hope someone finds a better solution than the dwell applet, or get the hardware keys working !)


    Not testet:
    - usb eth
    - adb
    - vga out
    - gps
    - proximity
    - cam
    - mic


    The Project needs:
    - Kernel Developers (urgent)
    - People who are familiar with implementing the msm/qsd x.org driver
    - People who are able to crosscompile for arm's
    - Developers that have good tools or scripts to embed
    - Pentesters who want to contribute some toolchains and methods
    - Designers / Webdesigners
    - Translators
    - People who are able to fix s.th.

    If you want to enter the project, write me a pm with what you
    can do and maybe some links to s.th. you have done.*


    Installation:
    I recommend everyone to rename the first FAT Partition of the SD card to "SD" or many things wont work !
    (this should be done externally and not in the phone because ubuntu sets the mount points on boot time !)

    You need the Magldr on your HD2
    Extract all files from the downloaded archive "linux.zip" to the directory "linux" on your sd card
    Set the right "Android from SD" folder in Magldr (SD/linux), select "Boot AD from SD"

    The package "connman" should be deinstalled because its consuming too much cpu and doesn't work well together
    with wicd, the wifi autoconnect after boot was also affected by this.

    Password for both accounts is still "ubuntu"

    Be careful what you install, it has Debian and Ubuntu repos. In some cases the "Force Version" Option helps

    To get the Wifi working you need the drivers from here:
    http://www.mediafire.com/?6l365qz2jvc5hqh

    - extract the two files (fw_bcm4329.bin & bcm4329.ko)
    - move them to the root folder of your SD-Card
    - boot up ubnhd2
    - go to gnome-menu -> Stuff -> System -> bcd-res-upd
    - take option 7 (Import ... from SD)
    - takes a second
    - Press the wifi-signal in the dock
    - answer the dialog with ok
    - after the vibration signal from the wifi script the networks can be
    configured by clicking the icon in the menubar (wicd app)

    Download 0.0.3.17 beta:
    magldr images https://sourceforge.net/projects/ubnhd2/
    for haret version see Robbie's post on page 8


    screenshot12hy.png


    alternative input method:
    img20121202015227.png


    25.11.12 Mascot Artwork
    artworkqt.png
    8
    The first beta is finished, and on the (snailmail) way to andikicker who will upload it around 12.12.12 :)

    screenshot12hy.png


    don't mind the greyish icons, they look shiny white on the hd2 screen xD

    Why relaying on one single host?
    It would be better to make a torrent, so we could share this with eachother :good:

    Me thinks, its a good idea for the wifi-firmware, but the rest will be hosted at sf.net they have over 9000 mirrors.
    6
    Small update:

    x11vnc is functional, found some workarounds for shmget error and missing vnc kernel module...

    bildschirmfoto1li.png


    The current integration of the Pentest tools is on a good way. All stuff is copied out of the pwnpi
    distri (so the dirty work is mostly done...) Testing and integrate them into the menu is about 10%
    done, I decided to keep all the bluetooth tools and aircrack-ng in the hope that monitor mode, packet
    injection and bluetooth will work one day. I saw that the slackware linux for HTC HD has bluetooth in a working
    state, so maybe hopkinskong can pass me his bluez or bluetoothd config. would be very nice to have
    a externel keyboard & mouse without cables :)
    5
    Thanks Zo1d for your hard work and yes, the archives extraction is successful. I have a question though :

    I have an 8GB SD card with 4GB reserved for WP7 and 4GB remaining for SD builds. After extracting your files,

    the total size of all files is 6.51GB.

    So what is the minimum free space required to run UBNHD2 ??

    The link is https://sourceforge.net/projects/ubnhd2/files/

    Hey James

    i think about 8GB should be free

    Be sure to have all files in your (SD-card)/linux Folder and switch to this via MAGLDR on boot time

    Happy trying
    5
    this would be just the perfect system for hd2!! hope to have a link soon.. really dying to get hold of this build!!!

    Haha nice to hear, bad news: it will take some days longer... good news: i am atm embedding the tools from pwnpi (pwnpi.net/tools.html)

    :)