Companion data for Lu-Fi/openimp issue #2.
| SoC / kernel | Ingenic T31, Linux 7.2.11 |
| libimp | Lu-Fi/openimp next @ 6ba7df7f34e064d11ec3cb3ba412ae3749a962f7 |
| #!/bin/sh | |
| # IPC button catcher | |
| # Paul Philippov <paul@themactep.com> | |
| # 2024-07-01: Initial release | |
| GPIO_MAX=95 | |
| EXCLUDE="10 16 17 18 49 54 55 56 57 58" | |
| for i in $(seq 0 $GPIO_MAX); do | |
| echo $EXCLUDE | grep -e "\b$i\b" >/dev/null && continue |
| #!/bin/sh | |
| # | |
| # Universal firmware installer. | |
| # Run on an embedded device in Linux shell to install | |
| # a full firmware image to a non-matching partitioning. | |
| # | |
| # Requires dd and flascp. | |
| # | |
| # 2024, Paul Philippov, paul@themactep.com |
| #!/bin/bash | |
| # | |
| # ANSI color codes | |
| # 2019 Paul Philippov <paul@themactep.com> | |
| for k in {1..9}; do | |
| for i in {0..9}; do | |
| echo -en " \e[1;${k}${i}m$(printf "%02s" "${k}${i}")\e[0m" | |
| done | |
| echo |
| #!/bin/bash | |
| # | |
| # cn2en.sh | |
| # Translate Chinese text file to English. | |
| # | |
| # 2020-09-06, Paul Philippov <paul@themactep.com> | |
| if ! command -v trans >/dev/null; then | |
| echo "Translate Shell is required. https://www.soimort.org/translate-shell/" | |
| echo "wget git.io/trans && chmod +x ./trans" |
| #!/bin/bash | |
| # | |
| # OpenIPC Toolchains Updater | |
| # | |
| # This script retrieves the latest toolchains for building OpenIPC firmware. | |
| # Execute the script in the directory where you want to store the toolchains | |
| # locally, for example, /opt/toolchains/openipc/. You can re-run the script | |
| # to update the toolchains. | |
| # | |
| # 2021, Paul Philippov <paul@themactep.com> |
| #!/bin/sh | |
| # Set cron jobs by actual sunset and sunrise time | |
| # 2023 Paul Philippov <paul@themactep.com> | |
| # 2023-12-23 - initial script | |
| # 2023-04-28 - use daynight script to switch day mode | |
| # 2024-06-12 - add timezone support | |
| # Please tip the API provider: https://www.buymeacoffee.com/sunrisesunsetapi | |
| # Geographic coordinates of your place | |
| lat="42.17509000" |
| #!/bin/bash | |
| # | |
| # Embedded Linux root hijacker | |
| # | |
| # This script repacks firmware replacing existing root password with a blank password. | |
| # Tested on HiSilicon and Ingenic firmware dumps from NOR SPI flash chips. | |
| # Use at your own risk. | |
| # | |
| # Paul Philppov <paul@themactep.com> | |
| # 2023-11-21: Initial release |
| #!/bin/sh | |
| BR_OUTPUT_DIR=/path/to/openipc/output | |
| CROSS_PATH=${BR_OUTPUT_DIR}/host/bin | |
| CROSS_COMPILE=$(readlink -f $CROSS_PATH)/mipsel-openipc-linux-musl- | |
| CC=${CROSS_COMPILE}gcc | |
| make ARCH=mips CC="${CC}" \ | |
| CROSS_COMPILE="${CROSS_COMPILE}" \ |
| #!/bin/sh | |
| pin1=$(cli -g .nightMode.irCutPin1) | |
| pin2=$(cli -g .nightMode.irCutPin2) | |
| if [ -z "$pin1" ]; then | |
| echo "IRCUT pin 1 is not set!" | |
| echo "Please set it by running cli -s .nightMode.irCutPin1 XX, where XX is a GPIO pin number." | |
| exit 1 | |
| fi |