luks : syslinux : usb

Setting up my NAS to be able to decrypt via key on a USB-drive, and falling back to password input after timeout.

Having an already set up luks on lvm, with sdd1 being the boot partition, sdd2 the luks container with / in it, and sdc1 the USB-drive with the key on with syslinux as the bootloader.

sdd
├─sdd1  ext4         1.0  BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB
└─sdd2  crypto_LUKS  2    CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC

sdc
└─sdc1  ext4         1.0  UUUUUUUU-UUUU-UUUU-UUUU-UUUUUUUUUUUU

/boot/syslinux/syslinux.cfg

APPEND \
rd.luks.uuid=C-C-C-C \
rd.luks.key=C-C-C-C=/keyfile.bin=U-U-U-U \
rd.luks.options=C-C-C-C=keyfile-timeout=10s \
root=/dev/mapper/root rw

Syslinux doesn’t accept linebreaks (i.e. spanning multiple lines is not valid), so make sure to setup everything on a single APPEND line. And that’s it.

Roccat Elo Air 7.1 (Linux)

Hab mir ein Roccat Elo Air 7.1 gekauft, weil ich mal kabellose Kopfhörer testen wollte und die grade auf 50€ runtergesetzt waren.

Die sitzen ganz gut, haben einen brauchbaren Klang und ein ganz okay-isches Mikro. Der Bügel ist auch super und sie sind solide verarbeitet. Hat ne ganz okay-ische Batterielaufzeit.

Bisschen doof sind die Platzierungen der Drehrädchen. Und das Material der Ohrmuscheln ist nervig schwitzig, aber zum Glück kann man die austauschen.

Unter Linux werden die sofort erkannt und man kann sie ohne Probleme nutzen. Leider kann man sonst nichts einstellen. Was vor allem die RGB-Beleuchtung betrifft.

Unter Windows sieht das alles schon anders aus. Was richtig schlecht ist, ist die Software. Roccat Swarm braucht man unbedingt, wenn man diese nervige RGB-Beleuchtung abschalten möchte. Leider funkioniert Swarm nicht richtig, bzw. Window erkennt den Dongle manchmal bei Systemstart nicht, was dazu führt, dass man ihn mehrmals ein- und ausstecken muss. Was dann wiederrum dazu führt, dass beim nächsten Linux start, der Dongle nicht erkannt wird und man das ganze Prozedere wiederholen muss. Außerdem speichert das Headset die Einstellungen nicht ab, wenn man es ausschaltet. Das beudeutet im Umkehrschluss, dass man 0 Einstellungsmöglichkeiten unter Linux hat.

Also geht das Ding wieder zurück.

Odroid N2 : (portable-)opencl

OpenCL (CPU/GPU) on the Odroid N2:

# update the repos
apt update
# install git for testing code
apt install git
# outputting hardware
apt install clinfo
# get the  dev files
apt install ocl-icd-opencl-dev
# actual icd for the cpu
apt install pocl-opencl-icd
# and finally make the driver available
echo "/usr/lib/aarch64-linux-gnu/libmali.so" > /etc/OpenCL/vendors/mali.icd

Now test if the output shows Mali-G52 and pthread-cortex-a53

clinfo | grep "Device Name"

Device Name    Mali-G52
Device Name    pthread-cortex-a53

newest Page 1 of 21