Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: crypto loopback & recompiling kernels

Hybrid View

  1. #1

    crypto loopback & recompiling kernels

    Im trying to recompile the Knoppix kernel for reasons related to crypto loopback.
    the /usr/src/linux* directory say the kernel is a vanilla 2.4.20 kernel with only xfs & commandline mods but the .config file has none of the options needed for crypto, e.g.; CONFIG_CRYPTO=m etc.

    since you have to patch the vanilla kernel with the patch-int stuff etc is there a a copy of the patched kernel source used for Knoppix available? and the real config file?[/i]

  2. #2
    Junior Member registered user
    Join Date
    Jan 2003
    Posts
    11
    I tried this too. I couldn't get the patches to work so I simply downloaded the kernel source and rebuilt the kernel with the correct options set. It took about 20 builds to get everything to finally work. Keep in mind that only a certain version of the kernel would fly with the crypto modules. I have a 1.5 TB crypto volume. It's cool. The problem is that since the crypto work is all done in software, that volume is very, very, very slow. If you delete large files, the system slows down to a crawl to the point where the mouse cursor can take 10 seconds to react to a mouse movement.

  3. #3
    Quote Originally Posted by BillyBobber
    I tried this too. I couldn't get the patches to work so I simply downloaded the kernel source and rebuilt the kernel with the correct options set. It took about 20 builds to get everything to finally work. Keep in mind that only a certain version of the kernel would fly with the crypto modules.
    there doesnt appear to be any info anywhere as to which crypto modules work with which kernels. If that were true it might explain why explain why I cant get crypto working (& which is why I wanted to rebuild the knoppix version of the kernel). I dont think aes is built into the kernel.

    AFAIK the knoppix kernel source (with patches applied by the knoppix team) isnt available on this site & that would be helpful as a sanity check.

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    I did this. I just downloaded the kernel source, applied the patch, copied the .config to the source dir, ran "make oldconfig", and then built the kernel and modules.

    Then you have to add the modules to /lib/modules and the kernel to the miniroot.gz.

  5. #5
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --Two solutions (actually three)

    1. Faster processor (maybe dual Athlons)
    2. More RAM
    3. shrink the volume

    3comedy: delete all that pr0n and it will speed up just fine!

    Quote Originally Posted by BillyBobber
    I tried this too. I couldn't get the patches to work so I simply downloaded the kernel source and rebuilt the kernel with the correct options set. It took about 20 builds to get everything to finally work. Keep in mind that only a certain version of the kernel would fly with the crypto modules. I have a 1.5 TB crypto volume. It's cool. The problem is that since the crypto work is all done in software, that volume is very, very, very slow. If you delete large files, the system slows down to a crawl to the point where the mouse cursor can take 10 seconds to react to a mouse movement.

  6. #6
    Quote Originally Posted by Dave_Bechtel
    -

    3comedy: delete all that pr0n and it will speed up just fine!
    Im sceptical; 1.5Tb porn? thats way more than me, I'd like to see that.
    no really I'd like to see that

  7. #7
    Quote Originally Posted by eadz
    I did this. I just downloaded the kernel source, applied the patch, copied the .config to the source dir, ran "make oldconfig", and then built the kernel and modules.

    Then you have to add the modules to /lib/modules and the kernel to the miniroot.gz.
    But that was my point: the .config file contains no crypto related options in it, so after you patch the kernel with the international patch how is the .config helping you to select, for example, cryptoapi, cryptoloop, cipher-aes etc.
    After I do all the patching cipher module building etc etc All I get after doing losetup ... is ioctl: LOOP_SET_STATUS: Invalid argument
    Can you tell me the kernel you used and what patches you used to get functioning loopback crypto.

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    Quote Originally Posted by davidHarris
    Quote Originally Posted by eadz
    I did this. I just downloaded the kernel source, applied the patch, copied the .config to the source dir, ran "make oldconfig", and then built the kernel and modules.

    Then you have to add the modules to /lib/modules and the kernel to the miniroot.gz.
    But that was my point: the .config file contains no crypto related options in it, so after you patch the kernel with the international patch how is the .config helping you to select, for example, cryptoapi, cryptoloop, cipher-aes etc.
    After I do all the patching cipher module building etc etc All I get after doing losetup ... is ioctl: LOOP_SET_STATUS: Invalid argument
    Can you tell me the kernel you used and what patches you used to get functioning loopback crypto.
    Yes, that's why you :
    Code:
    make oldconfig
    which uses the .config you supply ( i.e. you've put the .config from knoppix into your kernel directory where you are compiling ) and it just asks for the new options.

    Hmm, although that error, LOOP_SET_STATUS, looks like a modprobe / mount error. You may not be using the correct mount options. I.e. are you doing losetup with all the crypto options?

  9. #9
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    As far as I know, the loopback device for crypto is a dropped in replacement (loop.o) which is built seperately from the kernel. There is no options in the kernel build tree for that.

  10. #10
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    Quote Originally Posted by garyng
    As far as I know, the loopback device for crypto is a dropped in replacement (loop.o) which is built seperately from the kernel. There is no options in the kernel build tree for that.
    You can build it into the kernel. And yep, I think it is called loop.o when it's compiled as a module. The Knoppix compressed loop is cloop.o .

Page 1 of 2 12 LastLast

Similar Threads

  1. Config Dateien des Kernels
    By rainerh in forum German Forum
    Replies: 2
    Last Post: 02-20-2005, 10:02 PM
  2. Problems with 2.6.1 kernels and fsck
    By bobalex in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 01-28-2004, 07:48 PM
  3. Recompiling 2.4.22 for acpi
    By bangmandsl in forum General Support
    Replies: 0
    Last Post: 09-15-2003, 10:29 PM
  4. Experimental Kernels?
    By fearlessrogue in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 06-30-2003, 12:16 AM
  5. Mounting a Loopback image
    By mattsbr in forum General Support
    Replies: 1
    Last Post: 03-24-2003, 07:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Acer Aspire 14

Acer Aspire 14" AI Copilot+PC Laptop Core Ultra 5 226V Gen 4 ARC 16GB 1TB Refurb

$482.02



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$372.48



2026 NEW SGIN 15.6

2026 NEW SGIN 15.6" Laptop Win11 Intel i3 16GB RAM 1TB SSD Wi-Fi 6 RJ45 USB-C

$302.99



NEW 2026 SGIN 18.5

NEW 2026 SGIN 18.5" Laptop Windows 11 PRO Intel N5095 16GB DDR4 1024GB SSD

$444.99



External SSD 1TB 2TB  Portable Hard Drive USB 3.1 Type-C High Speed PC Mac picture

External SSD 1TB 2TB Portable Hard Drive USB 3.1 Type-C High Speed PC Mac

$16.99



Acer Predator Helios Neo 16S AI 16

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb

$1794.16



SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM picture

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM

$159.99



Hitachi  / HGST Travelstar HTS541010B7E610 1TB 2.5

Hitachi / HGST Travelstar HTS541010B7E610 1TB 2.5" SATA III HDD

$29.99



1TB SanDisk Extreme Portable SSD (Recertified) - A196-SDSSDE61-1T00 picture

1TB SanDisk Extreme Portable SSD (Recertified) - A196-SDSSDE61-1T00

$150.99



Apple Mac Pro A1186-Xeon E5462-20GB DDR3 Ram 500GB HDD+1TB HDD+2TB HDD MacOS Yes picture

Apple Mac Pro A1186-Xeon E5462-20GB DDR3 Ram 500GB HDD+1TB HDD+2TB HDD MacOS Yes

$274.99