Install the RTC module on GPIO pins 1, 3, 5, 7
- Add or edit
usercfg.txtand add
dtparam=i2c_arm=on
dtoverlay=i2c-rtc,ds3231
- Edit
/etc/mkinitfs/mkinitfs.confand add a featurerpirtc, then rebuild initramfs
| vec4 cubic(float v) { | |
| vec4 n = vec4(1.0, 2.0, 3.0, 4.0) - v; | |
| vec4 s = n * n * n; | |
| float x = s.x; | |
| float y = s.y - 4.0 * s.x; | |
| float z = s.z - 4.0 * s.y + 6.0 * s.x; | |
| float w = 6.0 - x - y - z; | |
| return vec4(x, y, z, w) * (1.0 / 6.0); | |
| } |
| #if defined(__APPLE__) | |
| #include <objc/message.h> | |
| #include <objc/objc.h> | |
| #include <objc/runtime.h> | |
| template <typename T, typename... Args> | |
| T objc_call(id obj, const char *sel, Args... args) { | |
| using FuncPtr = T (*)(id, SEL, Args...); | |
| return reinterpret_cast<FuncPtr>(objc_msgSend)(obj, sel_registerName(sel), args...); | |
| } | |
| template <typename T, typename... Args> |
| /** | |
| * | |
| * Compile on Linux with: | |
| * gcc x11_art.c -o x11_art -O3 -lX11 | |
| * | |
| * Compile on MacOS with: | |
| * gcc x11_art.c -o x11_art -O3 -lX11 -I/opt/X11/include -L/opt/X11/lib | |
| * | |
| */ |
| function toHumanReadableSize(bytes, precision = 1) { | |
| if (typeof bytes !== 'number' || isNaN(bytes) || !isFinite(bytes)) return '-'; | |
| const units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB', 'BB']; | |
| let num = bytes; | |
| let unit = 0; | |
| if (bytes !== 0) { | |
| unit = Math.floor(Math.log(bytes) / Math.log(1024)); | |
| num = bytes / Math.pow(1024, Math.floor(unit)); | |
| } | |
| if (unit === 0) { |
| BasedOnStyle: 'Google' | |
| AlignConsecutiveMacros: | |
| Enabled: true | |
| AcrossEmptyLines: true | |
| AcrossComments: true | |
| AlignCompound: false | |
| PadOperators: false | |
| AccessModifierOffset: -4 | |
| #AlignAfterOpenBracket: AlwaysBreak |
| #include <tinyformat.h> | |
| #include <unwind.h> | |
| #include <cxxabi.h> | |
| #include <dlfcn.h> | |
| struct android_backtrace_state { | |
| void **current; | |
| void **end; | |
| }; |
Install the RTC module on GPIO pins 1, 3, 5, 7
usercfg.txt and adddtparam=i2c_arm=on
dtoverlay=i2c-rtc,ds3231
/etc/mkinitfs/mkinitfs.conf and add a feature rpirtc, then rebuild initramfsOpenGL ES for iOS requires Power-of-Two images, unfortunately, as it is a rather strict implementation.
NPOT textures are technically enabled in the newer iOS hardware running 2.0 ES, but with extremely limited use.
Specifically, you must use linear filtering with clamp-to-edge, and no mipmapping.
And also GL_REPEAT & GL_MIRRORED_REPEAT are not supported.
In most cases a power-of-two image would still be more efficient/have higher framerates.
install log
cd prl_fs/SharedFolders/Guest/Linux/prl_fs && make CC=cc
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs'
make -C /lib/modules/5.0.0-25-generic/build M=/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs CC=cc
make[2]: Entering directory '/usr/src/linux-headers-5.0.0-25-generic'
CC [M] /usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.o
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c: In function 'prlfs_remount':
/usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c:119:21: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
if ( (!((*flags) & MS_RDONLY) && PRLFS_SB(sb)->readonly) ||
| //-------------------------------------- | |
| //--- 010 Editor v6.0.2 Binary Template | |
| // | |
| // File: TAR.bt | |
| // Author: xiaozhuai | |
| // Version: 1.0 | |
| // Purpose: Read tar files. | |
| // Category: Archive | |
| // File Mask: *.tar | |
| //-------------------------------------- |