René van Dorst
f59be9cf2b
Added software version + git short hash string to firmware.
...
The Makefile has the version number and generates a version.h which
has VERSION_SW define that looks like "v<VERSION>-g<GIT_SHORT_HASH>".
Software version shows at boot in the serial console.
And shown with command: `version`.
It can also be requested via `information.json`.
```
{
"ip_address": "192.168.10.247",
"ip_gateway": "192.168.10.1",
"ip_netmask": "255.255.255.0",
"mac_address": "1c:2a:a3:23:00:02",
"sw_ver": "v0.1.0-gd48235f",
"hw_ver": "SWGT024-V2.0"
}
```
2025-11-26 23:08:23 +01:00
René van Dorst
d48235f652
Merge pull request #37 from logicog/sfp_demagic
...
De-Magic I2C configuration for SFP-EEPROM reads
v0_1_alpha
2025-11-03 21:07:15 +00:00
logicog
9c7572b289
De-Magic I2C configuration for SFP-EEPROM reads
2025-11-02 09:49:13 +01:00
logicog
0989b227c0
Merge pull request #34 from vDorst/feat_html_firmware_select
...
html: firmware selection: limit extension only to .bin
2025-10-31 11:48:37 +01:00
René van Dorst
aa406e1d98
html: firmware selection: limit extension only to .bin
...
This makes it quicker to select firmware image from the output directory.
You can still select at File type "All Files" if the extention is diffrent.
2025-10-30 21:30:37 +01:00
René van Dorst
1d6f0a2163
Merge pull request #33 from logicog/mirror
...
Mirror
2025-10-30 20:03:22 +00:00
logicog
f93cfd467f
Use better css elsewhere
2025-10-29 15:39:47 +01:00
logicog
51c5bd75eb
Add mirroring web-calls
2025-10-29 15:39:47 +01:00
logicog
2008d490a9
Add support for mirror status and mirror deletion via CLI
2025-10-29 15:39:47 +01:00
logicog
5622f1c843
Add Mirroring web-pages
2025-10-29 15:39:47 +01:00
logicog
aa99921ea2
Merge pull request #32 from vDorst/gen_json
...
Improve JSON response.
2025-10-29 15:39:23 +01:00
René van Dorst
7d94f3d328
Improve JSON response.
...
Remove all the extra spaces from the json.
Also simplify the generation of the json.
Codespace is cheap so duplicated strings is not an issue.
But generating strings from different parts is more expensive in clock cycles.
Add a helper funcion `bool_to_html()` to generate bool value for html output.
2025-10-28 21:10:26 +01:00
René van Dorst
d0b6a73bf2
Merge pull request #30 from logicog/crc16
...
CRC-16 Calculation and verification
2025-10-26 21:59:50 +00:00
logicog
eb0e4df5ea
Fix reset after image upload
2025-10-26 14:20:30 +01:00
logicog
9c062edc75
Fix CRC calculation during upload
2025-10-26 14:20:07 +01:00
René van Dorst
9929fcc169
Merge pull request #31 from logicog/eee_status
...
Eee status display
2025-10-22 09:12:02 +02:00
logicog
e5f5955f71
Add timeouts to XhttpGet requests
2025-10-22 08:05:44 +02:00
logicog
ba902a68d4
Defer cmd execution for console and via http POST
2025-10-21 18:05:33 +02:00
logicog
03fb3fe6b4
Reduce PHY reset time to 20ms
2025-10-21 17:47:38 +02:00
logicog
726b421824
Add EEE httpd support
2025-10-21 17:46:18 +02:00
logicog
df1cd62518
Add EEE style and navigation
2025-10-20 18:35:35 +02:00
logicog
aab4d334e5
Formatting fix
2025-10-20 18:35:35 +02:00
logicog
73b8335bef
Add EEE html page
2025-10-20 18:35:35 +02:00
logicog
0d64efacb3
Add EEE status query
2025-10-20 18:35:35 +02:00
logicog
f3ff8eed42
Make use of CRC checksum calculation when building image
2025-10-20 07:29:39 +02:00
logicog
4d17d9ff00
Add CRC verification
2025-10-20 07:29:39 +02:00
logicog
8499e9e464
Add CRC-16 calculator for a firmware image
2025-10-20 07:29:39 +02:00
logicog
ac4f0d410f
Add CRC16 initial code
2025-10-20 07:29:39 +02:00
René van Dorst
adc4bfc9a0
Merge pull request #29 from logicog/constseg
...
Fix bug in usage of CONST segment in banked code. Use #pragma constseg
2025-10-15 18:34:54 +00:00
logicog
7546d0c685
Fix bug in usage of CONST segment in banked code. Use #pragma constseg
2025-10-14 18:41:52 +02:00
René van Dorst
58c21a1986
Merge pull request #28 from logicog/eee
...
Support EEE via CLI
2025-10-11 18:34:39 +00:00
logicog
8efb9fb305
Fix counter GET
2025-10-11 13:09:47 +02:00
logicog
717247bc0e
Add MAC-EEE functionality
2025-10-11 13:09:47 +02:00
logicog
31c61faa60
Use PHY page definitions, add PHY reset routine
2025-10-11 11:32:23 +02:00
logicog
2ff450edd4
Add generic PHY definitions file for C45 PHYs
2025-10-11 11:29:28 +02:00
logicog
1a0ad07367
Remove superfluous head tag and move final script tag into body
2025-10-10 20:06:45 +02:00
René van Dorst
0f48a773d9
Merge pull request #26 from logicog/navbar
...
Navbar
2025-10-10 18:02:04 +00:00
logicog
09ba7859b6
Add navigation.js sidebar
2025-10-10 18:27:24 +02:00
logicog
39a22fd926
Use consistent navbar for all pages, save space used in HTML for this
2025-10-10 18:18:42 +02:00
logicog
5cc90841ea
Merge pull request #25 from vDorst/installer_typo
...
installer: fix left over typo SFR_FLASH_DUMMYCICLES
2025-10-10 17:46:57 +02:00
René van Dorst
e5ee4594ef
installer: fix left over typo SFR_FLASH_DUMMYCICLES
2025-10-09 20:03:08 +02:00
logicog
0835d52fec
Merge pull request #21 from logicog/updater
...
WIP: Add a web-updater
2025-10-08 08:57:58 +02:00
René van Dorst
928cf1cf58
http: upload: make sure we don't cross flash page boundaries.
...
This causes the address pointer to wrap back to the front of the page.
Which results in that the beginnen of the page can have data for the next page.
2025-10-07 21:19:36 +02:00
René van Dorst
a59f92a648
Also use struct flash_region in flash_read_security(), flash_sector_erase().
2025-10-05 16:53:46 +02:00
René van Dorst
52fa41760c
Don't pass the first 16-bit argument via xdata.
...
Calling confention already uses the DPTR registers as the first two byte arguments.
So adds a lot of code to put the 16-bit value on xdata, still passes the 16-bit xdata ptr in DPTR registers, then read the xdata value.
So it doesn't save any sram bytes.
2025-10-05 16:22:23 +02:00
René van Dorst
1bec5cdf8a
Add basic config.txt
2025-10-05 16:18:39 +02:00
René van Dorst
884bc18a61
Remove flash_read_bulk(), refactor website and execute_config().
...
flash_read_bulk() is kind of a printf function. But did not work as well.
flash_read_bulk() was used in the http generation so this needed to be changed as well.
For the website we decided that we are going to use CSR(Client Side Rendering).
So every HTML and JS files are now static.
Variables are fetched via json calls and output is render on the client side.
Also usefull for the future when we want a REST like API.
execute_config() was also using flash_read_bulk().
This have been replaced with flash_read_bulk() and parsing the flash_buf buffer.
2025-10-05 15:47:14 +02:00
René van Dorst
7a87b79871
Convert flash_addr to struct flash_region.
...
flash_region storage flash address and length, which a operation is needed.
2025-10-05 15:36:08 +02:00
logicog
05492e601a
Reducing IMEM footprint in flash routines
2025-09-30 20:45:44 +02:00
logicog
110c403443
Adding firmware update at beginning of boot if a new image is found in second half of flash
2025-09-30 20:45:44 +02:00