diff options
author | Giovanni Condello <nanomad@users.noreply.github.com> | 2022-11-05 23:41:19 +0100 |
---|---|---|
committer | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-12-19 23:09:22 +0100 |
commit | 7357a5577382577016dc2f6d95058a744920514a (patch) | |
tree | 7b2c5473fd24c599710997711d36f2c1c9df61d9 | |
parent | Update root procedure for MA5671A (#29) (diff) | |
download | hack-gpon.github.io-7357a5577382577016dc2f6d95058a744920514a.tar hack-gpon.github.io-7357a5577382577016dc2f6d95058a744920514a.tar.gz hack-gpon.github.io-7357a5577382577016dc2f6d95058a744920514a.tar.bz2 hack-gpon.github.io-7357a5577382577016dc2f6d95058a744920514a.tar.lz hack-gpon.github.io-7357a5577382577016dc2f6d95058a744920514a.tar.xz hack-gpon.github.io-7357a5577382577016dc2f6d95058a744920514a.tar.zst hack-gpon.github.io-7357a5577382577016dc2f6d95058a744920514a.zip |
-rw-r--r-- | _ont/ont-huawei-ma5671a-rooted.md | 8 | ||||
-rw-r--r-- | _ont/ont-huawei-ma5671a.md | 47 |
2 files changed, 47 insertions, 8 deletions
diff --git a/_ont/ont-huawei-ma5671a-rooted.md b/_ont/ont-huawei-ma5671a-rooted.md index 004eaec..b4b3884 100644 --- a/_ont/ont-huawei-ma5671a-rooted.md +++ b/_ont/ont-huawei-ma5671a-rooted.md @@ -7,4 +7,10 @@ layout: default # General setting -[Edit sfp_a2_info file](https://forum.openwrt.org/t/support-ma5671a-sfp-gpon/48042/24)
\ No newline at end of file +[Edit sfp_a2_info file](https://forum.openwrt.org/t/support-ma5671a-sfp-gpon/48042/24) + +# Disable dying gasp + +```sh +# fw_setenv nDyingGaspEnable 0 +```
\ No newline at end of file diff --git a/_ont/ont-huawei-ma5671a.md b/_ont/ont-huawei-ma5671a.md index be9bbe6..d2c2726 100644 --- a/_ont/ont-huawei-ma5671a.md +++ b/_ont/ont-huawei-ma5671a.md @@ -41,25 +41,27 @@ parent: Huawei | 3.3V | pin #15 and #16 | | TX | pin #2 | | RX | pin #7 | -| GND | pin #10 | +| GND | pin #14 and #10 | Configuration: asc0=0 115200 8-N-1 +{% include alert.html content="Try PIN 10 or other GND PINs if it doesn't work with 14." alert="Note" icon="svg-warning" color="yellow" %} + +{% include alert.html content="Some USB TTL adapters label TX and RX pins the other way around: try to swap them if it doesn't work." alert="Note" icon="svg-warning" color="yellow" %} + + ## Root procedure - [Root](/ont-huawei-ma5671a-root) -## Disabling Dying Gasp -```sh -set nDyingGaspEnable disable -``` - ## List of software versions - V8R017C00S202B ## List of partitions +## When booting from image0 + | dev | size | erasesize | name | | ---- | -------- | --------- | ------------- | | mtd0 | 00040000 | 00010000 | "uboot" | @@ -69,6 +71,17 @@ set nDyingGaspEnable disable | mtd4 | 00370000 | 00010000 | "rootfs_data" | | mtd5 | 00800000 | 00010000 | "image1" | +## When booting from image1 + +| dev | size | erasesize | name | +| ---- | -------- | --------- | ------------- | +| mtd0 | 00040000 | 00010000 | "uboot" | +| mtd1 | 00080000 | 00010000 | "uboot_env" | +| mtd2 | 00740000 | 00010000 | "image0" | +| mtd3 | 00800000 | 00010000 | "linux" | +| mtd4 | 006d8077 | 00010000 | "rootfs" | +| mtd5 | 00410000 | 00010000 | "rootfs_data" | + ## List of firmwares and files - [Carlito MTD2](https://ma5671a.s3.nl-ams.scw.cloud/mtd2.bin){: .btn } md5hash: d3cb6f7efec201b37931139feb4bb23b @@ -83,7 +96,27 @@ set nDyingGaspEnable disable - [Carlito General Setting](/ont-huawei-ma5671a-carlito) - [Huawei Rooted General Setting](/ont-huawei-ma5671a-rooted) -# Known Bugs +# Useful commands + +## Transferring files to the stick + +{% include alert.html content="If you use a modern OpenSSH version (e.g. >= 8.8) you will have to use the legacy protocol and enable some deprecated algorithms: scp -O -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss [...]" alert="Info" icon="svg-info" color="blue" %} + +```sh +# scp rootfs.bin root@192.168.1.10:/tmp/ +``` + +## Flashing a new rootfs + +{% include alert.html content="Only the inactive image can be flashed" alert="Info" icon="svg-info" color="blue" %} + +The follwing examples flashes a new rootfs to image1 and boots to it +```sh +# mtd -e image1 write /tmp/rootfs.bin image1 +# fw_setenv committed_image 1 +# fw_setenv image1_is_valid 1 +# reboot +``` # Miscellaneous Links |