diff --git a/projects/gk7205v200_ultimate_baresip/br-ext-chip-goke/configs/gk7205v200_ultimate_baresip_defconfig b/projects/gk7205v200_ultimate_baresip/br-ext-chip-goke/configs/gk7205v200_ultimate_baresip_defconfig index 8b3b122..e72f909 100644 --- a/projects/gk7205v200_ultimate_baresip/br-ext-chip-goke/configs/gk7205v200_ultimate_baresip_defconfig +++ b/projects/gk7205v200_ultimate_baresip/br-ext-chip-goke/configs/gk7205v200_ultimate_baresip_defconfig @@ -35,6 +35,7 @@ BR2_OPENIPC_SOC_VENDOR="goke" BR2_OPENIPC_SOC_MODEL="gk7205v200" BR2_OPENIPC_SOC_FAMILY="gk7205v200" BR2_OPENIPC_FLAVOR="ultimate" +BR2_OPENIPC_FLASH_SIZE="16" # Filesystem # BR2_TARGET_TZ_INFO is not set @@ -105,23 +106,36 @@ BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MEDIATEK_MT7601U=y BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y BR2_PACKAGE_WIREGUARD_TOOLS=y +# IPTABLES +BR2_PACKAGE_IPTABLES is not set + # MQTT BR2_PACKAGE_MOSQUITTO=y # BR2_PACKAGE_MOSQUITTO_BROKER is not set +# ZEROTIER +# BR2_PACKAGE_ZEROTIER_ONE is not set + +# NABTO +# BR2_PACKAGE_NABTO is not set + # DEBUG # BR2_PACKAGE_HOST_GDB is not set # BR2_PACKAGE_GDB is not set -# Compression -BR2_PACKAGE_ZLIB=y - # BARESIP BR2_PACKAGE_BARESIP_OPENIPC=y BR2_PACKAGE_LIBRE_OPENIPC=y BR2_PACKAGE_LIBREM_OPENIPC=y BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING=y +# SMARTHOME +BR2_PACKAGE_COMGT=y + +# CCACHE +BR2_CCACHE=y +BR2_CCACHE_DIR="$(HOME)/.ccache" + # External BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y diff --git a/projects/gk7205v200_ultimate_baresip/building.sh b/projects/gk7205v200_ultimate_baresip/building.sh index 9ea4bec..05bf5a3 100755 --- a/projects/gk7205v200_ultimate_baresip/building.sh +++ b/projects/gk7205v200_ultimate_baresip/building.sh @@ -97,7 +97,7 @@ clone() { } fresh() { - BR_VER=$1 + BR_VER=2023.02.1 if [ -d "$SRC_CACHE_DIR" ]; then echo_c 36 "Found cache directory." @@ -226,7 +226,7 @@ uni_build() { echo_c 33 "\n SoC: $SOC\nBoard: $BOARD\n" if [ "all" = "${COMMAND}" ]; then - fresh $(make BOARD=${BOARD} buildroot-version) + fresh $(make BOARD=${BOARD}) fi log_and_run "make BOARD=${BOARD} ${COMMAND}" diff --git a/projects/gk7205v200_ultimate_baresip/general/overlay/etc/init.d/S30wireless b/projects/gk7205v200_ultimate_baresip/general/overlay/etc/init.d/S30wireless new file mode 100755 index 0000000..ab4b0cf --- /dev/null +++ b/projects/gk7205v200_ultimate_baresip/general/overlay/etc/init.d/S30wireless @@ -0,0 +1,9 @@ +#!/bin/sh + +device=$(fw_printenv -n wlandev) + +if [ "$1" = "start" ] && [ ! -z "$device" ]; then + if /etc/wireless "$device"; then + echo "$device" | logger + fi +fi diff --git a/projects/gk7205v200_ultimate_baresip/general/overlay/etc/network/interfaces.d/usb0 b/projects/gk7205v200_ultimate_baresip/general/overlay/etc/network/interfaces.d/usb0 new file mode 100644 index 0000000..5d48273 --- /dev/null +++ b/projects/gk7205v200_ultimate_baresip/general/overlay/etc/network/interfaces.d/usb0 @@ -0,0 +1,2 @@ +auto usb0 +iface usb0 inet dhcp diff --git a/projects/gk7205v200_ultimate_baresip/general/overlay/etc/network/interfaces.d/wlan0 b/projects/gk7205v200_ultimate_baresip/general/overlay/etc/network/interfaces.d/wlan0 new file mode 100644 index 0000000..a5b8014 --- /dev/null +++ b/projects/gk7205v200_ultimate_baresip/general/overlay/etc/network/interfaces.d/wlan0 @@ -0,0 +1,6 @@ +auto wlan0 +iface wlan0 inet dhcp + post-up wpa_passphrase "$(fw_printenv -n wlanssid || echo OpenIPC)" "$(fw_printenv -n wlanpass || echo OpenIPC12345)" > /tmp/wpa_supplicant.conf + post-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf + post-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf + post-down killall -q wpa_supplicant diff --git a/workplace/scripts/repack_firmware_gk7205v200_ultimate b/workplace/scripts/repack_firmware_gk7205v200_ultimate deleted file mode 100755 index 6f621a2..0000000 --- a/workplace/scripts/repack_firmware_gk7205v200_ultimate +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -MODEL=gk7205v200 -FLAVOR=ultimate - - -cd ../../openipc/output/images -pwd - - -if [ -e uImage ]; then - mv uImage uImage.${MODEL} - md5sum uImage.${MODEL} > uImage.${MODEL}.md5sum -fi - -if [ -e rootfs.squashfs ]; then - mv rootfs.squashfs rootfs.squashfs.${MODEL} - md5sum rootfs.squashfs.${MODEL} > rootfs.squashfs.${MODEL}.md5sum -fi - -tar czf openipc.${MODEL}-nor-${FLAVOR}.tgz \ - uImage.${MODEL} uImage.${MODEL}.md5sum \ - rootfs.squashfs.${MODEL} rootfs.squashfs.${MODEL}.md5sum - -ls -la uImage.${MODEL} rootfs.squashfs.${MODEL} openipc.${MODEL}-nor-${FLAVOR}.tgz - -cd - diff --git a/workplace/scripts/repack_firmware_t31_lite b/workplace/scripts/repack_firmware_t31_lite deleted file mode 100755 index f189fe1..0000000 --- a/workplace/scripts/repack_firmware_t31_lite +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -MODEL=t31 -FLAVOR=lite - - -cd ../../openipc/output/images -pwd - - -if [ -e uImage ]; then - mv uImage uImage.${MODEL} - md5sum uImage.${MODEL} > uImage.${MODEL}.md5sum -fi - -if [ -e rootfs.squashfs ]; then - mv rootfs.squashfs rootfs.squashfs.${MODEL} - md5sum rootfs.squashfs.${MODEL} > rootfs.squashfs.${MODEL}.md5sum -fi - -tar czf openipc.${MODEL}-nor-${FLAVOR}.tgz \ - uImage.${MODEL} uImage.${MODEL}.md5sum \ - rootfs.squashfs.${MODEL} rootfs.squashfs.${MODEL}.md5sum - -ls -la uImage.${MODEL} rootfs.squashfs.${MODEL} openipc.${MODEL}-nor-${FLAVOR}.tgz - -cd -