Chainfire Turns Your Bootanimation into a Logging Center

Having a nice boot animation certainly adds a little bit of aesthetic polish to your … more

Android TV Launcher Pushed to Google Play

Over the past decade, the tech universe has seen two drastic and widely contrasting changes with … more

Cyngn, OnePlus, Micromax – The Legal Battle

Recently, a battle has been waging in India over the rights to distribute the commercial … more

Lean Mean Battery Power Saving App Review

We talk a lot about battery topics here at XDA TV. We talk about everything from Power Banks to USB … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Debian on the Vogue

OP gTan64

3rd June 2010, 12:32 AM   |  #1  
OP Member
Flag Central Pennsylvania
Thanks Meter: 133
 
97 posts
Join Date:Joined: Jan 2010
More
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, 02:43 AM   |  #2  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
1,558 posts
Join Date:Joined: Jun 2009
Donate to Me
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, 09:14 PM   |  #3  
Senior Member
Thanks Meter: 1
 
455 posts
Join Date:Joined: Mar 2010
More
what exactly is debian??

is it like ubuntu thats on my computer
Last edited by jadenj5; 3rd June 2010 at 11:05 PM.
4th June 2010, 01:28 AM   |  #4  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
1,558 posts
Join Date:Joined: Jun 2009
Donate to Me
Quote:
Originally Posted by jadenj5

what exactly is debian??

is it like ubuntu thats on my computer

yes
10char
4th June 2010, 09:16 AM   |  #5  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
1,558 posts
Join Date:Joined: Jun 2009
Donate to Me
little confused though, where do I get the debian root files though
5th June 2010, 10:30 PM   |  #6  
OP Member
Flag Central Pennsylvania
Thanks Meter: 133
 
97 posts
Join Date:Joined: Jan 2010
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, 09:45 AM   |  #7  
mrono's Avatar
Senior Member
Thanks Meter: 4
 
1,558 posts
Join Date:Joined: Jun 2009
Donate to Me
Thanks man, i'm going to go check it out
7th June 2010, 06:02 PM   |  #8  
Member
Flag Vienna
Thanks Meter: 0
 
50 posts
Join Date:Joined: May 2009
More
Quote:

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

can't find one.?
16th June 2010, 02:59 PM   |  #9  
Member
Flag Moscow
Thanks Meter: 0
 
72 posts
Join Date:Joined: Dec 2008
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, 04:02 PM   |  #10  
Member
Flag Moscow
Thanks Meter: 0
 
72 posts
Join Date:Joined: Dec 2008
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 04:05 PM.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes