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>
61 lines
1.3 KiB
Diff
61 lines
1.3 KiB
Diff
From 1cf93e2435f0d7a7e8c9fd0d4355e6a521f72fc1 Mon Sep 17 00:00:00 2001
|
|
From: Linus Walleij <linusw@kernel.org>
|
|
Date: Sat, 14 Feb 2026 00:12:51 +0100
|
|
Subject: [PATCH 1/2] ARM: dts: gemini: Correct the RUT1xx
|
|
|
|
Fix two problems with the RUT1xx device tree:
|
|
- The memory is 32MB not 128MB
|
|
- The console is 19200 BPS
|
|
- Activate the PCI
|
|
- Disable the unused USB ports
|
|
|
|
Signed-off-by: Linus Walleij <linusw@kernel.org>
|
|
---
|
|
arch/arm/boot/dts/gemini/gemini-rut1xx.dts | 18 +++++++-----------
|
|
1 file changed, 7 insertions(+), 11 deletions(-)
|
|
|
|
--- a/arch/arm/boot/dts/gemini/gemini-rut1xx.dts
|
|
+++ b/arch/arm/boot/dts/gemini/gemini-rut1xx.dts
|
|
@@ -14,13 +14,13 @@
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
- memory@0 { /* 128 MB */
|
|
+ memory@0 { /* 32 MB */
|
|
device_type = "memory";
|
|
- reg = <0x00000000 0x8000000>;
|
|
+ reg = <0x00000000 0x2000000>;
|
|
};
|
|
|
|
chosen {
|
|
- bootargs = "console=ttyS0,115200n8";
|
|
+ bootargs = "console=ttyS0,19200n8";
|
|
stdout-path = &uart0;
|
|
};
|
|
|
|
@@ -113,6 +113,10 @@
|
|
pinctrl-0 = <&gpio1_default_pins>;
|
|
};
|
|
|
|
+ pci@50000000 {
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
ethernet@60000000 {
|
|
status = "okay";
|
|
|
|
@@ -124,13 +128,5 @@
|
|
/* Not used in this platform */
|
|
};
|
|
};
|
|
-
|
|
- usb@68000000 {
|
|
- status = "okay";
|
|
- };
|
|
-
|
|
- usb@69000000 {
|
|
- status = "okay";
|
|
- };
|
|
};
|
|
};
|