5,598,820 Members 32,406 Now Online
XDA Developers Android and Mobile Development Forum

NATIVE Debian (Linux) on the Droid!

Tip us?
 
gTan64
Old
#1  
Member - OP
Thanks Meter 105
Posts: 90
Join Date: Jan 2010

 
DONATE TO ME
Lightbulb NATIVE Debian (Linux) on the Droid!

I got myself a Motorola Droid and I've been playing with the kernel quite a bit - it didn't take long to get Debian to boot from the SD card!

Necessary kernel modifications:
CONFIG_CMDLINE_FORCE=y
Motorola must have stealthily removed this from the kernel :P To re-enable it, add an #ifdef in arch/arm/kernel/setup.c as per http://kerneltrap.org/mailarchive/li...0/1/28/4533180.
CONFIG_CMDLINE="mem=244M@0x80C00000 mtdparts=omap2-nand.0:640k@128k(mbm),384k@1408k(cdt),384k@3328k(l bl),384k@6272k(misc),3584k(boot),4608k(recovery),1 43744k(system),94848k(cache),268032k(userdata),2m( kpanic) root=/dev/mmcblk0p1 omapfb.rotate=1 noinitrd quiet".

That's about it! Just compile it, use Koush's AnyKernel update.zip generator, and flash away! I tried Ubuntu, but Thumb-2 support is broken in the kernel - it can't execute /sbin/init, so it panics. In theory, Gentoo, Slackware, Arch, Angstrom, MeeGo, and many other Linux distros for ARM should work with little modification. The sky's the limit! (JK, Windows 8000 won't work :P)
The Following User Says Thank You to gTan64 For This Useful Post: [ Click to Expand ]
 
runnr548
Old
#2  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Jun 2008
Location: Oak Ridge
That's awesome! You gotta love Linux!
 
spc_hicks09
Old
#3  
spc_hicks09's Avatar
Senior Member
Thanks Meter 1378
Posts: 3,200
Join Date: Jan 2011
Location: Hawaii
Screenshots, video, anything?
 
gTan64
Old
#4  
Member - OP
Thanks Meter 105
Posts: 90
Join Date: Jan 2010

 
DONATE TO ME
Quote:
Originally Posted by spc_hicks09 View Post
Screenshots, video, anything?
I don't see the point - unless you want a screenshot of Debian's console login prompt, which you can find almost anywhere. I'm running X with E17 (Illume) now, but without proper touchscreen calibration it's not very useful... I might do a video or something once I have it calibrated.
 
quicktek
Old
(Last edited by quicktek; 30th December 2011 at 04:55 AM.)
#5  
Junior Member
Thanks Meter 1
Posts: 11
Join Date: Oct 2010
Quote:
Originally Posted by gTan64 View Post
I got myself a Motorola Droid and I've been playing with the kernel quite a bit - it didn't take long to get Debian to boot from the SD card!
I'm trying to get this set up on my droid. Would you be willing to provide a little more details for a novice like me? Were you modifying the stock kernel or 3rd party? Does wifi work in native debian?

EDIT: I found this other thread which has more details, so I'll start there. Thanks! http://forum.xda-developers.com/show....php?t=1318330
 
gTan64
Old
#6  
Member - OP
Thanks Meter 105
Posts: 90
Join Date: Jan 2010

 
DONATE TO ME
Unhappy The end of the beginning

I've been tempting fate a lot lately. Despite my attempts to keep this platform alive, my Droid bit the dust yesterday.
Its digital contents live on, but the hardware wasn't so lucky.

It always had a way of inconveniencing me, so I'm somewhat relieved about it.
Unfortunately, finding a replacement is going to be a pain.
Mostly due to a lack of money (WiFi+Google Voice+plentiful open source software = less spending/work incentive)
and the length of my uncompromising list of requirements,
I am beginning to realize that my dream phone might never exist.

Somewhat refreshingly, I'm around "weird" people a lot, and they remind me (without using words!) that there are better things in life than shopping for a smartphone.
This isn't exactly goodbye, but I may be away from the XDA scene for a while.

Apologies to any users of my coding experiments... Hopefully, if nothing else, they inspire something more useful.

Thanks y'all for the fun time and for reading this long post :P
Don't stop inventing!
The Following User Says Thank You to gTan64 For This Useful Post: [ Click to Expand ]
 
edw00rd
Old
#7  
Junior Member
Thanks Meter 5
Posts: 16
Join Date: Apr 2010
Quote:
Originally Posted by gTan64 View Post
I got myself a Motorola Droid and I've been playing with the kernel quite a bit - it didn't take long to get Debian to boot from the SD card!

Necessary kernel modifications:
CONFIG_CMDLINE_FORCE=y
Motorola must have stealthily removed this from the kernel :P To re-enable it, add an #ifdef in arch/arm/kernel/setup.c as per http://kerneltrap.org/mailarchive/li...0/1/28/4533180.
CONFIG_CMDLINE="mem=244M@0x80C00000 mtdparts=omap2-nand.0:640k@128k(mbm),384k@1408k(cdt),384k@3328k(l bl),384k@6272k(misc),3584k(boot),4608k(recovery),1 43744k(system),94848k(cache),268032k(userdata),2m( kpanic) root=/dev/mmcblk0p1 omapfb.rotate=1 noinitrd quiet".

That's about it! Just compile it, use Koush's AnyKernel update.zip generator, and flash away! I tried Ubuntu, but Thumb-2 support is broken in the kernel - it can't execute /sbin/init, so it panics. In theory, Gentoo, Slackware, Arch, Angstrom, MeeGo, and many other Linux distros for ARM should work with little modification. The sky's the limit! (JK, Windows 8000 won't work :P)
Hmmm.... how would I go about checking into this for the transformer prime?

Sent from my Transformer Prime using XDA
 
gTan64
Old
#8  
Member - OP
Thanks Meter 105
Posts: 90
Join Date: Jan 2010

 
DONATE TO ME
Quote:
Originally Posted by edw00rd View Post
Hmmm.... how would I go about checking into this for the transformer prime?

Sent from my Transformer Prime using XDA
1.) Figure out how to run an unsigned kernel image. Kexec, fastboot, USB kernel flasher, etc...
2.) Replace the Android initramfs and/or tell the kernel where to boot from (depending on which method you pick above, you may need to compile a custom kernel);
3.) Install a root filesystem image on an SD card (internal storage may work, but it's less risky to dual boot) and point the kernel to it.

I got Ubuntu running even better on my "new" Epic 4G! Other devices should work with this method, but I'm not too enthusiastic about porting for devices I don't own :P
 
ReCreate
Old
#9  
Member
Thanks Meter 13
Posts: 57
Join Date: Oct 2010

 
DONATE TO ME
I know this is a very old thread, but the OP has disabled his PM messaging system, so I have no other choice.

I'm interested in repeating what this guy did here, as I too have a moto droid (a855) and i'd like to get at least a little use out of it.

I have some questions.

Where did you get the kernel sources? (i see you're saying to modify something in arch/arm/kernel/setup.c)

How did you get debian to boot from the SD Card? You mention kernel modification but you never mentioned anything about the setup process.

Will the process here https://wiki.debian.org/HowtoDebianInAndroid work for this? Everything mentioned there except the kernel seems to not be device specific.

Tags
debian, kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Say Goodbye to Holo Blue Once and for All

When Google released Android 4.4 KitKat back in October of last year, they changed quite a bit … more

Sony Z Ultra Google Play Edition Receives Bluetooth Certification for Android 4.4.3

You may recall that a few days ago, Sprint jumped the gun … more

Easily Configure Xposed Module Projects in Eclipse

XDA Recognized Developer rovo89‘s innovative and versatile Xposed Framework allows … more

Android Control Center Becomes Quick Control Panel, Brings Host of New Features

You may recall that back in August of last year, we talked … more