| Prev |   1     2   3   4   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   dm-loop (for qole) (https://talk.maemo.org/showthread.php?t=23891)

qole 2009-10-25 21:51

Re: dm-loop (for qole)
 
What extra things would be required to add encryption here? Is yet another kernel module needed?

I could see many use-cases for an encrypted file system inside an image file on your mobile device.

attila77 2009-10-25 21:59

Re: dm-loop (for qole)
 
I'll try and push dmsetup into extras tonight barring some devmapper dependency funk.

attila77 2009-10-26 00:24

Re: dm-loop (for qole)
 
Code:

[2009-10-26 02:15:06] Processing package devmapper 1.02.27-4. Uploader: achipa, builder: builder1
[2009-10-26 02:15:11] Building devmapper 1.02.27-4 for target 'maemo-diablo-armel-extras-devel'
[2009-10-26 02:18:03] OK
[2009-10-26 02:18:06] Building devmapper 1.02.27-4 for target 'maemo-diablo-i386-extras-devel'
[2009-10-26 02:20:38] Signing build results
[2009-10-26 02:20:40] devmapper 2:1.02.27-4 has been queued for loading into diablo extras-devel repository
[2009-10-26 02:20:41] You can find more info about this build here: https://garage.maemo.org/builder/diablo/devmapper_1.02.27-4/


allnameswereout 2009-10-26 00:50

Re: dm-loop (for qole)
 
Quote:

Originally Posted by qole (Post 357873)
What extra things would be required to add encryption here? Is yet another kernel module needed?

I could see many use-cases for an encrypted file system inside an image file on your mobile device.

The dependancies I mentioned here. Instead of dmsetup I recommend cryptsetup-luks (aka cryptsetup nowadays) because it only has that one purpose. Just check out each of their manuals...

Together with an Ext2/Ext3 driver this should be compatbile with FreeOTFE, making it possible to even access r/w mode of both the image as well as the filesystem on a little endian machine such as Windows/x86-32. Like TrueCrypt. That means, that for example the image can be put on MicroSD, and a Windows/x86-32 user (most used desktop platform...) can write stuff onto it.

qole 2009-10-26 02:25

Re: dm-loop (for qole)
 
So now, in theory, you can get your own turbo loop in Diablo without needing to install easy chroot. I'll test it out and get back to you...

qole 2009-10-26 03:18

Re: dm-loop (for qole)
 
Agh! post-removal script for dmsetup is broken! Please fix!

(I expected the conflict with easy-chroot; I didn't expect the package to get "jammed" trying to remove!)

Code:

Selecting previously deselected package dmsetup.
Preparing to replace dmsetup 2:1.02.27-4 (using .../dmsetup_2%3a1.02.27-4_armel.deb) ...
Unpacking replacement dmsetup ...
dpkg: error processing /var/cache/apt/archives/dmsetup_2%3a1.02.27-4_armel.deb (--unpack):
 trying to overwrite `/sbin/dmsetup', which is also in package easy-chroot
dpkg (subprocess): unable to execute new post-removal script: Exec format error
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 2


attila77 2009-10-26 10:43

Re: dm-loop (for qole)
 
Whoops :o Knew that softlink shouldn't be in postinst/rm... New package will be on it's way shortly.

attila77 2009-10-27 01:46

Re: dm-loop (for qole)
 
Upon further inspection, this wasn't caused by the softlink... the hacked version of dmsetup in the qole.org repo did not use the udev rules but simply ignored that part of the original package. Now, I fixed the failure and you DO get the udev rule as per the original package (can't be a bad thing, right ?). Yell if this is not what you wanted.

PS. As it's about 2:40 AM here and my eyes are closing, I first uploaded the package to the Fremantle queue by mistake. :o The fun part is that it actually went through the autobuilder without a hitch, so... we have devmapper in Fremantle :D

EDIT: If you don't know how to solve the postrm/exec format problem, just do a
Code:

rm /var/lib/dpkg/info/dmsetup.postrm
and all will be well

qole 2009-10-27 06:45

Re: dm-loop (for qole)
 
Looks like everything installs OK in Diablo. Kernel modules load, dmlosetup works, and I can mount an image just fine.

One little error when installing the new packages:
Code:

Setting up libdevmapper1.02.1 (2:1.02.27-maemo1) ...
ldconfig: /usr/lib/libgailutil.so.18 is not a symbolic link

Just for fun, I tried dmlosetup in Fremantle. It needs the kernel drivers. :(

So someone still needs to build the drivers for kernel version 2.6.28-omap1 (armv71).

qwerty12 2009-10-27 08:17

Re: dm-loop (for qole)
 
Quote:

Originally Posted by qole (Post 358800)
So someone still needs to build the drivers for kernel version 2.6.28-omap1 (armv71).

I'm certainly not going to attempt an autobuilder build when the SDK kernel source is out of date compared with what's on the device itself...


| Prev |   1     2   3   4   | Next
All times are GMT. The time now is 21:38.

vBulletin® Version 3.8.8