themactep / thingino-firmware

Open-source firmware for Ingenic SoC IP cameras
https://thingino.com
MIT License
120 stars 38 forks source link

Changes to support t31 4.4 #40

Closed matteius closed 5 months ago

matteius commented 5 months ago

Depends on:

Open Questions: I am still building this with my own toolchain build that I compiled against the 4.4 headers. Noticed that the toolchain fragments reference the 3_10 kernel sources.

For example, this diff captures how I built locally to verify my changes (but I am not sure what the effect of the 3.10 toolchain would be).


diff --git a/configs/fragments/templates/toolchain.download.fragment b/configs/fragments/templates/toolchain.download.fragment
index 2a9228f1..f297ead7 100644
--- a/configs/fragments/templates/toolchain.download.fragment
+++ b/configs/fragments/templates/toolchain.download.fragment
@@ -1,7 +1,7 @@
 BR2_TOOLCHAIN_EXTERNAL=y
 BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
 BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
-BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/themactep/thingino-firmware/releases/download/toolchain/thingino-toolchain_xburst1_musl_gcc13-linux-mipsel.tar.gz"
+BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/matteius/ingenic-t31-zrt-kernel-4.4.94/releases/download/4.4.latest/mipsel-thingino-linux-musl_sdk-buildroot.tar.gz"
 BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
 BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y
 BR2_TOOLCHAIN_EXTERNAL_CXX=y
diff --git a/configs/fragments/toolchain.fragment b/configs/fragments/toolchain.fragment
index b2ae16a8..df19c7ad 100644
--- a/configs/fragments/toolchain.fragment
+++ b/configs/fragments/toolchain.fragment
@@ -2,8 +2,8 @@
 BR2_TOOLCHAIN_EXTERNAL=y
 BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
 BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
-BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/themactep/thingino-firmware/releases/download/toolchain/thingino-toolchain_xburst1_musl_gcc13-linux-mipsel.tar.gz"
-BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
+BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/matteius/ingenic-t31-zrt-kernel-4.4.94/releases/download/4.4.latest/mipsel-thingino-linux-musl_sdk-buildroot.tar.gz"
+BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_4=y
 BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y
 BR2_TOOLCHAIN_EXTERNAL_CXX=y
 BR2_INSTALL_LIBSTDCPP=y