[g1-hackers] tips on building unionfs?

James Nylen jnylen+g1 at gmail.com
Mon Jan 18 15:50:41 UTC 2010


FYI, you don't *have* to go the unionfs way.  You can still get everything
to work with bind mounts.  I used binds because I kept reading that people
had trouble with unionfs breaking things.

I have a bind mount for each of the major Android directories (/system,
/data, /sdcard, and Android's /dev at /anddev) and some subdirectories
(CyanogenMod's /system/sd, /system/xbin, etc.).  I also did the following:

ln -fs /proc/mounts /etc/mtab
# causes some slight weirdness (duplicate entries), but allows commands like
"mount -o remount,rw /system" to work from within Debian

cd /anddev; for i in *; do [ ! -e /dev/$i ] && ln -s /anddev/$i /dev/$i;
done
# (once you have /anddev mounted) allows Android command-line programs like
"pm" to be run from debian

I have a "debian" script that sets all of this up and starts sshd:

http://nylen.tv/debian.sh

You might need to make some minor changes (like ensuring that the busybox
version of mount is called, or mounting your Debian image if you are doing
that instead of an ext partition) but it works really well on my G1 with
CyanogenMod.


On Mon, Jan 18, 2010 at 9:53 AM, Michael Kramer <kramtek at gmail.com> wrote:

> Hi,
>
> can anyone provide tips or information on building the unionfs.ko module?
>
> i know this list is for g1-hackers, but my nexus one arrived the other
> day and within hours it was rooted and i managed to get a hefty
> debian distribution on it - many thanks to Saurik!!
>
> there is an update.zip file available for the nexus one for rooting
> that includes busybox and adds some nice features, including partitioning
> of the SD card, so debian can just be put on an ext2 partition.
>
> With that the chroot works fine and i've even managed to get e17
> running as a window manager (for X w/in debian) and then view into the
> deian environment
> with an android VNC client (pointing to localhost) - but the android and
> debian worlds are still separate
> without the unionfs-based folder combinations.
>
> i'm new to kernel-level dev for android so i'm just not sure how the
> unionfs.ko file (from saurik's blog) was created (and for reference i've
> tried both the rc19 and rc29/30 versions for the g1 and had no luck
> w/ them on the nexus).
>
> any suggestions are of course most welcome,
>
> cheers,
>
> Mike
>
>
>
>
> _______________________________________________
> G1-Hackers mailing list
> G1-Hackers at telesphoreo.org
> http://www.telesphoreo.org/cgi-bin/mailman/listinfo/g1-hackers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.telesphoreo.org/pipermail/g1-hackers/attachments/20100118/2fb77092/attachment.htm 


More information about the G1-Hackers mailing list