Compare commits

43 Commits
Author SHA1 Message Date
wt a7767f2901 updated busybox 1.37.0 for orangepi zero 2w 2026-03-16 16:11:35 +07:00
wt dadf14de70 added iana-etc 2026-03-16 15:30:35 +07:00
wt 4c44eeae50 added mtd-utils 2026-03-16 02:44:25 +07:00
wt a73a1715dd updated kernel.sh lrzsz.sh 2026-03-12 20:12:23 +07:00
wt d065fa6e04 update all scripts 2026-03-06 18:01:24 +07:00
wt c9bb397d65 Update Makefile 2026-03-06 11:46:03 +07:00
wt 29247e48b6 up 2026-03-06 11:38:35 +07:00
wt 81ffa09e4e up 2026-03-05 17:18:16 +07:00
wt ebfecd6f94 delete all tar -v 2026-03-05 16:46:11 +07:00
wt 891c2fe3ed Update nginx.sh 2026-03-01 21:11:30 +07:00
wt 8a72f0c048 Update nginx.sh 2026-03-01 21:04:02 +07:00
wt 6a0c6c50f3 added duf and nginx and some refactor 2026-02-28 00:55:00 +07:00
wt 5da3185a36 Update cleanup_rootfs.sh 2026-02-26 13:43:41 +07:00
wt 446ae02775 update 2026-02-26 13:40:18 +07:00
wt ac7cb03d8e updated orangepi_zero2w_support 2026-02-26 07:04:52 +07:00
wt 0d7b9901b8 updated rootfs_overlay for orangepi_pc 2026-02-26 05:25:11 +07:00
wt fba6a776ac added tiny c compiler and cgroups for orangepi pc 2026-02-19 18:33:22 +07:00
wt 5ce3d98d83 updated rootfs_overlay for orangepi_pc 2026-02-19 12:26:49 +07:00
wt 995b0b65b5 updated x86_64_uclibc uclibc version 2026-02-19 11:29:29 +07:00
wt 6e69b05c7d updated orangepi_zero_2w uclibc version 2026-02-19 10:54:45 +07:00
wt d3a3f2c4f9 updated orangepi_pc uclibc version 2026-02-19 10:45:37 +07:00
wt 7a06c25c47 updated support for orangepi_zero_2w 2026-02-03 19:13:12 +07:00
wt e9048b8970 Update orangepi_zero2w_usb_mtd_defconfig_uboot-2025.10-rc4.config 2026-02-03 02:18:06 +07:00
wt e4412dde0f updated dts and busybox initrd config for orangepizero2w and updated initramfs.sh script 2026-02-03 01:23:52 +07:00
wt 0379b1dbe0 added lrzsz and updated finit_init download paths 2026-02-01 05:36:20 +07:00
wt f0cad643d4 Create sun50i-h618-orangepi-zero2w.dts 2026-01-31 23:51:32 +07:00
wt 340bc1d9b8 updated rootfs_overlay for orangepi_zero_2w 2025-12-07 20:49:27 +07:00
wt ff773460af added wifi support for orangepi_zero_2w 2025-12-07 19:16:47 +07:00
wt 1cbe01022c Merge branch 'develop' of ssh://gitea.home.com:2222/TolaMironcenko/SimpleLinux into develop 2025-10-07 15:21:30 +07:00
wt 1adad88039 added lm_sensors package 2025-10-07 15:20:28 +07:00
wt 0ae6f3ac68 updated orangepi_zero_2w 2025-10-04 20:40:22 +07:00
wt f6741325da update support for orangepi_zero_2w 2025-10-03 19:46:56 +07:00
wt 3a39d99661 updated files and added busybox vars 2025-10-03 12:42:22 +07:00
wt 99e2da836f added tty2-3-4 2025-10-02 23:11:02 +07:00
wt 835880e086 updated support for orangepi_zero_2w 2025-10-02 19:58:46 +07:00
wt fd7bf2b917 udated PMBUILD for libsqlite3 2025-09-29 15:50:22 +07:00
wt 8aee6c2e9d added PMBUILD fpr libsqlite3 2025-09-27 22:11:35 +07:00
wt 58369014d6 Update uboot.sh bump uboot version to 2025.07 2025-09-25 19:56:10 +07:00
wt b19a8c4ff6 updated orangepi_zero_2w_defconfig and added uboot-config 2025-09-14 14:47:28 +07:00
wt 029f2cd006 updated extlinux_usable.conf and delete kernel directory 2025-09-03 09:34:21 +07:00
wt 50f3a606ac updated kernel 6.1.91 config for x86_64_uclibc and added iptables.conf sysctl.conf for finit 2025-09-02 14:29:23 +07:00
wt bf4e87d7fd updated openssl and added libsqlite3 2025-09-01 14:25:15 +07:00
wt 178dea9592 some update 2025-08-28 20:07:44 +07:00
142 changed files with 26922 additions and 11636 deletions
+21 -11
View File
@@ -10,12 +10,12 @@ download:
./scripts/build_image.sh download
clean:
./scripts/clean.sh
@./scripts/clean.sh
distclean:
./scripts/clean.sh
if [ -d downloads ]; then \
rm -rv downloads; \
@./scripts/clean.sh
@if [ -d downloads ]; then \
rm -r downloads; \
fi
dropbear:
@@ -42,11 +42,21 @@ ko8821au:
sdroot_usable:
./scripts/build_image.sh sdroot_usable
orangepi_pc_defconfig:
cp -v configs/orangepi_pc_defconfig scripts/config.sh
%_defconfig:
@cp -v configs/$@ scripts/config.sh
orangepi_zero_2w_defconfig:
cp -v configs/orangepi_zero_2w_defconfig scripts/config.sh
x86_64_uclibc_defconfig:
cp -v configs/x86_64_uclibc_defconfig scripts/config.sh
list-defconfigs:
@first=true; \
for defconfig in configs/*_defconfig; do \
[ -f "$${defconfig}" ] || continue; \
if $${first}; then \
if [ "$(2)" ]; then \
printf 'External configs in "$(call qstrip,$(2))":\n'; \
else \
printf "Built-in configs:\n"; \
fi; \
first=false; \
fi; \
defconfig="$${defconfig##*/}"; \
printf " %-35s - Build for %s\n" "$${defconfig}" "$${defconfig%_defconfig}"; \
done
+28 -13
View File
@@ -11,15 +11,15 @@ CONFIG_AS_VERSION=24100
CONFIG_LD_IS_BFD=y
CONFIG_LD_VERSION=24100
CONFIG_LLD_VERSION=0
CONFIG_RUSTC_VERSION=108200
CONFIG_RUSTC_LLVM_VERSION=190101
CONFIG_RUSTC_VERSION=109300
CONFIG_RUSTC_LLVM_VERSION=210108
CONFIG_CC_CAN_LINK=y
CONFIG_CC_CAN_LINK_STATIC=y
CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_PAHOLE_VERSION=129
CONFIG_PAHOLE_VERSION=131
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_TABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y
@@ -150,19 +150,29 @@ CONFIG_GCC10_NO_ARRAY_BOUNDS=y
CONFIG_CC_NO_ARRAY_BOUNDS=y
CONFIG_GCC_NO_STRINGOP_OVERFLOW=y
CONFIG_CC_NO_STRINGOP_OVERFLOW=y
CONFIG_SLAB_OBJ_EXT=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
# CONFIG_MEMCG is not set
# CONFIG_BLK_CGROUP is not set
# CONFIG_CGROUP_SCHED is not set
CONFIG_MEMCG=y
# CONFIG_MEMCG_V1 is not set
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_GROUP_SCHED_WEIGHT=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_SCHED_MM_CID=y
# CONFIG_CGROUP_PIDS is not set
# CONFIG_CGROUP_RDMA is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CPUSETS is not set
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CGROUP_CPUACCT is not set
# CONFIG_CGROUP_PERF is not set
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CPUSETS=y
# CONFIG_CPUSETS_V1 is not set
CONFIG_PROC_PID_CPUSET=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_MISC is not set
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_NAMESPACES=y
@@ -675,7 +685,11 @@ CONFIG_BLK_DEV_BSG_COMMON=y
# CONFIG_BLK_DEV_INTEGRITY is not set
CONFIG_BLK_DEV_WRITE_MOUNTED=y
# CONFIG_BLK_DEV_ZONED is not set
# CONFIG_BLK_DEV_THROTTLING is not set
# CONFIG_BLK_WBT is not set
# CONFIG_BLK_CGROUP_IOLATENCY is not set
# CONFIG_BLK_CGROUP_IOCOST is not set
# CONFIG_BLK_CGROUP_IOPRIO is not set
CONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set
# CONFIG_BLK_INLINE_ENCRYPTION is not set
@@ -5896,6 +5910,7 @@ CONFIG_SBITMAP=y
# end of Library routines
CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED=y
CONFIG_UNION_FIND=y
#
# Kernel hacking
@@ -0,0 +1,3 @@
DROPBEAR_PORT=22
DROPBEAR_EXTRA_ARGS="-E -R -B -m -F"
ENABLE_ROOT_LOGIN="yes"
@@ -0,0 +1 @@
service [2345] env:/etc/default/dropbear dropbear $DROPBEAR_EXTRA_ARGS -p$DROPBEAR_PORT -- Dropbear SSH daemon
@@ -0,0 +1,2 @@
# Consoles to start getty on when system is up
tty :%i [12345] /dev/%i noclear nowait
@@ -0,0 +1 @@
service [2345] inetd -f -- Internet super server
@@ -0,0 +1,16 @@
# cat syslogd.conf
# BusyBox syslogd + klogd
# Use <pid/syslogd> as barrier for other system tasks and service that
# rely on modules, firmware, and device nodes to be ready.
# We want syslogd to always run, never be stopped, regardless of runlevel
# so it can send to any remote syslog server the user has set up.
service if:udevd nowarn env:-/etc/default/syslogd <!run/udevadm:5/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
service if:mdev nowarn env:-/etc/default/syslogd <!run/coldplug/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
service if:mdevd nowarn env:-/etc/default/syslogd <!run/coldplug/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
# klogd depends on syslogd, but BusyBox syslogd doesn't create a PID file to sync with
service [S0123456789] <!pid/syslogd> klogd -n -- Kernel log daemon
@@ -0,0 +1,5 @@
# cat telnetd.conf
# Note: telnetd also runs from inetd, see /etc/inetd.conf
#service [2345] <!> :23 telnetd -F -p 23 -- Telnet daemon on port 23
#service [2345] <!> :2323 telnetd -F -p 2323 -- Telnet daemon on port 2323
service [2345] <!> telnetd -F -- Telnet daemon
@@ -0,0 +1 @@
../available/dropbear.conf
@@ -0,0 +1 @@
../available/getty@.conf
@@ -0,0 +1 @@
../available/getty@.conf
@@ -0,0 +1 @@
../available/inetd.conf
@@ -0,0 +1 @@
../available/syslogd.conf
@@ -0,0 +1 @@
../available/telnetd.conf
@@ -0,0 +1 @@
/dev/mmcblk0p1 / ext4 rw,relatime 0 1
@@ -0,0 +1,17 @@
root:x:0:root
tty:x:5:
disk:x:6:root
kmem:x:9:
floppy:x:11:root
audio:x:18:
cdrom:x:19:
dialout:x:20:root
input:x:23:
tape:x:26:root
video:x:27:root
netdev:x:28:
dnsmasq:x:963:dnsmasq
sshd:x:33:sshd
kvm:x:34:kvm
nobody:x:65534:
gitea:x:1000:
@@ -0,0 +1 @@
orangepi_pc
@@ -0,0 +1 @@
21 stream tcp nowait root /sbin/ftpd /sbin/ftpd -S -A -w /srv/ftp
@@ -0,0 +1,3 @@
Welcome to Simple Linux!
You may change this message by editing /etc/motd.
@@ -0,0 +1,5 @@
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
@@ -0,0 +1,5 @@
root:x:0:0:root:/root:/bin/sh
dnsmasq:x:963:963:dnsmasq daemon:/:/usr/bin/nologin
sshd:x:33:33:SSH daemon:/var/lib/sshd:/bin/sh
nobody:x:65534:65534:Kernel Oerflow User:/:/usr/bin/nologin
gitea:x:1000:1000:Gitea daemon user:/home/gitea:/bin/sh
@@ -0,0 +1,27 @@
#!/bin/sh
#--- import colors ---
. /usr/lib/init/colors.sh
#---------------------
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/.local/bin
export PS1="$BGREEN** \u@\h: \$(date +%d.%m.%Y) \t\n\w \\\$ $RESET"
[ $(id -u) -eq 0 ] && export PS1="$BRED** \u@\h: \$(date +%d.%m.%Y) \t\n\w \\\$ $RESET"
#--- sys ---
alias psa='busybox ps' # show all processes
alias c='clear' # clear terminal screen
alias e='echo' # print in terminal
alias s='source' # source
alias una='uname -a' # system name
alias ifcnf='ifconfig' # ifconfig
alias ipr='ip route' # show routes
alias ipa='ip addr' # show addresses
alias ipl='ip link' # show links
alias ll='ls -lh' # show list files with information
alias la='ls -a'
alias l='ls -alh'
alias df='df -h'
alias free='free -h'
#-----------
@@ -0,0 +1,4 @@
root:F.fHA5x2Q.xNY:19797::::::
dnsmasq:!*:19889::::::
sshd:!:19906:0:99999:7:::
nobody:!*:19889::::::
@@ -0,0 +1,2 @@
/bin/sh
/bin/ash
@@ -0,0 +1,82 @@
#!/bin/sh
#--- reset colors ---
RESET="\033[0m"
#--------------------
#--------- regularcolrs ---------
GREEN="\033[0;32m" #GREEN
BLUE="\033[0;34m" #BLUE
YELLOW="\033[1;33m" #YELLOW
RED="\033[0;31m" #RED
BLACK="\033[0;30m" #BLACK
PURPLE="\033[0;35m" #PURPLE
CYAN="\033[0;36m" #CYAN
WHITE="\033[0;37m" #WHITE
#--------------------------------
#-------- bold ------------------
BBLACK="\033[1;30m" #BLACK
BRED="\033[1;31m" #RED
BGREEN="\033[1;32m" #GREEN
BYELLOW="\033[1;33m" #YELLOW
BBLUE="\033[1;34m" #BLUE
BPURPLE="\033[1;35m" #PURPLE
BCYAN="\033[1;36m" #CYAN
BWHITE="\033[1;37m" #WHITE
#--------------------------------
#-------- Underline -------------
UBLACK="\033[4;30m" #BLACK
URED="\033[4;31m" #RED
UGREEN="\033[4;32m" #GREEN
UYELLOW="\033[4;33m" #YELLOW
UBLUE="\033[4;34m" #BLUE
UPURPLE="\033[4;35m" #PURPLE
UCYAN="\033[4;36m" #CYAN
UWHITE="\033[4;37m" #WHITE
#--------------------------------
#--------- Background -----------
ON_BLACK="\033[40m" #BLACK
ON_RED="\033[41m" #RED
ON_GREEN="\033[42m" #GREEN
ON_YELLOW="\033[43m" #YELLOW
ON_BLUE="\033[44m" #BLUE
ON_PURPLE="\033[45m" #PURPLE
ON_CYAN="\033[46m" #CYAN
ON_WHITE="\033[47m" #WHITE
#--------------------------------
#------ HighIntensity -----------
IBLACK="\033[0;90m" #BLACK
IRED="\033[0;91m" #RED
IGREEN="\033[0;92m" #GREEN
IYELLOW="\033[0;93m" #YELLOW
IBLUE="\033[0;94m" #BLUE
IPURPLE="\033[0;95m" #PURPLE
ICYAN="\033[0;96m" #CYAN
IWHITE="\033[0;97m" #WHITE
#--------------------------------
#------ BoldHighIntensity -------
BIBLACK="\033[1;90m" #BLACK
BIRED="\033[1;91m" #RED
BIGREEN="\033[1;92m" #GREEN
BIYELLOW="\033[1;93m" #YELLOW
BIBLUE="\033[1;94m" #BLUE
BIPURPLE="\033[1;95m" #PURPLE
BICYAN="\033[1;96m" #CYAN
BIWHITE="\033[1;97m" #WHITE
#--------------------------------
#--- HighIntensitybackgrounds ---
ON_IBLACK="\033[0;100m" #BLACK
ON_IRED="\033[0;101m" #RED
ON_IGREEN="\033[0;102m" #GREEN
ON_IYELLOW="\033[0;103m" #YELLOW
ON_IBLUE="\033[0;104m" #BLUE
ON_IPURPLE="\033[0;105m" #PURPLE
ON_ICYAN="\033[0;106m" #CYAN
ON_IWHITE="\033[0;107m" #WHITE
#--------------------------------
@@ -0,0 +1,65 @@
#!/bin/sh
[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
RESOLV_CONF="/etc/resolv.conf"
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
# return 0 if root is mounted on a network filesystem
root_is_nfs() {
grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts
}
have_bin_ip=0
if [ -x /usr/bin/ip ]; then
have_bin_ip=1
fi
case "$1" in
deconfig)
if ! root_is_nfs ; then
if [ $have_bin_ip -eq 1 ]; then
ip addr flush dev $interface
ip link set dev $interface up
else
/usr/bin/ifconfig $interface 0.0.0.0
fi
fi
;;
renew|bound)
if [ $have_bin_ip -eq 1 ]; then
ip addr add dev $interface local $ip/$mask $BROADCAST
else
/usr/bin/ifconfig $interface $ip $BROADCAST $NETMASK
fi
if [ -n "$router" ] ; then
if ! root_is_nfs ; then
if [ $have_bin_ip -eq 1 ]; then
while ip route del default 2>/dev/null ; do
:
done
else
while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do
:
done
fi
fi
metric=0
for i in $router ; do
if [ $have_bin_ip -eq 1 ]; then
ip route add default via $i metric $((metric++))
else
route add default gw $i dev $interface metric $((metric++)) 2>/dev/null
fi
done
fi
echo -n > $RESOLV_CONF
[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
for i in $dns ; do
echo adding dns $i
echo nameserver $i >> $RESOLV_CONF
done
;;
esac
exit 0
@@ -0,0 +1,15 @@
--- a/usr/include/bits/byteswap-common.h 2026-02-26 13:00:22.122847479 +0700
+++ b/usr/include/bits/byteswap-common.h 2026-02-26 13:13:45.742263491 +0700
@@ -102,11 +102,7 @@
| (((x) & 0x000000000000ff00ull) << 40) \
| (((x) & 0x00000000000000ffull) << 56))
-static __inline __uint64_t
-__bswap_64 (__uint64_t __bsx)
-{
- return __bswap_constant_64 (__bsx);
-}
+#define __bswap_64 (__uint64_t __bsx) return __bswap_constant_64 (__bsx)
#endif
#endif /* _BITS_BYTESWAP_H */
+2 -1
View File
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
# uClibc-ng 1.0.50 C Library Configuration
# uClibc-ng 1.0.56 C Library Configuration
#
# TARGET_aarch64 is not set
# TARGET_alpha is not set
@@ -59,6 +59,7 @@ UCLIBC_HAS_FLOATS=y
UCLIBC_HAS_FPU=y
DO_C99_MATH=y
DO_XSI_MATH=y
UCLIBC_HAS_FENV=y
UCLIBC_HAS_LONG_DOUBLE_MATH=y
KERNEL_HEADERS=
HAVE_DOT_CONFIG=y
+23
View File
@@ -0,0 +1,23 @@
CONFIG_BACKEND=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_WIRED=y
CONFIG_EAP_GTC=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TLS=y
CONFIG_EAP_TTLS=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_IPV6=y
CONFIG_LIBNL32=y
CONFIG_PEERKEY=y
CONFIG_PKCS12=y
CONFIG_SMARTCARD=y
CONFIG_WPS=y
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,20 @@
awk
blkid
cat
fdisk
find
findfs
grep
hdparm
ls
mkdir
mount
mountpoint
pivot_root
printf
sed
sh
sleep
switch_root
umount
vi
@@ -0,0 +1,398 @@
[
[[
acpid
add-shell
addgroup
adduser
adjtimex
ar
arch
arp
arping
ascii
ash
awk
base32
base64
basename
bbconfig
bc
beep
blkdiscard
blkid
blockdev
brctl
bunzip2
bzcat
bzip2
cal
cat
chat
chattr
chgrp
chmod
chown
chpasswd
chroot
chrt
chvt
cksum
clear
cmp
comm
conspy
cp
cpio
crc32
crond
crontab
cryptpw
cttyhack
cut
date
dc
dd
deallocvt
delgroup
deluser
depmod
devfsd
devmem
df
dhcprelay
diff
dirname
dmesg
dnsd
dnsdomainname
dos2unix
dpkg
dpkg-deb
du
dumpkmap
dumpleases
echo
ed
egrep
eject
env
ether-wake
expand
expr
factor
fakeidentd
fallocate
false
fatattr
fbset
fbsplash
fdflush
fdformat
fdisk
fgconsole
fgrep
find
findfs
flash_eraseall
flash_lock
flash_unlock
flashcp
flock
fold
free
freeramdisk
fsck
fsck.minix
fsfreeze
fstrim
fsync
ftpd
ftpget
ftpput
fuser
getfattr
getopt
getty
grep
groups
gunzip
gzip
hd
hdparm
head
hexdump
hexedit
hostid
hostname
httpd
hush
hwclock
i2cdetect
i2cdump
i2cget
i2cset
i2ctransfer
id
ifconfig
ifdown
ifenslave
ifplugd
ifup
inetd
inotifyd
insmod
install
ionice
iostat
ip
ipaddr
ipcalc
ipcrm
ipcs
iplink
ipneigh
iproute
iprule
iptunnel
kbd_mode
kill
killall
killall5
klogd
last
less
link
linux32
linux64
ln
loadfont
loadkmap
logger
login
logname
logread
losetup
lpd
lpq
lpr
ls
lsattr
lsmod
lsof
lspci
lsscsi
lsusb
lzcat
lzma
lzop
lzopcat
makedevs
makemime
man
md5sum
mdev
mesg
microcom
mim
mkdir
mkdosfs
mke2fs
mkfifo
mkfs.ext2
mkfs.minix
mkfs.reiser
mkfs.vfat
mknod
mkpasswd
mkswap
mktemp
modinfo
modprobe
more
mount
mountpoint
mpstat
mt
mv
nameif
nanddump
nandwrite
nbd-client
nc
netcat
netstat
nice
nl
nmeter
nohup
nologin
nproc
nsenter
nslookup
ntpd
od
openvt
partprobe
passwd
paste
patch
pgrep
pidof
ping
ping6
pipe_progress
pivot_root
pkill
pmap
popmaildir
powertop
printenv
printf
ps
pscan
pstree
pwd
pwdx
raidautorun
rdate
rdev
readahead
readlink
readprofile
realpath
reformime
remove-shell
renice
reset
resize
rev
rfkill
rm
rmdir
rmmod
route
rpm
rpm2cpio
rtcwake
run-parts
runlevel
rx
script
scriptreplay
sed
seedrng
sendmail
seq
setarch
setconsole
setfattr
setfont
setkeycodes
setlogcons
setpriv
setserial
setsid
sh
sha1sum
sha256sum
sha3sum
sha512sum
showkey
shred
shuf
slattach
sleep
smemcap
sort
split
ssl_client
start-stop-daemon
stat
strings
stty
su
sulogin
sum
swapoff
swapon
switch_root
sync
sysctl
syslogd
tac
tail
tar
taskset
tcpsvd
tee
telnet
telnetd
test
tftp
tftpd
time
timeout
top
touch
tr
traceroute
traceroute6
tree
true
truncate
ts
tsort
tty
ttysize
tunctl
tune2fs
ubiattach
ubidetach
ubimkvol
ubirename
ubirmvol
ubirsvol
ubiupdatevol
udhcpc
udhcpc6
udhcpd
udpsvd
uevent
umount
uname
uncompress
unexpand
uniq
unix2dos
unlink
unlzma
unlzop
unshare
unxz
unzip
uptime
users
usleep
uudecode
uuencode
vconfig
vi
vlock
volname
w
wall
watch
watchdog
wc
wget
which
who
whoami
whois
xargs
xxd
xz
xzcat
yes
zcat
zcip
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,3 @@
DROPBEAR_PORT=22
DROPBEAR_EXTRA_ARGS="-E -R -B -m -F"
ENABLE_ROOT_LOGIN="yes"
@@ -0,0 +1 @@
service [2345] env:/etc/default/dropbear dropbear $DROPBEAR_EXTRA_ARGS -p$DROPBEAR_PORT -- Dropbear SSH daemon
@@ -0,0 +1,2 @@
# Consoles to start getty on when system is up
tty :%i [12345] /dev/%i noclear nowait
@@ -0,0 +1 @@
service [2345] inetd -f -- Internet super server
@@ -0,0 +1,16 @@
# cat syslogd.conf
# BusyBox syslogd + klogd
# Use <pid/syslogd> as barrier for other system tasks and service that
# rely on modules, firmware, and device nodes to be ready.
# We want syslogd to always run, never be stopped, regardless of runlevel
# so it can send to any remote syslog server the user has set up.
service if:udevd nowarn env:-/etc/default/syslogd <!run/udevadm:5/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
service if:mdev nowarn env:-/etc/default/syslogd <!run/coldplug/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
service if:mdevd nowarn env:-/etc/default/syslogd <!run/coldplug/success> \
[S0123456789] syslogd -n $SYSLOGD_ARGS -- System log daemon
# klogd depends on syslogd, but BusyBox syslogd doesn't create a PID file to sync with
service [S0123456789] <!pid/syslogd> klogd -n -- Kernel log daemon
@@ -0,0 +1,5 @@
# cat telnetd.conf
# Note: telnetd also runs from inetd, see /etc/inetd.conf
#service [2345] <!> :23 telnetd -F -p 23 -- Telnet daemon on port 23
#service [2345] <!> :2323 telnetd -F -p 2323 -- Telnet daemon on port 2323
service [2345] <!> telnetd -F -- Telnet daemon
@@ -0,0 +1,2 @@
# Запуск DHCP-клиента после поднятия интерфейса wlan0
service :%i <net/%i/up> /usr/bin/udhcpc -R -n -f -p /var/run/udhcpc.%i.pid -i %i -- DHCP Client
@@ -0,0 +1,2 @@
# Запуск wpa_supplicant для интерфейса wlan0 при загрузке системы
service :%i /usr/bin/wpa_supplicant -Dnl80211 -i %i -c /etc/wpa_supplicant.conf -- WPA Supplicant
@@ -0,0 +1 @@
../available/dropbear.conf
@@ -0,0 +1 @@
../available/getty@.conf
@@ -0,0 +1 @@
../available/getty@.conf
@@ -0,0 +1 @@
../available/inetd.conf
@@ -0,0 +1 @@
../available/syslogd.conf
@@ -0,0 +1 @@
../available/telnetd.conf
@@ -0,0 +1 @@
../available/udhcpc@.conf
@@ -0,0 +1 @@
../available/wpa_supplicant@.conf
@@ -0,0 +1 @@
/dev/mmcblk0p1 / ext4 rw,relatime 0 1
@@ -0,0 +1,17 @@
root:x:0:root
tty:x:5:
disk:x:6:root
kmem:x:9:
floppy:x:11:root
audio:x:18:
cdrom:x:19:
dialout:x:20:root
input:x:23:
tape:x:26:root
video:x:27:root
netdev:x:28:
dnsmasq:x:963:dnsmasq
sshd:x:33:sshd
kvm:x:34:kvm
nobody:x:65534:
gitea:x:1000:
@@ -0,0 +1 @@
orangepi_zero_2w
@@ -0,0 +1 @@
21 stream tcp nowait root /sbin/ftpd /sbin/ftpd -S -A -w /srv/ftp
@@ -0,0 +1,6 @@
uwe5622_bsp_sdio
sprdwl_ng
sprdbt_tty
g_serial
sunxi_cedrus
sunxi_cir
@@ -0,0 +1,3 @@
Welcome to Simple Linux!
You may change this message by editing /etc/motd.
@@ -0,0 +1,2 @@
auto lo
iface lo inet loopback
@@ -0,0 +1,5 @@
root:x:0:0:root:/root:/bin/sh
dnsmasq:x:963:963:dnsmasq daemon:/:/usr/bin/nologin
sshd:x:33:33:SSH daemon:/var/lib/sshd:/bin/sh
nobody:x:65534:65534:Kernel Oerflow User:/:/usr/bin/nologin
gitea:x:1000:1000:Gitea daemon user:/home/gitea:/bin/sh
@@ -0,0 +1,27 @@
#!/bin/sh
#--- import colors ---
. /usr/lib/init/colors.sh
#---------------------
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/.local/bin
export PS1="$BGREEN** \u@\h: \$(date +%d.%m.%Y) \t\n\w \\\$ $RESET"
[ $(id -u) -eq 0 ] && export PS1="$BRED** \u@\h: \$(date +%d.%m.%Y) \t\n\w \\\$ $RESET"
#--- sys ---
alias psa='busybox ps' # show all processes
alias c='clear' # clear terminal screen
alias e='echo' # print in terminal
alias s='source' # source
alias una='uname -a' # system name
alias ifcnf='ifconfig' # ifconfig
alias ipr='ip route' # show routes
alias ipa='ip addr' # show addresses
alias ipl='ip link' # show links
alias ll='ls -lh' # show list files with information
alias la='ls -a'
alias l='ls -alh'
alias df='df -h'
alias free='free -h'
#-----------
@@ -0,0 +1,4 @@
root:F.fHA5x2Q.xNY:19797::::::
dnsmasq:!*:19889::::::
sshd:!:19906:0:99999:7:::
nobody:!*:19889::::::
@@ -0,0 +1,2 @@
/bin/sh
/bin/ash
@@ -0,0 +1,7 @@
ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={
ssid="Worlt_5G"
psk="Simba28082020"
}
@@ -0,0 +1,177 @@
[Section 1: Version]
Major = 2
Minor = 2
[Section 2: Board Config]
Calib_Bypass = 11758
TxChain_Mask = 2
RxChain_Mask = 2
[Section 3: Board Config TPC]
DPD_LUT_idx = 0x33,0x33,0x0,0x11,0x22,0x33,0x33,0x33
TPC_Goal_Chain0 = 0,0,0,0,0,0,0,0
TPC_Goal_Chain1 = 159,167,162,152,159,167,162,152
[Section 4: TPC-LUT]
Chain0_LUT_0 = 6,0,40,0
Chain0_LUT_1 = 6,1,24,0
Chain0_LUT_2 = 6,2,8,0
Chain0_LUT_3 = 10,2,0,0
Chain0_LUT_4 = 14,2,0,0
Chain0_LUT_5 = 18,2,0,0
Chain0_LUT_6 = 22,2,0,0
Chain0_LUT_7 = 26,2,0,0
Chain1_LUT_0 = 6,0,40,0
Chain1_LUT_1 = 6,1,24,0
Chain1_LUT_2 = 6,2,8,0
Chain1_LUT_3 = 10,2,0,0
Chain1_LUT_4 = 14,2,0,0
Chain1_LUT_5 = 18,2,0,0
Chain1_LUT_6 = 22,2,0,0
Chain1_LUT_7 = 26,2,0,0
[Section 5: Board Config Frequency Compensation]
2G_Channel_Chain0 = 6,6,6,6,7,7,7,7,7,7,7,7,7,7
2G_Channel_Chain1 = 6,6,6,6,7,7,7,7,7,7,7,7,7,7
5G_Channel_Chain0 = 11,11,11,11,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,9,9,9,9,9
5G_Channel_Chain1 = 11,11,11,11,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,9,9,9,9,9
[Section 6: Rate To Power with BW 20M]
11b_Power = 20,20,20,20
11ag_Power = 28,32,36,44,28,32,36,48
11n_Power = 34,38,38,40,40,44,44,48,32,36,36,40,40,44,44,54,48
11ac_Power = 32,36,36,40,40,44,44,48,50,66,32,36,36,40,40,44,44,48,50,66
[Section 7: Power Backoff]
Green_WIFI_offset = 0
HT40_Power_offset = 0
VHT40_Power_offset = 0
VHT80_Power_offset = 0
SAR_Power_offset = 0
Mean_Power_offset = 36
[Section 8: Reg Domain]
reg_domain1 = 0x00000001
reg_domain2 = 0x00000002
[Section 9: Band Edge Power offset (MKK, FCC, ETSI)]
BW20M = 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41
BW40M = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21
BW80M = 6,5,4,3,2,1
[Section 10: TX Scale]
Chain0_1 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
Chain1_1 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
Chain0_2 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17
Chain1_2 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17
Chain0_3 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18
Chain1_3 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18
Chain0_4 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19
Chain1_4 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19
Chain0_5 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,20
Chain1_5 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,20
Chain0_6 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,21
Chain1_6 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,21
Chain0_7 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,22
Chain1_7 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,22
Chain0_8 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,23
Chain1_8 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,23
Chain0_9 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,24
Chain1_9 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,24
Chain0_10 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,25
Chain1_10 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,25
Chain0_11 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,26
Chain1_11 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,26
Chain0_12 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,27
Chain1_12 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,27
Chain0_13 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28
Chain1_13 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28
Chain0_14 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,29
Chain1_14 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,29
Chain0_36 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,30
Chain1_36 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,30
Chain0_40 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,31
Chain1_40 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,31
Chain0_44 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,32
Chain1_44 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,32
Chain0_48 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,33
Chain1_48 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,33
Chain0_52 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,34
Chain1_52 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,34
Chain0_56 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,35
Chain1_56 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,35
Chain0_60 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,36
Chain1_60 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,36
Chain0_64 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,37
Chain1_64 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,37
Chain0_100 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,38
Chain1_100 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,38
Chain0_104 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,39
Chain1_104 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,39
Chain0_108 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,40
Chain1_108 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,40
Chain0_112 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,41
Chain1_112 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,41
Chain0_116 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,42
Chain1_116 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,42
Chain0_120 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,43
Chain1_120 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,43
Chain0_124 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,44
Chain1_124 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,44
Chain0_128 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,45
Chain1_128 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,45
Chain0_132 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,46
Chain1_132 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,46
Chain0_136 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,47
Chain1_136 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,47
Chain0_140 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,48
Chain1_140 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,48
Chain0_144 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,49
Chain1_144 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,49
Chain0_149 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,50
Chain1_149 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,50
Chain0_153 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,51
Chain1_153 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,51
Chain0_157 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,52
Chain1_157 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,52
Chain0_161 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,53
Chain1_161 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,53
Chain0_165 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,54
Chain1_165 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,54
[Section 11: misc]
DFS_switch = 1
power_save_switch = 2
ex-Fem_and_ex-LNA_param_setup = 3
rssi_report_diff = 4
[Section 12: debug reg]
address = 0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0x10,0x11,0x12,0x13,0x14,0x15,0x16
value = 0x16,0x17,0x18,0x19,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x30,0x31
[Section 13: coex_config]
bt_performance_cfg0 = 0x01010101
bt_performance_cfg1 = 0x01000000
wifi_performance_cfg0 = 0x01050A01
wifi_performance_cfg2 = 0x00000000
strategy_cfg0 = 0x01010100
strategy_cfg1 = 0x03000000
strategy_cfg2 = 0x08020000
compatibility_cfg0 = 0x04040000
compatibility_cfg1 = 0x0
ant_cfg0 = 0x0
ant_cfg1 = 0x0
isolation_cfg0 = 0x0505
isolation_cfg1 = 0x0
reserved_cfg0 = 0x0
reserved_cfg1 = 0x0
reserved_cfg2 = 0x0
reserved_cfg3 = 0x0
reserved_cfg4 = 0x0
reserved_cfg5 = 0x0
reserved_cfg6 = 0x0
reserved_cfg7 = 0x0
[Section 14: rf_tlv_config]
rf_config = 0xAA,0x55,0x00,0xFF,0x8,0xA,0x0,0x5,0x0,0x0,0x0,0x0,0x0,0x0
@@ -0,0 +1,82 @@
#!/bin/sh
#--- reset colors ---
RESET="\033[0m"
#--------------------
#--------- regularcolrs ---------
GREEN="\033[0;32m" #GREEN
BLUE="\033[0;34m" #BLUE
YELLOW="\033[1;33m" #YELLOW
RED="\033[0;31m" #RED
BLACK="\033[0;30m" #BLACK
PURPLE="\033[0;35m" #PURPLE
CYAN="\033[0;36m" #CYAN
WHITE="\033[0;37m" #WHITE
#--------------------------------
#-------- bold ------------------
BBLACK="\033[1;30m" #BLACK
BRED="\033[1;31m" #RED
BGREEN="\033[1;32m" #GREEN
BYELLOW="\033[1;33m" #YELLOW
BBLUE="\033[1;34m" #BLUE
BPURPLE="\033[1;35m" #PURPLE
BCYAN="\033[1;36m" #CYAN
BWHITE="\033[1;37m" #WHITE
#--------------------------------
#-------- Underline -------------
UBLACK="\033[4;30m" #BLACK
URED="\033[4;31m" #RED
UGREEN="\033[4;32m" #GREEN
UYELLOW="\033[4;33m" #YELLOW
UBLUE="\033[4;34m" #BLUE
UPURPLE="\033[4;35m" #PURPLE
UCYAN="\033[4;36m" #CYAN
UWHITE="\033[4;37m" #WHITE
#--------------------------------
#--------- Background -----------
ON_BLACK="\033[40m" #BLACK
ON_RED="\033[41m" #RED
ON_GREEN="\033[42m" #GREEN
ON_YELLOW="\033[43m" #YELLOW
ON_BLUE="\033[44m" #BLUE
ON_PURPLE="\033[45m" #PURPLE
ON_CYAN="\033[46m" #CYAN
ON_WHITE="\033[47m" #WHITE
#--------------------------------
#------ HighIntensity -----------
IBLACK="\033[0;90m" #BLACK
IRED="\033[0;91m" #RED
IGREEN="\033[0;92m" #GREEN
IYELLOW="\033[0;93m" #YELLOW
IBLUE="\033[0;94m" #BLUE
IPURPLE="\033[0;95m" #PURPLE
ICYAN="\033[0;96m" #CYAN
IWHITE="\033[0;97m" #WHITE
#--------------------------------
#------ BoldHighIntensity -------
BIBLACK="\033[1;90m" #BLACK
BIRED="\033[1;91m" #RED
BIGREEN="\033[1;92m" #GREEN
BIYELLOW="\033[1;93m" #YELLOW
BIBLUE="\033[1;94m" #BLUE
BIPURPLE="\033[1;95m" #PURPLE
BICYAN="\033[1;96m" #CYAN
BIWHITE="\033[1;97m" #WHITE
#--------------------------------
#--- HighIntensitybackgrounds ---
ON_IBLACK="\033[0;100m" #BLACK
ON_IRED="\033[0;101m" #RED
ON_IGREEN="\033[0;102m" #GREEN
ON_IYELLOW="\033[0;103m" #YELLOW
ON_IBLUE="\033[0;104m" #BLUE
ON_IPURPLE="\033[0;105m" #PURPLE
ON_ICYAN="\033[0;106m" #CYAN
ON_IWHITE="\033[0;107m" #WHITE
#--------------------------------
@@ -0,0 +1,65 @@
#!/bin/sh
[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
RESOLV_CONF="/etc/resolv.conf"
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
# return 0 if root is mounted on a network filesystem
root_is_nfs() {
grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts
}
have_bin_ip=0
if [ -x /usr/bin/ip ]; then
have_bin_ip=1
fi
case "$1" in
deconfig)
if ! root_is_nfs ; then
if [ $have_bin_ip -eq 1 ]; then
ip addr flush dev $interface
ip link set dev $interface up
else
/usr/bin/ifconfig $interface 0.0.0.0
fi
fi
;;
renew|bound)
if [ $have_bin_ip -eq 1 ]; then
ip addr add dev $interface local $ip/$mask $BROADCAST
else
/usr/bin/ifconfig $interface $ip $BROADCAST $NETMASK
fi
if [ -n "$router" ] ; then
if ! root_is_nfs ; then
if [ $have_bin_ip -eq 1 ]; then
while ip route del default 2>/dev/null ; do
:
done
else
while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do
:
done
fi
fi
metric=0
for i in $router ; do
if [ $have_bin_ip -eq 1 ]; then
ip route add default via $i metric $((metric++))
else
route add default gw $i dev $interface metric $((metric++)) 2>/dev/null
fi
done
fi
echo -n > $RESOLV_CONF
[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
for i in $dns ; do
echo adding dns $i
echo nameserver $i >> $RESOLV_CONF
done
;;
esac
exit 0
+529
View File
@@ -0,0 +1,529 @@
// SPDX-License-Identifier: (GPL-2.0+ or MIT)
/*
* Copyright (C) 2020 Arm Ltd.
*/
/dts-v1/;
#include "sun50i-h616.dtsi"
#include "sun50i-h616-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
model = "OrangePi Zero2 W";
compatible = "xunlong,orangepi-zero2w", "allwinner,sun50i-h616";
aliases {
serial0 = &uart0;
serial2 = &uart2;
serial3 = &uart3;
serial4 = &uart4;
serial5 = &uart5;
ethernet0 = &emac1;
};
chosen {
stdout-path = "serial0:115200n8";
};
connector {
compatible = "hdmi-connector";
type = "d";
port {
hdmi_con_in: endpoint {
remote-endpoint = <&hdmi_out_con>;
};
};
};
leds: leds {
compatible = "gpio-leds";
led-green {
label = "green_led";
gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
linux,default-trigger = "heartbeat";
};
100m_link {
label = "100m_link";
gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
default-state = "off";
};
100m_act {
label = "100m_act";
gpios = <&pio 2 16 GPIO_ACTIVE_HIGH>; /* PC16 */
default-state = "off";
};
};
reg_vcc5v: vcc5v {
/* board wide 5V supply directly from the USB-C socket */
compatible = "regulator-fixed";
regulator-name = "vcc-5v";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
reg_vcc3v3: vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc-3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
reg_vcc33_wifi: vcc33-wifi {
/* Always on 3.3V regulator for WiFi and BT */
compatible = "regulator-fixed";
regulator-name = "vcc33-wifi";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
vin-supply = <&reg_vcc5v>;
};
reg_vcc_wifi_io: vcc-wifi-io {
/* Always on 1.8V/300mA regulator for WiFi and BT IO */
compatible = "regulator-fixed";
regulator-name = "vcc-wifi-io";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
vin-supply = <&reg_vcc33_wifi>;
};
wifi_pwrseq: wifi-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rtc 1>;
clock-names = "osc32k-out";
reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */
post-power-on-delay-ms = <200>;
};
ac200_pwm_clk: ac200_clk {
compatible = "pwm-clock";
#clock-cells = <0>;
// pwm5 period_ns = 500 > 334 for select 24M clock.
pwms = <&pwm 5 500 0>;
clock-frequency = <2000000>;
status = "okay";
};
};
&pwm5 {
// clk_bypass_output = 1 for Clock direct output without frequency division
// so pwm5 output is 24MHz for AC200 & AC300 clock
clk_bypass_output = <0x1>;
status = "okay";
};
&de {
status = "okay";
};
&hdmi {
//hvcc-supply = <&reg_bldo1>;
status = "okay";
};
&hdmi_out {
hdmi_out_con: endpoint {
remote-endpoint = <&hdmi_con_in>;
};
};
&gpu {
status = "okay";
#cooling-cells = <2>;
mali-supply = <&reg_dcdc1>;
};
&mmc0 {
vmmc-supply = <&reg_vcc3v3>;
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
bus-width = <4>;
max-frequency = <50000000>;
status = "okay";
};
&mmc1 {
vmmc-supply = <&reg_vcc33_wifi>;
vqmmc-supply = <&reg_vcc_wifi_io>;
mmc-pwrseq = <&wifi_pwrseq>;
bus-width = <4>;
non-removable;
mmc-ddr-1_8v;
status = "okay";
};
&r_i2c {
status = "okay";
axp313a: pmic@36 {
compatible = "x-powers,axp313a";
reg = <0x36>;
wakeup-source;
interrupt-parent = <&pio>;
interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */
interrupt-controller;
#interrupt-cells = <1>;
regulators{
reg_dcdc1: dcdc1 {
regulator-name = "axp313a-dcdc1";
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1100000>;
regulator-step-delay-us = <25>;
regulator-final-delay-us = <50>;
regulator-always-on;
};
reg_dcdc2: dcdc2 {
regulator-name = "axp313a-dcdc2";
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1200000>;
regulator-step-delay-us = <25>;
regulator-final-delay-us = <50>;
regulator-ramp-delay = <200>;
regulator-always-on;
};
reg_dcdc3: dcdc3 {
regulator-name = "axp313a-dcdc3";
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1100000>;
regulator-step-delay-us = <25>;
regulator-final-delay-us = <50>;
regulator-always-on;
};
reg_aldo1: ldo1 {
regulator-name = "axp313a-aldo1";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-step-delay-us = <25>;
regulator-final-delay-us = <50>;
regulator-always-on;
};
reg_dldo1: ldo2 {
regulator-name = "axp313a-dldo1";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-step-delay-us = <25>;
regulator-final-delay-us = <50>;
regulator-always-on;
};
};
};
};
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_ph_pins>;
status = "okay";
};
&usbotg {
/*
* PHY0 pins are connected to a USB-C socket, but a role switch
* is not implemented: both CC pins are pulled to GND.
* The VBUS pins power the device, so a fixed peripheral mode
* is the best choice.
* The board can be powered via GPIOs, in this case port0 *can*
* act as a host (with a cable/adapter ignoring CC), as VBUS is
* then provided by the GPIOs. Any user of this setup would
* need to adjust the DT accordingly: dr_mode set to "host",
* enabling OHCI0 and EHCI0.
*/
dr_mode = "peripheral";
status = "okay";
};
&usbphy {
status = "okay";
};
&ehci0 {
status = "disabled";
};
&ehci1 {
status = "okay";
};
&ehci2 {
status = "okay";
};
&ehci3 {
status = "okay";
};
&ohci0 {
status = "disabled";
};
&ohci1 {
status = "okay";
};
&ohci2 {
status = "okay";
};
&ohci3 {
status = "okay";
};
&ir {
pinctrl-names = "default";
pinctrl-0 = <&ir_rx_pin>;
status = "okay";
};
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pi_pins>;
status = "disabled";
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pi_pins>;
status = "disabled";
};
&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pi_pins>;
status = "disabled";
};
&i2c3 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c3_pa_pins>;
ac200_x: mfd@10 {
compatible = "x-powers,ac200";
reg = <0x10>;
clocks = <&ac200_pwm_clk>;
// ephy id
nvmem-cells = <&ephy_calibration>;
nvmem-cell-names = "calibration";
ac200_ephy: phy {
compatible = "x-powers,ac200-ephy";
status = "okay";
};
};
};
&i2c4 {
pinctrl-names = "default";
pinctrl-0 = <&i2c4_ph_pins>;
status = "disabled";
};
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pi_pins>;
status = "disabled";
};
&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&uart3_pi_pins>;
status = "disabled";
};
&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&uart4_pi_pins>;
status = "disabled";
};
&uart5 {
pinctrl-names = "default";
pinctrl-0 = <&uart5_ph_pins>;
status = "disabled";
};
&spi0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>, <&spi0_cs0_pin>;
spidev@0 {
status = "disabled";
compatible = "rohm,dh2228fv";
reg = <0>;
spi-max-frequency = <1000000>;
};
flash@0 {
status = "okay";
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
partition@0 {
label = "spl-uboot";
reg = <0x00000000 0x00200000>; // 2MB
};
partition@1 {
label = "uboot-env";
reg = <0x00200000 0x00020000>; // 128KB
};
partition@2 {
label = "rootfs";
reg = <0x00220000 0x00de0000>; // 13.875MB
};
};
};
&spi1 {
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>, <&spi1_cs1_pin>;
spidev@1 {
compatible = "rohm,dh2228fv";
status = "disabled";
reg = <1>;
spi-max-frequency = <1000000>;
};
};
&codec {
allwinner,audio-routing =
"Line Out", "LINEOUT";
status = "okay";
};
&ahub_dam_plat {
status = "okay";
};
&ahub_dam_mach {
status = "okay";
};
&ahub1_plat {
status = "okay";
};
&ahub1_mach {
status = "okay";
};
&cpu0 {
cpu-supply = <&reg_dcdc2>;
status = "okay";
};
&pwm1 {
pinctrl-names = "default";
pinctrl-0 = <&pwm1_pi_pin>;
};
&pwm2 {
pinctrl-names = "default";
pinctrl-0 = <&pwm2_pi_pin>;
};
&pwm3 {
pinctrl-names = "default";
pinctrl-0 = <&pwm3_pi_pin>;
};
&pwm4 {
pinctrl-names = "default";
pinctrl-0 = <&pwm4_pi_pin>;
};
&emac1 {
pinctrl-names = "default";
pinctrl-0 = <&rmii_pins>;
phy-mode = "rmii";
phy-handle = <&rmii_phy>;
phy-supply = <&reg_dldo1>;
allwinner,rx-delay-ps = <3100>;
allwinner,tx-delay-ps = <700>;
status = "okay";
};
&mdio1 {
rmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
&r_lradc {
vref-supply = <&reg_aldo1>;
status = "okay";
button-500 {
label = "KEY_1";
linux,code = <KEY_1>;
channel = <0>;
voltage = <500000>;
};
button-800 {
label = "KEY_ENTER";
linux,code = <KEY_ENTER>;
channel = <0>;
voltage = <800000>;
};
};
&{/thermal-zones/gpu-thermal} {
trips {
/delete-node/ gpu_alert;
/delete-node/ gpu-crit;
gpu_alert: gpu-alert {
temperature = <95000>; // подняли с 85000
hysteresis = <2000>;
type = "passive";
};
};
// Отключаем cooling-maps чтобы избежать warning
cooling-maps {
/delete-node/ map0;
};
};
&{/thermal-zones/cpu-thermal} {
trips {
/delete-node/ cpu_alert;
/delete-node/ cpu-crit;
cpu_alert: cpu-alert {
temperature = <95000>; // подняли с 85000
hysteresis = <2000>;
type = "passive";
};
};
// Отключаем cooling-maps чтобы избежать warning
cooling-maps {
/delete-node/ map0;
};
};
File diff suppressed because it is too large Load Diff
+262
View File
@@ -0,0 +1,262 @@
#
# Automatically generated file; DO NOT EDIT.
# uClibc-ng 1.0.56 C Library Configuration
#
TARGET_aarch64=y
# TARGET_alpha is not set
# TARGET_arc is not set
# TARGET_arm is not set
# TARGET_avr32 is not set
# TARGET_bfin is not set
# TARGET_c6x is not set
# TARGET_cris is not set
# TARGET_csky is not set
# TARGET_frv is not set
# TARGET_h8300 is not set
# TARGET_hppa is not set
# TARGET_i386 is not set
# TARGET_ia64 is not set
# TARGET_kvx is not set
# TARGET_lm32 is not set
# TARGET_m68k is not set
# TARGET_metag is not set
# TARGET_microblaze is not set
# TARGET_mips is not set
# TARGET_nds32 is not set
# TARGET_nios2 is not set
# TARGET_or1k is not set
# TARGET_powerpc is not set
# TARGET_riscv64 is not set
# TARGET_riscv32 is not set
# TARGET_sh is not set
# TARGET_sparc is not set
# TARGET_sparc64 is not set
# TARGET_tile is not set
# TARGET_x86_64 is not set
# TARGET_xtensa is not set
TARGET_LDSO_NAME="ld-uClibc"
TARGET_ARCH_BITS=64
#
# Target Architecture Features and Options
#
TARGET_ARCH="aarch64"
FORCE_OPTIONS_FOR_ARCH=y
CONFIG_AARCH64_PAGE_SIZE_4K=y
# CONFIG_AARCH64_PAGE_SIZE_16K is not set
# CONFIG_AARCH64_PAGE_SIZE_64K is not set
TARGET_SUBARCH=""
#
# Using ELF file format
#
ARCH_ANY_ENDIAN=y
ARCH_LITTLE_ENDIAN=y
# ARCH_WANTS_BIG_ENDIAN is not set
ARCH_WANTS_LITTLE_ENDIAN=y
ARCH_HAS_MMU=y
ARCH_USE_MMU=y
UCLIBC_HAS_FLOATS=y
UCLIBC_HAS_FPU=y
DO_C99_MATH=y
DO_XSI_MATH=y
UCLIBC_HAS_FENV=y
UCLIBC_HAS_LONG_DOUBLE_MATH=y
KERNEL_HEADERS=
HAVE_DOT_CONFIG=y
#
# General Library Settings
#
DOPIC=y
# STATIC_PIE is not set
HAVE_LDSO=y
HAVE_SHARED=y
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
LDSO_LDD_SUPPORT=y
# LDSO_CACHE_SUPPORT is not set
LDSO_PRELOAD_ENV_SUPPORT=y
# LDSO_PRELOAD_FILE_SUPPORT is not set
# LDSO_STANDALONE_SUPPORT is not set
# LDSO_PRELINK_SUPPORT is not set
ARCH_VDSO_SUPPORT=y
# VDSO_SUPPORT is not set
# UCLIBC_STATIC_LDCONFIG is not set
LDSO_RUNPATH=y
LDSO_RUNPATH_OF_EXECUTABLE=y
LDSO_SAFE_RUNPATH=y
LDSO_SEARCH_INTERP_PATH=y
LDSO_LD_LIBRARY_PATH=y
UCLIBC_CTOR_DTOR=y
# LDSO_GNU_HASH_SUPPORT is not set
# HAS_NO_THREADS is not set
UCLIBC_HAS_THREADS_NATIVE=y
UCLIBC_HAS_THREADS=y
UCLIBC_HAS_TLS=y
# PTHREADS_DEBUG_SUPPORT is not set
PTHREADS_STACK_DEFAULT_SIZE=2097152
UCLIBC_HAS_SYSLOG=y
UCLIBC_HAS_LFS=y
# MALLOC is not set
# MALLOC_SIMPLE is not set
MALLOC_STANDARD=y
UCLIBC_DYNAMIC_ATEXIT=y
UCLIBC_HAS_UTMPX=y
UCLIBC_HAS_UTMP=y
UCLIBC_SUSV2_LEGACY=y
UCLIBC_SUSV3_LEGACY=y
# UCLIBC_SUSV3_LEGACY_MACROS is not set
UCLIBC_SUSV4_LEGACY=y
# UCLIBC_STRICT_HEADERS is not set
# UCLIBC_HAS_STUBS is not set
UCLIBC_HAS_SHADOW=y
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
UCLIBC_HAS___PROGNAME=y
UCLIBC_HAS_PTY=y
ASSUME_DEVPTS=y
UNIX98PTY_ONLY=y
UCLIBC_HAS_GETPT=y
UCLIBC_HAS_LIBUTIL=y
UCLIBC_HAS_TM_EXTENSIONS=y
UCLIBC_HAS_TZ_CACHING=y
UCLIBC_HAS_TZ_FILE=y
UCLIBC_HAS_TZ_FILE_READ_MANY=y
UCLIBC_TZ_FILE_PATH="/etc/TZ"
UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y
#
# Advanced Library Settings
#
UCLIBC_PWD_BUFFER_SIZE=256
UCLIBC_GRP_BUFFER_SIZE=256
#
# Support various families of functions
#
UCLIBC_LINUX_SPECIFIC=y
UCLIBC_HAS_GNU_ERROR=y
UCLIBC_BSD_SPECIFIC=y
UCLIBC_HAS_BSD_ERR=y
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y
# UCLIBC_HAS_BSD_B64_NTOP_B64_PTON is not set
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
# UCLIBC_NTP_LEGACY is not set
# UCLIBC_SV4_DEPRECATED is not set
UCLIBC_HAS_REALTIME=y
UCLIBC_HAS_ADVANCED_REALTIME=y
UCLIBC_HAS_EPOLL=y
UCLIBC_HAS_XATTR=y
UCLIBC_HAS_PROFILING=y
UCLIBC_HAS_CRYPT_IMPL=y
UCLIBC_HAS_SHA256_CRYPT_IMPL=y
UCLIBC_HAS_SHA512_CRYPT_IMPL=y
UCLIBC_HAS_CRYPT=y
UCLIBC_HAS_NETWORK_SUPPORT=y
UCLIBC_HAS_SOCKET=y
UCLIBC_HAS_IPV4=y
UCLIBC_HAS_IPV6=y
UCLIBC_USE_NETLINK=y
UCLIBC_SUPPORT_AI_ADDRCONFIG=y
# UCLIBC_HAS_BSD_RES_CLOSE is not set
UCLIBC_HAS_COMPAT_RES_STATE=y
# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
UCLIBC_HAS_RESOLVER_SUPPORT=y
# UCLIBC_DNSRAND_MODE_URANDOM is not set
# UCLIBC_DNSRAND_MODE_CLOCK is not set
UCLIBC_DNSRAND_MODE_PRNGPLUS=y
# UCLIBC_DNSRAND_MODE_SIMPLECOUNTER is not set
#
# String and Stdio Support
#
UCLIBC_HAS_STRING_GENERIC_OPT=y
UCLIBC_HAS_STRING_ARCH_OPT=y
UCLIBC_HAS_STDIO_FUTEXES=y
UCLIBC_HAS_CTYPE_TABLES=y
UCLIBC_HAS_CTYPE_SIGNED=y
# UCLIBC_HAS_CTYPE_UNSAFE is not set
UCLIBC_HAS_CTYPE_CHECKED=y
# UCLIBC_HAS_CTYPE_ENFORCED is not set
UCLIBC_HAS_WCHAR=y
UCLIBC_HAS_LIBICONV=y
UCLIBC_HAS_LIBINTL=y
UCLIBC_HAS_LOCALE=y
UCLIBC_BUILD_MINIMAL_LOCALE=y
# UCLIBC_BUILD_ALL_LOCALE is not set
UCLIBC_BUILD_MINIMAL_LOCALES="en_US"
UCLIBC_HAS_XLOCALE=y
UCLIBC_HAS_HEXADECIMAL_FLOATS=y
# UCLIBC_HAS_GLIBC_DIGIT_GROUPING is not set
UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
UCLIBC_HAS_STDIO_GETC_MACRO=y
UCLIBC_HAS_STDIO_PUTC_MACRO=y
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y
# UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE is not set
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
UCLIBC_HAS_PRINTF_M_SPEC=y
UCLIBC_HAS_ERRNO_MESSAGES=y
# UCLIBC_HAS_SYS_ERRLIST is not set
UCLIBC_HAS_SIGNUM_MESSAGES=y
# UCLIBC_HAS_SYS_SIGLIST is not set
UCLIBC_HAS_GNU_GETOPT=y
UCLIBC_HAS_GETOPT_LONG=y
UCLIBC_HAS_GNU_GETSUBOPT=y
# UCLIBC_HAS_ARGP is not set
#
# Big and Tall
#
UCLIBC_HAS_REGEX=y
UCLIBC_HAS_FNMATCH=y
UCLIBC_HAS_WORDEXP=y
UCLIBC_HAS_NFTW=y
UCLIBC_HAS_FTW=y
# UCLIBC_HAS_FTS is not set
UCLIBC_HAS_GLOB=y
UCLIBC_HAS_GNU_GLOB=y
#
# Library Installation Options
#
RUNTIME_PREFIX="/"
DEVEL_PREFIX="/usr"
MULTILIB_DIR="lib"
HARDWIRED_ABSPATH=y
#
# Security options
#
UCLIBC_HAS_SSP=y
# SSP_QUICK_CANARY is not set
UCLIBC_BUILD_SSP=y
UCLIBC_BUILD_RELRO=y
UCLIBC_BUILD_NOW=y
UCLIBC_BUILD_NOEXECSTACK=y
#
# Development/debugging options
#
CROSS_COMPILER_PREFIX="/home/tola/Documents/linux/buildroot-2024.11/output/host/bin/aarch64-buildroot-linux-uclibc-"
UCLIBC_EXTRA_CFLAGS=""
# DODEBUG is not set
# DOSTRIP is not set
# DOASSERTS is not set
# SUPPORT_LD_DEBUG is not set
# SUPPORT_LD_DEBUG_EARLY is not set
# UCLIBC_MALLOC_DEBUGGING is not set
# UCLIBC_HAS_BACKTRACE is not set
WARNINGS="-Wall"
# EXTRA_WARNINGS is not set
@@ -0,0 +1,23 @@
CONFIG_BACKEND=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_WIRED=y
CONFIG_EAP_GTC=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TLS=y
CONFIG_EAP_TTLS=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_IPV6=y
CONFIG_LIBNL32=y
CONFIG_PEERKEY=y
CONFIG_PKCS12=y
CONFIG_SMARTCARD=y
CONFIG_WPS=y
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,20 @@
awk
blkid
cat
fdisk
find
findfs
grep
hdparm
ls
mkdir
mount
mountpoint
pivot_root
printf
sed
sh
sleep
switch_root
umount
vi
@@ -0,0 +1,371 @@
[
[[
acpid
add-shell
addgroup
adduser
adjtimex
ar
arch
arp
arping
ascii
awk
base32
base64
basename
bc
beep
blkdiscard
blkid
blockdev
bootchartd
brctl
bunzip2
bzcat
bzip2
cal
cat
chat
chattr
chgrp
chmod
chown
chpasswd
chroot
chrt
chvt
cksum
clear
cmp
comm
conspy
cp
cpio
crc32
crond
crontab
cryptpw
cttyhack
cut
date
dc
dd
deallocvt
delgroup
deluser
depmod
devmem
df
dhcprelay
diff
dirname
dmesg
dnsd
dnsdomainname
dos2unix
du
dumpkmap
dumpleases
echo
ed
egrep
eject
env
ether-wake
expand
expr
factor
fakeidentd
fallocate
false
fatattr
fbset
fbsplash
fdflush
fdformat
fdisk
fgconsole
fgrep
find
findfs
flock
fold
free
freeramdisk
fsck
fsfreeze
fstrim
fsync
ftpd
ftpget
ftpput
fuser
getopt
getty
grep
groups
gunzip
gzip
halt
hd
hdparm
head
hexdump
hexedit
hostid
hostname
httpd
hwclock
i2cdetect
i2cdump
i2cget
i2cset
i2ctransfer
id
ifconfig
ifdown
ifenslave
ifplugd
ifup
inetd
init
insmod
install
ionice
iostat
ip
ipaddr
ipcalc
ipcrm
ipcs
iplink
ipneigh
iproute
iprule
iptunnel
kbd_mode
kill
killall
killall5
klogd
last
less
link
linux32
linux64
linuxrc
ln
loadfont
loadkmap
logger
login
logname
logread
losetup
lpd
lpq
lpr
ls
lsattr
lsmod
lsof
lspci
lsscsi
lsusb
lzcat
lzma
lzop
lzopcat
makedevs
man
md5sum
mdev
mesg
microcom
mim
mkdir
mkdosfs
mke2fs
mkfifo
mkfs.ext2
mkfs.vfat
mknod
mkpasswd
mkswap
mktemp
modinfo
modprobe
more
mount
mountpoint
mpstat
mt
mv
nameif
nanddump
nandwrite
nbd-client
nc
netstat
nice
nl
nmeter
nohup
nologin
nproc
nsenter
nslookup
ntpd
od
openvt
partprobe
passwd
paste
patch
pgrep
pidof
ping
ping6
pivot_root
pkill
pmap
poweroff
powertop
printenv
printf
ps
pscan
pstree
pwd
pwdx
raidautorun
rdate
rdev
readahead
readlink
readprofile
realpath
reboot
remove-shell
renice
reset
resize
rev
rfkill
rm
rmdir
rmmod
route
rtcwake
run-parts
rx
script
scriptreplay
sed
seedrng
seq
setarch
setconsole
setfattr
setfont
setkeycodes
setlogcons
setpriv
setserial
setsid
sh
sha1sum
sha256sum
sha3sum
sha512sum
showkey
shred
shuf
slattach
sleep
smemcap
sort
split
ssl_client
stat
strings
stty
su
sulogin
sum
swapoff
swapon
switch_root
sync
sysctl
syslogd
tac
tail
tar
taskset
tcpsvd
tee
telnet
telnetd
test
tftp
tftpd
time
timeout
top
touch
tr
traceroute
traceroute6
tree
true
truncate
ts
tsort
tty
ttysize
tunctl
tune2fs
udhcpc
udhcpc6
udhcpd
udpsvd
uevent
umount
uname
uncompress
unexpand
uniq
unix2dos
unlink
unlzma
unlzop
unshare
unxz
unzip
uptime
users
usleep
uudecode
uuencode
vconfig
vi
vlock
volname
w
wall
watch
watchdog
wc
wget
who
whoami
whois
xargs
xxd
xz
xzcat
yes
zcat
zcip
+8 -2
View File
@@ -17,7 +17,7 @@ CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_PAHOLE_VERSION=127
CONFIG_PAHOLE_VERSION=130
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_TABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y
@@ -1145,6 +1145,7 @@ CONFIG_IP6_NF_MANGLE=y
CONFIG_NF_DEFRAG_IPV6=y
# CONFIG_NF_CONNTRACK_BRIDGE is not set
# CONFIG_BRIDGE_NF_EBTABLES is not set
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
@@ -1152,9 +1153,14 @@ CONFIG_NF_DEFRAG_IPV6=y
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
CONFIG_STP=m
CONFIG_BRIDGE=m
CONFIG_BRIDGE_IGMP_SNOOPING=y
# CONFIG_BRIDGE_MRP is not set
# CONFIG_BRIDGE_CFM is not set
# CONFIG_NET_DSA is not set
# CONFIG_VLAN_8021Q is not set
CONFIG_LLC=m
# CONFIG_LLC2 is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
+264
View File
@@ -0,0 +1,264 @@
#
# Automatically generated file; DO NOT EDIT.
# uClibc-ng 1.0.56 C Library Configuration
#
# TARGET_aarch64 is not set
# TARGET_alpha is not set
# TARGET_arc is not set
# TARGET_arm is not set
# TARGET_avr32 is not set
# TARGET_bfin is not set
# TARGET_c6x is not set
# TARGET_cris is not set
# TARGET_csky is not set
# TARGET_frv is not set
# TARGET_h8300 is not set
# TARGET_hppa is not set
# TARGET_i386 is not set
# TARGET_ia64 is not set
# TARGET_kvx is not set
# TARGET_lm32 is not set
# TARGET_m68k is not set
# TARGET_metag is not set
# TARGET_microblaze is not set
# TARGET_mips is not set
# TARGET_nds32 is not set
# TARGET_nios2 is not set
# TARGET_or1k is not set
# TARGET_powerpc is not set
# TARGET_riscv64 is not set
# TARGET_riscv32 is not set
# TARGET_sh is not set
# TARGET_sparc is not set
# TARGET_sparc64 is not set
# TARGET_tile is not set
TARGET_x86_64=y
# TARGET_xtensa is not set
TARGET_LDSO_NAME="ld64-uClibc"
TARGET_ARCH_BITS=64
#
# Target Architecture Features and Options
#
TARGET_ARCH="x86_64"
FORCE_OPTIONS_FOR_ARCH=y
TARGET_SUBARCH=""
#
# Using ELF file format
#
ARCH_HAS_DEPRECATED_SYSCALLS=y
ARCH_LITTLE_ENDIAN=y
#
# Using Little Endian
#
ARCH_HAS_MMU=y
ARCH_USE_MMU=y
UCLIBC_HAS_FLOATS=y
UCLIBC_HAS_FPU=y
DO_C99_MATH=y
DO_XSI_MATH=y
# UCLIBC_HAS_FENV is not set
UCLIBC_HAS_LONG_DOUBLE_MATH=y
KERNEL_HEADERS=
HAVE_DOT_CONFIG=y
#
# General Library Settings
#
DOPIC=y
# STATIC_PIE is not set
ARCH_HAS_UCONTEXT=y
HAVE_LDSO=y
HAVE_SHARED=y
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
LDSO_LDD_SUPPORT=y
# LDSO_CACHE_SUPPORT is not set
LDSO_PRELOAD_ENV_SUPPORT=y
# LDSO_PRELOAD_FILE_SUPPORT is not set
# LDSO_STANDALONE_SUPPORT is not set
# LDSO_PRELINK_SUPPORT is not set
ARCH_VDSO_SUPPORT=y
# VDSO_SUPPORT is not set
# UCLIBC_STATIC_LDCONFIG is not set
LDSO_RUNPATH=y
LDSO_RUNPATH_OF_EXECUTABLE=y
LDSO_SAFE_RUNPATH=y
LDSO_SEARCH_INTERP_PATH=y
LDSO_LD_LIBRARY_PATH=y
UCLIBC_CTOR_DTOR=y
# LDSO_GNU_HASH_SUPPORT is not set
# HAS_NO_THREADS is not set
# UCLIBC_HAS_LINUXTHREADS is not set
UCLIBC_HAS_THREADS_NATIVE=y
UCLIBC_HAS_THREADS=y
UCLIBC_HAS_TLS=y
# PTHREADS_DEBUG_SUPPORT is not set
PTHREADS_STACK_DEFAULT_SIZE=2097152
UCLIBC_HAS_SYSLOG=y
UCLIBC_HAS_LFS=y
# MALLOC is not set
# MALLOC_SIMPLE is not set
MALLOC_STANDARD=y
UCLIBC_DYNAMIC_ATEXIT=y
UCLIBC_HAS_UTMPX=y
UCLIBC_HAS_UTMP=y
UCLIBC_SUSV2_LEGACY=y
UCLIBC_SUSV3_LEGACY=y
UCLIBC_HAS_CONTEXT_FUNCS=y
# UCLIBC_SUSV3_LEGACY_MACROS is not set
UCLIBC_SUSV4_LEGACY=y
# UCLIBC_STRICT_HEADERS is not set
# UCLIBC_HAS_STUBS is not set
UCLIBC_HAS_SHADOW=y
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
UCLIBC_HAS___PROGNAME=y
UCLIBC_HAS_PTY=y
ASSUME_DEVPTS=y
UNIX98PTY_ONLY=y
UCLIBC_HAS_GETPT=y
UCLIBC_HAS_LIBUTIL=y
UCLIBC_HAS_TM_EXTENSIONS=y
UCLIBC_HAS_TZ_CACHING=y
UCLIBC_HAS_TZ_FILE=y
UCLIBC_HAS_TZ_FILE_READ_MANY=y
UCLIBC_TZ_FILE_PATH="/etc/TZ"
UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y
#
# Advanced Library Settings
#
UCLIBC_PWD_BUFFER_SIZE=256
UCLIBC_GRP_BUFFER_SIZE=256
#
# Support various families of functions
#
UCLIBC_LINUX_SPECIFIC=y
UCLIBC_HAS_GNU_ERROR=y
UCLIBC_BSD_SPECIFIC=y
UCLIBC_HAS_BSD_ERR=y
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y
# UCLIBC_HAS_BSD_B64_NTOP_B64_PTON is not set
# UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set
# UCLIBC_NTP_LEGACY is not set
# UCLIBC_SV4_DEPRECATED is not set
UCLIBC_HAS_REALTIME=y
UCLIBC_HAS_ADVANCED_REALTIME=y
UCLIBC_HAS_EPOLL=y
UCLIBC_HAS_XATTR=y
UCLIBC_HAS_PROFILING=y
UCLIBC_HAS_CRYPT_IMPL=y
UCLIBC_HAS_SHA256_CRYPT_IMPL=y
UCLIBC_HAS_SHA512_CRYPT_IMPL=y
UCLIBC_HAS_CRYPT=y
UCLIBC_HAS_NETWORK_SUPPORT=y
UCLIBC_HAS_SOCKET=y
UCLIBC_HAS_IPV4=y
UCLIBC_HAS_IPV6=y
UCLIBC_USE_NETLINK=y
UCLIBC_SUPPORT_AI_ADDRCONFIG=y
# UCLIBC_HAS_BSD_RES_CLOSE is not set
UCLIBC_HAS_COMPAT_RES_STATE=y
# UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
UCLIBC_HAS_RESOLVER_SUPPORT=y
# UCLIBC_DNSRAND_MODE_URANDOM is not set
# UCLIBC_DNSRAND_MODE_CLOCK is not set
UCLIBC_DNSRAND_MODE_PRNGPLUS=y
# UCLIBC_DNSRAND_MODE_SIMPLECOUNTER is not set
#
# String and Stdio Support
#
UCLIBC_HAS_STRING_GENERIC_OPT=y
UCLIBC_HAS_STRING_ARCH_OPT=y
UCLIBC_HAS_STDIO_FUTEXES=y
UCLIBC_HAS_CTYPE_TABLES=y
UCLIBC_HAS_CTYPE_SIGNED=y
# UCLIBC_HAS_CTYPE_UNSAFE is not set
UCLIBC_HAS_CTYPE_CHECKED=y
# UCLIBC_HAS_CTYPE_ENFORCED is not set
UCLIBC_HAS_WCHAR=y
UCLIBC_HAS_LIBICONV=y
UCLIBC_HAS_LIBINTL=y
UCLIBC_HAS_LOCALE=y
UCLIBC_BUILD_MINIMAL_LOCALE=y
# UCLIBC_BUILD_ALL_LOCALE is not set
UCLIBC_BUILD_MINIMAL_LOCALES="en_US"
UCLIBC_HAS_XLOCALE=y
UCLIBC_HAS_HEXADECIMAL_FLOATS=y
# UCLIBC_HAS_GLIBC_DIGIT_GROUPING is not set
UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
# UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set
UCLIBC_HAS_STDIO_GETC_MACRO=y
UCLIBC_HAS_STDIO_PUTC_MACRO=y
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set
UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y
# UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE is not set
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
UCLIBC_HAS_PRINTF_M_SPEC=y
UCLIBC_HAS_ERRNO_MESSAGES=y
# UCLIBC_HAS_SYS_ERRLIST is not set
UCLIBC_HAS_SIGNUM_MESSAGES=y
# UCLIBC_HAS_SYS_SIGLIST is not set
UCLIBC_HAS_GNU_GETOPT=y
UCLIBC_HAS_GETOPT_LONG=y
UCLIBC_HAS_GNU_GETSUBOPT=y
# UCLIBC_HAS_ARGP is not set
#
# Big and Tall
#
UCLIBC_HAS_REGEX=y
UCLIBC_HAS_FNMATCH=y
UCLIBC_HAS_WORDEXP=y
UCLIBC_HAS_NFTW=y
UCLIBC_HAS_FTW=y
# UCLIBC_HAS_FTS is not set
UCLIBC_HAS_GLOB=y
UCLIBC_HAS_GNU_GLOB=y
#
# Library Installation Options
#
RUNTIME_PREFIX="/"
DEVEL_PREFIX="/usr"
MULTILIB_DIR="lib"
HARDWIRED_ABSPATH=y
#
# Security options
#
UCLIBC_HAS_SSP=y
# SSP_QUICK_CANARY is not set
UCLIBC_BUILD_SSP=y
UCLIBC_BUILD_RELRO=y
UCLIBC_BUILD_NOW=y
UCLIBC_BUILD_NOEXECSTACK=y
#
# Development/debugging options
#
CROSS_COMPILER_PREFIX="/home/tola/Documents/linux/orangepipc/buildroot-2024.08.2/output/host/bin/x86_64-buildroot-linux-uclibc-"
UCLIBC_EXTRA_CFLAGS=""
# DODEBUG is not set
# DOSTRIP is not set
# DOASSERTS is not set
# SUPPORT_LD_DEBUG is not set
# SUPPORT_LD_DEBUG_EARLY is not set
# UCLIBC_MALLOC_DEBUGGING is not set
# UCLIBC_HAS_BACKTRACE is not set
WARNINGS="-Wall"
# EXTRA_WARNINGS is not set
+20 -2
View File
@@ -12,6 +12,7 @@ export distro_build_id="rolling"
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
export BOARD_NAME=orangepi_pc
export DEFAULT_HOSTNAME=$BOARD_NAME
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
@@ -24,17 +25,27 @@ export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
export sdroot=$out/sdroot
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-1.0.50.config
export COFIG_NOCLEAN=n
export UCLIBC_VERSION=1.0.56
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-${UCLIBC_VERSION}.config
export KERNEL_VERSION=6.13.3
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export UBOOT_DEFCONFIG=orangepi_pc_defconfig
export BUSYBOX_VERSION=1.36.1
export BUSYBOX_CONFIG_FILE=$root/board/${BOARD_NAME}/busybox-${BUSYBOX_VERSION}.config
export BUSYBOX_INITRD_CONFIG_FILE=$root/board/${BOARD_NAME}/busybox-initrd-${BUSYBOX_VERSION}.config
export BUSYBOX_LIST_FILE=$root/board/${BOARD_NAME}/busybox-list-${BUSYBOX_VERSION}.config
export BUSYBOX_INITRD_LIST_FILE=$root/board/${BOARD_NAME}/busybox-initrd-list-${BUSYBOX_VERSION}.config
export ROOTFS_OVERLAY=$root/board/${BOARD_NAME}/rootfs_overlay
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
export IMAGE_USABLE_ENABLE=y
export IMAGE_ENABLE=y
export IMAGE_ENABLE=n
export SFTP_SERVER_ENABLE=y
export CURL_ENABLE=n
export BASH_ENABLE=n
@@ -50,4 +61,11 @@ export DNSMASQ_ENABLE=n
export IPTABLES_ENABLE=n
export KO8821AU_ENABLE=n
export FINIT_INIT_ENABLE=y
export LIBSQLITE3_ENABLE=n
export LM_SENSORS_ENABLE=n
export LRZSZ_ENABLE=n
export TCC_C_COMPILER_ENABLE=n
export NGINX_ENABLE=n
export DUF_BIN_ENABLE=n
export CONFIG_MTD_UTILS=n
#--------------------------------------
+40 -16
View File
@@ -1,13 +1,18 @@
#!/bin/bash
#------------ config ------------------
export PATH=$PATH:/opt/toolchains/aarch64-buildroot-linux-uclibc/bin
export PATH=$PATH:/opt/toolchains/aarch64-buildroot-linux-uclibc_sdk-buildroot/bin
export PKG_CONFIG_PATH=/opt/toolchains/aarch64-buildroot-linux-uclibc_sdk-buildroot/aarch64-buildroot-linux-uclibc/sysroot/usr/lib/pkgconfig
export version=0.0.1 # script version
export root=$(pwd) # root build directory
export distro_name="Simple" # distro name
export distro_name="Simple Linux" # distro name
export distro_pretty_name="Simple Linux"
export distro_id="simple"
export distro_build_id="rolling"
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
export BOARD_NAME=orangepi_zero_2w
export DEFAULT_HOSTNAME=$BOARD_NAME
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
@@ -20,28 +25,47 @@ export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=aarch64-buildroot-linux-uclibc
export ARCH=arm64
export sdroot=$out/sdroot
export UCLIBC_CONFIG_FILE=$root/board/${BOARD_NAME}/uclibc-1.0.50.config
export COFIG_NOCLEAN=n
export UCLIBC_VERSION=1.0.56
export UCLIBC_CONFIG_FILE=$root/board/${BOARD_NAME}/uclibc-${UCLIBC_VERSION}.config
export KERNEL_VERSION=6.8.6
export KERNEL_VERSION=orangepi-orange-pi-6.1-sun50iw9
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export UBOOT_DEFCONFIG=orangepi_zero2w_defconfig
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
export IMAGE_USABLE_ENABLE=y
export SFTP_SERVER_ENABLE=y
export BUSYBOX_VERSION=1.37.0
export BUSYBOX_CONFIG_FILE=$root/board/${BOARD_NAME}/busybox-${BUSYBOX_VERSION}.config
export BUSYBOX_INITRD_CONFIG_FILE=$root/board/${BOARD_NAME}/busybox-initrd-${BUSYBOX_VERSION}.config
export BUSYBOX_LIST_FILE=$root/board/${BOARD_NAME}/busybox-list-${BUSYBOX_VERSION}.config
export BUSYBOX_INITRD_LIST_FILE=$root/board/${BOARD_NAME}/busybox-initrd-list-${BUSYBOX_VERSION}.config
export ROOTFS_OVERLAY=$root/board/${BOARD_NAME}/rootfs_overlay
export ZLIB_ENABLE=n
export DROPBEAR_ENABLE=n
export IMAGE_USABLE_ENABLE=n
export IMAGE_ENABLE=n
export SFTP_SERVER_ENABLE=n
export CURL_ENABLE=n
export BASH_ENABLE=n
export GIT_ENABLE=n
export GITEA_ENABLE=n
export LIBNL_ENABLE=y
export IW_ENABLE=y
export WIRELES_TOOLS_ENABLE=y
export WPA_SUPPLICANT_ENABLE=y
export HOSTAPD_ENABLE=y
export OPENSSL_ENABLE=y
export DNSMASQ_ENABLE=y
export IPTABLES_ENABLE=y
export LIBNL_ENABLE=n
export IW_ENABLE=n
export WIRELES_TOOLS_ENABLE=n
export WPA_SUPPLICANT_ENABLE=n
export HOSTAPD_ENABLE=n
export OPENSSL_ENABLE=n
export DNSMASQ_ENABLE=n
export IPTABLES_ENABLE=n
export KO8821AU_ENABLE=n
export FINIT_INIT_ENABLE=y
export LIBSQLITE3_ENABLE=n
export LM_SENSORS_ENABLE=y
export LRZSZ_ENABLE=n
export TCC_C_COMPILER_ENABLE=n
export NGINX_ENABLE=n
export DUF_BIN_ENABLE=n
export CONFIG_MTD_UTILS=n
#--------------------------------------
+18 -1
View File
@@ -12,6 +12,7 @@ export distro_build_id="rolling"
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
export BOARD_NAME="x86_64_uclibc"
export DEFAULT_HOSTNAME=$BOARD_NAME
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
@@ -24,11 +25,19 @@ export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=x86_64-buildroot-linux-uclibc
export ARCH=x86_64
export diskroot=$out/diskroot
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-1.0.50.config
export COFIG_NOCLEAN=n
export UCLIBC_VERSION=1.0.56
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-${UCLIBC_VERSION}.config
export KERNEL_VERSION=6.1.91
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export BUSYBOX_VERSION=1.36.1
export BUSYBOX_CONFIG_FILE=$root/board/${BOARD_NAME}/busybox-${BUSYBOX_VERSION}.config
export BUSYBOX_INITRD_CONFIG_FILE=$root/board/${BOARD_NAME}/busybox-initrd-${BUSYBOX_VERSION}.config
export BUSYBOX_LIST_FILE=$root/board/${BOARD_NAME}/busybox-list-${BUSYBOX_VERSION}.config
export BUSYBOX_INITRD_LIST_FILE=$root/board/${BOARD_NAME}/busybox-initrd-list-${BUSYBOX_VERSION}.config
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
export IMAGE_USABLE_ENABLE=n
@@ -38,5 +47,13 @@ export CURL_ENABLE=n
export BASH_ENABLE=n
export GIT_ENABLE=n
export GITEA_ENABLE=n
export OPENSSL_ENABLE=n
export FINIT_INIT_ENABLE=y
export LIBSQLITE3_ENABLE=n
export LM_SENSORS_ENABLE=n
export LRZSZ_ENABLE=n
export TCC_C_COMPILER_ENABLE=n
export NGINX_ENABLE=n
export DUF_BIN_ENABLE=n
export CONFIG_MTD_UTILS=n
#--------------------------------------
+1 -1
View File
@@ -2,4 +2,4 @@ LABEL default
kernel /boot/zImage
initrd /boot/initramfs.img
devicetreedir /boot/dtbs
append root=UUID=ROOTUUID rw rootwait console=${console} rootfstype=ext4 panic=10
append root=UUID=ROOTUUID rw rootwait console=${console} rootfstype=ext4 panic=10 init=/init
-5248
View File
File diff suppressed because it is too large Load Diff
-6089
View File
File diff suppressed because it is too large Load Diff
@@ -1,3 +1,6 @@
# Consoles to start getty on when system is up
tty [12345] /dev/ttyS0 noclear nowait
tty [12345] /dev/tty1 noclear nowait
tty [12345] /dev/tty2 noclear nowait
tty [12345] /dev/tty3 noclear nowait
tty [12345] /dev/tty4 noclear nowait
@@ -1 +1 @@
run [123456789] hostname -F /etc/hostname -- Set up hostname
task [S] hostname -F /etc/hostname
@@ -0,0 +1 @@
run [2345] iptables-restore /etc/iptables.conf -- Restore iptables rules
@@ -0,0 +1 @@
run [2345] sysctl -p -- Restore sysctl rules
+1 -1
View File
@@ -9,7 +9,7 @@ ko8821au() {
pkgname=8821au
pkgver=20210708
gitsrc=https://github.com/morrownr/8821au-20210708.git
printf "$GREEN** Building and installing $pkgname\n$RESET"
print_info "** Building and installing $pkgname"
[ ! -d $build/$pkgname ] && mkdir $build/$pkgname
cd $build/$pkgname
git clone $gitsrc
+11 -3
View File
@@ -7,10 +7,18 @@
bash() {
pkgname=bash
pkgver=5.2.32
printf "$GREEN** Building and installing bash\n$RESET"
mkdir $build/${pkgname}
srcurl=https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
print_info "** Building and installing bash"
mkdir -p $build/${pkgname}
cd $build/${pkgname}
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
if [ ! -f $root/downloads/${pkgname}-${pkgver}.tar.gz ]; then
print_info "** Downloading $srcurl"
cd $root/downloads
wget $srcurl
check $? "download $srcurl"
cd -
fi
tar -xf $root/downloads/${pkgname}-${pkgver}.tar.gz
check $? "Extract ${pkgname}"
cd ${pkgname}-${pkgver}
./configure \
+65 -3
View File
@@ -17,12 +17,26 @@
. ./scripts/iptables.sh
. ./scripts/8821au_ko.sh
. ./scripts/finit_init.sh
. ./scripts/libsqlite3.sh
. ./scripts/lm_sensors.sh
. ./scripts/wpa_supplicant.sh
. ./scripts/lrzsz.sh
. ./scripts/tcc.sh
. ./scripts/zlib.sh
. ./scripts/nginx.sh
. ./scripts/duf_bin.sh
. ./scripts/curl.sh
. ./scripts/dnsmasq.sh
. ./scripts/git.sh
. ./scripts/sftp_server.sh
. ./scripts/uclibc.sh
. ./scripts/bash.sh
. ./scripts/mtd-utils.sh
. ./scripts/iana-etc.sh
case $1 in
build)
if [ ! -d downloads ]; then
download_sources
fi
[ ! -d downloads ] && mkdir $root/downloads
rootfs
if [ "$IMAGE_USABLE_ENABLE" = "y" ]; then
sdroot_usable
@@ -68,6 +82,54 @@ case $1 in
initramfs)
initramfs
;;
libsqlite3)
libsqlite3
;;
lm_sensors)
lm_sensors
;;
wpa_supplicant)
build_wpa_supplicant
;;
lrzsz)
lrzsz-build
;;
tcc)
tcc_build
;;
zlib)
zlib
;;
nginx)
nginx_build
;;
duf_bin)
duf_bin
;;
curl)
curl
;;
dnsmasq)
dnsmasq
;;
git)
git_build
;;
sftp_server)
sftp_server
;;
uclibc)
uclibc
;;
bash)
bash
;;
mtd-utils)
mtd-utils
;;
iana-etc)
iana-etc
;;
*)
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
exit 1
+33 -20
View File
@@ -10,38 +10,51 @@
#----------- Building busybox for rootfs ----------
busybox_rootfs() {
printf "$UGREEN** Building busybox for rootfs\n$RESET"
rm -rv $build/busybox # &>> $fulllogfile
mkdir -pv $build/busybox # &>> $fulllogfile
pkgname=busybox
pkgver=${BUSYBOX_VERSION}
srcurl=https://busybox.net/downloads/${pkgname}-${pkgver}.tar.bz2
print_info "** Building busybox for rootfs"
[ -d $build/busybox ] && return 0
mkdir -p $build/busybox
cd $build/busybox
tar -xvjf $root/downloads/busybox-1.36.1.tar.bz2 # &>> $fulllogfile
cd busybox-1.36.1
cp -v $root/busybox/busybox-rootfs-config .config # &>> $fulllogfile
printf "$UGREEN** Configuring busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
if [ ! -f $root/downloads/${pkgname}-${pkgver}.tar.bz2 ]; then
print_info "** Downloading $srcurl"
cd $root/downloads
wget $srcurl
check $? "download $srcurl"
cd -
fi
tar -xjf $root/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2
cd busybox-${BUSYBOX_VERSION}
sed -i 's/|| ctx->process_block == sha1_process_block64_shaNI/|| ctx->process_block == sha1_process_block64/' libbb/hash_md5_sha.c
cp $root/board/${BOARD_NAME}/busybox-${BUSYBOX_VERSION}.config .config
print_info "** Configuring busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
print_info "** Building busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build busybox all logs in .log"
cp -v busybox $rootfspath/usr/bin
cd $rootfspath/usr/bin
for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done
}
#--------------------------------------------------
#------------------ Building busybox for initramfs ----------------
busybox_initramfs() {
printf "$UGREEN** Building busybox for initramfs\n$RESET"
rm -r $build/busybox # &>> $fulllogfile
print_info "** Building busybox for initramfs"
[ -f $build/initramfs.img ] && return 0
mkdir -p $build/busybox
cd $build/busybox
tar -xjf $root/downloads/busybox-1.36.1.tar.bz2
tar -xjf $root/downloads/busybox-${BUSYBOX_VERSION}.tar.bz2
check $? "Extract busybox"
cd busybox-1.36.1
cp $root/busybox/busybox-initramfs-config .config
# export PATH=$PATH:/opt/toolchains/x86_64-buildroot-linux-uclibc-gcc/bin
printf "$UGREEN** Configuring busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig # &>> $fulllogfile
cd busybox-${BUSYBOX_VERSION}
cp -v $root/board/${BOARD_NAME}/busybox-initrd-${BUSYBOX_VERSION}.config .config
print_info "** Configuring busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- oldconfig
check $? "Configure busybox all logs in .log"
printf "$UGREEN** Building busybox\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags # &>> $fulllogfile
print_info "** Building busybox"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- $makeflags
check $? "Build busybox all logs in .log"
}
#------------------------------------------------------------------
+1 -1
View File
@@ -10,7 +10,7 @@ export ARCH=arm
configure() {
cd $srcdir
tar -xvf $pkgname-$pkgver.tar.bz2
tar -xf $pkgname-$pkgver.tar.bz2
cd -
export srcdir=$srcdir/$pkgname-$pkgver
cp -v busybox.config $srcdir/.config
+10 -2
View File
@@ -1,8 +1,16 @@
#!/bin/bash
. ./scripts/funcs.sh
print_info "** Clean all build and outputs (build and out directories)"
if [ -d out ]; then
rm -rv out;
print_info "** Deleting out directory"
rm -rf out;
check $? "Delete out directory"
fi
if [ -d build ]; then
rm -rv build
print_info "** Deleting build directory"
rm -rf build
check $? "Delete build directory"
fi
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
set -x
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
cleanup_rootfs() {
if [ "${TCC_C_COMPILER_ENABLE}" = "n" ] && [ "${CONFIG_NOCLEAN}" = "n" ]; then
find $rootfspath -type f -name "*.a" -delete
find $rootfspath -type f -name "*.la" -delete
rm -rv $rootfspath/usr/include
rm -rv $rootfspath/usr/share/man
rm -rv $rootfspath/usr/lib/pkgconfig
rm -rv $rootfspath/usr/share/doc
rm -rv $rootfspath/usr/share/info
rm -rv $rootfspath/usr/share/bash-completion
fi
STRIP_FILES=$(file --mime-type $(find $rootfspath -type f) | grep "application/x-executable\|application/x-sharedlib\|application/x-pie-executable" | sed 's/:.*$//')
# echo $STRIP_FILES
for i in $STRIP_FILES; do
${CROSS_COMPILE}-strip $i
echo $i
done
}
+12 -12
View File
@@ -11,10 +11,19 @@ curl() {
fi
pkgname=curl
pkgver=8.9.1
printf "$GREEN** Building and installing curl\n$RESET"
mkdir $build/${pkgname}
srcurl=https://curl.se/download/${pkgname}-${pkgver}.tar.xz
print_info "** Building and installing curl"
[ -d $build/${pkgname} ] && return 0
mkdir -p $build/${pkgname}
cd $build/${pkgname}
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
if [ ! -f $root/downloads/${pkgname}-${pkgver}.tar.xz ]; then
print_info "** Downloading $srcurl"
cd $root/downloads
wget $srcurl
check $? "download $srcurl"
cd -
fi
tar -xf $root/downloads/${pkgname}-${pkgver}.tar.xz
check $? "Extract ${pkgname}"
cd ${pkgname}-${pkgver}
./configure \
@@ -28,14 +37,5 @@ curl() {
make $makeflags
check $? "Build ${pkgname}"
make DESTDIR=$rootfspath install
rm \
-rv \
$rootfspath/usr/include \
$rootfspath/usr/share/aclocal \
$rootfspath/usr/share/man \
$rootfspath/usr/lib/*.a \
$rootfspath/usr/lib/*.la \
$rootfspath/usr/lib/pkgconfig
$CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/curl $rootfspath/usr/lib/libcurl.so.4.8.0
check $? "Installing to rootfs ${pkgname}"
}

Some files were not shown because too many files have changed in this diff Show More