CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/config/sources/families/rockchip64.conf
Views: 3960
1
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"
2
3
BOOTPATCHDIR="u-boot-rockchip64-mainline"
4
5
family_tweaks_bsp()
6
{
7
8
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
9
10
install -m 755 $EXTER/packages/blobs/rockchip/set_r1plus_lan_mac.sh $destination/usr/bin/
11
install -m 755 $EXTER/packages/blobs/rockchip/pwm-fan.sh $destination/usr/bin/
12
fi
13
}
14
15
family_tweaks_s()
16
{
17
18
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
19
20
cat <<-EOF > "${SDCARD}"/etc/rc.local
21
#!/bin/sh -e
22
#
23
# rc.local
24
#
25
# This script is executed at the end of each multiuser runlevel.
26
# Make sure that the script will "exit 0" on success or any other
27
# value on error.
28
#
29
# In order to enable or disable this script just change the execution
30
# bits.
31
#
32
# By default this script does nothing.
33
34
/usr/bin/set_r1plus_lan_mac.sh
35
36
exit 0
37
EOF
38
39
chmod +x "${SDCARD}"/etc/rc.local
40
fi
41
}
42
43
prepare_boot_configuration
44
45