Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| it:linux:raspberry_pi4 [2023/10/05 19:02] – admin | it:linux:raspberry_pi4 [2024/08/28 12:37] (aktuell) – admin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Raspberry PI4 ====== | ====== Raspberry PI4 ====== | ||
| + | ===== Overclock ===== | ||
| + | <code bash> | ||
| + | over_voltage=8 | ||
| + | arm_freq=2147 | ||
| + | gpu_freq=750" | ||
| + | </ | ||
| + | |||
| + | ===== Matlab x86/amd64 binary auf raspberry ausfuehren ===== | ||
| + | Getestet mit Matlab 2023a auf raspbian lite 64bit. | ||
| + | ==== Mittels debootstrap eine amd64 Umgebung erstellen ==== | ||
| + | |||
| + | <code bash> | ||
| + | apt-get -y install qemu-user qemu-user-static binfmt-support debootstrap binutils | ||
| + | mkdir emu | ||
| + | debootstrap --foreign --arch amd64 bookworm emu http:// | ||
| + | cp /etc/passwd emu/ | ||
| + | |||
| + | ==== chroot.sh ==== | ||
| + | <code bash># | ||
| + | set -x | ||
| + | dir=/ | ||
| + | mount -t sysfs /sys $dir/sys/ | ||
| + | mount -t proc /proc $dir/proc/ | ||
| + | mount --bind /dev $dir/dev/ | ||
| + | #mount --bind /dev/pts $dir/ | ||
| + | mount --bind /dev/shm $dir/ | ||
| + | |||
| + | chroot $dir /bin/bash | ||
| + | </ | ||
| + | |||
| + | ==== Abhaengigkeiten in chroot installieren ==== | ||
| + | <code bash> | ||
| + | apt-get update | ||
| + | apt-get -y install unzip gawk libgl-dev libxt6 | ||
| + | </ | ||
| + | |||
| + | ==== Python installieren ==== | ||
| + | <code bash> | ||
| + | wget https:// | ||
| + | tar -xvzf Python-3.10.10.tgz | ||
| + | cd Python-3.10.30 | ||
| + | ./configure --enable-optimizations --enable-shared | ||
| + | make && make install | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== MCR 9.14 in chroot installieren ==== | ||
| + | <code bash> | ||
| + | cd mcr | ||
| + | wget " | ||
| + | unzip MATLAB_Runtime_R2023a_Update_6_glnxa64.zip | ||
| + | ./install -agreeToLicense yes | ||
| + | </ | ||
| + | ==== / | ||
| + | In chroot folgendes hinzufuegen: | ||
| + | <code bash> | ||
| + | export LD_LIBRARY_PATH=/ | ||
| + | </ | ||
| + | |||
| + | ==== Matlab compiled binary ausfuehren ==== | ||
| + | <code bash> | ||
| + | hello: ELF 64-bit LSB executable, x86-64, version 1 (GNU/ | ||
| + | <code bash> | ||
| + | Hello World! | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| ===== RT Kernel ===== | ===== RT Kernel ===== | ||
| - <code bash> | - <code bash> | ||
| Zeile 64: | Zeile 132: | ||
| ===== Image von /boot ===== | ===== Image von /boot ===== | ||
| - | {{ : | + | * {{ : | 
| - | {{ : | + |  | 
| ===== Links ===== | ===== Links ===== | ||