Repository navigation
Conversation
added tl-wa901nd-v4 support
added tl-wa901nd-v4 support
Chaos calmer
|
Hi, see my answer in #7. Thanks! |
Member
|
This is a read only mirror, please follow this documentation on how to submit patches to OpenWrt: |
hmh
pushed a commit
to simetnicbr/openwrt-openwrt
that referenced
this pull request
Feb 15, 2018
CC: kernel: bump to 3.18.92
13hakta
added a commit
to 13hakta/openwrt
that referenced
this pull request
Jun 25, 2018
Driver supports 2 chip versions: RTL8367RB, RTL8367R-VB. Each of them has 2 external ports. RTL8367RB has ports indexed as openwrt#1,openwrt#2 (PHY openwrt#6, openwrt#7). RTL8367R-VB has ports indexed as #0,openwrt#1 (PHY openwrt#5,openwrt#6). Map ports so that extif0 complies to external port 0 or 1 depending on chip ID. Signed-off-by: Vitaly Chekryzhev <[email protected]>
friendlyarm
referenced
this pull request
in friendlyarm/friendlywrt
Apr 25, 2019
sdelafond
referenced
this pull request
in untangle/openwrt
Oct 15, 2020
MFW-802: caswell-rssi-leds: Reset modem at boot
dengxinfa
referenced
this pull request
in gl-inet/openwrt
Mar 25, 2021
RM#8873,1,sync master 1.1.6 update to github sdk
htfcuddles
pushed a commit
to htfcuddles/openwrt
that referenced
this pull request
Aug 26, 2021
- update to upstream 1.0-beta.10 - add `--noip-as-chnip`/`-n` option - update chnroutes - fix openwrt#6
Open
1 task done
1 task done
1 task done
yifangd
pushed a commit
to yifangd/openwrt
that referenced
this pull request
Sep 18, 2024
Merge patches from testuser7
mans0n
added a commit
to mans0n/openwrt
that referenced
this pull request
Sep 22, 2025
Caveat: RTL8370MB SGMII & LAN openwrt#6-8 ports not supported
1 task done
FrankZRS
pushed a commit
to Cascoda/OpenWrt
that referenced
this pull request
Dec 16, 2025
Update README.md
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Aug 30, 2026
…PROFILE block The operator's instruction on the one remaining dark table: "no esta RE'd -> hacer el RE". Done from the stock ca-ne.ko (tier 2, not stripped, BuildID a2fd9e68): aal_hash_profile_init / _tuple_add / _defAct_update all compute 0x3700 + profile*0x2c, `cmp w0, openwrt#6` bounds SEVEN profiles, and the module carries the physical base 0xf4303700. +0x00 DEFAULT-ACTION word. defAct_update(p, a, b) is a RMW placing a into [8:4] AND [18:14], b into [13:9] AND [23:19]. ★ CROSS-CONFIRMED: that duplication signature holds on ALL SIX live values in our stock capture -- the disassembly and the dump validate each other, which is the >=2-tiers bar. +0x04/+0x08 the profile's TUPLE LIST: live values 1,2,4,5,6 are tuple ids, and the second entries 0x103/0x107 are id | BIT(8). +0x24/+0x28 written by init: arg in [24:0], [27:25] from a module-global (3 on stock for both words). NOT decoded, and said so instead of dressed up: defact bits [1:0] (set on live stock, written by NONE of the three functions -- armed elsewhere, plausibly a profile enable), the meaning of the 25-bit init values (the Cortina SDK is not on this bench), and BIT(8)'s exact semantics. ⚠ AND MY OWN FRAME FROM YESTERDAY WAS OFF BY ONE WORD. The first comment put the profile base at 0x3724 and called 0x3700 an "engine enable" -- derived from the offsets alone, self-consistent, and WRONG: the disassembly shows 0x3700 IS profile 0's default-action word. The SID2QID lesson again: a structure guessed from data alone can cohere and still be false; the stock CODE settles it. The correction is recorded in the comment with its date, so the frame change reads as evidence, not churn. Every row is now annotated with its decoded meaning (profile, acts, tuples). X400AXF built and verified in the image. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TZNHCu47WtWzTT4HFYEQLD
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Sep 6, 2026
… ME attributes, and the blob overrun they exposed gpon-luna.c -- 67 registers that MOVE between the three Luna chips stop being shared literals: the I2C indirect block (+4 on the 9607C). The fact was already known and applied ONCE, as a ternary in the DDM read path, while bosa_i2c_write8() wrote the three registers BARE and i2c_rd_bus() repeated the literals a third time. On a 9607C the laser write path kicked the wrong registers, with nothing to read back and no timeout to fire. the SerDes window, as ONE base: measured across the three chipdefs, EVERY SerDes register moves by exactly +0x1e000 -- 215 on the 9603CVD, 245 on the 9607C, no exception. SDS_CFG is NOT in that window and moves on all three, so it keeps its own field. the six OMCI packet counters, as one contiguous base. ⚠ The surrounding block is NOT uniform -- 25 registers move +0x580 while seven STAT_* pointers move by +0x0/+0x400/+0x600/+0x680/+0x6c0/+0x800/+0x8d0 -- so a window would have mis-mapped all seven. What justifies one number is that those six are contiguous on all three chips. 25 irregular movers, one field each: no window, no contiguous block, so a field apiece is the only honest encoding. CF_CFG is absent from the 9603CVD's map and keeps the 9602C address with "NOT IN 9603cvd's map" beside it. ★ 46 of the 67 were BARE HEX and invisible to every guard until moved_window_guard learned to resolve a raw offset against the chipdefs. ⚠ AND ONE OF THEM WAS A MISTAKE, caught and reverted here: 0x27008 is one ELEMENT of a four-entry port-isolation ARRAY (0x27000..0x2700c, one value). The chipdefs name 0x27008 PISO_EXT on the 9602C and 0x2700c PISO_EXT on the 9603CVD because the array's extent differs, not because a register moved -- routing it made the G24W write 0x2700c twice and never write 0x27008. The four literals are restored with the reason at the call site. gpon_omci_me.c -- two attributes served under the number of the one before them: ME 7 openwrt#5 was Image hash(16) -> openwrt#5 Product code(25), openwrt#6 Image hash(16) ME 329 openwrt#3 was Interworking ptr(2) -> openwrt#3 Interdomain name(25), openwrt#4 ptr(2) Found by comparing per-attribute LENGTHS against four vendor firmwares' own plugin tables; 92 of 101 agreed, and the two that did not are ours. Validated against BOTH boards we replace at 103/103, and mutation-proven: revert the fix and the X111W's own stock flags exactly those two rows. ⚠ The repair then read 9 BYTES PAST a static const array -- OMCI_B_ZEROS held 16 bytes and a 25-byte attribute wants 25. ASan caught it; the source had warned ("the _Static_assert guards the TOTAL size, not the individual") and nothing checked it. The zeros region is sized by its longest consumer now. cortina-ni-regs.h -- nine #defines restored. A cleanup had deleted 31 as "nobody uses them"; nine were used INSIDE that header, and the X400AXF did not build. The compiler had missed six of the nine for two commits, because a macro only fails where it is EXPANDED. Six files -- 42 rotted `file.c:LINE` citations re-found by reading the pre-rename file out of git and matching the line's TEXT (36 exact, 6 by a 3-line window). Not a sed: that rename moved the line numbers, so rewriting the name alone would have produced pointers that RESOLVE and land in the wrong place. Proven: all three boards build and verify in the image after every batch; gpon_common_diff_test 3386/0; sim_pair 9/0; sim_ploam 8/0; moved_window_guard reports zero moved registers used as a literal, named or bare; every rewritten 9602C site resolves to the address it already had (25/25, mechanically checked). ⚠ NOT bench-validated: the ME 7 / ME 329 renumbering changes what this ONU answers a live OLT. Four vendor firmwares agree with the new numbering; that is what their CODE says, not what the running DEVICE does. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 6, 2026
…shows it The lab OLT's ont-capability of the bench X111W read ETH 2, POTS 1, IP configuration support[3], priority queues DS 24 / US 96 on stock and 1, 0, not support, 8, 0 on ours. Production OLTs see the same MIB, and the operator's rule is that only the software version may differ. After this change olt_view.py reads MATCHES (47 fields), and the datapath group passes on the bench X111W (NAT v4/v6, 941/956 Mbps transit, WiFi, PPPoE, tagged WAN). Core (gpon_omci_me.c/.h, gpon_omci_core.c): - struct omci_slot: one equipment slot per declared circuit pack (ME 5 + ME 6: type, ports, priority queues, T-CONT buffers, schedulers). ME 6 gains openwrt#6..openwrt#8, openwrt#10, openwrt#11, openwrt#13, openwrt#14. Undeclared boards keep the single 0x0101 slot. - ME 277 rows follow the slots: downstream blocks of 8 per Ethernet UNI then the VEIP, upstream 8 per T-CONT (0x8000 + 8t + p), related port counting down -- stock's own numbering, all 120 X111W queues checked. - ME 134 IP host config data per declared instance; openwrt#2 is the WAN netdev MAC the NIC pushes (luna_omci_set_wan_mac), not answered until it does. - ME 53 PPTP POTS UNI per declared instance (stock reports 0x0201 unwired). - A Get of ME 5/6/53/134/277 validates the instance (UNKNOWN_INST). - Luna OMCI_MIB_ROWS_MAX 200 -> 256 (the X111W MIB is 205 rows). Luna shell: /omci-uni circuit-packs, ip-host-instances/ip-host-wan-mac and pots-uni-instances are parsed; rtl9602c_eth.c and luna_eth.c push the WAN MAC wherever they set it. X111W DTS: the omci-uni node sat inside &spi_nor (/flash@14000000/omci-uni) while luna_gpon looks it up at /omci-uni, so the board's UNI panel was never applied. It is now a root child and declares stock's six circuit packs, three IP hosts and one POTS UNI. dts_vs_measured's DRIVER_NODE_PATHS check catches the misplacement at build time. Host proof: omci_slot_test 30/0 (mutation-proven), omci_me_table 15/15, omci_admin_state 129/0, omci_wire_offsets 159/159, luna_omci_pipeline 12578/0; widths agree with stock's mib_*.so for every added attribute. All four boards build. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 6, 2026
…der; one core declaration for both shells The X400AXF's stock declares 30 T-CONTs and schedulers, ONU2-G 248/30/248, no circuit pack at all, and downstream queue blocks 0x0104..0x0101 then the VEIP; the core had 12 T-CONTs and queues numbered from the circuit packs. After this change the lab OLT's view of the X400AXF on our image differs from stock in one field only (the PLOAM password, an identity matter) and the datapath group passes on it (NAT v4/v6, 941/956 Mbps transit, WiFi, PPPoE, tagged WAN); the X111W still MATCHES on all 47 fields. Core: - struct omci_capacity (survives reinit): tcont_n (ME 262 rows, ANI-G openwrt#2), sched_n (ME 278 rows, ONU2-G openwrt#7), ONU2-G openwrt#6 and openwrt#9, the downstream queue ports in block order, and 8 upstream queues per T-CONT once declared. Defaults are the old constants (12/12/96/64, one block on 0x0101, no US). - tcont_alloc holds up to 32 T-CONTs; tcont_alloc_written is a u32. - Circuit packs are ME 5/6 data only, no longer the source of the queues; an empty list declares a board with none. - omci_onu_declare_queues_be (onu-capacity, downstream-queue-ports) and omci_onu_declare_equipment(), which reads every equipment property through a shell-supplied property callback: luna_gpon.c and cortina-gpon.c each pass a 4-line of_get_property wrapper instead of parsing them twice. - OMCI_MIB_ROWS_MAX is 512 on every family (X400AXF ~380 rows). DTS: the X111W declares its capacity and queue order explicitly (same MIB as before); the X400AXF declares its whole panel as omci_panel.py derives it from its stock census. Host proof: omci_slot_test 33/0 (X400AXF census shape arm; five guards mutation-proven), omci_me_table 15/15, omci_admin_state 129/0, omci_accepted 198/0, cg_omci_pipeline 226/0, luna_omci_pipeline 12578/0, omci_wire_offsets 159/159, luna_omci_abi 9/0. All four boards build. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 6, 2026
…cking, its order
The field X111W's stock (M225-260618) uploaded 500 rows to the operator's
production OLT on 2026-10-02 and ours 205. Stock's rule, from two tiers that
agree: its ME plugins' optionType & 0x31A (OMCI-simulate/me_attr_table.py on the
lab X111W, G24W, V2801RGW and X100DG stocks) names the attributes it serves by
Get and never uploads, and each instance packs its uploaded attributes in order
into 26-octet rows; the field upload matches that rule on every standard class.
- the hand-written row builder is replaced by that rule: a HIDDEN flag on the
descriptor (ONU-G openwrt#9/openwrt#13/openwrt#14, SW image openwrt#5/openwrt#6, IP host openwrt#16, ANI-G openwrt#13), one
packer, rows sorted by class then instance as stock sends them;
- ME 5 openwrt#4/openwrt#5/openwrt#8/openwrt#9, ME 6 openwrt#9, ME 277 openwrt#9..openwrt#16 (stock's own /etc/omci_mib.cfg),
ME 329 openwrt#5, and ME 131 OLT-G modelled -- writable and stored, stock's values
until the OLT writes it;
- ME 83, 133, 138, 141 and 340 modelled, uploaded only where a board declares
them (DT extra-me-instances, <class instance> pairs); a Get elsewhere is
unknown-instance;
- T-CONT alloc default 0x00ff on every T-CONT and traffic-scheduler policy 2,
as stock's omci_app creates them (decompiled) and the field upload shows;
- the product code read as stock reads OMCI_VENDOR_PRODUCT_CODE, strtol base
0: MIB "31" is 0x001f on the field unit's wire (live `mib get` = 31), not
0x0031; the build default follows;
- OMCI_MIB_ROWS_MAX 512 -> 768: two rows a priority queue puts the X400AXF's
census at 638;
- X111W DT: onu-capacity 16/128/16/64 and the PON pack 128/16/16, as the
field stock M225-260618 reports (the lab unit's M225-260515 said 12/96/12),
and its five further MEs.
Footprint (MIPS BE, -Os): gpon_omci_me.o 20168 -> 20744 B; struct omci_onu
8576 -> 10200 B (1536 of it the row table). Against stock's 500 rows ours is
now 422, every row equal but for a declared list (dev gpon_prod_olt_omci_test
[e]/[f]). Every board built.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 31, 2026
…PROFILE block The operator's instruction on the one remaining dark table: "no esta RE'd -> hacer el RE". Done from the stock ca-ne.ko (tier 2, not stripped, BuildID a2fd9e68): aal_hash_profile_init / _tuple_add / _defAct_update all compute 0x3700 + profile*0x2c, `cmp w0, openwrt#6` bounds SEVEN profiles, and the module carries the physical base 0xf4303700. +0x00 DEFAULT-ACTION word. defAct_update(p, a, b) is a RMW placing a into [8:4] AND [18:14], b into [13:9] AND [23:19]. ★ CROSS-CONFIRMED: that duplication signature holds on ALL SIX live values in our stock capture -- the disassembly and the dump validate each other, which is the >=2-tiers bar. +0x04/+0x08 the profile's TUPLE LIST: live values 1,2,4,5,6 are tuple ids, and the second entries 0x103/0x107 are id | BIT(8). +0x24/+0x28 written by init: arg in [24:0], [27:25] from a module-global (3 on stock for both words). NOT decoded, and said so instead of dressed up: defact bits [1:0] (set on live stock, written by NONE of the three functions -- armed elsewhere, plausibly a profile enable), the meaning of the 25-bit init values (the Cortina reference is not on this bench), and BIT(8)'s exact semantics. ⚠ AND MY OWN FRAME FROM YESTERDAY WAS OFF BY ONE WORD. The first comment put the profile base at 0x3724 and called 0x3700 an "engine enable" -- derived from the offsets alone, self-consistent, and WRONG: the disassembly shows 0x3700 IS profile 0's default-action word. The SID2QID lesson again: a structure guessed from data alone can cohere and still be false; the stock CODE settles it. The correction is recorded in the comment with its date, so the frame change reads as evidence, not churn. Every row is now annotated with its decoded meaning (profile, acts, tuples). X400AXF built and verified in the image. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TZNHCu47WtWzTT4HFYEQLD
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 31, 2026
… ME attributes, and the blob overrun they exposed gpon-luna.c -- 67 registers that MOVE between the three Luna chips stop being shared literals: the I2C indirect block (+4 on the 9607C). The fact was already known and applied ONCE, as a ternary in the DDM read path, while bosa_i2c_write8() wrote the three registers BARE and i2c_rd_bus() repeated the literals a third time. On a 9607C the laser write path kicked the wrong registers, with nothing to read back and no timeout to fire. the SerDes window, as ONE base: measured across the three register maps, EVERY SerDes register moves by exactly +0x1e000 -- 215 on the 9603CVD, 245 on the 9607C, no exception. SDS_CFG is NOT in that window and moves on all three, so it keeps its own field. the six OMCI packet counters, as one contiguous base. ⚠ The surrounding block is NOT uniform -- 25 registers move +0x580 while seven STAT_* pointers move by +0x0/+0x400/+0x600/+0x680/+0x6c0/+0x800/+0x8d0 -- so a window would have mis-mapped all seven. What justifies one number is that those six are contiguous on all three chips. 25 irregular movers, one field each: no window, no contiguous block, so a field apiece is the only honest encoding. CF_CFG is absent from the 9603CVD's map and keeps the 9602C address with "NOT IN 9603cvd's map" beside it. ★ 46 of the 67 were BARE HEX and invisible to every guard until moved_window_guard learned to resolve a raw offset against the register maps. ⚠ AND ONE OF THEM WAS A MISTAKE, caught and reverted here: 0x27008 is one ELEMENT of a four-entry port-isolation ARRAY (0x27000..0x2700c, one value). The register maps name 0x27008 PISO_EXT on the 9602C and 0x2700c PISO_EXT on the 9603CVD because the array's extent differs, not because a register moved -- routing it made the G24W write 0x2700c twice and never write 0x27008. The four literals are restored with the reason at the call site. gpon_omci_me.c -- two attributes served under the number of the one before them: ME 7 openwrt#5 was Image hash(16) -> openwrt#5 Product code(25), openwrt#6 Image hash(16) ME 329 openwrt#3 was Interworking ptr(2) -> openwrt#3 Interdomain name(25), openwrt#4 ptr(2) Found by comparing per-attribute LENGTHS against four vendor firmwares' own plugin tables; 92 of 101 agreed, and the two that did not are ours. Validated against BOTH boards we replace at 103/103, and mutation-proven: revert the fix and the X111W's own stock flags exactly those two rows. ⚠ The repair then read 9 BYTES PAST a static const array -- OMCI_B_ZEROS held 16 bytes and a 25-byte attribute wants 25. ASan caught it; the source had warned ("the _Static_assert guards the TOTAL size, not the individual") and nothing checked it. The zeros region is sized by its longest consumer now. cortina-ni-regs.h -- nine #defines restored. A cleanup had deleted 31 as "nobody uses them"; nine were used INSIDE that header, and the X400AXF did not build. The compiler had missed six of the nine for two commits, because a macro only fails where it is EXPANDED. Six files -- 42 rotted `file.c:LINE` citations re-found by reading the pre-rename file out of git and matching the line's TEXT (36 exact, 6 by a 3-line window). Not a sed: that rename moved the line numbers, so rewriting the name alone would have produced pointers that RESOLVE and land in the wrong place. Proven: all three boards build and verify in the image after every batch; gpon_common_diff_test 3386/0; sim_pair 9/0; sim_ploam 8/0; moved_window_guard reports zero moved registers used as a literal, named or bare; every rewritten 9602C site resolves to the address it already had (25/25, mechanically checked). ⚠ NOT bench-validated: the ME 7 / ME 329 renumbering changes what this ONU answers a live OLT. Four vendor firmwares agree with the new numbering; that is what their CODE says, not what the running DEVICE does. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 31, 2026
…shows it The lab OLT's ont-capability of the bench X111W read ETH 2, POTS 1, IP configuration support[3], priority queues DS 24 / US 96 on stock and 1, 0, not support, 8, 0 on ours. Production OLTs see the same MIB, and the operator's rule is that only the software version may differ. After this change olt_view.py reads MATCHES (47 fields), and the datapath group passes on the bench X111W (NAT v4/v6, 941/956 Mbps transit, WiFi, PPPoE, tagged WAN). Core (gpon_omci_me.c/.h, gpon_omci_core.c): - struct omci_slot: one equipment slot per declared circuit pack (ME 5 + ME 6: type, ports, priority queues, T-CONT buffers, schedulers). ME 6 gains openwrt#6..openwrt#8, openwrt#10, openwrt#11, openwrt#13, openwrt#14. Undeclared boards keep the single 0x0101 slot. - ME 277 rows follow the slots: downstream blocks of 8 per Ethernet UNI then the VEIP, upstream 8 per T-CONT (0x8000 + 8t + p), related port counting down -- stock's own numbering, all 120 X111W queues checked. - ME 134 IP host config data per declared instance; openwrt#2 is the WAN netdev MAC the NIC pushes (luna_omci_set_wan_mac), not answered until it does. - ME 53 PPTP POTS UNI per declared instance (stock reports 0x0201 unwired). - A Get of ME 5/6/53/134/277 validates the instance (UNKNOWN_INST). - Luna OMCI_MIB_ROWS_MAX 200 -> 256 (the X111W MIB is 205 rows). Luna shell: /omci-uni circuit-packs, ip-host-instances/ip-host-wan-mac and pots-uni-instances are parsed; rtl9602c_eth.c and luna_eth.c push the WAN MAC wherever they set it. X111W DTS: the omci-uni node sat inside &spi_nor (/flash@14000000/omci-uni) while luna_gpon looks it up at /omci-uni, so the board's UNI panel was never applied. It is now a root child and declares stock's six circuit packs, three IP hosts and one POTS UNI. dts_vs_measured's DRIVER_NODE_PATHS check catches the misplacement at build time. Host proof: omci_slot_test 30/0 (mutation-proven), omci_me_table 15/15, omci_admin_state 129/0, omci_wire_offsets 159/159, luna_omci_pipeline 12578/0; widths agree with stock's mib_*.so for every added attribute. All four boards build. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 31, 2026
…der; one core declaration for both shells The X400AXF's stock declares 30 T-CONTs and schedulers, ONU2-G 248/30/248, no circuit pack at all, and downstream queue blocks 0x0104..0x0101 then the VEIP; the core had 12 T-CONTs and queues numbered from the circuit packs. After this change the lab OLT's view of the X400AXF on our image differs from stock in one field only (the PLOAM password, an identity matter) and the datapath group passes on it (NAT v4/v6, 941/956 Mbps transit, WiFi, PPPoE, tagged WAN); the X111W still MATCHES on all 47 fields. Core: - struct omci_capacity (survives reinit): tcont_n (ME 262 rows, ANI-G openwrt#2), sched_n (ME 278 rows, ONU2-G openwrt#7), ONU2-G openwrt#6 and openwrt#9, the downstream queue ports in block order, and 8 upstream queues per T-CONT once declared. Defaults are the old constants (12/12/96/64, one block on 0x0101, no US). - tcont_alloc holds up to 32 T-CONTs; tcont_alloc_written is a u32. - Circuit packs are ME 5/6 data only, no longer the source of the queues; an empty list declares a board with none. - omci_onu_declare_queues_be (onu-capacity, downstream-queue-ports) and omci_onu_declare_equipment(), which reads every equipment property through a shell-supplied property callback: luna_gpon.c and cortina-gpon.c each pass a 4-line of_get_property wrapper instead of parsing them twice. - OMCI_MIB_ROWS_MAX is 512 on every family (X400AXF ~380 rows). DTS: the X111W declares its capacity and queue order explicitly (same MIB as before); the X400AXF declares its whole panel as omci_panel.py derives it from its stock census. Host proof: omci_slot_test 33/0 (X400AXF census shape arm; five guards mutation-proven), omci_me_table 15/15, omci_admin_state 129/0, omci_accepted 198/0, cg_omci_pipeline 226/0, luna_omci_pipeline 12578/0, omci_wire_offsets 159/159, luna_omci_abi 9/0. All four boards build. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 31, 2026
…cking, its order
The field X111W's stock (M225-260618) uploaded 500 rows to the operator's
production OLT on 2026-10-02 and ours 205. Stock's rule, from two tiers that
agree: its ME plugins' optionType & 0x31A (OMCI-simulate/me_attr_table.py on the
lab X111W, G24W, V2801RGW and X100DG stocks) names the attributes it serves by
Get and never uploads, and each instance packs its uploaded attributes in order
into 26-octet rows; the field upload matches that rule on every standard class.
- the hand-written row builder is replaced by that rule: a HIDDEN flag on the
descriptor (ONU-G openwrt#9/openwrt#13/openwrt#14, SW image openwrt#5/openwrt#6, IP host openwrt#16, ANI-G openwrt#13), one
packer, rows sorted by class then instance as stock sends them;
- ME 5 openwrt#4/openwrt#5/openwrt#8/openwrt#9, ME 6 openwrt#9, ME 277 openwrt#9..openwrt#16 (stock's own /etc/omci_mib.cfg),
ME 329 openwrt#5, and ME 131 OLT-G modelled -- writable and stored, stock's values
until the OLT writes it;
- ME 83, 133, 138, 141 and 340 modelled, uploaded only where a board declares
them (DT extra-me-instances, <class instance> pairs); a Get elsewhere is
unknown-instance;
- T-CONT alloc default 0x00ff on every T-CONT and traffic-scheduler policy 2,
as stock's omci_app creates them (decompiled) and the field upload shows;
- the product code read as stock reads OMCI_VENDOR_PRODUCT_CODE, strtol base
0: MIB "31" is 0x001f on the field unit's wire (live `mib get` = 31), not
0x0031; the build default follows;
- OMCI_MIB_ROWS_MAX 512 -> 768: two rows a priority queue puts the X400AXF's
census at 638;
- X111W DT: onu-capacity 16/128/16/64 and the PON pack 128/16/16, as the
field stock M225-260618 reports (the lab unit's M225-260515 said 12/96/12),
and its five further MEs.
Footprint (MIPS BE, -Os): gpon_omci_me.o 20168 -> 20744 B; struct omci_onu
8576 -> 10200 B (1536 of it the row table). Against stock's 500 rows ours is
now 422, every row equal but for a declared list (dev gpon_prod_olt_omci_test
[e]/[f]). Every board built.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
alphaonex86
added a commit
to alphaonex86/openwrt
that referenced
this pull request
Oct 31, 2026
The AXS ZTE OLT writes the ACS chain (ME 340 -> 137 -> 148 + 157) and the ZTE MEs 65305, 65319 and 65321. Their widths and access are read off the F670L's own OMCI under emulation (a pattern Set, then a Get). - An attribute pool (OMCI_POOL_MAX values of up to 25 octets, about 1 KB per ONU model) holds what the dense store cannot: the ME 148/157 strings and the attributes of autonomous instances (ME 340, ZTE ME 65319 #0). A full pool fails the attribute; Delete and MIB reset free it. - ME 340's Set is applied. It was refused unless the value was unchanged, so the ACS chain had no head. - 65319 #0 is served by Get and never uploaded, as on the F670L. A vendor ME that the OLT created and the model describes is no longer answered as absent. - An owed AVC: the far-end table names the AVC its own ONU sends once ME 131 names that OLT (ZTE: 65319 openwrt#6 = 4, right after the answer). The core builds it from what a Get serves, and Luna, Cortina and ponvirt send it after the answer. When the TX fails, it stays owed for the next answer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
support for the TL-WA901N/ND-V4