diff options
author | Ernesto Castellotti <mail@ernestocastellotti.it> | 2022-11-25 19:37:38 +0100 |
---|---|---|
committer | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-12-19 23:09:23 +0100 |
commit | 98036d3f8543eed06210a739188d8390145ca36b (patch) | |
tree | 08c4166654d1064823937d38213f02a618f6b350 /_ont | |
parent | Add initial info for XZ000-G3 (#39) (diff) | |
download | hack-gpon.github.io-98036d3f8543eed06210a739188d8390145ca36b.tar hack-gpon.github.io-98036d3f8543eed06210a739188d8390145ca36b.tar.gz hack-gpon.github.io-98036d3f8543eed06210a739188d8390145ca36b.tar.bz2 hack-gpon.github.io-98036d3f8543eed06210a739188d8390145ca36b.tar.lz hack-gpon.github.io-98036d3f8543eed06210a739188d8390145ca36b.tar.xz hack-gpon.github.io-98036d3f8543eed06210a739188d8390145ca36b.tar.zst hack-gpon.github.io-98036d3f8543eed06210a739188d8390145ca36b.zip |
Diffstat (limited to '_ont')
-rw-r--r-- | _ont/ont-fs-com-gpon-onu-stick-with-mac.md | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/_ont/ont-fs-com-gpon-onu-stick-with-mac.md b/_ont/ont-fs-com-gpon-onu-stick-with-mac.md index 62d4615..7a60f1f 100644 --- a/_ont/ont-fs-com-gpon-onu-stick-with-mac.md +++ b/_ont/ont-fs-com-gpon-onu-stick-with-mac.md @@ -96,16 +96,57 @@ sfp_i2c -i9 -s "1234567890" sfp_i2c -i10 -s "password01" ``` -## Setting eqipment id +## Setting eqipment id (ME 257) ```sh sfp_i2c -i6 -s "22133912P" ``` -## Setting vendor id +## Setting vendor id (ME 256) ```sh sfp_i2c -i7 -s "SPGA" ``` +## Change ONU hardware version (ME 256) +```sh +cp /etc/mibs/data_1g_8q.ini /etc/mibs/data_1g_8q.ini.bak +sed 's/256 0 HWTC 0000000000000/256 0 <your_vendor_id> <your_onu_version>/' /etc/mibs/data_1g_8q.ini +``` + +## Change image software version (ME 7) +{% include alert.html content="The patch below is only compatible with the firmware version `6BA1896SPLQA42`" alert="Info" icon="svg-info" color="blue" %} + +The image version normally couldn't be changed because it was hard-coded into the `/opt/lantiq/bin/omcid` binary, +so you need to then modify the binary with the following hex patch which removes the hardcoded version. + +``` +< 000084c0: 9a43 931f f760 d840 9b64 f760 d864 1a00 .C...`.@.d.`.d.. +< 000084d0: 1acf 6500 1a20 2268 940a 2205 b468 1a00 ..e.. "h.."..h.. +--- +> 000084c0: 9a43 931f f760 d840 9b64 f760 d864 6500 .C...`.@.d.`.de. +> 000084d0: 6500 6500 1a20 2268 940a 2205 b468 1a00 e.e.. "h.."..h.. + +``` + +To make it easier you can use the following base64: +``` +QlNESUZGNDA1AAAAAAAAAD4AAAAAAAAA2C8JAAAAAABCWmg5MUFZJlNZYqnvBwAACFBSQWAAAMAA +AAgAQCAAMQwIIwjImgDOdMvi7kinChIMVT3g4EJaaDkxQVkmU1lrJSbUAACFTAjAACAAAAiCAAAI +IABQYAFKQ01INxUgd6Soj2JURm8pUR8XckU4UJBrJSbUQlpoORdyRThQkAAAAAA= +``` + +Save it as `omcid_patch.base64`, then run: +``` +base64 -d omcid_patch.base64 > omcid.bspath +bspatch <your_original_omcid> omcid omcid.bspath +``` + +Now you have to copy via SCP the modified `omcid` binary in the `/opt/lantiq/bin/omcid` path, restart the stick and after that you can change the image version with the command: +``` +fw_setenv image0_version <your_image0_version> +fw_setenv image1_version <your_image1_version> +``` + + ## Setting Lantiq MAC address ```sh uci set network.lct.macaddr=00:06:B5:07:D6:04 |