From 159e547f5dbabfdd37215e6c085fc8307664b8ff Mon Sep 17 00:00:00 2001 From: zry98 Date: Wed, 30 Dec 2020 19:46:19 +0100 Subject: [PATCH] Fix README wrong tftp command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d8e8e8b..ed3e93e 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,6 @@ Some stuff about GPON Stick DFP-34X-2C2 / DFP-34G-2C2 - Use the `ct-ng.config` in the repo, or config it as `arm-unknown-linux-uclibcgnueabi` in the samples, with CPU set to `arm9tdmi` - Compile the dummy libtagparamuserapi.so with command like `arm-unknown-linux-uclibcgnueabi-gcc -shared -o libtagparamuserapi.so libtagparamuserapi.c` - Compile the program with command like `arm-unknown-linux-uclibcgnueabi-gcc -std=c99 libtagparamuserapi.so -s -o setmac_hex setmac_hex.c` -- Set up a TFTP server in the same subnet, and get the executable on stick with commands like `cd /var/tmp && tftp -g setmac_hex -p 192.168.1.2 69` +- Set up a TFTP server in the same subnet, and get the executable on stick with commands like `tftp -r setmac_hex -l /var/tmp/setmac_hex -g 192.168.1.2 69 && chmod +x /var/tmp/setmac_hex` - Telnet to stick and run command like `/var/tmp/setmac_hex 1 2178 "f2 01 80 01 02 03 04 00 00 00"` to set GPON password - Run `setmac 2 2178` or `/var/tmp/setmac_hex 2 2178` to verify the result