Jump to content

Recommended Posts

Posted (edited)

Hi, I have two meson64 SBCs where one is Khadas VIM 3 and the other is Odroid N2. They have been running almost the same setup and there has been minor differences with time.

 

For the past months, I have had issues with the error Illegal instruction for my Odroid N2 server. I did a clean install earlier today (Armbian_23.02.2_Odroidn2_jammy_current_6.1.11) without success. For instance, I often face the error when running cryptsetup benchmark. Most of the time I have to reboot multiple times, reinstall cryptsetup packages, try the armhf packages and more. I have never had the same issue with Khadas VIM 3.

 

The issue seems to be related to argon2i and the question is what and where should I look further regarding how to solve this. I've tried switching supported kernel versions, 6.1.*, 5.19.*, 5.10.*, without success. Trying legacy kernel 4.9.* had some issues resulting in the board not booting.

 

Output when everything is fine

| => sudo cryptsetup benchmark

Spoiler
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1       575508 iterations per second for 256-bit key
PBKDF2-sha256    1057032 iterations per second for 256-bit key
PBKDF2-sha512     412825 iterations per second for 256-bit key
PBKDF2-ripemd160  328501 iterations per second for 256-bit key
PBKDF2-whirlpool  128501 iterations per second for 256-bit key
argon2i       4 iterations, 628524 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id      4 iterations, 631733 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
#     Algorithm |       Key |      Encryption |      Decryption
        aes-cbc        128b       631.9 MiB/s       947.2 MiB/s
    serpent-cbc        128b        43.6 MiB/s        47.7 MiB/s
    twofish-cbc        128b        77.6 MiB/s        80.4 MiB/s
        aes-cbc        256b       545.1 MiB/s       840.0 MiB/s
    serpent-cbc        256b        43.8 MiB/s        47.6 MiB/s
    twofish-cbc        256b        78.0 MiB/s        80.3 MiB/s
        aes-xts        256b       704.5 MiB/s       697.8 MiB/s
    serpent-xts        256b        43.9 MiB/s        48.2 MiB/s
    twofish-xts        256b        79.9 MiB/s        82.6 MiB/s
        aes-xts        512b       638.0 MiB/s       637.8 MiB/s
    serpent-xts        512b        44.8 MiB/s        48.2 MiB/s
    twofish-xts        512b        81.4 MiB/s        82.6 MiB/s

 



Output when facing the issue. It's always after trying to open with cryptsetup prior and I think it's in general

| => sudo cryptsetup benchmark

Spoiler
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1       574877 iterations per second for 256-bit key
PBKDF2-sha256    1057032 iterations per second for 256-bit key
PBKDF2-sha512     412825 iterations per second for 256-bit key
PBKDF2-ripemd160  328501 iterations per second for 256-bit key
PBKDF2-whirlpool  129007 iterations per second for 256-bit key
Illegal instruction

 

 

Edited by Z11ntal33r
Posted

@Z11ntal33r - do you maybe run your odroid n2 with cpu overclocking? this can sometimes result in such random errors - otherwise maybe try to lower the max cpu freq via /sys/devices/system/cpu/cpufreq to check if it runs more stable in such a case.

Posted

Thanks for reaching out :) I've default settings and I did a clean install yesterday. The few steps I did was to run cryptstetup benchmark which was fine, ran a script to install and setup packages and so on, tried to mount the drive, but Illegal instruction showed. After that, all cryptsetup benchmarks failed.

I can try a new clean build later today, lower the cpu freq and see if that's better. I am also thinking about switching from Jammy to Bullseye in order to apt-pin newer packages of cryptsetup to see if that solves the issue. I that doesn't help, I will think about buying a new SBC, unless I switch to something else than Armbian, which I would like to avoid

Posted (edited)

@hexdump it seems that you were absolutely right regarding the issue here! After lowering the max CPU speed from 1900 to 1800, I've done more than 100 benchmarks without facing Illegal instruction

 

Thank you very, very much!:)

Edited by Z11ntal33r

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines