Skip to content

add support for MokerLink POE-2G080110GS - #364

Open
dw4rren wants to merge 5 commits into
logicog:mainfrom
dw4rren:add-mokerlink-poe-2g080110gs
Open

add support for MokerLink POE-2G080110GS#364
dw4rren wants to merge 5 commits into
logicog:mainfrom
dw4rren:add-mokerlink-poe-2g080110gs

Conversation

@dw4rren

@dw4rren dw4rren commented Aug 27, 2026

Copy link
Copy Markdown

Add description, photos, and machine description for MokerLink POE-2G080110GS unmanaged PoE switch.

@th0m4sek

Copy link
Copy Markdown
Contributor

It should be added also to supported devices.

@dw4rren

dw4rren commented Aug 27, 2026

Copy link
Copy Markdown
Author

added

@vDorst vDorst left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase and see comments.

Comment thread machine.c
Comment thread doc/devices/2M-PCB51-ML-V1_1.md Outdated
Comment on lines +29 to +43
This example uses `flashrom` and a CH341A programmer [modded for 3.3V](https://flashrom.org/supported_hw/supported_prog/ch341ab.html).

```
# compile RTLPlayground
make MACHINE=POE_2G080110GS

# for unmanaged POE-2G080110GS with 4MB Winbond: extend firmware to 4MB with 0xFF (or else flashrom gets mad)
objcopy -I binary -O binary --gap-fill=0xff --pad-to=0x400000 output/rtlplayground.bin output/rtlplayground-4MiB.bin

# read stock firmware for backup
sudo flashrom -p ch341a_spi -c W25Q32JV -r mokerlink-stock.bin

# write RTLPlayground firmware
sudo flashrom -p ch341a_spi -c W25Q32JV -w output/rtlplayground-4MiB.bin
```

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to see a big caution sign, telling people that there is main-voltage that can easily be touched.

Also I would like to see these kind of flash-instructions in the general documentation.
Because it is useful for other devices too.
I think README.md is fine for now, this also show how to make a caution-note.
It is fine to tell which MACHINE-argument is used.

objcopy -I binary -O binary --gap-fill=0xff --pad-to=0x400000 output/rtlplayground.bin output/rtlplayground-4MiB.bin
I use truncate command on the rtlplayground.bin.

@dw4rren
dw4rren force-pushed the add-mokerlink-poe-2g080110gs branch from 87dde74 to 9fbc982 Compare August 28, 2026 03:27
@vDorst

vDorst commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Can you resolve the issue?

@dw4rren
dw4rren force-pushed the add-mokerlink-poe-2g080110gs branch from 04f97f5 to f5d4c9b Compare September 5, 2026 00:49
@dw4rren

dw4rren commented Sep 5, 2026

Copy link
Copy Markdown
Author

I think I addressed everything asked:

  • added warnings about mains voltage
  • moved the example to the README.
  • rebased

I left out truncate because I believe it pads with 0x00 instead of 0xFF and 0xFF is the correct "erased" value for winbond chips -- but please correct me if I'm wrong or there is a simpler solution.

I also fixed a typo in README and corrected the device table to show this device as 4M not 2M (as in the original PR).

@feelfree69

Copy link
Copy Markdown
Collaborator

I left out truncate because I believe it pads with 0x00 instead of 0xFF and 0xFF is the correct "erased" value for winbond chips -- but please correct me if I'm wrong or there is a simpler solution.

0xff is the correct "erased" value for practically any flash chip. There's no need to pad an image with 0xff's up to the full size of the flash chip.
Erasing the chip and programming only the unpadded image (here 512kB) should be sufficient for any device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants