-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-commit: 0 added, 0 modified, 0 deleted
- Loading branch information
Showing
52 changed files
with
597 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
# Complete Building Guide For IntelGPUs | ||
|
||
--- | ||
|
||
**All Builds In This Guide**: | ||
|
||
1. Intel Gmmlib | ||
|
||
2. Libva | ||
|
||
3. Libva-Tools | ||
|
||
4. Intel VPL Dev Package | ||
|
||
5. Intel VPL-Tools | ||
|
||
**Dependencies**: | ||
|
||
```bash | ||
sudo pacman -S autoconf libtool libdrm xorg xorg-dev openbox libx11-dev libgl1-mesa-glx git cmake pkg-config meson libdrm-dev automake libtool | ||
``` | ||
|
||
**Firmware** (if needed): | ||
|
||
```bash | ||
git clone git@github.com:intel-gpu/intel-gpu-firmware.git | ||
cd intel-gpu-firmware | ||
sudo mkdir -p /lib/modules/"$(uname -r)"/updates/i915/ | ||
sudo cp firmware/*.bin /lib/modules/"$(uname -r)"/updates/i915/ | ||
``` | ||
|
||
## Build Phase 1: | ||
|
||
### Intel Gmmlib | ||
|
||
This is the base component for the next component in the stack, the Intel Media Driver: | ||
|
||
```bash | ||
git clone https://github.com/intel/gmmlib.git | ||
cd gmmlib | ||
mkdir build && cd build | ||
cmake [-DCMAKE_BUILD_TYPE=Release | Debug | ReleaseInternal] .. | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make -j"$(nproc)" | ||
sudo make install | ||
``` | ||
|
||
## Build Phase 2: | ||
|
||
### Libva | ||
|
||
```bash | ||
git clone https://github.com/intel/libva.git | ||
cd libva | ||
mkdir build | ||
cd build | ||
meson .. -Dprefix=/usr -Dlibdir=/usr/lib/x86_64-linux-gnu | ||
ninja | ||
sudo ninja install | ||
``` | ||
|
||
### Libva-Tools | ||
|
||
```bash | ||
git clone https://github.com/intel/libva-utils.git | ||
cd libva-utils | ||
mkdir build | ||
cd build | ||
meson .. | ||
ninja | ||
sudo ninja install | ||
``` | ||
|
||
Validate the environment with `vainfo`. The output should look similar to: | ||
|
||
```bash | ||
sys@KBL:~/github/libva-utils$ vainfo | ||
Trying display: drm | ||
libva info: VA-API version 1.14.0 | ||
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so | ||
libva info: Found init function __vaDriverInit_1_14 | ||
libva info: va_openDriver() returns 0 | ||
vainfo: VA-API version: 1.18 (libva 2.18.0.pre1) | ||
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 () | ||
vainfo: Supported profile and entrypoints | ||
VAProfileMPEG2Simple : VAEntrypointVLD | ||
VAProfileMPEG2Main : VAEntrypointVLD | ||
VAProfileH264Main : VAEntrypointVLD | ||
VAProfileH264Main : VAEntrypointEncSliceLP | ||
VAProfileH264High : VAEntrypointVLD | ||
VAProfileH264High : VAEntrypointEncSliceLP | ||
VAProfileJPEGBaseline : VAEntrypointVLD | ||
VAProfileJPEGBaseline : VAEntrypointEncPicture | ||
VAProfileH264ConstrainedBaseline: VAEntrypointVLD | ||
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP | ||
VAProfileVP8Version0_3 : VAEntrypointVLD | ||
VAProfileHEVCMain : VAEntrypointVLD | ||
VAProfileHEVCMain10 : VAEntrypointVLD | ||
VAProfileVP9Profile0 : VAEntrypointVLD | ||
VAProfileVP9Profile2 : VAEntrypointVLD | ||
``` | ||
|
||
**Explicitly set these environment variables**: | ||
|
||
```bash | ||
export LIBVA_DRIVERS_PATH=<path-contains-iHD_drv_video.so> | ||
export LIBVA_DRIVER_NAME=iHD | ||
``` | ||
|
||
## Build Phase 3 | ||
|
||
### Intel VPL Development Package | ||
|
||
```bash | ||
git clone https://github.com/intel/libvpl | ||
pushd libvpl | ||
export VPL_INSTALL_DIR=`pwd`/../_vplinstall | ||
sudo script/bootstrap | ||
cmake -B _build -DCMAKE_INSTALL_PREFIX=$VPL_INSTALL_DIR | ||
cmake --build _build | ||
cmake --install _build | ||
popd | ||
``` | ||
|
||
### Intel VPL-Tools | ||
|
||
```bash | ||
git clone https://github.com/intel/libvpl-tools | ||
pushd libvpl-tools | ||
export VPL_INSTALL_DIR=`pwd`/../_vplinstall | ||
sudo script/bootstrap | ||
cmake -B _build -DCMAKE_PREFIX_PATH=$VPL_INSTALL_DIR | ||
cmake --build _build | ||
cmake --install _build --prefix $VPL_INSTALL_DIR | ||
``` |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/23.1/* | ||
/dev/* | ||
/proc/* | ||
/sys/* | ||
/tmp/* | ||
/run/* | ||
/mnt/* | ||
/media/* | ||
/home/andro/Videos/* | ||
/home/andro/Pictures/* | ||
/home/andro/Downloads/* | ||
/Nas/* | ||
/storage/* | ||
/4ndr0/* | ||
/sto2/* | ||
/home/andro/.cache/* | ||
/home/andro/.borgmatic/* | ||
/home/andro/.mozilla/* | ||
/home/andro/dotnet/* | ||
/home/andro/Avatars/* | ||
/home/andro/ffmpeg_build/* | ||
/home/andro/ffmpeg_sources/* | ||
/home/andro/node_modules/* | ||
/home/andro/Overrides/* | ||
/home/andro/.npm/* | ||
/home/andro/.vim/* | ||
/home/andro/Dots~1~/* | ||
/home/andro/.gphoto/* | ||
/home/andro/.luarocks/* | ||
/home/andro/nuget/* | ||
/home/andro/mystiq_output/* | ||
/home/andro/.config/BraveSoftware/* |
10 changes: 10 additions & 0 deletions
10
Install/rsnapshot/sysd_service_file/rsnapshot-interval.timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=rsnapshot hourly backup | ||
|
||
[Timer] | ||
OnCalendar= | ||
Persistent=true | ||
Unit=rsnapshot@interval.service | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=rsnapshot (%I) backup | ||
|
||
[Service] | ||
Type=oneshot | ||
Nice=19 | ||
IOSchedulingClass=idle | ||
ExecStart=/usr/bin/rsnapshot %I |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#### `rsnapshot-daily.timer` with a `OnCalendar` value: | ||
```ini | ||
[Unit] | ||
Description=rsnapshot daily backup | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
Persistent=true | ||
Unit=rsnapshot@daily.service | ||
|
||
[Install] | ||
WantedBy=timers.target | ||
``` | ||
|
||
#### `rsnapshot-hourly.timer`: | ||
```ini | ||
[Unit] | ||
Description=rsnapshot hourly backup | ||
|
||
[Timer] | ||
OnCalendar=hourly | ||
Persistent=true | ||
Unit=rsnapshot@hourly.service | ||
|
||
[Install] | ||
WantedBy=timers.target | ||
``` | ||
|
||
#### `rsnapshot-monthly.timer`: | ||
```ini | ||
[Unit] | ||
Description=rsnapshot monthly backup | ||
|
||
[Timer] | ||
OnCalendar=monthly | ||
Persistent=true | ||
Unit=rsnapshot@monthly.service | ||
|
||
[Install] | ||
WantedBy=timers.target | ||
``` | ||
|
||
#### `rsnapshot-weekly.timer`: | ||
```ini | ||
[Unit] | ||
Description=rsnapshot weekly backup | ||
|
||
[Timer] | ||
OnCalendar=weekly | ||
Persistent=true | ||
Unit=rsnapshot@weekly.service | ||
|
||
[Install] | ||
WantedBy=timers.target | ||
``` | ||
|
||
### Steps to Apply Fixes: | ||
|
||
1. **Enable and Start Timers**: | ||
Enable and start the timers: | ||
```bash | ||
sudo systemctl enable rsnapshot-daily.timer | ||
sudo systemctl enable rsnapshot-hourly.timer | ||
sudo systemctl enable rsnapshot-monthly.timer | ||
sudo systemctl enable rsnapshot-weekly.timer | ||
|
||
sudo systemctl start rsnapshot-daily.timer | ||
sudo systemctl start rsnapshot-hourly.timer | ||
sudo systemctl start rsnapshot-monthly.timer | ||
sudo systemctl start rsnapshot-weekly.timer | ||
``` | ||
|
||
4. **Verify Timer Status**: | ||
Check if the timers are running: | ||
```bash | ||
sudo systemctl status rsnapshot-daily.timer | ||
sudo systemctl status rsnapshot-hourly.timer | ||
sudo systemctl status rsnapshot-monthly.timer | ||
sudo systemctl status rsnapshot-weekly.timer | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/23.1/* | ||
/dev/* | ||
/proc/* | ||
/sys/* | ||
/tmp/* | ||
/run/* | ||
/mnt/* | ||
/media/* | ||
/home/andro/Videos/* | ||
/home/andro/Pictures/* | ||
/home/andro/Downloads/* | ||
/Nas/* | ||
/storage/* | ||
/4ndr0/* | ||
/sto2/* | ||
/home/andro/.cache/* | ||
/home/andro/.borgmatic/* | ||
/home/andro/.mozilla/* | ||
/home/andro/dotnet/* | ||
/home/andro/Avatars/* | ||
/home/andro/ffmpeg_build/* | ||
/home/andro/ffmpeg_sources/* | ||
/home/andro/node_modules/* | ||
/home/andro/Overrides/* | ||
/home/andro/.npm/* | ||
/home/andro/.vim/* | ||
/home/andro/Dots~1~/* | ||
/home/andro/.gphoto/* | ||
/home/andro/.luarocks/* | ||
/home/andro/nuget/* | ||
/home/andro/mystiq_output/* | ||
/home/andro/.config/BraveSoftware/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=rsnapshot daily backup | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
Persistent=true | ||
Unit=rsnapshot@daily.service | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=rsnapshot hourly backup | ||
|
||
[Timer] | ||
OnCalendar=hourly | ||
Persistent=true | ||
Unit=rsnapshot@hourly.service | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=rsnapshot monthly backup | ||
|
||
[Timer] | ||
OnCalendar=monthly | ||
Persistent=true | ||
Unit=rsnapshot@monthly.service | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=rsnapshot weekly backup | ||
|
||
[Timer] | ||
OnCalendar=weekly | ||
Persistent=true | ||
Unit=rsnapshot@weekly.service | ||
|
||
[Install] | ||
WantedBy=timers.target |
Oops, something went wrong.