Skip to content

Quartz64 - Modell B - Manjaro Rootverzeichnis ändern

Quartz64
  • Der Plan, da die SD-Karte ja aktuell nicht so der Burner ist, das Rootverzeichnis zu verschieben. Da die Platte am USB3-Port sehr gute Daten liefert, benutzen wir mal diese.

    Hardware

    • Quartz64 Modell B
    • Festplattenmodell: Samsung SSD 970 EVO 500GB am USB3-Port

    Software

    Auf der Standardinstallation fehlt rsync

    pacman -S rsync
    

    SSD mounten

    Die SSD wird ja vom Manjaro gemountet nach Media. Mal auf sicher entfernen klicken. Ich setze voraus, das die SSD formatiert ist und ein ext4 Dateisystem hat.

    Wir erzeugen ein Verzeichnis

    mkdir /mnt/sda
    

    Wir mounten das Verzeichnis

    mount /dev/sda1 /mnt/sda
    

    Rootverzeichnis kopieren

    Wir kopieren das Rootverzeichnis von der SD-Karte auf die SSD.

     rsync -ax / /mnt/sda
    

    Bootverzeichnis mounten

    Nachdem das Rootverzeichnis auf der SSD liegt, müssen wir Manjaro auch mitteilen, das es dieses Rootverzeichnis nutzen soll.

    Dazu brauchen wir die Boot-Partition der SD-Karte

    mkdir /mnt/boot
    

    Danach schauen wir uns kurz die Struktur an

    fdisk -l
    Gerät           Anfang     Ende Sektoren  Größe Typ
    /dev/mmcblk0p1   62500  1000000   937501 457,8M Microsoft Basisdaten
    /dev/mmcblk0p2 1000001 62333918 61333918  29,2G Linux-Dateisystem
    
    • p1 ist die Boot-Partition
    • p2 ist die Root-Partition

    Wir mounten die Boot-Partition

    mount /dev/mmcblk0p1 /mnt/boot
    

    Wir wechseln das Verzeichnis

    cd /mnt/boot
    

    Inhalt

    [root@frank-pc boot]# ls -lha
    insgesamt 36M
    drwxr-xr-x 4 frank frank   16K  1. Jan 1970  .
    drwxr-xr-x 5 root  root   4,0K  4. Jun 11:17 ..
    drwxr-xr-x 3 frank frank  8,0K 30. Mai 06:07 dtbs
    drwxr-xr-x 2 frank frank  8,0K  3. Jun 16:50 extlinux
    -rw-r--r-- 1 frank frank  172K  7. Apr 20:03 idbloader.img
    -rw-r--r-- 1 frank frank   27M  7. Apr 21:28 Image
    -rw-r--r-- 1 frank frank  7,8M 30. Mai 06:08 initramfs-linux.img
    -rw-r--r-- 1 frank frank 1022K  7. Apr 20:03 u-boot.itb
    

    extlinux.conf anpassen

    Uns interessiert das extlinux Verzeichnis

    [root@frank-pc boot]# ls -lha extlinux/
    insgesamt 32K
    drwxr-xr-x 2 frank frank 8,0K  3. Jun 16:50 .
    drwxr-xr-x 4 frank frank  16K  1. Jan 1970  ..
    -rw-r--r-- 1 frank frank  448  4. Jun 11:49 extlinux.conf
    

    Die Datei extlinux.conf enthält die relevanten Informationen.

    LABEL Manjaro ARM
    KERNEL /Image
    FDT /dtbs/rockchip/rk3566-quartz64-b.dtb
    #APPEND initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=14c62b3d-d803-4d00-bd55-d0fa406c20e0 rw rootwait earlycon loglevel=7 audit=0 splash plymouth.ignore-serial-consoles
    APPEND initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=032af10e-1655-e545-99d1-af2bb1c43033 rw rootwait earlycon loglevel=7 audit=0 splash plymouth.ignore-serial-consoles
    

    Hier seht ihr meine geänderte Version. In der auskommentierten Zeile steht der Originalinhalt. Wenn was schief läuft, kann man diese Zeile einfach wieder aktivieren. Man sieht, man muss nur die PARTUUID ändern. Kein Hexenwerk 🙂

    [root@frank-pc boot]# blkid
    /dev/nvme0n1p1: UUID="57285d5c-4252-4448-a936-1412a786bf34" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="bd856e70-94c0-3345-a9d6-7ff080b5a2e0"
    /dev/mmcblk0p1: SEC_TYPE="msdos" LABEL_FATBOOT="BOOT_MNJRO" LABEL="BOOT_MNJRO" UUID="3965-3827" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="primary" PARTUUID="e9d3fd70-ae93-45e2-9071-7e4606447125"
    /dev/mmcblk0p2: LABEL="ROOT_MNJRO" UUID="6fd80f31-8069-4c15-947b-252cdfbe680a" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="primary" PARTUUID="14c62b3d-d803-4d00-bd55-d0fa406c20e0"
    /dev/sda1: UUID="e2ba3d08-5481-4117-b980-447d4253afdb" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="032af10e-1655-e545-99d1-af2bb1c43033"
    /dev/zram0: LABEL="zram0" UUID="cd8cab6b-21d7-4453-82b1-2a8e62200e62" TYPE="swap"
    

    Hier sieht man diese, kopiert sich die PARTUUID von sda1 und trägt diese in die extlinux.conf ein. Fertig! Danach einmal neustarten.

    Kontrolle

    Nach dem Neustart schauen wir ob das funktioniert hat.

    [root@frank-pc boot]# df -h
    Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
    dev             1,7G       0  1,7G    0% /dev
    run             1,9G    1,2M  1,9G    1% /run
    /dev/sda1       458G     22G  413G    5% /
    tmpfs           1,9G       0  1,9G    0% /dev/shm
    tmpfs           1,9G     45M  1,8G    3% /tmp
    tmpfs           374M     44K  374M    1% /run/user/1000
    /dev/mmcblk0p1  458M     41M  418M    9% /mnt/boot
    /dev/mmcblk0p2   29G    4,7G   23G   17% /run/media/frank/ROOT_MNJRO
    /dev/nvme0n1p1  458G     17G  418G    4% /run/media/frank/57285d5c-4252-4448-a936-1412a786bf34
    

    Wir achten auf den Eintrag für das Rootverzeichnis.

     /dev/sda1       458G     22G  413G    5% /
    

    Das Rootverzeichnis ist jetzt auf der SSD am USB3-Port. Da man auch aktuell nicht von irgendwas anderem Booten kann außer SD-Karte und eMMC, bieten sich diese Vorgehensweise an wenn man **ein relativ flottes System haben möchte.

    Viel Spaß!**

  • In /etc/fstab den Eintrag zu ändern, könnte auch sinnvoll sein.

    # Static information about the filesystems.
    # See fstab(5) for details.
    
    # <file system> <dir> <type> <options> <dump> <pass>
    #PARTUUID=14c62b3d-d803-4d00-bd55-d0fa406c20e0   /   ext4     defaults    0   1
    PARTUUID=032af10e-1655-e545-99d1-af2bb1c43033   /   ext4     defaults    0   1
    
  • Da gab es doch gestern noch einen bösen Fehler, als ich vom Kernel Linux 5.17.0-2 auf Linux 5.17.0-3 aktualisiert habe, war das System danach kaputt. Hmm, ich habe dann versucht das zu untersuchen und war zu der Erkenntnis gekommen, das das Boot Verzeichnis nicht korrekt gemountet war. Konnte es aber nicht selber lösen 😞

    Dan hat das dann heute erledigt, wenn man jetzt das Image installiert, dann ist auch das Boot Verzeichnis korrekt gemountet.

    [root@frank-pc ~]# df -h
    Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
    dev             1,7G       0  1,7G    0% /dev
    run             1,9G    1,2M  1,9G    1% /run
    /dev/sda1       458G    4,5G  430G    2% /
    tmpfs           1,9G       0  1,9G    0% /dev/shm
    tmpfs           1,9G    9,6M  1,9G    1% /tmp
    /dev/mmcblk0p1  458M     41M  417M    9% /boot
    tmpfs           374M     44K  374M    1% /run/user/1000
    /dev/mmcblk0p2   59G    3,7G   52G    7% /run/media/frank/ROOT_MNJRO
    

    Dann sollte das auch klappen, wenn man wie ich aktuell das Root Verzeichnis auf die SSD am USB3 Port gelegt hat.

  • 0 Stimmen
    1 Beiträge
    51 Aufrufe
    Niemand hat geantwortet
  • Quartz64 - Modell B - Kernel 6.1-rc8

    Quartz64
    1
    0 Stimmen
    1 Beiträge
    72 Aufrufe
    Niemand hat geantwortet
  • 0 Stimmen
    2 Beiträge
    96 Aufrufe
    FrankMF
    Was geht? Funktion Status Bemerkung cpufreq ok *3 UART ja *5 LAN hat Fehler *1 USB3 ja ca. 210MB/s *2 PCIe ja ca. 296 MB/s, ist mit einer Lane angeschlossen *4 HDMI nein LAN *1 root@debian:~# iperf3 -c 192.168.3.213 Connecting to host 192.168.3.213, port 5201 [ 5] local 192.168.3.10 port 39124 connected to 192.168.3.213 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 434 KBytes 3.55 Mbits/sec 61 2.83 KBytes [ 5] 1.00-2.00 sec 475 KBytes 3.89 Mbits/sec 44 2.83 KBytes [ 5] 2.00-3.00 sec 396 KBytes 3.24 Mbits/sec 43 2.83 KBytes [ 5] 3.00-4.00 sec 318 KBytes 2.61 Mbits/sec 40 2.83 KBytes [ 5] 4.00-5.00 sec 315 KBytes 2.58 Mbits/sec 31 2.83 KBytes [ 5] 5.00-6.00 sec 396 KBytes 3.24 Mbits/sec 46 2.83 KBytes [ 5] 6.00-7.00 sec 396 KBytes 3.24 Mbits/sec 43 2.83 KBytes [ 5] 7.00-8.00 sec 396 KBytes 3.24 Mbits/sec 43 1.41 KBytes [ 5] 8.00-9.00 sec 396 KBytes 3.24 Mbits/sec 47 2.83 KBytes [ 5] 9.00-10.00 sec 317 KBytes 2.59 Mbits/sec 39 2.83 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 3.75 MBytes 3.14 Mbits/sec 437 sender [ 5] 0.00-10.00 sec 3.67 MBytes 3.08 Mbits/sec receiver iperf Done. root@debian:~# iperf3 -R -c 192.168.3.213 Connecting to host 192.168.3.213, port 5201 Reverse mode, remote host 192.168.3.213 is sending [ 5] local 192.168.3.10 port 39130 connected to 192.168.3.213 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 112 MBytes 941 Mbits/sec [ 5] 1.00-2.00 sec 112 MBytes 942 Mbits/sec [ 5] 2.00-3.00 sec 112 MBytes 942 Mbits/sec [ 5] 3.00-4.00 sec 112 MBytes 942 Mbits/sec [ 5] 4.00-5.00 sec 112 MBytes 942 Mbits/sec [ 5] 5.00-6.00 sec 112 MBytes 942 Mbits/sec [ 5] 6.00-7.00 sec 112 MBytes 942 Mbits/sec [ 5] 7.00-8.00 sec 112 MBytes 942 Mbits/sec [ 5] 8.00-9.00 sec 112 MBytes 942 Mbits/sec [ 5] 9.00-10.00 sec 112 MBytes 942 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 1.10 GBytes 943 Mbits/sec 370 sender [ 5] 0.00-10.00 sec 1.10 GBytes 942 Mbits/sec receiver iperf Done. USB3 *2 root@debian:~# lsusb Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors Disk model: Generic Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 05AB264B-738E-47BB-9F67-5C04CC24A736 Device Start End Sectors Size Type /dev/sda1 2048 500118158 500116111 238.5G Linux filesystem root@debian:~# mount /dev/sda1 /mnt/sda/ root@debian:~# cd /mnt/sda root@debian:/mnt/sda# dd if=/dev/zero of=sd.img bs=4M count=4096 oflag=direct 4096+0 records in 4096+0 records out 17179869184 bytes (17 GB, 16 GiB) copied, 81.5051 s, 211 MB/s -------------- root@debian:/# lsusb Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 003: ID 04e8:61f5 Samsung Electronics Co., Ltd Portable SSD T5 Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@debian:/mnt/sda# dd if=/dev/zero of=sd.img bs=4M count=4096 oflag=direct 4096+0 records in 4096+0 records out 17179869184 bytes (17 GB, 16 GiB) copied, 83.7618 s, 205 MB/s cpufreq *3 root@debian:~# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq 1800000 1800000 1800000 1800000 root@debian:~# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq 1416000 1416000 1416000 1416000 root@debian:~# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq 1800000 1800000 1800000 1800000 root@debian:~# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq 1416000 1416000 1416000 1416000 PCIe NVMe SSD *4 root@debian:/mnt/nvme# dd if=/dev/zero of=sd.img bs=4M count=4096 oflag=direct 4096+0 records in 4096+0 records out 17179869184 bytes (17 GB, 16 GiB) copied, 58.0362 s, 296 MB/s

    Das soll laut Peter die maximal mögliche Geschwindigkeit der PCIe Schnittstelle sein. Diese Schnittstelle ist nur mit einer Lane an den Prozessor angeschlossen!

    UART

    Bitte drauf achten, diese Schnittstelle arbeitet mit Level Shifting, was billige Adapter oft nicht abkönnen. Habe ich hier im Beitrag ausführlich erklärt, mit passenden Adapter, wenn es so wie bei mir nicht funktionierte.

  • Quartz64 - Manjaro Mai 2022

    Verschoben Quartz64
    1
    0 Stimmen
    1 Beiträge
    98 Aufrufe
    Niemand hat geantwortet
  • Quartz64 - working HDMI output

    Verschoben Quartz64
    5
    0 Stimmen
    5 Beiträge
    200 Aufrufe
    FrankMF

    Das Problem mit dem Sound ist mit folgendem Kernel behoben

    [root@quartz64 ~]# uname -a Linux quartz64 5.16.0-rc1-6-MANJARO-ARM #1 SMP PREEMPT Sun Nov 21 15:42:16 UTC 2021 aarch64 GNU/Linux
  • Manjaro Image - Netzwerkkonfiguration

    Verschoben Quartz64
    2
    0 Stimmen
    2 Beiträge
    222 Aufrufe
    FrankMF

    Da fehlt doch was? Richtig - WLAN!

    Treiber usw. -> https://forum.frank-mankel.org/topic/1035/wlan-auf-der-konsole-einrichten

    systemd

    /etc/systemd/network/40-wireless.network

    [Match] Name=wlan0 [Network] DHCP=both

    Ok, das war einfach 🙂 Aber, wie übergebe ich jetzt die Konfiguration, also wpa_supplicant.conf ?

    Das geht so

    systemctl enable wpa_supplicant@wlan0.service

    Zum Neustarten der Services

    systemctl restart systemd-networkd.service systemctl restart wpa_supplicant@wlan0.service

    Hmm, danach ging es bei mir nicht. Schauen wir nach.

    [root@quartz64 ~]# systemctl status wpa_supplicant@wlan0 × wpa_supplicant@wlan0.service - WPA supplicant daemon (interface-specific version) Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant@.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2021-10-10 18:34:59 CEST; 1min 20s ago Process: 518 ExecStart=/usr/bin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wlan0.conf -iwlan0 (code=exited, status=255/EXCEPTION) Main PID: 518 (code=exited, status=255/EXCEPTION) CPU: 17ms Okt 10 18:34:58 quartz64 systemd[1]: Started WPA supplicant daemon (interface-specific version). Okt 10 18:34:59 quartz64 wpa_supplicant[518]: Successfully initialized wpa_supplicant Okt 10 18:34:59 quartz64 wpa_supplicant[518]: Failed to open config file '/etc/wpa_supplicant/wpa_supplicant-wlan0.conf', error: No such file o> Okt 10 18:34:59 quartz64 wpa_supplicant[518]: Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant-wlan0.conf'. Okt 10 18:34:59 quartz64 systemd[1]: wpa_supplicant@wlan0.service: Main process exited, code=exited, status=255/EXCEPTION Okt 10 18:34:59 quartz64 systemd[1]: wpa_supplicant@wlan0.service: Failed with result 'exit-code'.

    Ok, das ist einfach.

    cd /etc/wpa_supplicant mv wpa_supplicant.conf wpa_supplicant-wlan0.conf

    Neustarten - Fertig!

    Kontrolle 6: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether ac:83:f3:e6:1f:b2 brd ff:ff:ff:ff:ff:ff inet 192.168.178.24/24 metric 1024 brd 192.168.178.255 scope global dynamic wlan0 valid_lft 863966sec preferred_lft 863966sec inet6 2a02:908:1260:13a0:ae83:f3ff:fee6:1fb2/64 scope global dynamic mngtmpaddr noprefixroute valid_lft 7169sec preferred_lft 3569sec inet6 fe80::ae83:f3ff:fee6:1fb2/64 scope link valid_lft forever preferred_lft forever
  • Manjaro Image - LAN Schnittstelle

    Verschoben Quartz64
    3
    0 Stimmen
    3 Beiträge
    210 Aufrufe
    T

    @frankm

    and in 5.13.0-rc4-0.8 you have to do it again 😉

    nice tips 👍 i got the board working

  • Quartz64 - SPI

    Verschoben Quartz64 - A
    2
    0 Stimmen
    2 Beiträge
    168 Aufrufe
    FrankMF

    Bitte unbedingt beachten!

    https://forum.frank-mankel.org/topic/1042/quartz64-missing-spi