FORUMS

OnePlus 2 Announced: Specs, Price and Details

The OnePlus 2 has just had its Virtual Reality Launch event, and at the XDA Office we all … more

A Helpful Guide to Music Streaming Services

With the launch of Apple Music, music streaming services have recently gained a lot of … more

An Inside Look at the Redesign of Business Calendar

The much-acclaimed calendar app, Business Calendar, underwent a major design … more

New Android One Device Dead On Arrival

Today, Google announced the second generation of Android One devices, with the new Lava Pixel … more

Debian on the Vogue

123 posts
Thanks Meter: 173
 
Post Reply Subscribe to Thread Email Thread
I've been running Debian natively from my SD card for a while, so I decided I'd share the [relatively easy] instructions. First, though, here's the status of the hardware support...

* X11 is working quite nicely. 480x640 resolution is best for using E17.
* I'm trying to think up a solution for the 3D accelerator. LLVMpipe works but it's not much faster than classic Mesa. Maybe that's because I'm only testing performance with Mupen64Plus and SuperTux :P Ideally we would have an open-source OpenGL ES 1.0 driver with an OpenGL 1.3 wrapper/Gallium state tracker, but unfortunately Qualcomm closed it :(
* The hardware buttons don't generate input events (except the power button, which apparently makes SDL windows fullscreen).
* USB function ether works. This means you can SSH into it or update packages without a data connection (I don't think data even works).
* Sound doesn't work because Android doesn't use ALSA - or maybe because DZO hasn't written the proper driver...
* Camera(s) would need a Video4Linux driver; again, not my area :P
* Bluetooth is untested.
* GPS needs userspace work (gpsd?) - maybe the HTC Dream page at HTC-Linux.org has info...
* Calling - untested because: 1) I doesn't got the software, and 2) even if it worked, I have no one to call :P

If you're willing to wait indefinitely for those things to be fixed (or if you don't care), all you need is a Debian chroot on an EXT2-formatted SD card and my special NBH. The NAND should also work*, but Debian probably wouldn't fit on it. These instructions should also work for Ubuntu, Gentoo, FSO/OpenMoko, Angstrom, ARMedSlack, Fedora, or what have you - the only requirements are ARMv6 or lower and a semi-standard root filesystem layout (i.e. /sbin/init).

For those of you who don't trust binaries, I've uploaded my patches to the kernel and tinboot needed for Debian to boot. For everyone else, I have NBH files ready. Just flash the NBH, insert your SD card, and it should boot.

Links:
http://www.mediafire.com/?mnv2memddug (source)
http://www.mediafire.com/?immywzmmqjn (binaries)

*LogFS patch included and enabled in my NBH.
 
 
3rd June 2010, 01:43 AM |#2  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
Donate to Me
More
Interesting, i'm going to have to try it out, any chance of getting it bootable from within android, like haret is with windows?
3rd June 2010, 08:14 PM |#3  
Senior Member
Thanks Meter: 1
 
More
what exactly is debian??

is it like ubuntu thats on my computer
Last edited by jadenj5; 3rd June 2010 at 10:05 PM.
4th June 2010, 12:28 AM |#4  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
Donate to Me
More
Quote:
Originally Posted by jadenj5

what exactly is debian??

is it like ubuntu thats on my computer

yes
10char
4th June 2010, 08:16 AM |#5  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
Donate to Me
More
little confused though, where do I get the debian root files though
5th June 2010, 09:30 PM |#6  
OP Senior Member
Flag Central Pennsylvania
Thanks Meter: 173
 
Donate to Me
More
Cool Debian Root
Instructions to build your own RootFS follow. If you're lazy, Google for a pre-built one.
If you're on Ubuntu:

Code:
sudo apt-get install debootstrap
sudo debootstrap --arch armel --foreign unstable root/ http://http.us.debian.org/debian
Substituting "unstable" for "stable" or "testing", "root/" with the the path to the directory you want the rootfs in (probably your SD card mountpoint), and your country code in ftp.??.debian.org (or another mirror). You might also need to do
Code:
 sudo mount -o remount,rw,dev,exec $MOUNTPOINT
to your SD card (which, again, should be ext2-formatted) for debootstrap to work.

Then to complete the bootstrap:
Code:
sudo apt-get install qemu-kvm-extras-static
sudo cp /usr/bin/qemu-arm-static $ROOTFS/usr/bin/
sudo chroot $ROOTFS
From inside the chroot, do
Code:
/debootstrap/debootstrap --second-stage
Then, apt-get install whatever you want on the phone (after configuring /etc/apt/sources.list), exit the chroot, unmount the card, insert it in your phone, and boot!

You'll need - at the very least - xserver-xorg-video-fbdev and xserver-xorg-input-evdev *WITHOUT* installing the other video or input drivers. And a desktop/window manager. If you haven't used Debian before, try e17.
7th June 2010, 08:45 AM |#7  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
Donate to Me
More
Thanks man, i'm going to go check it out
7th June 2010, 05:02 PM |#8  
Member
Flag Vienna
Thanks Meter: 0
 
More
Quote:

If you're lazy, Google for a pre-built one.

can't find one.?
16th June 2010, 01:59 PM |#9  
Member
Flag Moscow
Thanks Meter: 0
 
More
Quote:

If you're on Ubuntu:

ubuntu 10.04 debootstrap doesnt know about stable/testing/unstable names, but knows about lenny, squeeze, sid (:
16th June 2010, 03:02 PM |#10  
Member
Flag Moscow
Thanks Meter: 0
 
More
okay, I maked Debian unstable rootfs - here it is (127MB tar.bz2). here is dpkg -l.
root password is "1", apt sources.list is configured to most close to me mirror. I also added /proc into fstab.

how to pack my rootfs into .img image now?
Last edited by rzk333; 16th June 2010 at 03:05 PM.
17th June 2010, 03:07 PM |#11  
Senior Member
Thanks Meter: 84
 
Donate to Me
More
can you post a screenshots please ???

Read More
Post Reply Subscribe to Thread

Tags
debian
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes