Add support for Teltonika RUT104 3G HSUPA router. This has been supported since about 20 years in the upstream Linux kernel after initial contribution by Paulius Zaleckas from Teltonika. It has some historical significance because I think it was one of the first Teltonika Linux-based 3G routers. Installation from scratch is done using the UART: - UART soldering instructions with picture are available on the Link: (see bottom of committ message). - First *diet down* your OpenWrt build as minimal as you can, I really mean this, delete everything you don't need. There is not much RAM to go around. - Extract the "factory" firmare which is essentially just a tar.gz archive: tar xvfz openwrt-gemini-generic-teltonika_rut104-squashfs-factory.bin From the RedBoot menu: - Do NOT UNDER ANY CIRCUMSTANCE try to use the "upgrade firmare" (Z) alternative! - Extract the three files zImage, rd.gz and hddapp.tgz from the archive. - Put these three files in the root directory of your TFTP server (usually /var/lib/tftpboot) - Hit 6 and set up the IP address for your device (e.g. 169.254.1.2 if you're using local link). - Hit Y to "Upgrade Kernel", enter TFTP and your hosts IP number and type zImage. The kernel should upload and flash. - Hit R to "Upgrade Ramdisk", enter TFTP and your hosts IP number and type rd.gz. The "ramdisk" (i.e. the second part of the kernel) should upload and flash. - Hit A to "Upgrade Application", enter TFTP and your hosts IP number and type hddapp.tgz. The "application" (i.e. the root filesystem) should upload and flash. This has a 1024KB Kernel partition, just extend the existing Make functions to handle also this. The initramfs is 0x500000 instead of 0x600000 for this one so add a parameter explicitly parameterizing the initramfs size. Mark non-default due to the small RAM and flash on this device. I currently have no idea how to actually talk to the modem on this thing but it is probably using the high-speed "modem UART" of the Gemini. I'd be willing to help whoever wants to experiment with it. Link: https://dflund.se/~triad/krad/teltonika/ Link: https://github.com/openwrt/openwrt/pull/22045 Signed-off-by: Linus Walleij <linusw@kernel.org>
59 lines
1.6 KiB
Diff
59 lines
1.6 KiB
Diff
From 0b6bed71689664080e1e9ec95aecf45279dde6ee Mon Sep 17 00:00:00 2001
|
|
From: Linus Walleij <linusw@kernel.org>
|
|
Date: Sat, 14 Feb 2026 00:21:13 +0100
|
|
Subject: [PATCH 2/2] gemini: augment RUT1xx DTS with botched partitions
|
|
|
|
Same botched partitions as the Raidsonic IB-4220-B.
|
|
|
|
Signed-off-by: Linus Walleij <linusw@kernel.org>
|
|
---
|
|
arch/arm/boot/dts/gemini/gemini-rut1xx.dts | 37 +++++++++++++++++++++-
|
|
1 file changed, 36 insertions(+), 1 deletion(-)
|
|
|
|
--- a/arch/arm/boot/dts/gemini/gemini-rut1xx.dts
|
|
+++ b/arch/arm/boot/dts/gemini/gemini-rut1xx.dts
|
|
@@ -74,7 +74,42 @@
|
|
status = "okay";
|
|
/* 8MB of flash */
|
|
reg = <0x30000000 0x00800000>;
|
|
- /* TODO: add flash partitions here */
|
|
+ /*
|
|
+ * Override the RedBoot partition table with fixed partitions
|
|
+ * in order to create a coherent "firmware" partition so that
|
|
+ * we can have optimal flash usage with OpenWrt in a big
|
|
+ * MTD-splitted "firmware" partition.
|
|
+ */
|
|
+ partitions {
|
|
+ compatible = "fixed-partitions";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ partition@0 {
|
|
+ label = "BOOT";
|
|
+ reg = <0x00000000 0x00020000>;
|
|
+ read-only;
|
|
+ };
|
|
+ partition@1 {
|
|
+ compatible = "openwrt,executable-prolog";
|
|
+ label = "firmware";
|
|
+ reg = <0x00020000 0x007a0000>;
|
|
+ };
|
|
+ partition@2 {
|
|
+ label = "VCTL";
|
|
+ reg = <0x007c0000 0x00010000>;
|
|
+ read-only;
|
|
+ };
|
|
+ partition@3 {
|
|
+ label = "cfg";
|
|
+ reg = <0x007d0000 0x00020000>;
|
|
+ read-only;
|
|
+ };
|
|
+ partition@4 {
|
|
+ label = "FIS directory";
|
|
+ reg = <0x007f0000 0x00010000>;
|
|
+ read-only;
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
syscon: syscon@40000000 {
|