[DEV] Booting Ubuntu nativ!!!

Search This thread

qkall

Senior Member
Jan 21, 2010
908
191
Yeah, but:
Canonical did not release anything but some notes and a video, no download etc!
Canonical did not mention if Ubuntu for phones will be publicly released anytime! (Ubuntu for Android is available for manufacturers these days, but no public release/download/source)
Canonical did not mention if Ubuntu for phones will be any kind of open source!

Canonical choosed to be the Microsoft-way with their mobile system (also in other areas), what means a more or less closed OS with exclusive manufacturer access. If they don't change the way they do stuff (integrating amazon product search [=ads] is not what everybody wants), this will be a big flop.

1- there should be a working galaxy nexus build 'in a few weeks'
2-it's definitely going to open sourced - eventually
3- i think people are complaining way too much about the amazon thing... you can turn it off/you can remove the lens/you can use other DE. i haven't did any of these and to be honest i don't see how this is that different than the way android handles adsense...
 

MaR-V-iN

Senior Member
Apr 23, 2011
496
2,293
1- there should be a working galaxy nexus build 'in a few weeks'
2-it's definitely going to open sourced - eventually
3- i think people are complaining way too much about the amazon thing... you can turn it off/you can remove the lens/you can use other DE. i haven't did any of these and to be honest i don't see how this is that different than the way android handles adsense...

1: i think they meant they will show it on mwc (25-28 Feb). This doesn't mean there will be a download at the same time... Note that Ubuntu on Desktop was meant to be easy to install and easy to use, so I think they still hold this idea on Ubuntu for Phones. Even though everyone here at xda is able to flash a ROM in less than 10 minutes, this is not the case for every galaxy nexus user. Also note that bootloader-unlocking still voids warranty (even on nexus) so it's rather unlikely that they release a download as a typical ROM...

2: like your sentence :p "definitely - eventually" that's a good description of what it is. They are forced to publish kernel and other GPL-software sources. However note that current Ubuntu for Desktop contains non-open-sourced components at some places and why do you think they'll do different on Phones?

3: you're right about the desktop, but take a look at the video of Ubuntu for Phones: Amazon made their "home screen". Movie-files do not store covers (like music-files can) so they grab covers from Amazon. Even if you're able to disable Amazon on your phone (you most likely can't use another DE like on desktop) you'll lose features on your phone.
I don't think you're comparison with AdSense is good: while amazon is integrated with Ubuntu for Phone, AdSense is not on Android. Apps may include AdSense, but they may do so on every other os...
 

Trig0r

Senior Member
Jun 19, 2007
741
94
Well I'm replacing my DHD soon with something new and just wanted to play with it so probably nothing going to be out before I get rid..
 
May 23, 2010
22
17
Radom
Hey, i have mirror of Ubuntu4DHD_02.rar, if anyone looking for this file, i can upload, but i need easy to use.zip, or just boot.img :)
Anyone have the boot?

EDIT: Doesn't matter, i find easy to use, and have working ubuntu, if anyone looking for it, i can upload ;)

Now working about sound ;)
 
Last edited:
  • Like
Reactions: BEATER

michaelvd12

New member
Feb 16, 2009
1
0
wont work anymore

The download links wont work anymore ( go strait to ilivid what wont work, it is a fake program that gets you malware and virusses on your computer) can i get the download links ?
 

deftoner

Senior Member
May 8, 2012
213
27
Florida
First, thanks for the awesome project and your time.

You don't have any download link that it doesn't need to install spywares to download the file?

thanksssssss
 

Top Liked Posts

  • There are no posts matching your filters.
  • 41
    This is about booting Ubuntu natively on the DHD. (without chroot and without an Andriod running at the same time)

    Based on the version for the HTC HD2

    img20110424123036.jpg


    What works:
    • touchscreen (touchscreen works as touchpad) (thanks to Jhinta)
    • two finger scrolling (thanks to Jhinta)
    • Wifi
    • dragging windows (double click and holding second click)
    • right click (double two finger click) (thanks to dronf)
    • adb (thanks to torsrex)
    • incoming calls (thanks to liljom)
    • SMS (thanks to liljom)

    What doesn't work:
    • sound
    • keys (hard and soft keys)
    • usb host
    • firefox (only as root)

    Instructions:
    • Download ubuntu4dhd.zip
    • Download easy to use.zip
    • Put the linux folder from ubuntu4dhd.zip to the root of your sdcard
    • Put the easy to use folder to your windows PC
    • Bring your DHD into the bootloader
    • Connect DHD to the PC
    • Double click Start here.bat
    • Tip "fastboot boot boot.img"
      (without ")
    • after restarting your old rom will start

    Change log:
    • Working touchpad driver
    • two finger scrolling
    • Wifi working out of the box

    Modifing the rootfs on your PC or virtualBox:
    • mkdir /ubuntuDHD
    • sudo mount -t ext2 -o loop /path/to/rootfs /ubuntuDHD
    • rootfs is now mounted under /ubuntuDHD and can be modifyed as root
    • umount /ubuntuDHD

    Dual boot option:
    1. Download two different cwm from Rom manager
    2. Open the clockworkmod folder on you sdcard an open the download folder.
    3. Search for the version number for the old recovery. You will find an image file, open the containing folder and copy the boot.img from the Ubuntu4DHD.rar into it.
    4. Now, rename the boot.img file to the recovery image filename and deleted the old recovery.
    5. Now, when you select the old recovery from Rom manager, it will flash the ubuntu boot image.
    6. Booting into Recovery will now boot Ubuntu
    When you want to go back to cwm, just select/flash the newer cwm version with Rom Manager.


    Download:

    Ubuntu4DHD.rar (reuploaded as rar)
    MD5 of image: 79a9faa2d49725fb6bfdc30d4c5fb885

    easy to use.zip


    appendix:
    • easy to use.zip
      with:
    • My boot.img
    • boot-usbhost.img (boot image with usb host support)

    Tips:
    Password: ubuntu
    5
    Alright, I managed to find the files and boot into ubuntu on my DHD! Awesome!!

    I've uploaded the files needed in one rar on my dropbox, I suggest people make a permanent mirror as it will eat my bandwidth if lots download it.
    https://dl.dropbox.com/s/x2wosf4uvf70leq/UbuntuDHD.rar

    Thanks.
    3
    The way we should be able to make the touch screen work:

    1. Finding out witch X version we are using
    2. Getting the right evtouch_drv.so for our version from
      http://www.conan.de/touchscreen/evtouch.html#config"
    3. We may have to cross compile it if it is not compiled for arm
    4. Putting the evtouch_drv.so to /usr/lib/xorg/modules/input/
    5. Figuring out witch /dev/input/event is "connected" to touchdriver
      • adb shell cat /sys/devices/virtual/input/input1/name
      • adb shell cat /sys/devices/virtual/input/input2/name
      • adb shell cat /sys/devices/virtual/input/input3/name
      • ...
      (The adb command would be used in the console of "Start Here.bat")
    6. Using a xorg.conf like this (with corrected /dev/input/event0)

    Code:
    Section "Monitor"
    	Identifier "Monitor0"
    	Mode "480x800"
            	DotClock 0		
    		HTimings 480 480 480 480
    		VTimings 800 800 800 800
    		Flags    "-HSync" "-VSync"
    	EndMode
    EndSection    
    
    
    
    Section "Device"                                  
            Identifier      "fbdev"
            Driver  "fbdev"
    	Option "ShadowFB" "on" 
            Option "Rotate" "CW" 
            Option "RandRRotation" "true" 
    EndSection                                                
    
    
    Section "Screen"                                        
            Identifier "Framebuffer"     
            Device  "fbdev"            
            Monitor "Monitor"               
    	DefaultFbBpp 16
    	SubSection "Display"
    		Depth 16
            	Modes "480x800"
    	EndSubSection
    EndSection                                              
    
    Section "Screen"
            Identifier "480x800x16"
            Device  "fbdev"
            Monitor "Monitor"
            DefaultFbBpp 16
            SubSection "Display"
                    Depth 16
                    Modes "480x800"
            EndSubSection
    EndSection
    
    
    Section "ServerLayout"                                 
            Identifier      "Builtin Default Layout"                                     
            Screen  "Framebuffer"        
    	InputDevice "Touchscreen" "CorePointer"
            InputDevice "Keyboard" "CoreKeyboard"
    EndSection        
    
    Section "InputDevice"
        # use usb mouse until touchscreen driver is present for machine
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/input/mice"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    
    Section "InputDevice"
        Identifier     "Touchscreen"
        Driver         "tslib"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/input/event0"
        Option         "CorePointer"    "true"
    EndSection
    
    Section "InputDevice"
            Identifier  "Keyboard"
            Driver      "kbd"
            Option      "XkbLayout" "en_US"
    EndSection

    The problem is, that I have to study for an exam the next days.

    PS: I have uploaded all kernel modules on the first post. (Would be useful for dev who want to fix WiFi)
    3
    I have uploaded my actual rootfs and two new boot.img in the "easy to use.zip in the first post.

    The touch pad driver has still interchanged aches.
    The seconde boot.img should have usb host support instead of adb.
    The needed *.ko are under /lib/modules.
    The loadKernelModules under /etc/init.d should load this modules, but it does not.

    So I don't have managed to get usb host support on this, yet.


    I hope this give you some new things to play with.
    2
    For porting to other devices

    Chaosz-X said:
    Hi,

    I saw you got native Ubuntu up and running on the Desire HD, and I wanted to do the same with my Flyer. I know how to compile kernels and an Android build etc., but I can't figure out how to set the partitions, that the boot.img boots from a partition on the SD-card. So I was wondering if you could tell me, what modifications are made to your boot.img to make it boot from SD.

    Thanks in advance!

    Changes on the boot.img:
    I guess you know how to extract a boot.img.
    http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images

    When you try split_bootimg with my boot.img you will find two things.
    1) a special command line arguments
    2) a complet other ramdisk image containing
    2a) a busybox
    2b) a init script

    The commad line arguments refer to the init script in the ramdisk.
    The init script mounts some partitions including the ubuntu "partition" (in this case a image file on the sd card".
    For mounting the partitions the init script calls a other script called MAKEDEVS also based in the ramdisk image.
    In this second script you need to change the major and minor numbers of the block devices to match your kernel/device.


    Placing the ubuntu image on the sd card:

    I use a image file on the sd card.
    You could use following commands on a linux machine to edit the image.

    mkdir /mnt/ubuntuimg
    sudo mount -t ext2 -o loop,rw /pathToTheImage/rootfs.ext2 /mnt/ubuntuimg
    Then you will see the content of the image in /mnt/ubuntuimg.
    Don't forget to unmount.
    umount /mnt/ubuntuimg

    Edits on the kernel:
    In the kernel the framebuffer must be activated to run ubuntu

    make menuconfig
    Device Driver->Character Devices-> Set Virtual Terminal
    Device Driver->Graphics support->Console display driver support->Remove VGA Text console

    Maybe same patches for the framebuffer are needed to use the framebuffer.
    Some information can be found under:

    http://xdaforums.com/showthread.php?t=1008144&highlight=ubuntu