Ice blogja

Á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.

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

Miután az Ubuntu 18.04.3 Desktop (LTS-ben nem illik hibás telepítővel adni szerintem) telepítés közben kétszer is megállt, felraktam egy Debian 10.2-öt:

firmware-amd-graphics csomagot install https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/10.2.0+nonfree/amd64/iso-dvd/firmware-10.2.0-amd64-DVD-1.iso után kézzel telepíteni kellett Single modeban, NetworkManager indításával, ezt még szoknom kellett egy kicsit. Biztos ami ziher alapon nomodeset boot paraméterrel.

root@debian:~# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

root@debian:~# uname -a
Linux debian 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

Ez bug sajnos itt is van, de ettől még stabil a gép.

root@debian:~# dmesg -T|grep -i warning|head -n3
[Mon Nov 25 13:45:23 2019] WARNING: CPU: 3 PID: 104 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1372 dcn_bw_update_from_pplib+0x89/0x290 [amdgpu]
[Mon Nov 25 13:45:23 2019] WARNING: CPU: 3 PID: 104 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1581 core_link_enable_stream+0x666/0xc80 [amdgpu]
[Mon Nov 25 13:45:23 2019] WARNING: CPU: 3 PID: 104 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1610 core_link_enable_stream+0x6bd/0xc80 [amdgpu]
[

Szépen elmegy aludni a gép és vissza is jön alvásból(SSD-ről, eddig mindig viszajött).

Felokosítottam (non-free/contrib repok, Vulkan, Extra Codecek, Steam, AMD Tearing free lett stb.) a redszert minden jóval, megy rajta minden szépen a Steam is.

3 ingyenes játékot próbáltam:Dota Underlords(Vulkan), Battle Tanks, Tank Force azok mentek.

Még a végén attérek Debian 10.2-re OSS Leap 15.1-ről.

Itt is faék egyszerű a rescue mode, kipróbáltam, mint a Leap 15.1-en.

Elég jó lett.

openSUSE Leap 15.1 teszt Asrock Fatal1ty B450 Gaming-ITX/ac AMD Ryzen 3 2200G-vel

linux-6prh:~ # dmesg -T|egrep -i "warning"
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 0 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1372 dcn_bw_update_from_pplib+0x160/0x260 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1581 core_link_enable_stream+0x936/0xbf0 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1610 core_link_enable_stream+0x981/0xbf0 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1581 core_link_enable_stream+0x936/0xbf0 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1600 core_link_enable_stream+0xa60/0xbf0 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1610 core_link_enable_stream+0x981/0xbf0 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1581 core_link_enable_stream+0x936/0xbf0 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1600 core_link_enable_stream+0xa60/0xbf0 [amdgpu]
[Sun Aug 25 14:17:39 2019] WARNING: CPU: 2 PID: 337 at ../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:1610 core_link_enable_stream+0x981/0xbf0 [amdgpu]
[Sun Aug 25 14:17:40 2019] random: 7 urandom warning(s) missed due to ratelimiting

DS3231 for PI

Megerkezett a masodik DS3132 is:

Mindegyik szepen mukodik 3.3 Volton(Hamarosan Rock64be kerul az egyik)!

https://www.aliexpress.com/item/32623159620.html?spm=a2g0s.9042311.0.0…
https://www.aliexpress.com/item/32881077060.html?spm=a2g0s.9042311.0.0…

RPI zerown tesztelve:

root@rpi0w01:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Netflix, UPC HBO GO, Kodi, horizon.tv Raspbian 9.9-en a kihivas megoldva igy:

Raspbian 9.9 (https://downloads.raspberrypi.org/raspbian_full_latest) alol hianyoznak csomagok, hianyzo libwidevinecdm.so(ennek segitsegevel: https://help.vivaldi.com/article/raspberry-pi/#drm-and-flash) es python lib:
• Barmely Linuxon a script(tmp konyvtar, lehet hogy kicsi ezert modositani kell PWD=$(pwd) && export TMPDIR=$PWD): https://gist.github.com/ruario/19a28d98d29d34ec9b184c42e5f8bf29: Linux alol lehet futtatni es general egy tgz-t: abbol kimasoljuk az RPI-on a libwidevinecdm.so-t /usr/lib/chromium-browser/ konyvtarba) https://help.vivaldi.com/article/raspberry-pi/#drm-and-flash vagy hasznalod a Kodi altal lehuzottat(ChromeOS Recovery Image) majd: /home/pi/.kodi/userdata/addon_data/script.module.inputstreamhelper/cdm/libwidevinecdm.so
apt-get install kodi kodi-inputstream-adaptive kodi-inputstream-rtmp
• Kiegeszitok/Sajat kiegesztok/InputStream Adaptive beallitas(Min bandwidth: 3mbit/s -> 3145728 bit/s, 720P-s felbontasok, Stream selection: Manual) es engedelyezes
• Kiegeszitok/Sajat kiegesztok/RTMP Input engedelyezes
pi userrel: pip install --user pycryptodomex
• Terminalban : wget https://github.com/asciidisco/plugin.video.netflix/archive/master.zip -O ./kodi-plugin.video.netflix.zip
• Installalni zip fajbol es beallitani Netflix addont! (Regisztralni Netflix accountot.)
• Terminalban : wget https://github.com/billsuxx/plugin.video.hbogohu/archive/master.zip -O ./kodi-plugin.video.hbogohu.zip
• Installalni zip fajbol a HBO GO addont! (Szolgaltatonev: UPC Magyarorszag)
• Ertelemszeruen telepites soran, ha kell Kodibol kilepni es ujrainditani az alkalmazast, ha szukseges akkor RPI ujrainditas.

Ubuntu 19.04 teszt Asrock Fatal1ty B450 Gaming-ITX/ac-on ...

Ma tesztelem az Ubuntu 19.04-et egy Kingston 240GB M.2 NVMe 2280 A1000 (SA1000M8/240G) SSD-n, aztan ESXi 6.7 U2(nem kicsit bugos) helyi Datastore lesz belole.

A telepito hibakkal kuzkodik(nem kicsit).
2 SSD + 1 HDD kozul csak az elso SSD-be telepitette volna az OS-t.
Terminalban elkeszitettem neki a particiokat, PV-t, VG-t, LV-ket utana mar latta a telepito ezeket es telepitett is ra.
10 percnel kevesebb volt a telepites => SSD jo, nagyon jo.
A dmesg tele volt warningokkal(AMD driverek a ludasak), de a Superposition, glmarks2, glxgears latszolag szepen mukodott.
Van meg mit javitani az AMD-s drivereken+Mesan.

Mini ITX-es upgrade kipipálva!

Ezt is az uj vasrol irom.
Kicsit megszenvedtem a szerelessel es az M$-os W10-es hibakkal, mire kiderult, hogy a regi HDD es/vagy az optikai meghajto a ludas.
Csere utan tok jo lett a gep.
Kapott még egy WDC WD10EZEX-08WN4A0 1 Terasat es egy optikai meghajtot: HL-DT-ST DVDRAM GH24NSD1.
7 eves vinyo es optikai meghajto lett selejtezve.
Windows 10 64-bit, VMware vSphere Hypervisor 6.7 U2 megy szepen Rock64-es 4.0-as NFS-sel.
Lett egy uj esxi 6.7U2-es ITX-es whiteboxom.
A Ryzen 3 2200G eleg jol hasznalhato kis APU!
Szegeny embernek jo ez. Nagyon jo!
Van meg egy regi Samsung ML2010-em az 13 eves es meg mindig szepen nyomtat!
Csak akkor dobok ki valami, ha tenyleg szukseges.
Telefont se cserelek evente.
Fingers Crossed!

DS3231 RTC Board Real Time Clock Module for Arduino Raspberry Pi

Megjott a https://www.aliexpress.com/item/DS3231-RTC-Board-Real-Time-Clock-Module….

RPi 0W alatt mukodik 3.3 Volton (Rock64 kesobb lesz tesztelve):

modprobe i2c-bcm2708
modprobe i2c-dev
modprobe rtc-ds1307
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
hwclock -D

root@raspberrypi:~# hwclock -D
hwclock from util-linux 2.29.2
Using the /dev interface to the clock.
Last drift adjustment done at 1551898398 seconds after 1969
Last calibration done at 1551898398 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
/dev/rtc does not have interrupt functions. Waiting in loop for time from /dev/rtc to change
...got clock tick
Time read from Hardware Clock: 2019/03/06 18:59:12
Hw clock time : 2019/03/06 18:59:12 = 1551898752 seconds since 1969
Time since last adjustment is 354 seconds
Calculated Hardware Clock drift is 0.000000 seconds
2019-03-06 19:59:11.369732+0100

RPI3B es a rathunter ...

Ilyen dobozt hasznalva: https://www.modmypi.com/raspberry-pi/cases-183/raspberry-pi-b-plus2-and…
Halozaton 1280x720x25-os 12 masodperces videokat(11-13 MByte meretu fajlok) keszitve boven a HC-SR501 5 masodperces ujraeledesi idelyen belul masol a RPI3B Rock64-es NFS-re 2 switchen keresztul.
NTP, NFS beallitva: Megerte a munka.
Lassan ossze all a patkanyfogo rendszer! :)

root@rpi3b01:/opt/rathunter# ./rathunter5.py
Press Ctrl+c to exit!
2019-02-24_15.40.42 The HC-SR501 motion sensor is being initialized ...
2019-02-24_15.40.42 The camera is warming up, waiting for 2s ...
2019-02-24_15.41.41 Motion is detected detected by the HC-SR501 motion sensor!
2019-02-24_15.41.43 There is no motion deteted by the HC-SR501 motion sensor!
2019-02-24_15.41.41 /media/hdd/rpi3b01-2019-02-24_15.41.41.h264 was created. The stream copying time was 1.32 seconds.
2019-02-24_15.41.50 Motion is detected detected by the HC-SR501 motion sensor!
2019-02-24_15.41.53 There is no motion deteted by the HC-SR501 motion sensor!
2019-02-24_15.41.50 /media/hdd/rpi3b01-2019-02-24_15.41.50.h264 was created. The stream copying time was 1.19 seconds.
2019-02-24_15.43.52 Motion is detected detected by the HC-SR501 motion sensor!
2019-02-24_15.43.55 There is no motion deteted by the HC-SR501 motion sensor!
2019-02-24_15.43.53 /media/hdd/rpi3b01-2019-02-24_15.43.53.h264 was created. The stream copying time was 1.29 seconds.
2019-02-24_15.44.01 Motion is detected detected by the HC-SR501 motion sensor!
2019-02-24_15.44.04 There is no motion deteted by the HC-SR501 motion sensor!
2019-02-24_15.44.02 /media/hdd/rpi3b01-2019-02-24_15.44.02.h264 was created. The stream copying time was 1.25 seconds.
2019-02-24_15.44.09 Motion is detected detected by the HC-SR501 motion sensor!
2019-02-24_15.44.12 There is no motion deteted by the HC-SR501 motion sensor!
2019-02-24_15.44.10 /media/hdd/rpi3b01-2019-02-24_15.44.10.h264 was created. The stream copying time was 1.29 seconds.
2019-02-24_15.44.18 Motion is detected detected by the HC-SR501 motion sensor!
2019-02-24_15.44.20 There is no motion deteted by the HC-SR501 motion sensor!
2019-02-24_15.44.18 /media/hdd/rpi3b01-2019-02-24_15.44.18.h264 was created. The stream copying time was 1.23 seconds.
2019-02-24_15.44.29 Motion is detected detected by the HC-SR501 motion sensor!
2019-02-24_15.44.32 There is no motion deteted by the HC-SR501 motion sensor!
2019-02-24_15.44.30 /media/hdd/rpi3b01-2019-02-24_15.44.30.h264 was created. The stream copying time was 1.13 seconds.
^CYou are now leaving the rathunter5.py program.

ROCK64 USB 3.0 stabilitas teszt ...

root@rock64:~# rock64_health.sh && dd if=/dev/zero of=/media/hdd/test bs=1G count=500 oflag=direct status=progress && rock64_health.sh
CPU freq : 408.00 MHz
CPU count : 4
Governor : ondemand
SoC Temp : 38.18 C
536870912000 bytes (537 GB, 500 GiB) copied, 5249.75 s, 102 MB/s
500+0 records in
500+0 records out
536870912000 bytes (537 GB, 500 GiB) copied, 5249.75 s, 102 MB/s
CPU freq : 1296.00 MHz
CPU count : 4
Governor : ondemand
SoC Temp : 50.00 C

root@rock64:~# dmesg -T | grep -i error | wc -l
0

0 hiba.
Atomstabil a rendszer!

ROCK64 es a lighttpd ...

apt-get install lighttpd
apt-get install php7.0-fpm
apt-get install php7.0-gd
lighttpd-enable-mod fastcgi
lighttpd-enable-mod fastcgi-php
vi /etc/lighttpd/conf-available/15-fastcgi-php.conf

fastcgi.server += ( ".php" =>
((
"socket" => "/var/run/php/php7.0-fpm.sock",
"broken-scriptfilename" => "enable"
))
)

systemctl restart lighttpd

es mar muxik is a "<?php phpinfo(); ?>" info oldal.

ROCK64 es a WDC WD10JMVW-59AJGS4 USB 3.0-an, indulasi aramfelveteli problema megoldva!

Problema megoldva ezzel http://www.logilink.com/Products_LogiLink/Cable_Adapters/USB_30_Cable/U… .
Tobbet kajalna a WDC WD10JMVW-59AJGS4 USB 3.0-an, mint amit USB 3.0-an le tudna adni a ROCK64.
Innentol kezdve lehet folytatni a projektet.
DS3231 beallitva.
NFS es NTP serverek felkonfiguralva.
Raspberry Pi 3B funkciojat atveheti, ha nagyobb teszten atmegy a ROCK64! :)
root@rock64:~# lsusb -t
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M

Rock64 es az RTC DS3231 siker

3.3 V-on mukodik szepen!
RTC: https://www.hestore.hu/prod_10038042.html
Segitseg https://forum.armbian.com/topic/8856-solved-how-to-add-an-external-rtc-…
Kernel forras: https://github.com/ayufan-rock64/linux-kernel/archive/4.4.154-1128-rock…

Kernel module forditas pelda:
"
Kernel module compilation:
Follow these instructions to compile an additional kernel module.
In this example, we’ll compile the ds1307 RTC kernel module for version 4.4.154-1124:
Obtain your kernel version: uname -r (ex: 4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1)
Download the kernel source code which matches your kernel version from github.com/ayufan-rock64/linux-kernel/releases
Extract the kernel: tar -zxvf 4.4.154-1124-rockchip-ayufan.tar.gz
Copy the old kernel config: bash cd linux-kernel-4.4.154-1124-rockchip-ayufan cp /usr/src/linux
headers-4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1/.config . make oldconfig
Install required build packages: apt-get install bc python libncurses5-dev
Configure the kernel with the additional modules you want: make menuconfig (ex: Device Drivers --> [*] Real Time
Clock --> Dallas/Maxim DS1307..)
Exit and save the config
Prepare the modules: ```bash make EXTRAVERSION=-1124-rockchip-ayufan-ged3ce4d15ec1 modules_prepare ````
Build the module: make M=drivers/rtc (note: specify the correct directory containing the module you added)
Copy the module to the modules directory: bash mkdir -p /lib/modules/4.4.154-1124-rockchip-ayufan
ged3ce4d15ec1/kernel/drivers/rtc/ cp drivers/rtc/rtc-ds1307.ko /lib/modules/4.4.154-1124-rockchip
ayufan-ged3ce4d15ec1/kernel/drivers/rtc/
Ensure module is added to dep file: bash echo 'kernel/drivers/rtc/rtc-ds1307.ko:' >> /lib/modules
4.4.154-1124-rockchip-ayufan-ged3ce4d15ec1/modules.dep
Load the module: bash depmod -a modprobe rtc-ds1307
Ensure module is loaded on boot: echo "rtc-ds1307" >> /etc/modules
"

Megjott a Rock64, elso tesztek Debian 9.6 -on...

root@rock64:~# cat /etc/debian_version
9.6

root@rock64:~# df -hP /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 916G 3.9G 866G 1% /mnt

root@rock64:~# dd if=/dev/zero of=/mnt/valami bs=4094 count=1000000 status=progress
4057072120 bytes (4.1 GB, 3.8 GiB) copied, 34 s, 119 MB/s
1000000+0 records in
1000000+0 records out
4094000000 bytes (4.1 GB, 3.8 GiB) copied, 34.2802 s, 119 MB/s

root@rock64:~# lsusb -v -s 5:2

Bus 005 Device 002: ID 1058:25a2 Western Digital Technologies, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x1058 Western Digital Technologies, Inc.
idProduct 0x25a2
bcdDevice 10.14
iManufacturer 1 Western Digital
iProduct 2 Elements 25A2
iSerial 3 57584131414336504C415856
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 44
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 224mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 22
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000f0e
Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 32 micro seconds
Device Status: 0x0000
(Bus Powered)