add support for MokerLink POE-2G080110GS - #364
Conversation
|
It should be added also to supported devices. |
|
added |
vDorst
left a comment
There was a problem hiding this comment.
Please rebase and see comments.
| 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 | ||
| ``` |
There was a problem hiding this comment.
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.
87dde74 to
9fbc982
Compare
|
Can you resolve the issue? |
04f97f5 to
f5d4c9b
Compare
|
I think I addressed everything asked:
I left out 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). |
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. |
Add description, photos, and machine description for MokerLink POE-2G080110GS unmanaged PoE switch.