Ice blogja

Ubuntu Studio + FluidSynth + JACKD(Latency = 2.9 msec !!!) + Rosegarden + M-AUDIO MIDISPORT Uno + Yamaha DJX/PSR D1siker

Az Ubis telepito meg mindig nem kicsit bugos(ha tobb SSD is van a gepben akkor az EFI bootot az elsore rakja), de egy EFI Particio/FS gyartas & grub-update mindent megold.

Ted Felix guideja(http://tedfelix.com/linux/linux-midi.html) alapjan sikerult.

M-AUDIO MIDISPORT Uno-t is latja az Ubi, ahogy kell.

Yamaha PSR D1-et is mukodesre birntam.

Long Live Yamaha DJX!

The very 1st bug I have just found in Oracle Linux 8.3: running the built in rear version 2.4 = segfault

[root@valami /]# dmesg -T| grep -i error
[h jan 11 14:10:27 2021] RAS: Correctable Errors collector initialized.
[h jan 11 14:22:46 2021] ld-linux-x86-64[8895]: segfault at 7f38ccd19370 ip 00007f38ccaf9086 sp 00007ffda66c2ce0 error 7 in ld-2.28.so[7f38ccaf2000+29000]
[h jan 11 14:23:02 2021] ld-linux-x86-64[15887]: segfault at 7f183f5c1370 ip 00007f183f3a1086 sp 00007ffd34a6e1f0 error 7 in ld-2.28.so[7f183f39a000+29000]
[h jan 11 14:23:02 2021] ld-linux-x86-64[15915]: segfault at 7f33383fa3c8 ip 00007f33381da086 sp 00007fffe0125830 error 7 in ld-2.28.so[7f33381d3000+29000]
[h jan 11 14:23:02 2021] ld-linux-x86-64[15944]: segfault at 7f1801411370 ip 00007f18011f1086 sp 00007ffeed433fc0 error 7 in ld-2.28.so[7f18011ea000+29000]
[h jan 11 14:23:03 2021] ld-linux-x86-64[15973]: segfault at 7f313eb833c8 ip 00007f313e963086 sp 00007ffe3dfc6670 error 7 in ld-2.28.so[7f313e95c000+29000]
[h jan 11 14:26:24 2021] ld-linux-x86-64[22369]: segfault at 7f7434995370 ip 00007f7434775086 sp 00007ffd2c3caa60 error 7 in ld-2.28.so[7f743476e000+29000]
[h jan 11 14:26:39 2021] ld-linux-x86-64[29392]: segfault at 7f1389264370 ip 00007f1389044086 sp 00007ffdb0f3f630 error 7 in ld-2.28.so[7f138903d000+29000]
[h jan 11 14:26:39 2021] ld-linux-x86-64[29420]: segfault at 7f4ba5a513c8 ip 00007f4ba5831086 sp 00007ffcb6a37530 error 7 in ld-2.28.so[7f4ba582a000+29000]
[h jan 11 14:26:39 2021] ld-linux-x86-64[29448]: segfault at 7f5f99db1370 ip 00007f5f99b91086 sp 00007ffd45e46930 error 7 in ld-2.28.so[7f5f99b8a000+29000]
[h jan 11 14:26:40 2021] ld-linux-x86-64[29476]: segfault at 7fa0bb9ec3c8 ip 00007fa0bb7cc086 sp 00007ffc7f4af6a0 error 7 in ld-2.28.so[7fa0bb7c5000+29000]
[h jan 11 14:29:20 2021] ld-linux-x86-64[34343]: segfault at 7f719d9ed370 ip 00007f719d7cd086 sp 00007ffe37a56fe0 error 7 in ld-2.28.so[7f719d7c6000+29000]
[h jan 11 14:29:34 2021] ld-linux-x86-64[41337]: segfault at 7f592ffcb370 ip 00007f592fdab086 sp 00007ffcf11d49a0 error 7 in ld-2.28.so[7f592fda4000+29000]
[h jan 11 14:29:34 2021] ld-linux-x86-64[41365]: segfault at 7f085dd1b3c8 ip 00007f085dafb086 sp 00007ffd687ffd70 error 7 in ld-2.28.so[7f085daf4000+29000]
[h jan 11 14:29:34 2021] ld-linux-x86-64[41393]: segfault at 7f2837739370 ip 00007f2837519086 sp 00007ffc8fb9bb10 error 7 in ld-2.28.so[7f2837512000+29000]
[h jan 11 14:29:34 2021] ld-linux-x86-64[41421]: segfault at 7f9e382563c8 ip 00007f9e38036086 sp 00007ffd783ca7f0 error 7 in ld-2.28.so[7f9e3802f000+29000]

Could not enable RTC interrupt : Invalid argument in chorynd with DS3231

root@rock64:/var/log# tail -n 10 syslog 
Dec 26 15:56:25 localhost systemd[1]: chrony.service: Succeeded.
Dec 26 15:56:25 localhost systemd[1]: Stopped chrony, an NTP client/server.
Dec 26 15:56:26 localhost systemd[1]: Starting chrony, an NTP client/server...
Dec 26 15:56:26 localhost chronyd-starter.sh[3200]: WARNING: libcap needs an update (cap=40 should have a name).
Dec 26 15:56:26 localhost chronyd[3203]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG)
Dec 26 15:56:26 localhost chronyd[3203]: Could not enable RTC interrupt : Invalid argument
Dec 26 15:56:26 localhost chronyd[3203]: Frequency 16.061 +/- 3.900 ppm read from /var/lib/chrony/chrony.drift
Dec 26 15:56:26 localhost systemd[1]: Started chrony, an NTP client/server.
Dec 26 16:00:01 localhost CRON[3282]: (root) CMD (/usr/lib/armbian/armbian-truncate-logs)
Dec 26 16:05:01 localhost CRON[3317]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

https://www.mail-archive.com/chrony-users@chrony.tuxfamily.org/msg02239.html
 

ROCK64 + Armbian Focal 5.9.14 kernel tapasztalatok ...

Mivel 4.4-es kernelhez nem adtak ki frissitést(a PINE csapat - ayufan) már kb. egy éve, ezért az Armbian + mainline kernellel tesztelek:

Ma idáig jutottam, külső RTC is megy:

ice@debian:~/Downloads$ ssh ice@192.178.0.213
ice@192.178.0.213's password: 
 ____            _       __   _  _   
|  _ \ ___   ___| | __  / /_ | || |  
| |_) / _ \ / __| |/ / | '_ \| || |_ 
|  _ < (_) | (__|   <  | (_) |__   _|
|_| \_\___/ \___|_|\_\  \___/   |_|  
                                     
Welcome to Armbian 20.11.3 Focal with Linux 5.9.14-rockchip64

System load:   2%               Up time:       5 min        
Memory usage:  5% of 1.87G      IP:            192.178.0.213
CPU temp:      46°C               Usage of /:    9% of 15G        

Last login: Tue Dec 22 14:13:54 2020 from 192.178.0.33

Átálltam Debian 10.2-re

"Out of the box" workaround nélkül látja a RAID1-met és eddig minden HW működik Nvidia kártya, stb. ebben a konfigban:

  1. Asrock B450M Pro4 AM4 UEFI 3.5
  2. Kingston 240GB M.2 NVMe 2280 A1000 (SA1000M8/240G)
  3. WDC  WDS500G2B0B-00YS70
  4. Patriot Viper4 Series 16GB KIT DDR4 3200Mhz PV416G320C6K
  5. AMD Ryzen5 1600 YD1600BBAFBOX
  6. DeepCool GAMMAXX 300
  7. ZOTAC GeForce® GTX 1060 3GB
  8. FSP Hyper K 500 500W
  9. TOSHIBA DT01ACA100
  10. TOSHIBA HDWD110
  11. DVDRAM GH24NSD1
  12. Zalman Z9

Frissítettem a gépem: az YD1600BBAFBOX-ról nem maradtam le ...

  1. Asrock B450M Pro4 AM4
  2. Patriot Viper4 Series 16GB KIT DDR4 3200Mhz CL16-ot
  3. YD1600BBAFBOX GamersNexus_teszt Hardware_Unboxed_teszt
  4. DeepCool GAMMAXX 300 univerzális CPU hűtőventilátor
  5. FSP Hyper K 500 500W OEM tápegység

b450mpro4:~ # uname -r
4.12.14-lp151.28.36-default

Újrainstall nélkül megy az OSS Leap 15.1 hiba nélkül:

b450mpro4:~ # dmesg | grep -i error | wc -l
0

 

ROCK64 + ROCK64 USB 3.0 To SATA III HARD DRIVE ADAPTER CABLE/ CONVERTER With UASP + WD WD10PURZ(Purple)

Jó lesz ez:

root@rock64:/media/hdd/dahua# dd if=/dev/zero of=/media/hdd/dahua/testfile bs=1G count=100 oflag=direct
100+0 records in
100+0 records out
107374182400 bytes (107 GB, 100 GiB) copied, 717.94 s, 150 MB/s

Lassan kész lesz az első IP Kamerarendszerem:

  1. ROCK64(Ubuntu 18.04.03 Server(NFS/NTP/HTTP server) 16GB SD)
  2. ROCK64 USB 3.0 To SATA III HARD DRIVE ADAPTER CABLE/ CONVERTER With UASP + 12V 1A PSU(5.5mm OD/ 2.1mm ID barrel type connector)
  3. WD WD10PURZ(Purple 1TB)
  4. TP Link TL-SG1008P 8-Port Gigabit Desktop PoE Switch
  5. Dahua IPC-HFW1230S IP Bullet kamera
  6. Dahua PFA134 Bullet kamera szerelő aljzat
  7. TP Link AV1000 Gigabit Powerline Starter Kit

2019-11-28 OSS Leap 15.1 LVM2 hiba

h170pro4:/ # cat /etc/os-release 
NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

A tegnapi frissítéssel ezek jöttek:

h170pro4:/ # egrep 2019-11-28 /var/log/zypp/history | grep -i lvm2
2019-11-28 08:34:03|install|liblvm2cmd2_02|2.02.180-lp151.4.6.1|x86_64||download.opensuse.org-oss_1|762754806ee9220108ecaf86ea22703c0d3ce6cb4905a601acdaf016b00fb037|
2019-11-28 08:34:03|install|liblvm2app2_2|2.02.180-lp151.4.6.1|x86_64||download.opensuse.org-oss_1|301022ed0dcbb3b5a66f556a3da5ee72d40aec334b903294db65885ae73d5927|
2019-11-28 08:34:04|install|lvm2|2.02.180-lp151.4.6.1|x86_64||download.opensuse.org-oss_1|d70107477bca599ea0b6708ce6fa99440bf56a4140032cdc891b16ee115d61db|

Az lvm2 tuti hibás! A softraides PV/VG/LV-ok nem mindig látszanak bootoláskor(próbáltam az /etc/lvm/lvm.conf fájlban a filteren állítani, de nem sokat segített).

Csúnya workaround:

1: Commenteld ki /etc/fstab-ban a sorokat:
h170pro4:/ # fgrep "#" /etc/fstab 
#/dev/raid1/home                            /home          xfs   noatime                       0  0
#/dev/raid1/vms                             /home/ice/vms  xfs   noatime                       0  0

2:

h170pro4:/ # cat /etc/systemd/system/workaround.service 
[Unit]
Description=LVM2 bug workaround service
After=basic.target

[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/workaround.sh

[Install]
WantedBy=multi-user.target

systemctl --system daemon-reload

h170pro4:/ # cat /usr/local/bin/workaround.sh 
#!/bin/bash

/usr/sbin/lvm pvscan --cache --activate ay
/usr/bin/mount -o noatime /dev/raid1/home /home
/usr/bin/mount -o noatime /dev/raid1/vms /home/ice/vms

chmod +x /usr/local/bin/workaround.sh

systemctl start workaround.service

Ez a workaround mountol bootoláskor.
 

Debian 10.2 MIDI teszt Asrock Fatal1ty B450 Gaming-ITX/ac AMD Ryzen 3 2200G-vel

apt install linux-source build-essential libncurses-dev bison flex libssl-dev libelf-dev fluidsynth jackd2 rosegarden
apt build-dep linux (ha esetleg hiányozna valami még ...)
cd /usr/src/
unxz -v linux-patch-4.19-rt.patch.xz
tar -xvf linux-source-4.19.tar 
cd linux-source-4.19/
patch -p1 < ../linux-patch-4.19-rt.patch 
cp ../linux-config-4.19/config.amd64_rt_amd64.xz .
unxz -v config.amd64_rt_amd64.xz 
mv config.amd64_rt_amd64 .config
make menuconfig
(Processor type and features -> Preemption Model -> Fully Preemptible Kernel (RT))
(Processor type and features ->Timer Frequency: 1000 Hz)
(General setup -> Local version - append to kernel release : -tf-1000)
scripts/config --disable DEBUG_INFO
make clean

make -j4 deb-pkg
dpkg -i linux-image-4.19.67-rt24-tf-1000_4.19.67-rt24-tf-1000-1_amd64.deb

Rebootot neki ...

root@debian:/usr/src# uname -a
Linux debian 4.19.67-rt24-tf-1000 #1 SMP PREEMPT RT Wed Nov 27 17:00:12 CET 2019 x86_64 GNU/Linux

root@debian:/usr/src# grep -i "^CONFIG_HZ" /boot/config-4.19.67-rt24-tf-1000 
CONFIG_HZ_1000=y
CONFIG_HZ=1000

ice@debian:~/bin$ cat audio.sh 
#!/bin/bash

# Script to launch audio servers for music-making.
# By Ted Felix : http://tedfelix.com/linux/linux-midi.html

case $1 in

  start )
    echo Starting JACK...

    pasuspender -- \
        jackd -d alsa --device hw:0,7 --rate 48000 --period 1024 \
            &>/tmp/jackd.out &

    sleep .5

    echo Starting fluidsynth...

    # Start fluidsynth
    fluidsynth --server --no-shell --audio-driver=jack \
        --connect-jack-outputs --reverb=0 --chorus=0 --gain=0.8 \
        /usr/share/sounds/sf2/FluidR3_GM.sf2 \
        &>/tmp/fluidsynth.out &

    sleep 1

    if pgrep -l jackd && pgrep -l fluidsynth
    then
      echo Audio servers running.
    else
      echo There was a problem starting the audio servers.
    fi

    ;;

  stop )
    killall fluidsynth
    killall jackd
    echo Audio servers stopped.
    ;;

  * )
    echo Please specify start or stop...
    ;;
esac

audio.sh start-tal indul a mandula aztán lehet indítani a rosegardent.

Letesztelve.