[guardian-dev] Lil' Debi is ready for the Marketplace!

Hans-Christoph Steiner hans at at.or.at
Wed Jul 13 13:48:00 EDT 2011


On Wed, 13 Jul 2011 12:00 -0400, "micah anderson" <micah at riseup.net>
wrote:
> On Mon, 11 Jul 2011 17:23:19 -0400, Hans-Christoph Steiner
> <hans at at.or.at> wrote:
> > 
> > On Jul 11, 2011, at 3:33 PM, micah anderson wrote:
> > 
> > > On Sun, 10 Jul 2011 22:12:22 -0400, Hans-Christoph Steiner <hans at at.or.at 
> > > > wrote:
> > >>
> > >> On Jul 10, 2011, at 2:04 PM, micah anderson wrote:
> > >>
> > >>> On Sun, 10 Jul 2011 12:53:04 -0400, Hans-Christoph Steiner <hans at at.or.at
> > >>>> wrote:
> > >>> Non-text part: multipart/alternative
> > >>>>
> > >>>> And there is info on installing and using it:
> > >>>>
> > >>>> https://github.com/guardianproject/lildebi/wiki
> > >>>
> > >>> Thanks, I installed the latest build and laughed at the icon!
> > >>>
> > >>> I'm trying an install now on my Cyanogen Mod mytouch - I noticed  
> > >>> that
> > >>> the first thing it showed was "modprobe: module 'ext2' not found"  
> > >>> and
> > >>> that https://github.com/guardianproject/lildebi/wiki/Supported-Devices
> > >>> says:
> > >>>
> > >>> T-Mobile myTouch 3G (HTC Magic) 	Android 2.2.1 	ext2, ext3
> > >>
> > >> The modprobe is there for some phones which don't load it by default.
> > >> I suppose it shouldn't show the error if the modprobe is not needed.
> > >> It was a quick kludge in one of the sh scripts to get it out to
> > >> people.  Then we can see how many phones support ext2 and what they
> > >> need to support it.  Unfortunately Android is not very standardized,
> > >> including the kernel.
> > >>
> > >>> It did the dd, mke2fs and then it tried to do a losetup:
> > >>>
> > >>> losetup:
> > >>> mount: mounting /dev/block/loop4 on /data/debian failed: Device or
> > >>> resource busy
> > >>
> > >> It should start and run debootstrap next, you should see it
> > >> downloading, validating then installing packages.  If the install
> > >> fails, you can download a 600MB squeeze barebones image from the
> > >> lildebi github site.
> > >
> > > It doesn't get to the debootstrap stage, I'm guessing because its not
> > > able to do the losetup?
> > 
> > 
> > Here's the script in question:
> > https://github.com/guardianproject/lildebi/blob/master/assets/create-debian-setup.sh
> > 
> > In it you can see:
> >      losetup $loopdev $imagefile
> >      mount -o loop,noatime,errors=remount-ro $loopdev $mnt || exit
> > 
> > So yeah, if it can't mount the file loopback, it exits.  Can you try  
> > the losetup stuff manually?  Maybe on a different device, like /dev/ 
> > loop0.  Maybe the script should get the loopback device from `losetup - 
> > f`.
> 
> I think the problem is that I dont seem to have the loop module
> available (unless it is statically built into the kernel, rather than
> available as a dynamically loaded kernel module):
> 
> localhost sdcard # lsmod |grep loop
> localhost sdcard # modprobe loop
> modprobe: module 'loop' not found
> localhost sdcard # 
> localhost sdcard # losetup `losetup -f` /mnt/sdcard/debian.img
> losetup: /dev/loop0: No such file or directory
> localhost sdcard # ls -l /dev/loop0
> ls: /dev/loop0: No such file or directory
> localhost sdcard # ls -l /dev/block/loop0 
> brw-------    1 root     root        7,   0 Jul 13 11:38 /dev/block/loop0
> localhost sdcard # losetup /dev/block/loop0 /mnt/sdcard/debian.img
> losetup: /dev/block/loop0: No such file or directory
> localhost sdcard # 
> localhost sdcard # uname -a
> Linux localhost 2.6.32.17-cyanogenmod-g46ca326 #1 PREEMPT Thu Apr 21
> 20:36:02 EDT 2011 armv6l GNU/Linux
> 
> Current ROM: CyanogenMod-7.0.3-Slide

The presense of /dev/block/loop0 seems to point to being loop support,
but the rest seems to say not... that's odd because the myTouch 3G/CM6.1
that we have does work with loopback mounts just fine (but has other
issues).  Right now, lildebi needs loop mount support.

One of the grand plans it so make lildebi optionally partition the SD
card with a vfat and ext2 partition, then no loopback is needed, and it
would also run faster.  We probably won't get to that for a while
though, so I'm happy to help anyone who wants to take that on as a
project.

You could also just do the formatting and install of the SD card
manually, then tweak lildebi to handle that.  That'd be a much easier
proposition.

.hc



More information about the Guardian-dev mailing list