Debian dualboot


Last Updated:

  1. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    Hi all,

    I played with Debian on my Galaxy. See video here and wiki/project here. It is a dual-boot system, but I use android's init to boot Debian, just removing android's services and adding things like 'startx', so you may say it is not a true Debian. It runs matchbox and LXDE.

    I got this idea that it is possible to use Android's middleware, i.e. RIL, but run a custom desktop environment on top of it. I was looking at other environments like various openmoko distributions and maemo, but was not particularly impressed by any of them, so this question is open - do we need an alternative pure linux (no java) Debian compatible etc etc distribution for Android-based phone? And if yes, how should it look like?

    I tried to write my own dialer application using different kits: GTK+/C, GTK+/Python, QT/C++, QT/Python, but could not make anything particularly worth looking at (I am poor designer anyway). However it seems that making it talk to the RIL daemon is not a big problem. Side note: Python versions occupied 14 Mb of RAM, C version only 7 Mb.

    A possible advantages of such a system as I see it:


    1. Developing such a thing would let us (the community) have much better control of how things look like and behave on the phone.
    2. Compatibility between different phone models: we are using middleware/drivers provided by google/manufacturer which may be hardware dependent but our system should be not
    3. Decreasing dependence on Google, Samsung and others - the middleware/drivers ,I believe, is only a small part of the Andoid compared with the whole dalvik/framework/apps pile. Dalvik/framework/apps, although is open source, is developed by other companies with their own interests, which are not always the same as interests of us, customers and developers. It seems having something community-driven is a good thing.
    4. We have a freedom to use different programming languages. I find developing in python very fast. Someone may prefer C++ over Java.
    5. It would be possible to use a lot of open source code.
    Please, tell me your thoughts on this and, especially, what you think should be done next.
     

    Advertisement
    Pennywis3 and MichaelW like this.
  2. MichaelW

    MichaelW Well-Known Member

    Joined:
    Oct 6, 2009
    Messages:
    364
    Likes Received:
    26
    Wow, that's pretty impressive work, I didn't expect to see that!

    Will give this a try out later. :)
     
  3. Rastaman-FB

    Rastaman-FB Well-Known Member

    Joined:
    Sep 11, 2009
    Messages:
    6,113
    Likes Received:
    1,010
    i dont know what should be done next but what i would say is that the steps you have just made are huge and i dont think many expected that

    WOW
     
  4. Pennywis3

    Pennywis3 Well-Known Member

    Joined:
    Jan 15, 2010
    Messages:
    66
    Likes Received:
    0
    Great Job! :)
     
  5. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    Wait, it was not too difficult. And I cannot even call from Debian yet!
     
  6. Rastaman-FB

    Rastaman-FB Well-Known Member

    Joined:
    Sep 11, 2009
    Messages:
    6,113
    Likes Received:
    1,010
    well i havent a clue on how you would start to do it
    not only that but no one else has mentioned it for the galaxy at least.

    mer/meego looks interesting although it seems to prefer landscaped small screens
     
  7. inFECT

    inFECT Well-Known Member

    Joined:
    Feb 22, 2010
    Messages:
    256
    Likes Received:
    69
    Nice, another one. I installed debian like 6 month ago on the galaxy but i gave up at one point. Mine was never running x, but at least i knew it works ;)

    Kudos for dualbooting and LXDE. Thats pretty cool tho.
     
  8. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    Yeah, I spent some time on trying to get Hildon (desktop manager from maemo) running, it is in debian repository btw, but it looks weird. The launch panel on the left occupies almost half of the screen.
     
  9. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    Well, after installing debian in the usual way (the way you probably did), with xserver-xorg-video-fbdev, you can almost type "startx" and it would work. The only problem is the double-buffer configuration of framebuffer which is used by Android. But this is fixable by changing a couple of lines in kernel sources, which are available from Samsung.
     
  10. inFECT

    inFECT Well-Known Member

    Joined:
    Feb 22, 2010
    Messages:
    256
    Likes Received:
    69
    Yeah, i figured that its probably more or less easy to get it running, but it wasnt really my priority since i just wanted to get ipv6 running and try some native routing tests..

    but its really good to see what you did. great work.
     
  11. FadeFx

    FadeFx Well-Known Member

    Joined:
    Mar 4, 2010
    Messages:
    183
    Likes Received:
    12
    i really like the idea of having a open system that can run standard linux apps, but also i think there already is a project lots of people are waiting for lacking of manpower...
     
  12. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    Which project?
     
  13. FadeFx

    FadeFx Well-Known Member

    Joined:
    Mar 4, 2010
    Messages:
    183
    Likes Received:
    12
    gaosp project really needs you! anybody interested in and able to make galaxy better should first put all his efforts in there...
     
  14. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    I suspected you mean gaosp. Well may be I should give it a try. Hopefully I get some new ideas and commit some fixes along the way. By the way, my Galaxo installation got buggy recently, may be because I messed up some things - so I was planning to reinstall it anyway.
     
  15. pasxal

    pasxal Well-Known Member

    Joined:
    Nov 2, 2009
    Messages:
    47
    Likes Received:
    0
    Anyone knows what causing this error?

    Code (Text):
    1. tolis@tolis-laptop:~/Desktop/drakaz-GalaxoKernel-be86979$ sudo patch -p1 < fix
    2. patching file drivers/video/msm/msm_fb.c
    3. Hunk #1 succeeded at 225 with fuzz 1 (offset 21 lines).
    4. Hunk #2 succeeded at 344 with fuzz 2 (offset 74 lines).
    5. patching file drivers/video/msm/panel/mddi/mddi_toshiba_smd.c
    6. Hunk #1 FAILED at 1711.
    7. 1 out of 1 hunk FAILED -- saving rejects to file drivers/video/msm/panel/mddi/mddi_toshiba_smd.c.rej
     
  16. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    Yeah, sorry, I made the patch for linux 2.6.29 and you are probably trying to compile 2.6.27, but the problem can be easily solved anyway. Just open this file

    Code (Text):
    1. drivers/video/msm/panel/mddi/mddi_toshiba_smd.c
    go to the very end and find the line

    Code (Text):
    1. pinfo->fb_num = 2;
    Change 2 -> 1 and that's it.
     
  17. pasxal

    pasxal Well-Known Member

    Joined:
    Nov 2, 2009
    Messages:
    47
    Likes Received:
    0
    i thought galaxo kernel was .29. Now i realized it is outdated.
     
  18. Rastaman-FB

    Rastaman-FB Well-Known Member

    Joined:
    Sep 11, 2009
    Messages:
    6,113
    Likes Received:
    1,010
    galaxo 1.6.3.2 is .29 as its donut
     
  19. pasxal

    pasxal Well-Known Member

    Joined:
    Nov 2, 2009
    Messages:
    47
    Likes Received:
    0
    Yes i know. I was talking about github kernel sources.
     
  20. Pennywis3

    Pennywis3 Well-Known Member

    Joined:
    Jan 15, 2010
    Messages:
    66
    Likes Received:
    0
    Galaxo 1.6.3.2 ????

    Where is it? :)
     
  21. Rastaman-FB

    Rastaman-FB Well-Known Member

    Joined:
    Sep 11, 2009
    Messages:
    6,113
    Likes Received:
    1,010
  22. tsphere

    tsphere Well-Known Member

    Joined:
    Oct 4, 2009
    Messages:
    84
    Likes Received:
    4
  23. pasxal

    pasxal Well-Known Member

    Joined:
    Nov 2, 2009
    Messages:
    47
    Likes Received:
    0
    The problem remains.
    Can u upload the patched image?
     
  24. zzmb

    zzmb Member This Topic's Starter

    Joined:
    Apr 24, 2010
    Messages:
    8
    Likes Received:
    2
    You see, patch modifies kernel source code. When you run the patch and get
    Code (Text):
    1. Hunk #1 succeeded at 225 with fuzz 1 (offset 21 lines).
    2. Hunk #2 succeeded at 344 with fuzz 2 (offset 74 lines).
    3. patching file drivers/video/msm/panel/mddi/mddi_toshiba_smd.c
    4. Hunk #1 FAILED at 1711.
    It was supposed to patch two files. The first file had 2 modifications Hunk #1 and Hunk #2 and they were successful. The second file had one modification, but the patch program could not make the modification. I just told you how to make that last modification yourself without using the patch program. Now, after you made that final modification you don't need the patch anymore, the source is ready you may compile and use it.
     
  25. Liprandi

    Liprandi New Member

    Joined:
    Feb 27, 2012
    Messages:
    1
    Likes Received:
    0
    You shouldn't use hildon-desktop, but hildon-thumbnail

    apt-get remove lxde
    apt-get remove hildon-desktop
    apt-get install hildon-thumbnail
    apt-get autoremove

    that's just a suggestion.
     

Share This Page

Loading...