Skip to content

Commit

Permalink
V1.25
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRemote committed Sep 27, 2022
1 parent 2fa95ad commit 1901b44
Show file tree
Hide file tree
Showing 22 changed files with 5,941 additions and 119 deletions.
9 changes: 9 additions & 0 deletions OrangePiRDA/external/common/rootfs/100-fs-warning
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

BOARD=`hostname`
echo "\033[31m\033[1m***********************************************"
echo "Welcome to ${BOARD}:"
echo "At first! please configure your ${BOARD}:"
echo "sudo orangepi-config"
echo "Have good trip on ${BOARD}!"
echo "***********************************************\033[22m\033[37m"
77 changes: 77 additions & 0 deletions OrangePiRDA/external/common/rootfs/cpu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/bin/sh

Usage(){
printf "\033[32mUsage: "
printf "\t$0 [-h] [-f]... [-s <frequencies> <cpu number>]\n
Arguments:
-h Print Help (this message)
-f CPU0~3 supported frequencies
-s Set the maximum frequency of CPU0~3
e.g: -s 1008000 1 (Set the maximum frequency of cpu1 to 1008000)
-c View the current frequency of cpu0~3
-t View the current CPU temperature
-l List CPU ID
-i Viewing cpu statistics
\033[0m"
}

while getopts ":hfFs:ctli" varname
do
case $varname in
h)
Usage
exit
;;

f)
echo "CPU0~3 supported frequencies: "
echo " "
echo "CPU[0]: "
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
echo "CPU[1]: "
cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies
echo "CPU[2]: "
cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies
echo "CPU[3]: "
cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies
exit
;;

s)
echo "Set the maximum frequency of CPU$3: $OPTARG"
echo $OPTARG > /sys/devices/system/cpu/cpu$3/cpufreq/scaling_max_freq
exit
;;

c)
echo "The current frequency of cpu0~3: "
cat /sys/devices/system/cpu/cpu[0123]/cpufreq/cpuinfo_cur_freq
exit
;;

t)
echo "The current CPU temperature: "
cat /sys/class/thermal/thermal_zone0/temp
exit
;;

l)
echo "List CPU ID: "
cat /sys/class/sunxi_info/sys_info | grep "sunxi_chipid"
exit
;;

i)
echo "Viewing cpu statistics: "
lscpu
exit
;;

*)
echo "\033[31mUnknow Option, Please use 'cpu_sh -h' for more commands.\033[0m"
exit 1
;;
esac
done

Usage
9 changes: 9 additions & 0 deletions OrangePiRDA/external/common/rootfs/profile_for_root
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi

tty -s && mesg n || true
80 changes: 80 additions & 0 deletions OrangePiRDA/external/common/rootfs/sshd_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

PubkeyAuthentication yes
# AuthorizedKeysFile %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
22 changes: 11 additions & 11 deletions OrangePiRDA/kernel/arch/arm/configs/i96_linux_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CONFIG_BUILDTIME_EXTABLE_SORT=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION="-legendary-v1.25"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
Expand Down Expand Up @@ -94,7 +94,7 @@ CONFIG_IKCONFIG=m
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=16
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_DEBUG=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CPUSETS=y
Expand Down Expand Up @@ -888,7 +888,7 @@ CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
CONFIG_CFG80211_DEVELOPER_WARNINGS=y
CONFIG_CFG80211_REG_DEBUG=y
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
# CONFIG_CFG80211_DEFAULT_PS is not set
Expand All @@ -907,8 +907,8 @@ CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
# CONFIG_MAC80211_LEDS is not set
CONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
CONFIG_MAC80211_MESSAGE_TRACING=y
CONFIG_MAC80211_DEBUG_MENU=y
# CONFIG_WIMAX is not set
CONFIG_RFKILL=y
CONFIG_RFKILL_PM=y
Expand Down Expand Up @@ -1308,7 +1308,7 @@ CONFIG_RDACBDEV=y
CONFIG_RDAWFMAC=m
CONFIG_RDAWFMAC_SDIO=y
# CONFIG_RDAWFMAC_USB is not set
# CONFIG_RDAWDBG is not set
CONFIG_RDAWDBG=y

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
Expand Down Expand Up @@ -2470,9 +2470,9 @@ CONFIG_USB_PHY=y
# CONFIG_USB_ULPI is not set
CONFIG_USB_RDA_PHY=y
CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG is not set
CONFIG_USB_GADGET_DEBUG=y
# CONFIG_USB_GADGET_DEBUG_FILES is not set
# CONFIG_USB_GADGET_DEBUG_FS is not set
CONFIG_USB_GADGET_DEBUG_FS=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2

Expand Down Expand Up @@ -2837,7 +2837,7 @@ CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
CONFIG_TMPFS_POSIX_ACL=y
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_CONFIGFS_FS=y
Expand Down Expand Up @@ -2982,7 +2982,7 @@ CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_PROVE_RCU_DELAY is not set
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_TRACE is not set
CONFIG_RCU_TRACE=y
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
Expand All @@ -2997,7 +2997,7 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not set
CONFIG_FTRACE=y
# CONFIG_RBTREE_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_DYNAMIC_DEBUG is not set
Expand Down
Loading

0 comments on commit 1901b44

Please sign in to comment.