René van Dorst
bf9fa35338
Merge pull request #224 from logicog/fix_passwd
...
Add URL decoding for password comparison.
2026-05-15 20:04:15 +00:00
René van Dorst
a2b2dbcfbf
Merge pull request #221 from feelfree69/kp9000
...
Adding Keeplink KP-9000-6XH-X2
2026-05-15 02:08:42 +00:00
René van Dorst
09d90d6d97
Merge pull request #175 from logicog/ZX310S-4T2XH
...
10GBit Ethernet Switch support (Horaco ZX310S-4T2XH)
2026-05-02 17:22:52 +00:00
René van Dorst
042f4324a4
Merge pull request #166 from logicog/frame_header
...
Cleanup Frame header structures and fix management VLAN
2026-04-24 06:53:07 +00:00
René van Dorst
d2e79d4d80
Fix: In commit 8cbafaa cmd_tokenize() has changed. Missed that it also used
...
outside cmd_parser.c.
Fix the other location and headerfile.
2026-04-21 21:17:22 +02:00
René van Dorst
016061d8db
cmd: Fix 8324edc atoi_short() commit.
...
vlan initialization was removed while trying out an other version.
But was not restored back.
2026-04-21 21:16:03 +02:00
René van Dorst
18225f5d22
uip: more fix.
2026-04-19 22:18:39 +02:00
René van Dorst
224471d676
uip: move second argument to __xdata free up 4 sram bytes.
2026-04-19 22:18:39 +02:00
René van Dorst
50d06c61bc
change prototype uip_udp_new(), saves 1 sram.
2026-04-19 22:18:39 +02:00
René van Dorst
d5709bcaf3
fix atoi
2026-04-19 22:18:39 +02:00
René van Dorst
52d943d5e4
rtlplayground: de-__gptrput()-call in read_reg_timer()
2026-04-19 22:18:39 +02:00
René van Dorst
e79e90dd35
cmd_parser: de-__gptrput()-call in vlan_ingress_mode_parse()
2026-04-19 22:18:36 +02:00
René van Dorst
da768171a5
change cmd_tokenize().
...
Remove the return argument because `err_status` is also reflecting the result.
Fix the error message when too many arguments are found.
refactor `execute_config()`, error out when err_status is not OK.
2026-04-19 22:00:31 +02:00
René van Dorst
94bf4425ba
uip: de-__gptrput()-call access to struct uip_udp_conn
2026-04-18 22:38:42 +02:00
René van Dorst
3e599f0e06
dhcp: de-__gptrput()-call in ip_opt()
2026-04-18 22:27:55 +02:00
René van Dorst
6c6d11ab33
dhcp: de-__gptrget()-call in dhcp_print_ip()
2026-04-18 22:20:46 +02:00
René van Dorst
791f68582d
httpd: de-__gptrget()-call in string_to_html()
2026-04-18 22:20:46 +02:00
René van Dorst
facc4afe40
uip: de-__gptrget()-call in timer_{set,reset,restart,exprired}()
2026-04-18 22:20:46 +02:00
René van Dorst
8134ca7ec7
uip: de-__gptrget()-call in uip_ipaddr_copy()
2026-04-18 22:20:46 +02:00
René van Dorst
642030c7b2
uip: de-__gptrget()-call in uip_add32()
2026-04-18 22:20:46 +02:00
René van Dorst
8324edc5f7
cmd_parser: Improve atoi_byte() and atoi_short().
...
Because no memory type is specified to the reference location, sdcc is
using a helper function to access the location. But sdcc is using a
register to tell the helper function which memory-type is used.
This registers must also be preseved until all access to that location is done.
2026-04-18 22:19:35 +02:00
René van Dorst
f2ff7d7737
parse_ee() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
a24b63a81f
parse_mtu() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
abe3513bc6
parse_port() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
49c43082a3
parse_mirror() make use of cmd_words_len, refactor small parts
2026-04-18 19:35:51 +02:00
René van Dorst
f71e869b97
parse_ingress() make use of cmd_words_len, refactor small parts
2026-04-18 19:35:51 +02:00
René van Dorst
1fe236246a
parse_isolate() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
2acf2499d1
parse_lag_hash() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
56e0d0a5d1
parse_lag() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
7380aeb10d
parse_bw() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
0d698dc572
parse_passwd() make use of cmd_words_len, change password memcpy.
2026-04-18 19:35:51 +02:00
René van Dorst
c7fb354f08
parse_sds{get,set}() and parse_phy{get,set}() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
2cdab5f9d9
parse_reg{set,get}() make use cmd_words_len.
2026-04-18 19:35:51 +02:00
René van Dorst
301577efc8
parse_vlan() make use of cmd_words_len.
2026-04-18 19:35:51 +02:00
René van Dorst
1156f00f95
cmd_parser() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
8cbafaa347
Change cmd_tokenize() it only stores valid locations and use a length field.
2026-04-18 19:35:48 +02:00
René van Dorst
80ff1b25c9
Improve: cmd_compare().
...
Because `cmd` is guaranteed by the compiler to be NULL-terminated, we can make use of that to ensure the loop always ends.
So we don't need to know when the next words starts.
2026-04-18 19:15:25 +02:00
René van Dorst
1a5208110c
Merge pull request #195 from logicog/fix_config_reading
...
Fix reading configuration over flash block boundaries
2026-04-17 11:46:03 +02:00
René van Dorst
c4368c68be
Merge pull request #189 from bstreiff/pcb23_v2_2
...
Add support for keepLink KP-9000-9XHML-X (2M-PCB23-V2.2 version)
Rename machine keepLink KP-9000-9XHML-X (2M-PCB23-V3.1 version)
2026-04-05 14:04:10 +00:00
René van Dorst
97e73d95aa
Merge pull request #183 from janh/fix-i2c-and-sfp-ddm
...
Fix I2C access and SFP diagnostic monitoring in web interface
2026-03-30 17:21:51 +00:00
René van Dorst
2eb6bac4a5
Merge pull request #186 from UAb5eSMn/machine_fix
...
Fix compilation issue for machine HG0402XG_V1_1
2026-03-29 18:16:17 +00:00
René van Dorst
73f92f2e12
Add SWGT024_V2_0 Unmanaged pinout and machine type.
2026-03-29 16:35:31 +02:00
René van Dorst
bfab8cbba3
Rename MACHINE_SWGT024_V2_0 to MACHINE_SWGT024_V2_0_MANAGED.
...
So we can support other versions too.
2026-03-29 16:13:38 +02:00
René van Dorst
eedb0dec01
SWGT024 v2.0: Fix LED and RESET defines for managed version
...
Original firmware used for RJ45:
* Amber leds only for 2.5GBit link/act.
* Green leds only for other speeds.
2026-03-29 16:13:36 +02:00
René van Dorst
385c850d2f
add comments
2026-03-28 21:40:43 +01:00
René van Dorst
cdbc48f2c2
Rename LED_28 to LED_28_SYS.
...
So it clear that led 28 is the SYSTEM LED.
2026-03-28 19:29:49 +01:00
René van Dorst
54fced05b0
Merge pull request #178 from bennydiamond/Support_ZX_SWTGW215AS
...
Add support for PCB-SWTG115AS-V2.0
2026-03-28 13:16:07 +00:00
René van Dorst
8b4e09ad69
Merge pull request #181 from janh/improve-1g-sfp-compat
...
Improve compatibility with 1G SFP modules
2026-03-27 22:58:30 +00:00
René van Dorst
34d53dddf2
Merge pull request #179 from bennydiamond/Early_boot_wipe_config
...
Wipe config if button held at boot
2026-03-27 20:05:55 +00:00
René van Dorst
ec5f655bba
Merge pull request #180 from janh/k0501w-rename-version
...
Rename K0501W to include PCB version
2026-03-27 19:52:29 +00:00
René van Dorst
7291f38e46
Merge pull request #182 from janh/commands-newline
...
Make sure that the output of all commands ends with a newline
2026-03-27 19:05:29 +00:00
René van Dorst
47c5443f0e
Merge pull request #164 from TylerDurden-23/fix-1gbaset-sfp
...
Fix 1GBase-T SFP module not working on serdes port 1.
2026-03-14 17:03:05 +00:00
René van Dorst
f474b5822b
Merge pull request #151 from logicog/concurrency
...
Web request concurrency management
2026-03-10 18:49:18 +00:00
René van Dorst
c2f5a91763
Merge pull request #150 from logicog/bandwidth_web
...
Bandwidth web
2026-03-09 19:54:31 +00:00
René van Dorst
87c161dc70
Merge pull request #147 from logicog/bandwidth
...
Bandwidth control
2026-03-08 19:46:51 +00:00
René van Dorst
e33cd9d0c5
Merge pull request #143 from feelfree69/flashsize_web
...
Show flash_size to web interface and console
2026-03-06 18:22:48 +00:00
René van Dorst
a15500c493
Merge pull request #146 from ranma/printopt
...
Optimize printing functions
2026-03-02 20:59:26 +00:00
René van Dorst
81a7393a81
Merge pull request #141 from logicog/SWTG018AS_A_V_2_0
...
Add support for the SWTG018AS-A V2.0 8+1 unmanged switch
2026-02-27 19:30:25 +00:00
René van Dorst
ba18fa19b0
Merge pull request #138 from logicog/kp_9000_x6hml_x2
...
Add device photos of KeepLink KP-9000-6XHML-X2
2026-02-25 17:45:53 +00:00
René van Dorst
d29d7dcf98
Merge pull request #139 from logicog/fix_6xhml_reset
...
Fix reset button GPIO-Number for MACHINE_KP_9000_6XHML_X2
2026-02-25 08:28:28 +01:00
René van Dorst
033616ef63
Merge pull request #130 from MaDill/patch-1
...
Update README.md how to compile
2026-02-15 15:38:45 +00:00
René van Dorst
a57aeda053
Merge pull request #132 from feelfree69/default_machine
...
fix `make MACHINE=DEFAULT_8C_1SFP`
2026-02-15 15:22:12 +00:00
René van Dorst
d8b52d50de
Merge pull request #131 from vDorst/fix_github_action
...
Fix GitHub actions build and select machine-type via variable.
2026-02-15 11:08:18 +00:00
René van Dorst
1f6f7fbcd4
Fix GITHUB action build.
...
PR #119 made that no machine-type is selected, so the build will fail.
commit 2f787fee enables us select a machine via a variable, use this to
select a machine-type `KP_9000_6XHML_X2` to build.
2026-02-15 11:25:47 +01:00
René van Dorst
c7ea28393a
machine: Fix missing MACHINE_KP_9000_9XHML_X, fixes #120
2026-02-15 11:24:40 +01:00
René van Dorst
2f787feebf
Makefile: Select MACHINE via a variable
2026-02-15 11:12:26 +01:00
René van Dorst
4c1266dca9
Merge pull request #119 from feelfree69/swtgw218as
...
Add MACHINE_SWTGW218AS Managed Switch.
Deselect all MACHINE type so the use always have to select a machine type.
2026-02-15 09:21:33 +00:00
René van Dorst
ff94e383aa
docs: mods: Fix MiB numbers.
2026-02-14 19:35:18 +01:00
René van Dorst
b67e3eb602
Merge pull request #122 from logicog/fix_6xhml_x2_new
...
Fix MACHINE_KP_9000_6XHML_X2: swap SFP-ports remove unnecessary LED-MUX
2026-02-14 17:44:31 +00:00
René van Dorst
94739644b7
Merge pull request #124 from TylerDurden-23/hs-add-fix
...
Fix SFP numbering for HI-K0402WS
2026-02-13 16:04:54 +01:00
René van Dorst
15b0bf9664
Merge pull request #97 from TylerDurden-23/hs-add-clean
...
Add support for HiSource K0402WS-V3.0.
2026-02-11 21:37:11 +00:00
René van Dorst
4a3cd7b73c
Update Keeplink KP-9000-9XHML-X docs.
2026-02-11 19:19:38 +01:00
René van Dorst
f538a9344b
Add Keeplink KP-9000-9XHML-X to machine-file.
2026-02-11 19:18:24 +01:00
René van Dorst
d2edb92ddf
Merge pull request #107 from logicog/hg0502xg
...
Generic Port LED configuration based on machine-configuration
2026-02-10 16:58:42 +00:00
René van Dorst
fc53003022
Merge pull request #116 from logicog/speed_fixes
...
Fix Speed Setting using Auton-Neg
2026-02-08 18:26:43 +00:00
René van Dorst
d4ed753715
Merge pull request #117 from logicog/uuid_mac
...
Generate a random stable locally administered addresses (LAA) MAC address based on the SoC's UUID + LOT number.
2026-02-08 14:58:36 +00:00
René van Dorst
dbb8fe1249
Merge pull request #104 from diijkstra/i2c_gpio
...
Advanced I2C SFP pins definition
2026-02-01 20:48:34 +00:00
René van Dorst
2a5f1de8f7
Merge pull request #105 from logicog/mgmt_vlan
...
Add support for pin switch management features to a VLAN.
2026-01-29 19:31:32 +00:00
René van Dorst
1d94e99612
Demagic 0x7, 0x3e to PHY_MMD_AN, PHY_EEE_ADV2
2026-01-26 23:00:29 +01:00
René van Dorst
a134335308
Demagic PHY_MMD31, 0xa432 to PHY_MMD31, PHY_MMD31_PHYCR2
2026-01-26 22:58:57 +01:00
René van Dorst
6495310ba9
Demagic PHY_MMD31, 0xa434 to PHY_MMD31, PHY_MMD31_PHYSR
2026-01-26 22:48:04 +01:00
René van Dorst
5962c3a8a6
Demagic PHY_MMD31, 0xa414 to PHY_MMD31, PHY_MMD31_GANLPAR
2026-01-26 22:45:44 +01:00
René van Dorst
a6e452e638
Demagic PHY_MMD_AN, 33 to PHY_MMD_AN, PHY_ANEG_MGBASE_ADV
2026-01-26 22:42:54 +01:00
René van Dorst
7f4c276285
Demagic PHY_MMD_AN, 0x00 to PHY_MMD_AN, PHY_ANEG_CTRL
2026-01-26 22:41:49 +01:00
René van Dorst
f9fdc6b81d
Demagic PHY_MMD_AN, 0x13 to PHY_MMD_AN, PHY_ANEG_LP_ABILITY
2026-01-26 22:39:16 +01:00
René van Dorst
d9185b3505
Demagic PHY_MMD31, 0xa400 to PHY_MMD31, PHY_MMD31_FEDCR
2026-01-26 22:37:16 +01:00
René van Dorst
3d7ef55ced
Demagic PHY_MMD31, 0xa412 to PHY_MMD31, PHY_MMD31_GBCR
2026-01-26 22:35:03 +01:00
René van Dorst
44779404df
Demagic PHY_MMD_AN, 0x20 to PHY_MMD_AN, PHY_ANEG_MGBASE_CTRL
2026-01-26 22:31:44 +01:00
René van Dorst
1997d7379b
Demagic PHY_MMD_AN, 0x10 to PHY_MMD_AN, PHY_ANEG_ADV
2026-01-26 22:28:33 +01:00
René van Dorst
c61fb6d2fe
Forgot to replace so machine.isRTL8373 to machine_detected.isRTL8373
2026-01-26 20:39:42 +01:00
René van Dorst
c11099b9ec
Rename PHY_SDS_CTRL and RTL8224_DEV_ID to PHY_MMD30.
...
So demagic the `phy_(, 0x1e, )` to `phy_(, PHY_MMD30, )`.
Use `rg -tc phy | rg -i 0x1e` to find to most locations.
2026-01-25 23:44:03 +01:00
René van Dorst
13d0781455
Rename PHY_MMD_CTRL to PHY_MMD31.
...
So demagic the `phy_(, 0x1f, )` to `phy_(, PHY_MMD31, )`.
2026-01-25 23:38:04 +01:00
René van Dorst
fc327810ed
Add more comments about the SDS-settings for RTL8224.
...
Remove the unused array `rtl8224_cb`.
Rename `rtl8224_ca` to `rtl8224_sds0_setttings`.
2026-01-25 20:24:40 +01:00
René van Dorst
b7b4594406
N-type SOC need to swap some Serdes lines to make it work.
...
Without this fix N-type SOC devices like RTL8372N, RTL8383N and also the
4-port PHY RTL8224N, don't have a functional Serdes. Although the SOC
sees a link, there is no packet flow on both SFP-port nor RTL8224 ports.
Added helper functions to read/write to the RTL8224.
RTL8224 has the same register layout so we can use the same register
defines as for the main SOC.
2026-01-25 17:22:51 +01:00
René van Dorst
aa750d8ff1
Detect SOC type and use detected SOC type to init the hardware.
...
Detect the SOC type and variant. RTL8372 vs RTL8373 and also is it as
non-N/N variant of the SOC.
Even if the machine profile is wrong the hardware will be initilised on
the detected type.
2026-01-25 16:55:43 +01:00
René van Dorst
a0313eab87
doc: gpio overview and mux settings
2026-01-22 23:04:07 +01:00
René van Dorst
2cdeda3bc9
Merge pull request #87 from feelfree69/patch-1
...
Move SW version print after flash initialization
2026-01-20 18:55:27 +00:00
René van Dorst
13e9dbbc7b
Merge pull request #68 from logicog/dhcp
...
Add a DHCP client implementation and validate BANKS code size.
2026-01-18 11:08:17 +00:00
René van Dorst
e74c4f148a
version: Also show the hardware profile.
2026-01-17 21:02:25 +01:00
René van Dorst
e54313eded
Merge pull request #83 from logicog/l2
...
Add support for L2 entry display and deletion in the web interface
2026-01-17 16:00:37 +00:00