[DEV] Booting Ubuntu nativ!!!

Search This thread

DanWilson

Senior Member
Oct 8, 2010
1,326
54
Glasgow
so i have compiled xserver-xorg-input-evdev and xorg.conf with evdev driver.
with the the normal setting point was infinite left up but with this its realy reacting still not correct but ,sould be possible

Also as note when compiling and installing , driver is not ad location that xorg.conf will find it , so move it to the correct location.

if above is not known to you its not for you:confused::eek:.

https://wiki.ubuntu.com/Multitouch/XDevelopment

I'll work my way round it. Guesswork is king for me. XD
But thanks. I'm sure it'll all help.
 

Jhinta

Senior Member
Dec 20, 2010
704
276
Right. Wait. Don't I need a 64bit PC to build kernels now?
That'll be challenge 1. And find my external HDD with Ubuntu on it. Unless I can build on Windows. I hate these things.

Worth it though. I'll get back to you if I ever get it working, it'll probably need to be tomorrow. Cheers though.

64bit does not mater 32 or 64 is oke
 

mero01

Senior Member
Nov 11, 2010
734
117
SYD
I dont get it with the whole leedroid stuf.
1 Leedroid sure makes damn good android rom's and kernel.
2 leedroid ubuntu = chroot
3 any linux based phone or pc or anything can do chroot if you just have support voor loop devices means all android phone's can do chroot ubuntu.
4 chroot ubuntu in android was there even before leedroid ubuntu.
5 its almost like a standard linux option
6 chroot ubuntu leedroid or any other are ALL the same it just a root file system 100% the same !!!! you can even take the rootfs.ext2 file and do a chroot with it.

Now when booting ubuntu NATIVE please forget chroot, realy it does not help.
Also if you want Sound and bluetooth you still need to mod the kernel.
Also about multitouch you can try en test all kind of multitouch drivers in ubuntu by your self like installing or compiling in ubuntu

lol nah i just meant Lee as a experienced developer could probably help fix the remaining bugs & or provide a better kernel for this :p

nothing to do with his thread posted or chroot :p

but all good can see why you thought that
 

smadger

Senior Member
Sep 3, 2008
490
291
Bedford, UK
Is this possible? It would be AMAZING!!!!!!!!

Just came across this thread, looks pretty interesting, and got me thinking...

I haven't gotten round to physically trying yet, (straight after this!) but after getting Ubuntu up and running, is there anybody out there who understands the info in this link - http://realmike.org/blog/2011/02/09/live-desktop-streaming-via-dlna-on-gnulinux/ - in order to output the =Ubuntu desktop from our DHDs, through DLNA, and onto a display, or at least theorise if it could work?

Also, I've recently seen mention of USB Host on the DHD with a custom Kernel. If this can be achieved, we could plug a wireless receiver for a mouse and keybpoad into the DHD.

Imagine if these three things could be combined:

1) Desire HD running UBUNTU
2) Kernel to allow USB Host for input devices
3) DLNA output of Ubuntu desktop

A wireless portable desktop.

Any ideas?
 

Jhinta

Senior Member
Dec 20, 2010
704
276
Just came across this thread, looks pretty interesting, and got me thinking...

I haven't gotten round to physically trying yet, (straight after this!) but after getting Ubuntu up and running, is there anybody out there who understands the info in this link - http://realmike.org/blog/2011/02/09/live-desktop-streaming-via-dlna-on-gnulinux/ - in order to output the =Ubuntu desktop from our DHDs, through DLNA, and onto a display, or at least theorise if it could work?

Also, I've recently seen mention of USB Host on the DHD with a custom Kernel. If this can be achieved, we could plug a wireless receiver for a mouse and keybpoad into the DHD.

Imagine if these three things could be combined:

1) Desire HD running UBUNTU
2) Kernel to allow USB Host for input devices
3) DLNA output of Ubuntu desktop

A wireless portable desktop.

Any ideas?

This will be way to slow to even think about it . There is no point in doing this on a phone also you can do a remote session that will work faster but then again why not use the pc .

I get what you mean but i realy dont see the point of it and way to slow

Sent from my Desire HD using Tapatalk
 

teshiburu2010

Senior Member
Mar 2, 2010
93
0
Rochester
Thanks soo much for this guys, and thanks so much to the guy who worked out how to boot without a PC!

tried to multiquote and failed!

well done everyone looking good so far. Does anyone know if there is a JRE for Arm?

and if so how would i install it?

Tesh
 

qkall

Senior Member
Jan 21, 2010
908
191
No clue if it works but you'd probably get the most luck out of icedtea

Thanks soo much for this guys, and thanks so much to the guy who worked out how to boot without a PC!

tried to multiquote and failed!

well done everyone looking good so far. Does anyone know if there is a JRE for Arm?

and if so how would i install it?

Tesh



Sent from my Desire HD using XDA App
 
Last edited:
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" or "fastboot boot boot-usbhost.img"
(without ")
after restarting your old rom will start
..and now?
i can't start with ubuntu, but only with Android..why? :(
 

torsrex

Senior Member
Dec 12, 2010
407
86
Make sure you're phone is s-off. Also, you need to enter the option "fastboot" in the bootloader using the power key.

Sent from my Desire HD using Tapatalk
 

liljom

Senior Member
Mar 13, 2010
1,275
108
Copenhagen, Denmark
how can i do?
all is ok..my phone is rooted and s-off
when restart in android, i don't understand how can i do to restart in ubuntu..
please help me

so you have a folder called "linux" in the root of the sdcard and it contains the rootfs.ext2?
when you are in bootloader, do you see BOOTLOADER or FASTBOOT in the "first" line?
 

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://forum.xda-developers.com/showthread.php?t=1008144&highlight=ubuntu