]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rt-loader: fix chip revision printout 21498/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 11 Jan 2026 13:43:07 +0000 (14:43 +0100)
committerRobert Marko <robimarko@gmail.com>
Thu, 15 Jan 2026 14:27:49 +0000 (15:27 +0100)
commit168f5609aff27b1db87b7fa79717a3271f02f83a
tree850b1cdbe5114466093c2f1a4a1a4935f51852c2
parent10ae743260b57d2a371efce11b35c25db8d97d0b
realtek: rt-loader: fix chip revision printout

There is currently a mismatch in the detection of the chip type.
rt-loader and the kernel give different revisions. E.g.

rt-loader: Running on RTL9313 (chip id 6567A) with 256MB
kernel: Realtek RTL9313 rev B (6567) SoC with 256 MB

Realtek internal version numbering is

- for RTL838x: 1=A, 2=B, ...
- for others: 0=A, 1=B, ...

rt-loader does not differentiate that. Adapt the calculation to
give a consistent picture.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21498
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/image/rt-loader/src/board.c