mirror of https://github.com/OpenIPC/firmware.git
Merge branch 'OpenIPC:master' into master
commit
3412dffdab
|
@ -22,7 +22,7 @@ env:
|
||||||
MAX_ROOTFS_SIZE: 0x500000
|
MAX_ROOTFS_SIZE: 0x500000
|
||||||
MAX_KERNEL_SIZE_ULTIMATE: 0x300000
|
MAX_KERNEL_SIZE_ULTIMATE: 0x300000
|
||||||
MAX_ROOTFS_SIZE_ULTIMATE: 0xa00000
|
MAX_ROOTFS_SIZE_ULTIMATE: 0xa00000
|
||||||
TG_OPTIONS: -s --connect-timeout 30 --retry 10 --verbose
|
TG_OPTIONS: -s --connect-timeout 30 --retry 10 --http1.1 --verbose
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
toolchain:
|
toolchain:
|
||||||
|
|
|
@ -76,7 +76,7 @@ BR2_PACKAGE_MICROBE_WEB=y
|
||||||
# BR2_PACKAGE_MINI_SNMPD is not set
|
# BR2_PACKAGE_MINI_SNMPD is not set
|
||||||
# BR2_PACKAGE_MOTORS is not set
|
# BR2_PACKAGE_MOTORS is not set
|
||||||
# BR2_PACKAGE_SSHPASS is not set
|
# BR2_PACKAGE_SSHPASS is not set
|
||||||
# BR2_PACKAGE_VTUND_OPENIPC is not set
|
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||||
BR2_PACKAGE_YAML_CLI=y
|
BR2_PACKAGE_YAML_CLI=y
|
||||||
|
|
||||||
# WiFi
|
# WiFi
|
||||||
|
|
|
@ -76,7 +76,7 @@ BR2_PACKAGE_MICROBE_WEB=y
|
||||||
# BR2_PACKAGE_MINI_SNMPD is not set
|
# BR2_PACKAGE_MINI_SNMPD is not set
|
||||||
# BR2_PACKAGE_MOTORS is not set
|
# BR2_PACKAGE_MOTORS is not set
|
||||||
# BR2_PACKAGE_SSHPASS is not set
|
# BR2_PACKAGE_SSHPASS is not set
|
||||||
# BR2_PACKAGE_VTUND_OPENIPC is not set
|
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||||
BR2_PACKAGE_YAML_CLI=y
|
BR2_PACKAGE_YAML_CLI=y
|
||||||
|
|
||||||
# WiFi
|
# WiFi
|
||||||
|
|
|
@ -76,7 +76,7 @@ BR2_PACKAGE_MICROBE_WEB=y
|
||||||
# BR2_PACKAGE_MINI_SNMPD is not set
|
# BR2_PACKAGE_MINI_SNMPD is not set
|
||||||
# BR2_PACKAGE_MOTORS is not set
|
# BR2_PACKAGE_MOTORS is not set
|
||||||
# BR2_PACKAGE_SSHPASS is not set
|
# BR2_PACKAGE_SSHPASS is not set
|
||||||
# BR2_PACKAGE_VTUND_OPENIPC is not set
|
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||||
BR2_PACKAGE_YAML_CLI=y
|
BR2_PACKAGE_YAML_CLI=y
|
||||||
|
|
||||||
# WiFi
|
# WiFi
|
||||||
|
|
|
@ -76,7 +76,7 @@ BR2_PACKAGE_MICROBE_WEB=y
|
||||||
# BR2_PACKAGE_MINI_SNMPD is not set
|
# BR2_PACKAGE_MINI_SNMPD is not set
|
||||||
# BR2_PACKAGE_MOTORS is not set
|
# BR2_PACKAGE_MOTORS is not set
|
||||||
# BR2_PACKAGE_SSHPASS is not set
|
# BR2_PACKAGE_SSHPASS is not set
|
||||||
# BR2_PACKAGE_VTUND_OPENIPC is not set
|
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||||
BR2_PACKAGE_YAML_CLI=y
|
BR2_PACKAGE_YAML_CLI=y
|
||||||
|
|
||||||
# WiFi
|
# WiFi
|
||||||
|
|
12
building.sh
12
building.sh
|
@ -122,7 +122,7 @@ rename() {
|
||||||
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
||||||
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
||||||
date >>/tmp/openipc_buildtime.txt
|
date >>/tmp/openipc_buildtime.txt
|
||||||
echo -e "\n\n$(cat /tmp/openipc_buildtime.txt)"
|
echo_c 31 "\n\n$(cat /tmp/openipc_buildtime.txt)\n\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
rename_initramfs() {
|
rename_initramfs() {
|
||||||
|
@ -131,25 +131,25 @@ rename_initramfs() {
|
||||||
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
mv -v ./output/images/rootfs.cpio ./output/images/rootfs.${SOC}.cpio
|
||||||
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
mv -v ./output/images/rootfs.tar ./output/images/rootfs.${SOC}.tar
|
||||||
date >>/tmp/openipc_buildtime.txt
|
date >>/tmp/openipc_buildtime.txt
|
||||||
echo -e "\n\n$(cat /tmp/openipc_buildtime.txt)"
|
echo_c 31 "\n\n$(cat /tmp/openipc_buildtime.txt)\n\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
autoup_rootfs() {
|
autoup_rootfs() {
|
||||||
echo_c 34 "Downloading u-boot-hi3518ev200-universal.bin"
|
echo_c 34 "\nDownloading u-boot-hi3518ev200-universal.bin"
|
||||||
curl --location --output ./output/images/u-boot-hi3518ev200-universal.bin \
|
curl --location --output ./output/images/u-boot-hi3518ev200-universal.bin \
|
||||||
https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-hi3518ev200-universal.bin
|
https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-hi3518ev200-universal.bin
|
||||||
|
|
||||||
echo_c 34 "Making autoupdate firmware image"
|
echo_c 34 "\nMaking autoupdate u-boot image"
|
||||||
./output/host/bin/mkimage -A arm -O linux -T firmware -n "$OPENIPC_VER" \
|
./output/host/bin/mkimage -A arm -O linux -T firmware -n "$OPENIPC_VER" \
|
||||||
-a 0x0 -e 0x50000 -d ./output/images/u-boot-hi3518ev200-universal.bin \
|
-a 0x0 -e 0x50000 -d ./output/images/u-boot-hi3518ev200-universal.bin \
|
||||||
./output/images/autoupdate-uboot.img
|
./output/images/autoupdate-uboot.img
|
||||||
|
|
||||||
echo_c 34 "Making autoupdate kernel image"
|
echo_c 34 "\nMaking autoupdate kernel image"
|
||||||
./output/host/bin/mkimage -A arm -O linux -T kernel -C none -n "$OPENIPC_VER" \
|
./output/host/bin/mkimage -A arm -O linux -T kernel -C none -n "$OPENIPC_VER" \
|
||||||
-a 0x50000 -e 0x250000 -d ./output/images/uImage.${SOC} \
|
-a 0x50000 -e 0x250000 -d ./output/images/uImage.${SOC} \
|
||||||
./output/images/autoupdate-kernel.img
|
./output/images/autoupdate-kernel.img
|
||||||
|
|
||||||
echo_c 34 "Making autoupdate rootfs image"
|
echo_c 34 "\nMaking autoupdate rootfs image"
|
||||||
./output/host/bin/mkimage -A arm -O linux -T filesystem -n "$OPENIPC_VER" \
|
./output/host/bin/mkimage -A arm -O linux -T filesystem -n "$OPENIPC_VER" \
|
||||||
-a 0x250000 -e 0x750000 -d ./output/images/rootfs.squashfs.${SOC} \
|
-a 0x250000 -e 0x750000 -d ./output/images/rootfs.squashfs.${SOC} \
|
||||||
./output/images/autoupdate-rootfs.img
|
./output/images/autoupdate-rootfs.img
|
||||||
|
|
|
@ -46,6 +46,16 @@ iface usb0 inet dhcp
|
||||||
post-down echo 1 > /sys/class/gpio/gpio9/value
|
post-down echo 1 > /sys/class/gpio/gpio9/value
|
||||||
post-down echo 9 > /sys/class/gpio/unexport
|
post-down echo 9 > /sys/class/gpio/unexport
|
||||||
|
|
||||||
|
manual ppp0
|
||||||
|
iface ppp0 inet manual
|
||||||
|
pre-up echo 61 > /sys/class/gpio/export
|
||||||
|
pre-up echo out > /sys/class/gpio/gpio61/direction
|
||||||
|
pre-up echo 0 > /sys/class/gpio/gpio61/value
|
||||||
|
pre-up (sleep 7; pon)
|
||||||
|
post-down poff
|
||||||
|
post-down echo 1 > /sys/class/gpio/gpio61/value
|
||||||
|
post-down echo 61 > /sys/class/gpio/unexport
|
||||||
|
|
||||||
manual wg0
|
manual wg0
|
||||||
iface wg0 inet static
|
iface wg0 inet static
|
||||||
address 192.168.99.1
|
address 192.168.99.1
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# OpenIPC.org | v.20220827
|
# OpenIPC.org | v.20220827
|
||||||
#
|
#
|
||||||
|
|
||||||
scr_version=1.0.6
|
scr_version=1.0.7
|
||||||
|
|
||||||
args=" $@"
|
args=" $@"
|
||||||
|
|
||||||
|
@ -109,9 +109,7 @@ free_resources() {
|
||||||
}
|
}
|
||||||
|
|
||||||
self_update() {
|
self_update() {
|
||||||
if echo "${args}" | grep "rootfs" || echo "${args}" | grep "kernel" || echo "${args}" | grep -- "-n" >/dev/null 2>&1; then
|
if echo "${args}" | grep -E "\-(k|r|w|url)" >/dev/null 2>&1; then
|
||||||
echo -e "\nOffline operations."
|
|
||||||
else
|
|
||||||
echo -e "\nChecking for sysupgrade update..."
|
echo -e "\nChecking for sysupgrade update..."
|
||||||
curl -s -k -L -o /tmp/sysupgrade "https://raw.githubusercontent.com/OpenIPC/firmware/master/general/overlay/usr/sbin/sysupgrade"
|
curl -s -k -L -o /tmp/sysupgrade "https://raw.githubusercontent.com/OpenIPC/firmware/master/general/overlay/usr/sbin/sysupgrade"
|
||||||
if [ -f /tmp/sysupgrade ] && grep -q "#!/bin/sh" /tmp/sysupgrade; then
|
if [ -f /tmp/sysupgrade ] && grep -q "#!/bin/sh" /tmp/sysupgrade; then
|
||||||
|
@ -128,6 +126,8 @@ self_update() {
|
||||||
else
|
else
|
||||||
echo -e "\nVersion checking failed, proceeding with the installed version."
|
echo -e "\nVersion checking failed, proceeding with the installed version."
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo -e "\nOffline operations."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue