[PATCH 00/13] Switch realtek target to upstream platform

Bjørn Mork bjorn at mork.no
Thu Dec 9 01:03:41 PST 2021


Sander Vanheule <sander at svanheule.net> writes:

> To reduce the maintenance burden of the realtek target in OpenWrt, Hiroshi and
> I have worked on these patches to switch to the upstream platform. Some
> downstream code is maintained, primarily for compatibility with the current
> downstream-only networking drivers. There should be no functional changes for
> users, although there will be some bootlog differences.
>
> We hope these patches will make it easier for developers to write upstream-
> compatible code on OpenWrt. Vice versa, it should also be easier with these
> changes to backport drivers and patches that were upstreamed.

Nice!  Tested the series on my Netgear GS108Tv3 and it works beautifully

Tested-by: Bjørn Mork <bjorn at mork.no>


Initial bootlog diff in case it's of interest to anyone:

--- /tmp/a      2021-12-09 09:56:22.445327002 +0100
+++ /tmp/b      2021-12-09 09:56:24.041264026 +0100
@@ -13,22 +13,20 @@
 ## Booting image from partition ... 0
 ## Booting kernel from Legacy Image at 81000000 ...
    Version:      MIPS OpenWrt Linux-5.10.82
-   Created:      2021-11-29  13:09:16 UTC
-   Data Size:    2281063 Bytes = 2.2 MB
+   Created:      2021-12-09   8:18:28 UTC
+   Data Size:    2369255 Bytes = 2.3 MB
    Checksum ... OK
    Uncompressing ... OK
 
 Starting kernel ...
 
-Linux version 5.10.82 (bjorn at canardo) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r17903+1-a2fcd3900c0c) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Mon Nov 29 13:09:16 2021
-RTL838X model is 83806800
-SoC Type: RTL8380
-Kernel command line: 
+Linux version 5.10.82 (bjorn at canardo) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r17903+1-a2fcd3900c0c) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Dec 9 08:18:28 2021
 printk: bootconsole [early0] enabled
 CPU0 revision is: 00019070 (MIPS 4KEc)
 MIPS: machine is Netgear GS108T v3
+earlycon: ns16550a0 at MMIO 0x18002000 (options '115200n8')
+printk: bootconsole [ns16550a0] enabled
 Initrd not found or empty - disabling initrd
-Using appended Device Tree.
 Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
 Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
 Zone ranges:
@@ -41,46 +39,54 @@
   Normal zone: 288 pages used for memmap
   Normal zone: 0 pages reserved
   Normal zone: 32768 pages, LIFO batch:7
-pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
+percpu: Embedded 14 pages/cpu s26160 r8192 d22992 u57344
+pcpu-alloc: s26160 r8192 d22992 u57344 alloc=14*4096
 pcpu-alloc: [0] 0 
 Built 1 zonelists, mobility grouping on.  Total pages: 32480
-Kernel command line: console=ttyS0,115200
+Kernel command line: earlycon
 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
 Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
 mem auto-init: stack:off, heap alloc:off, heap free:off
-Memory: 120784K/131072K available (5623K kernel code, 636K rwdata, 1256K rodata, 1244K init, 203K bss, 10288K reserved, 0K cma-reserved)
+Memory: 120484K/131072K available (5948K kernel code, 609K rwdata, 1236K rodata, 1224K init, 206K bss, 10588K reserved, 0K cma-reserved)
 SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
+rcu: Hierarchical RCU implementation.
+rcu:   RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
+       Tracing variant of Tasks RCU enabled.
+rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
+rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
 NR_IRQS: 256
-random: get_random_bytes called from start_kernel+0x31c/0x504 with crng_init=0
+random: get_random_bytes called from start_kernel+0x32c/0x544 with crng_init=0
 timer_probe: no matching timers found
-CPU frequency from device tree: 500MHz
 clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns
 sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
 Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
 pid_max: default: 32768 minimum: 301
 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
 Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
+rcu: Hierarchical SRCU implementation.
+dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
+smp: Bringing up secondary CPUs ...
+smp: Brought up 1 node, 1 CPU
 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
-futex hash table entries: 256 (order: -1, 3072 bytes, linear)
+futex hash table entries: 256 (order: 1, 8192 bytes, linear)
 pinctrl core: initialized pinctrl subsystem
 NET: Registered protocol family 16
+FPU Affinity set after 9960 emulations
 clocksource: Switched to clocksource MIPS
 NET: Registered protocol family 2
 IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
-tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
+tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
 TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
-TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
+TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
 TCP: Hash tables configured (established 1024 bind 1024)
-UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
-UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
+UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
+UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
 NET: Registered protocol family 1
 workingset: timestamp_bits=14 max_order=15 bucket_order=1
 squashfs: version 4.0 (2009/01/31) Phillip Lougher
 jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
 pinctrl-single 1b001000.pinmux: 32 pins, size 4
 pinctrl-single 1b00a000.pinmux: 32 pins, size 4
-Probing RTL8231 GPIOs
-rtl8231_init called, MDIO bus ID: 31
 Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
 printk: console [ttyS0] disabled
 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 31, base_baud = 12500000) is a 16550A
@@ -88,6 +94,8 @@
 printk: console [ttyS0] enabled
 printk: bootconsole [early0] disabled
 printk: bootconsole [early0] disabled
+printk: bootconsole [ns16550a0] disabled
+printk: bootconsole [ns16550a0] disabled
 brd: module loaded
 spi-nor spi0.0: mx25l25635e (32768 Kbytes)
 7 fixed-partitions partitions found on MTD device spi0.0



More information about the openwrt-devel mailing list