guineapig
- ROCKPro64, 4GB "old" model, V2.1 2018-07-02 (got it maybe on 2019)
- FORESEE 64 GB emmc (boot & root)
- ethernet connected
- serial console (FTDI FT232RL)
- 5.10.76 kernel
- pics:
- front: https://drive.google.com/file/d/1_HmgmDZrHIJtb0p0qCvbNiFSC3zagTgD/view?usp=sharing
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
#!/usr/bin/env bash | |
# SPDX-License-Identifier: GPL-2.0 | |
# | |
# Copyright (C) 2016-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. | |
die() { | |
echo "[-] Error: $1" >&2 | |
exit 1 | |
} |
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
# FILE: /etc/udev/rules.d/99-rockchip-pcie.rules | |
# Trigger Rockchip PCIe probe | |
ACTION=="add", KERNEL=="f8000000.pcie", SUBSYSTEM=="platform", RUN+="/usr/local/sbin/rockpro64_pcie_probe.sh" |
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
#!/bin/bash | |
# Update interval | |
INT=0.1 | |
# "Sample count" for speed calculations (for averaging) | |
SC=20 | |
FROMBOOT=false |
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
#!/bin/bash | |
echo 'fe330000.sdhci' | sudo tee /sys/bus/platform/drivers/sdhci-arasan/unbind | |
echo 'fe330000.sdhci' | sudo tee /sys/bus/platform/drivers/sdhci-arasan/bind |
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
# FILE:/etc/udev/rules.d/99-fan.rules | |
KERNEL=="ff420010.pwm", ACTION=="add", PROGRAM="/usr/local/sbin/fan-control.sh" |
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
FROM ubuntu:focal | |
LABEL author="Jari Hämäläinen <nuum.io.fi@gmail.com>" | |
ENV DEBIAN_FRONTEND 'noninteractive' | |
ENV XZ_DEFAULTS '-T0' | |
# Basic setup, install tools etc. | |
# Some packages are just from my previous tools containers. | |
# Some packages just grabbed from: https://wiki.radxa.com/Rockpi4/dev/u-boot | |
# Added gcc-arm-none-eabi, rename, bison, git, python3 and python-pyelftools. |
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
# pwmchip1 is the one connected to fan header. | |
# To use it you'll have to export pwm channel first: | |
cd /sys/class/pwm/pwmchip1 | |
echo 0 > export | |
# That should create channel dir "pwm0". In there | |
# you'll have to set period and duty cycle, and then | |
# enable the pwm. | |
cd pwm0 |
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
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x1b4b", ATTR{device}=="0x9230", RUN+="/bin/bash -c 'echo %k > /sys/bus/pci/drivers/ahci/bind'" |
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
#!/usr/bin/env bash | |
# From https://github.com/eendroroy/bin_scripts/blob/master/public/print_colors | |
# with Do What The F*ck You Want To Public License | |
echo -e "|039| \033[39mDefault \033[m |049| \033[49mDefault \033[m |037| \033[37mLight gray \033[m |047| \033[47mLight gray \033[m" | |
echo -e "|030| \033[30mBlack \033[m |040| \033[40mBlack \033[m |090| \033[90mDark gray \033[m |100| \033[100mDark gray \033[m" | |
echo -e "|031| \033[31mRed \033[m |041| \033[41mRed \033[m |091| \033[91mLight red \033[m |101| \033[101mLight red \033[m" | |
echo -e "|032| \033[32mGreen \033[m |042| \033[42mGreen \033[m |092| \033[92mLight green \033[m |102| \033[102mLight green \033[m" | |
echo -e "|033| \033[33mYellow \033[m |043| \033[43mYellow \033[m |093| \033[93mLight yellow \033[m |103| \033[103mLight yellow \033[m" | |
echo -e "|034| \033[34mBlue \033[m |044| \033[44mBlue \033[m |094| \033[94mLight blue \033[m |104| \033[104mLight blue \033[m" |
OlderNewer