Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to 2022 firmware, and ISRG X1 root. #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# Build Options
#

OPENWRT_RELEASE ?= 18.06.4
OPENWRT_TARGET ?= ar71xx
OPENWRT_RELEASE ?= 22.03.0
OPENWRT_TARGET ?= ath79
OPENWRT_FLASH_LAYOUT ?= generic
OPENWRT_PROFILE ?=gl-ar150
OPENWRT_PROFILE ?= glinet_gl-ar150

SOWN_PACKAGES := sown-core
PACKAGES := -wpad-mini -dnsmasq -firewall

ifneq (,$(filter gl-ar150,$(OPENWRT_PROFILE)))
ifneq (,$(filter glinet_gl-ar150,$(OPENWRT_PROFILE)))
SOWN_PACKAGES += sown-leds-ar150
endif

Expand All @@ -26,7 +26,7 @@ OPENWRT_DOWNLOAD_URL := https://downloads.openwrt.org/releases
OPENWRT_FOLDER_URL = $(OPENWRT_DOWNLOAD_URL)/$(OPENWRT_RELEASE)/targets/$(OPENWRT_TARGET)/$(OPENWRT_FLASH_LAYOUT)

imagebuilder_URL := $(OPENWRT_FOLDER_URL)/openwrt-imagebuilder-$(OPENWRT_RELEASE)-$(OPENWRT_TARGET)-$(OPENWRT_FLASH_LAYOUT).Linux-x86_64.tar.xz
sdk_URL := $(OPENWRT_FOLDER_URL)/openwrt-sdk-$(OPENWRT_RELEASE)-$(OPENWRT_TARGET)-$(OPENWRT_FLASH_LAYOUT)_gcc-7.3.0_musl.Linux-x86_64.tar.xz
sdk_URL := $(OPENWRT_FOLDER_URL)/openwrt-sdk-$(OPENWRT_RELEASE)-$(OPENWRT_TARGET)-$(OPENWRT_FLASH_LAYOUT)_gcc-11.2.0_musl.Linux-x86_64.tar.xz

# Directories
ROOT_DIR = $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
Expand Down Expand Up @@ -57,8 +57,8 @@ install-%:
$(SOURCES_DIR)/sdk/scripts/feeds install $*

config_packages: update_feeds $(addprefix install-, $(SOWN_PACKAGES))
echo "CONFIG_SIGNED_PACKAGES=n" > $(SOURCES_DIR)/sdk/.config
make -C $(SOURCES_DIR)/sdk defconfig
echo "CONFIG_SIGNED_PACKAGES=n" >> $(SOURCES_DIR)/sdk/.config

compile-%: update_feeds install-%
make -C $(SOURCES_DIR)/sdk package/$*/compile
Expand All @@ -72,14 +72,17 @@ $(SOURCES_DIR)/imagebuilder/files: $(ROOT_DIR)/files $(SOURCES_DIR)/imagebuilder
$(SOURCES_DIR)/imagebuilder/repositories.conf: packages
echo "src sown file:/$(SOURCES_DIR)/sdk/bin/packages/mips_24kc/sown/" >> $@

firmware: $(SOURCES_DIR)/imagebuilder $(SOURCES_DIR)/imagebuilder/files $(SOURCES_DIR)/imagebuilder/repositories.conf
imagebuilder-packages:
cp $(SOURCES_DIR)/sdk/bin/packages/mips_24kc/sown/*.ipk $(SOURCES_DIR)/imagebuilder/packages/

firmware: $(SOURCES_DIR)/imagebuilder $(SOURCES_DIR)/imagebuilder/files imagebuilder-packages packages
make -C $(SOURCES_DIR)/imagebuilder image PROFILE=$(OPENWRT_PROFILE) PACKAGES="$(PACKAGES)" FILES=files/

.PHONY: all clean firmware packages update_feeds install-% compile-%

.DEFAULT_GOAL := all

all: firmware
all: packages firmware

clean:
git clean -fdX
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else
mac="$MAC"
fi

TMPFILE=`download_url ${firstrun_url} "mac=${mac}&nonce=${nonce}" "--cacert /etc/ssl/certs/DST_ROOT_CA_X3.pem"`
TMPFILE=`download_url ${firstrun_url} "mac=${mac}&nonce=${nonce}" "--cacert /etc/ssl/certs/ISRG_Root_X1.pem"`
res=$?
if [ $res -eq 0 ]; then
# Success, we got something, find out what we got
Expand Down
31 changes: 31 additions & 0 deletions packages/sown-core/files/etc/ssl/certs/ISRG_Root_X1.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4
WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu
ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY
MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc
h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+
0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U
A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW
T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH
B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC
B5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv
KBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWn
OlFuhjuefXKnEgV4We0+UXg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bin/complete_setup
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if test $i -lt 30; then

rm "$lock_file"

TMPFILE=`download_url ${firstrun_url} "mac=${mac}&nonce=${nonce}&complete=1" "--cacert /etc/ssl/certs/DST_ROOT_CA_X3.pem"`
TMPFILE=`download_url ${firstrun_url} "mac=${mac}&nonce=${nonce}&complete=1" "--cacert /etc/ssl/certs/ISRG_Root_X1.pem"`
else
# Failed, try again later
uci set crontabs.setup.enabled='true'
Expand Down