Skip to content

ROCKPro64 - Kernel switchen

Verschoben ROCKPro64
1 1 1.3k
  • Unter /usr/local/sbin findet man einen Haufen Scripte vom Kamil.

     rock64@rockpro64:/usr/local/sbin$ ls -la
       total 144
       drwxr-xr-x  2 root root  4096 May 26 23:16 .
       drwxr-xr-x 10 root root  4096 Apr 27  2018 ..
       lrwxrwxrwx  1 root root    21 May 26 17:14 armbianmonitor -> rock64_diagnostics.sh
       -rwxr-xr-x  1 root root  1012 Mar 24 16:08 change-default-kernel.sh
       -rwxr-xr-x  1 root root   360 Mar 24 16:08 disable_dtoverlay
       -rwxr-xr-x  1 root root  1152 Apr 14 15:34 dtedit
       -rwxr-xr-x  1 root root  1145 Mar 24 16:08 enable_dtoverlay
       -rwxr-xr-x  1 root root  1062 Mar 31 12:00 install_container_linux.sh
       -rwxr-xr-x  1 root root   211 May 26 16:41 install_deb
       -rwxr-xr-x  1 root root  4092 May 26 17:14 install_desktop.sh
       -rwxr-xr-x  1 root root   903 Mar 24 16:08 install_gadget
       -rwxr-xr-x  1 root root  5281 Mar 24 16:08 install_openmediavault.sh
       -rwxr-xr-x  1 root root   578 Mar 24 16:08 install_vivaldi.sh
       -rwxr-xr-x  1 root root  2154 Mar 24 16:08 install_widevine_drm.sh
       -rwxr-xr-x  1 root root  1021 Mar 24 16:08 new_extlinux_boot.sh
       -rwxr-xr-x  1 root root   593 Mar 24 16:08 resize_rootfs.sh
       -rwxr-xr-x  1 root root 23258 Mar 24 16:08 rock64_diagnostics.sh
       -rwxrwxrwx  1 root root   747 Mar 21 17:27 rock64_erase_bootloader.sh
       -rwxrwxrwx  1 root root   441 Mar 21 17:27 rock64_erase_spi_flash.sh
       -rwxr-xr-x  1 root root  1460 Mar 24 16:08 rock64_eth0_stats.sh
       -rwxr-xr-x  1 root root   159 Mar 24 16:08 rock64_first_boot.sh
       -rwxr-xr-x  1 root root  1570 Apr  8 09:16 rock64_fix_performance.sh
       -rwxr-xr-x  1 root root  1012 Mar 24 16:08 rock64_health.sh
       -rwxrwxrwx  1 root root   751 Mar 21 17:27 rock64_upgrade_bootloader.sh
       -rwxrwxrwx  1 root root   574 Mar 21 17:27 rock64_write_spi_flash.sh
       -rwxr-xr-x  1 root root   251 Mar 24 16:08 rockpro64_disable_otg.sh
       -rwxr-xr-x  1 root root   332 Mar 24 16:08 rockpro64_enable_eth_gadget.sh
       -rwxr-xr-x  1 root root   499 Mar 24 16:08 rockpro64_reset_emmc.sh
       -rwxr-xr-x  1 root root   280 Mar 24 16:08 rockpro64_reset_spi_flash.sh
       -rwxr-xr-x  1 root root   183 Mar 24 16:08 uninstall_gadgets
       -rwxr-xr-x  1 root root  1452 Mar 24 16:08 update-extlinux.sh
    

    Nein, ich weiß nicht wofür die alle sind. Einige sind selbsterklärend. Bei anderen muss man evt. mal reinschauen... Was mich hier heute interessiert, ist das Script um den Kernel umzuschalten, also von 4.4 auf 5.1 und zurück. Man könnte die extlinux.conf jedesmal anpassen, aber unser Kamil scheint ein fauler Sysadmin zu sein, dafür kann man ja Scripte schreiben 😉

    Das Script change-default-kernel.sh erledigt das für uns. Beim Aufruf des Scriptes zeigt es uns eine Auswahl der installierten Kernel an. Dann gibt man die Nummer des Kernels ein, den man starten möchte. Dann nimmt uns Kamil sein Script die Arbeit ab und erstellt die Datei extlinux.conf neu.

    rock64@rockpro64:/usr/local/sbin$ sudo ./change-default-kernel.sh 
    [sudo] password for rock64: 
    Current kernel append parameters:
    append= root=LABEL=linux-root rootwait rootfstype=ext4
    
    Select kernel version:
    0: 5.1.0-1111-ayufan-g626fd74bbb54
    1: 4.4.167-1188-rockchip-ayufan-g9f1406ef58b1
    1
    
    Selected: kernel-4.4.167-1188-rockchip-ayufan-g9f1406ef58b1
    
    Updating configuration...
    Creating new extlinux.conf...
    Installing new extlinux.conf...
    rock64@rockpro64:/usr/local/sbin$
    

    Danach einfach neubooten und der Kernel ist gewechselt. Früher habe ich das über die serielle Konsole gemacht, aber seitdem ich die eine Leitung ablassen muss, kann ich ja nur noch lesen und keine Befehle absetzen. Blöd, wenn man dann mal eben den Kernel wechseln muss. Das Script ist dabei eine prima Hilfe. Danke Kamil!

    Ich hatte zu dem Thema schon mal einen Beitrag geschrieben.


1/1

27. Mai 2019, 20:38


  • Mainline 5.12.x

    Images linux rockpro64 6. Mai 2021, 15:04
    0 Stimmen
    2 Beiträge
    404 Aufrufe
    5.12.0-1149-ayufan released ayufan: defconfig: add MT76x* drivers
  • 0 Stimmen
    4 Beiträge
    497 Aufrufe
    na denn, tippe ich mal so auf default konfiguriert per dhcp
  • Wireguard

    Verschoben Wireguard linux rockpro64 wireguard 19. März 2019, 20:45
    0 Stimmen
    4 Beiträge
    981 Aufrufe
    Etwas schnellerer Weg den Tunnel aufzubauen, Voraussetzung wireguard modul installiert Keys erzeugt Danach dann einfach ip link add wg0 type wireguard wg setconf wg0 /etc/wireguard/wg0.conf Datei /etc/wireguard/wg0.conf [Interface] PrivateKey = <Private Key> ListenPort = 60563 [Peer] PublicKey = <Public Key Ziel> Endpoint = <IPv4 Adresse Zielrechner>:58380 AllowedIPs = 10.10.0.1/32 Die Rechte der Dateien von wireguard müssen eingeschränkt werden. sudo chmod 0600 /etc/wireguard/wg0.conf Das ganze per rc.local beim Booten laden. Datei /root/wireguard_start.sh ############################################################################################### # Autor: Frank Mankel # Startup-Script # Wireguard # Kontakt: frank.mankel@gmail.com # ############################################################################################### ip link add wg0 type wireguard ip address add dev wg0 10.10.0.1/8 wg setconf wg0 /etc/wireguard/wg0.conf ip link set up dev wg0 Danach Datei ausführbar machen chmod +x /root/wireguard_start.sh In rc.local /root/wireguard_start.sh eintragen - Fertig!
  • 0 Stimmen
    1 Beiträge
    520 Aufrufe
    Niemand hat geantwortet
  • IPFire auf dem ROCKPro64

    ROCKPro64 rockpro64 30. Juli 2018, 16:17
    1
    0 Stimmen
    2 Beiträge
    686 Aufrufe
    Falls es jemanden da draußen interessiert, hier eine Liste der Dinge die funktionieren GREEN Die LAN-Schnittstelle wird einwandfrei erkannt Webserver läuft, Weboberfläche erreichbar Das war's dann mit den positiven Daten jede Menge Kernelfehler iptables Fehler Modul fehlt?? kein LAN-Adapter, WLan-Adapter wird erkannt Lizenzverbindungen lassen sich nicht bestätigen nach der Installation ist die Konsole weg usw. usf
  • 0 Stimmen
    4 Beiträge
    2k Aufrufe
    Heute, 5 Monate später, kann ich bestätigen das WLan möglich ist Getestet auf einem ROCKPro64 v2.1 mit 2GB RAM. Eine Vorabversion von Recalbox machte es das erste Mal für mich möglich das WLan zu benutzen. Bericht Und PCIe ist abgeschaltet im dts File. pcie-phy { compatible = "rockchip,rk3399-pcie-phy"; #phy-cells = <0x0>; rockchip,grf = <0x15>; clocks = <0x8 0x8a>; clock-names = "refclk"; resets = <0x8 0x87>; reset-names = "phy"; status = "disabled"; phandle = <0x8b>; }; pcie@f8000000 { compatible = "rockchip,rk3399-pcie"; #address-cells = <0x3>; #size-cells = <0x2>; aspm-no-l0s; clocks = <0x8 0xc5 0x8 0xc4 0x8 0x147 0x8 0xa0>; clock-names = "aclk", "aclk-perf", "hclk", "pm"; bus-range = <0x0 0x1f>; max-link-speed = <0x2>; linux,pci-domain = <0x0>; msi-map = <0x0 0x89 0x0 0x1000>; interrupts = <0x0 0x31 0x4 0x0 0x0 0x32 0x4 0x0 0x0 0x33 0x4 0x0>; interrupt-names = "sys", "legacy", "client"; #interrupt-cells = <0x1>; interrupt-map-mask = <0x0 0x0 0x0 0x7>; interrupt-map = <0x0 0x0 0x0 0x1 0x8a 0x0 0x0 0x0 0x0 0x2 0x8a 0x1 0x0 0x0 0x0 0x3 0x8a 0x2 0x0 0x0 0x0 0x4 0x8a 0x3>; phys = <0x8b>; phy-names = "pcie-phy"; ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x1e00000 0x81000000 0x0 0xfbe00000 0x0 0xfbe00000 0x0 0x100000>; reg = <0x0 0xf8000000 0x0 0x2000000 0x0 0xfd000000 0x0 0x1000000>; reg-names = "axi-base", "apb-base"; resets = <0x8 0x82 0x8 0x83 0x8 0x84 0x8 0x85 0x8 0x86 0x8 0x81 0x8 0x80>; reset-names = "core", "mgmt", "mgmt-sticky", "pipe", "pm", "pclk", "aclk"; status = "disabled"; Also bleibt weiterhin ungeklärt, ob auch beides zusammen möglich ist. Also gleichzeitig das WLan-Modul und eine PCIe Karte.
  • Images 0.7.x

    Images rockpro64 6. Juli 2018, 04:51
    0 Stimmen
    22 Beiträge
    3k Aufrufe
    Ayufan Images nutzen user: rock64 pw: rock64
  • Benchmarks

    Angeheftet Verschoben Archiv rockpro64 26. Mai 2018, 08:29
    0 Stimmen
    10 Beiträge
    2k Aufrufe
    iozone Test (0.6.52) Hardware Hardware ist eine Samsung EVO 960 m.2 mit 250GB Eingabe sudo iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Ausgabe Run began: Thu Jun 14 12:04:01 2018 Include fsync in write timing O_DIRECT feature enabled Auto Mode File size set to 102400 kB Record Size 4 kB Record Size 16 kB Record Size 512 kB Record Size 1024 kB Record Size 16384 kB Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Output is in kBytes/sec Time Resolution = 0.000001 seconds. Processor cache size set to 1024 kBytes. Processor cache line size set to 32 bytes. File stride size set to 17 * record size. random random bkwd record stride kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread 102400 4 40859 79542 101334 101666 31721 60459 102400 16 113215 202566 234307 233091 108334 154750 102400 512 362864 412548 359279 362810 340235 412626 102400 1024 400478 453205 381115 385746 372378 453548 102400 16384 583762 598047 595752 596251 590950 604690 Zum direkten Vergleich hier heute mal mit 4.17.0-rc6-1019 rock64@rockpro64:/mnt$ uname -a Linux rockpro64 4.17.0-rc6-1019-ayufan-gfafc3e1c913f #1 SMP PREEMPT Tue Jun 12 19:06:59 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux iozone Test rock64@rockpro64:/mnt$ sudo iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Iozone: Performance Test of File I/O Version $Revision: 3.429 $ Compiled for 64 bit mode. Build: linux Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins Al Slater, Scott Rhine, Mike Wisner, Ken Goss Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone, Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root, Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer, Vangel Bojaxhi, Ben England, Vikentsi Lapa. Run began: Sat Jun 16 06:34:43 2018 Include fsync in write timing O_DIRECT feature enabled Auto Mode File size set to 102400 kB Record Size 4 kB Record Size 16 kB Record Size 512 kB Record Size 1024 kB Record Size 16384 kB Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Output is in kBytes/sec Time Resolution = 0.000001 seconds. Processor cache size set to 1024 kBytes. Processor cache line size set to 32 bytes. File stride size set to 17 * record size. random random bkwd record stride kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread 102400 4 48672 104754 115838 116803 47894 103606 102400 16 168084 276437 292660 295458 162550 273703 102400 512 566572 597648 580005 589209 534508 597007 102400 1024 585621 624443 590545 599177 569452 630098 102400 16384 504871 754710 765558 780592 777696 753426 iozone test complete.