Search results

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    Dropbear could easily be complied for aarch64 because it only depends on the pre-compiled toolchain libraries. /tmp/home/root# ldd dropbear linux-vdso.so.1 (0x0000007fb2a20000) libutil.so.1 => /lib/aarch64/libutil.so.1 (0x0000007fb29e2000) libcrypt.so.1 =>...
  2. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    Here's some results. The HND toolchain is 'soft float' only. # openssl speed -evp aes-256-cbc -elapsed You have chosen to measure elapsed time instead of user CPU time. Doing aes-256-cbc for 3s on 16 size blocks: 32781468 aes-256-cbc's in 3.01s Doing aes-256-cbc for 3s on 64 size blocks...
  3. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    How to turn on all the bells and whistles for 32-bit programs ? :) ~/am-toolchains/brcm-arm-hnd/crosstools-arm-gcc-5.3-linux-4.1-glibc-2.22-binutils-2.25/usr/bin/arm-buildroot-linux-gnueabi-gcc -dM -E -march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 - < /dev/null | egrep -i...
  4. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    I agree and I think that /dev/crypto is the performance bottleneck. So I close with test results of an aarch64 version of openssl compiled with the Asuswrt toolchain. The "no-asm" option was removed. Not using /dev/crypto or bcmspu anymore. LD_LIBRARY_PATH=. ./openssl speed -evp...
  5. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    Here's results for Cryptsetup 2.0.1 benchmark on the RT-AC86U. Cryptsetup uses AF_ALG which is a socket interface from userspace to kernelspace crypto. Linux kernel Cryptographic API (not accelerated) modprobe -r cryptodev modprobe -r bcmspu for M in...
  6. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    I included the stats for BCM SPU in my results for the Cryptsetup benchmark. FYI, the following command crash my router. modprobe -r bcmspu cat /sys/kernel/debug/bcmspu/stats
  7. Fitz Mutch

    Entware-3x for new HND platform (GT-AC5300 and RT-AC86U) with asuswrt-merlin firmware

    Asuswrt-Merlin firmware can be patched to make a /dev/crypto device that enables access to all the kernelspace ciphers including the ARMv8 and NEON accelerated ciphers. However, a program would need to know ahead of time which accelerated cipher it intends to use. Otherwise, it defaults to the...
  8. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    I have /dev/spu, it's already loaded. Is it open source? https://github.com/RMerl/asuswrt-merlin.ng/blob/master/release/src-rt-5.02hnd/kernel/linux-4.1/config_base.6a#L2827 Also, the CONFIG_BCM_CRYPTODEV setting doesn't appear to do anything, it doesn't make a /dev/crypto.
  9. Fitz Mutch

    [RT-AC86U] Accelerated crypto with /dev/crypto

    I've been trying to test openssl to use /dev/crypto, to access the accelerated ciphers of the RT-AC86U. These are kernel modules in the Linux mainline kernel, written in 64-bit assembler, intended for the ARMv8 cpu. However, it's kernelspace and I need a userspace interface such as /dev/crypto...
  10. Fitz Mutch

    Entware-3x for new HND platform (GT-AC5300 and RT-AC86U) with asuswrt-merlin firmware

    I just learnt that "-evp" tells openssl to use the AES hardware of the RT-AC86u. Booyah!! # /opt/bin/openssl speed -evp aes-256-cbc -elapsed You have chosen to measure elapsed time instead of user CPU time. Doing aes-256-cbc for 3s on 16 size blocks: 38323622 aes-256-cbc's in 3.03s Doing...
  11. Fitz Mutch

    Entware-3x for new HND platform (GT-AC5300 and RT-AC86U) with asuswrt-merlin firmware

    My RT-AC86U cpuinfo has "fp asimd evtstrm aes pmull sha1 sha2 crc32". I want to turn on all the bells and whistles. Have you tried "-mfpu=crypto-neon-fp-armv8" ?
  12. Fitz Mutch

    Entware-3x for new HND platform (GT-AC5300 and RT-AC86U) with asuswrt-merlin firmware

    Now it's fast like Asuswrt-Merlin. # /opt/bin/openssl speed aes-256-cbc -elapsed You have chosen to measure elapsed time instead of user CPU time. Doing aes-256 cbc for 3s on 16 size blocks: 9758463 aes-256 cbc's in 3.02s Doing aes-256 cbc for 3s on 64 size blocks: 2658233 aes-256 cbc's in...
  13. Fitz Mutch

    Entware-3x for new HND platform (GT-AC5300 and RT-AC86U) with asuswrt-merlin firmware

    Where is the Entware-3x config to do "-O3 hard float"? I will try re-compiling the repo this way. I hope it goes well. EDIT: is it this way? CONFIG_TARGET_OPTIMIZATION="-O3 -pipe -march=armv7-a -mtune=cortex-a9 -mfloat-abi=hard" # CONFIG_SOFT_FLOAT is not set
  14. Fitz Mutch

    Entware-3x for new HND platform (GT-AC5300 and RT-AC86U) with asuswrt-merlin firmware

    OpenSSL ranked from best to worst performance on RT-AC86U. 1. Asuswrt-Merlin (armv7) 2. Entware-ng-3x-armv7 3. Entware-ng-3x-armv8 RT-AC86U Entware-ng-3x-armv8 # /opt/bin/openssl speed aes-256-cbc Doing aes-256 cbc for 3s on 16 size blocks: 7737774 aes-256 cbc's in 3.00s Doing aes-256 cbc for...
  15. Fitz Mutch

    [Beta 384/NG] Asuswrt-Merlin 384.3 Beta is now available

    Just curious, what the territory_code ? # nvram get territory_code US/02
  16. Fitz Mutch

    Asus RT-AC87U Going Crazy; Log Says "klogd started:BusyBox v1.20.2"

    Maybe your router crashed/rebooted or was power cycled?
  17. Fitz Mutch

    Swap File Mount/Unmount

    Type free to check if Linux is using the swap space. If the Swap numbers are non-zero, that's good. # free total used free shared buffers cached Mem: 255684 225580 30104 0 51564 57704 -/+ buffers/cache: 116312 139372...
  18. Fitz Mutch

    Swap File Mount/Unmount

    Your swap file requires a clean filesystem (ext4, FAT32, etc.) whereas a swap partition does not. And when you use fstab, I think it's supposed to mount and un-mount automatically.
  19. Fitz Mutch

    Swap File Mount/Unmount

    I done it before, but I don't remember how exactly. When you have multiple USB storage devices that are partitioned differently. Maybe the first partition, /dev/sda1, will not always be swap space? It could be a data partition with important files, then you plug it in by mistake and Asuswrt...
  20. Fitz Mutch

    Entware-3x for new HND platform (GT-AC5300 and RT-AC86U) with asuswrt-merlin firmware

    FYI... My RT-AC86U firmware has the required 64-bit library /lib/aarch64/libgcc_s.so.1, from the Asuswrt toolchain. And I was a bit surprised when I ran hdparm, and it worked just fine!! However, I understand you don't want to link Entware programs against Asuswrt libraries. # ldd...
Top