Posted by: Wildan Maulana | August 8, 2007

[Log]Encryption root fs on NGW Board

Prerequisite :

  1. savannah config.guess and config.sub
  2. e2fsprogs
  3. popt
  4. textinfo
    • #apt-get install texinfo

e2fsprogs

  1. Download the the source :
    #wget -c http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.40.2.tar.gz
  2. Extract the source :
    #tar -xvvzf e2fsprogs-1.40.2.tar.gz
    #cd e2fsprogs-1.40.2
  3. Replace the config.guess and config.sub files :
    #cp ../config.guess config/config.guess
    #cp ../config.sub config/config.sub
  4. Configure :
    ## CC=avr32-linux-gcc ./configure –host=avr32-linux –prefix=/home/wildan/netherland-project/encryption/luks/e2fsprogs-1.40.2/dist/
  5. Cross Compile :
    #make ARCH=avr32 CROSS_COMPILE=avr32-linux-
  6. Install :
    #make install

popt

  1. Download the the source :
    #wget -c http://rpm.net.in/mirror/rpm-4.4.x/popt-1.10.4.tar.gz
  2. Extract the source :
    # tar -xvvzf popt-1.10.4.tar.gz
    #cd popt-1.10.4/
  3. Replace the config.guess and config.sub files :
    #cp ../config.guess .
    #cp ../config.sub .
  4. Configure :
    CC=avr32-linux-gcc ./configure –host=avr32-linux –disable-static –disable-shared –disable-rpath –disable-nls –prefix=/home/wildan/netherland-project/encryption/luks-avr32/popt-1.10.4/dist
  5. Cross Compile :
    #CC=avr32-linux-gcc make ARCH=avr32 CROSS_COMPILE=avr32-linux-
  6. Install :
    #make install

cryptsetup

  1. Download the the source :
    #wget -c http://luks.endorphin.org/source/cryptsetup-1.0.5.tar.bz2
  2. Extract the source :
    #tar jxvf cryptsetup-1.0.5.tar.bz2
    #cd cryptsetup-1.0.5
  3. Replace the config.guess and config.sub files :
    #cp ../config.guess .
    #cp ../config.sub .
  4. Configure :
    # export LDFLAGS=”-L/home/wildan/netherland-project/encryption/luks-avr32/shared-lib”
    # export CPPFLAGS=”-I/home/wildan/netherland-project/encryption/luks-avr32/e2fsprogs-1.40.2/lib -I/home/wildan/netherland-project/encryption/luks-avr32/popt-1.10.4 -I/home/wildan/netherland-project/ngw100/packagesByW/device-mapper/include”#CPPFLAGS=”-I/home/wildan/netherland-project/encryption/luks-avr32/e2fsprogs-1.40.2/lib -I/home/wildan/netherland-project/encryption/luks-avr32/popt-1.10.4 -I/home/wildan/netherland-project/ngw100/packagesByW/device-mapper/include” CC=avr32-linux-gcc ./configure –host=avr32-linux –enable-libgcrypt –enable-libdevmapper –prefix=/home/wildan/netherland-project/ngw100/packagesByW/cryptsetup-1.0.5 –with-libgcrypt-prefix=/home/wildan/netherland-project/ngw100/packagesByW/libgcrypt-1.2.4
  5. Cross Compile :
    #CC=avr32-linux-gcc make ARCH=avr32 CROSS_COMPILE=avr32-linux-
  6. Install :
    #make install

Create the device-nodes if they do not exist yet:

mknod /dev/loop0 b 7 0
mknod /dev/loop1 b 7 1

mknod /dev/loop9 b 7 9

devmapper

  1. Download the the source :
    # wget -c ftp://sources.redhat.com/pub/dm/device-mapper.1.02.21.tgz
  2. Extract the source :
    #
    #
  3. Replace the config.guess and config.sub files :
    #cp ../config.guess .
    #cp ../config.sub .
  4. Configure :
    #ac_cv_func_malloc_0_nonnull=yes CC=avr32-linux-gcc ./configure –host=avr32-linux –enable-compat –disable-selinux –enable-static_link
    –with-kernel-dir=/home/wildan/netherland-project/avr32-cd/software/linux/linux-2.6.18-sdcardboot/
    –with-interface=fs
    –with-kernel-version=2.6.18
    –prefix=/home/wildan/netherland-project/ngw100/packagesByW/device-mapper
  5. Cross Compile :
    #CC=avr32-linux-gcc make ARCH=avr32 CROSS_COMPILE=avr32-linux-
  6. Install :
    #make install


hashalot

  1. Download the the source
    # wget -c http://download.uhulinux.hu/mirror/http:/www.paranoiacs.org/~sluskyb/hacks/hashalot/hashalot-0.3.tar.gz
  2. Extract the source :
    #tar -xvvzf hashalot-0.3.tar.gz
    # cd hashalot-0.3
  3. Configure :
    # CC=avr32-linux-gcc ./configure –host=avr32-linux –prefix=/home/wildan/netherland-project/ngw100/packagesByW/hashalot-0.3/
  4. Cross Compile :
    #CC=avr32-linux-gcc make ARCH=avr32 CROSS_COMPILE=avr32-linux-
  5. Install :
    #make install

libgpg-error

  1. Download the the source
    # wget -c ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.5.tar.bz2
  2. Extract the source :
    #tar xvjf libgpg-error-1.5.tar.bz2
    # cd cd libgpg-error-1.5
  3. Replace the config.guess and config.sub files :
    #cp ../config.guess .
    #cp ../config.sub .
  4. Configure :
    # CC=avr32-linux-gcc ./configure –host=avr32-linux –prefix=/home/wildan/netherland-project/ngw100/packagesByW/libgpg-error-1.5/
  5. Cross Compile :
    #CC=avr32-linux-gcc make ARCH=avr32 CROSS_COMPILE=avr32-linux-
  6. Install :
    #make install

libgcrypyt

  1. Download the the source
    # wget -c ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.2.4.tar.gz
  2. Extract the source :
    #tar -xvvzf libgcrypt-1.2.4.tar.gz
    # cd libgcrypt-1.2.4
  3. Replace the config.guess and config.sub files :
    #cp ../config.guess .
    #cp ../config.sub .
  4. Configure :
    # CC=avr32-linux-gcc ./configure –host=avr32-linux –with-gpg-error-prefix=/home/wildan/netherland-project/ngw100/packagesByW/libgpg-error-1.5 –prefix=/home/wildan/netherland-project/ngw100/packagesByW/ –disable-asm
  5. Cross Compile :#CC=avr32-linux-gcc make ARCH=avr32 CROSS_COMPILE=avr32-linux-
  6. Install :#make install

——–DEBUG———-
~ # cryptsetup luksFormat /dev/loop0

WARNING!
========
This will overwrite data on /dev/loop0 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
device-mapper: table: device /dev/loop0 too small for target
device-mapper: table: 254:0: crypt: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn’t appear to be in the dev hash table.
/dev/mapper/temporary-cryptsetup-164: chown failed: Operation not permitted
Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/loop0 contains at least 133 sectors.
Failed to write to key storage.
Command failed.

……..


Responses

  1. olmkqphlruosyyjiwell, hi admin adn people nice forum indeed. how’s life? hope it’s introduce branch😉

  2. Hi, I have a quick query. Does anybody else get a small lag on this discussion board every time they logon? It usually requires around 5 seconds approximately for me to get the index page.

    Regards
    JateArcat

  3. Relevé systématique des baptêmes ou naissances, mariages motercalo sépultures relevé systématique de nivillac. relevé des tables décennales nivillac 1802 .

  4. adfgasdg

  5. answer for the message

  6. sdgfsdfg

  7. hey, I am new here on the forums Does anyone know how I can save movies from you tube to my work cpu?

    • The easy way : just play the movie as usual until the end, after that open yout tmp directory, there will be temporary file of the movie whics is downloaded by your browser


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: