diff --git a/README.md b/README.md index 3f03cdd..f78a9c6 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ OpenIPC Wiki - [Network settings](en/network-settings.md) - [Adding a wifi driver to your firmware](en/adding-wifi-driver.md) - [Wireless settings](en/wireless-settings.md) -- [Network perversions](en/network-perversions.md) - [System features](en/system-features.md) - [Majestic streamer](en/majestic-streamer.md) - [Web interface](en/web-interface.md) @@ -57,7 +56,7 @@ OpenIPC Wiki ### Troubleshooting -- [Network does not work](en/trouble-network.md) +- [Network does not work on hi35xx](en/trouble-network-hi35xx.md) - [Majestic does not work, camera reboots](en/trouble-majestic.md) - [Sigmastar unbrick instructions](en/sigmastar-unbrick.md) - [Ingenic T31 unbrick with SD card](en/ingenic-t31-unbrick-with-sd-card.md) diff --git a/en/network-perversions.md b/en/network-perversions.md deleted file mode 100644 index fb3437b..0000000 --- a/en/network-perversions.md +++ /dev/null @@ -1,47 +0,0 @@ -# OpenIPC Wiki -[Table of Content](../README.md) - -A collection of practical networking perversions ------------------------------------------------- - - -### XiongMai, HI3518EV100 -On some cameras it's required to do the U-boot network configuration to get it to work in Linux -``` -For U-boot network - setenv phyaddru 1 - setenv phyaddrd 2 - setenv mdio_intf rmii - saveenv - -For Linux network - setenv extras 'hieth.phyaddru=1 hieth.phyaddrd=2'; saveenv -``` - -### CamHi/HiChip/Xin, HI3518EV200 - -``` -For U-boot network - setenv phyaddru 0 - setenv phyaddrd 1 - saveenv -``` -### HiWatch, HI3518CV100 - -``` -For U-boot network - setenv phyaddru 3 - saveenv - -For Linux network - setenv extras 'hieth.phyaddru=3 hieth.mdioifu=0' - saveenv -``` - -### Harex (5013A-CF/5020A-FF), HI3516CV100 - -``` -For U-boot network - setenv extras 'hieth.phyaddru=1 hieth.mdioifu=0' - saveenv -``` diff --git a/en/trouble-network-hi35xx.md b/en/trouble-network-hi35xx.md new file mode 100644 index 0000000..c63e134 --- /dev/null +++ b/en/trouble-network-hi35xx.md @@ -0,0 +1,119 @@ +# OpenIPC Wiki +[Table of Content](../README.md) + +## Troubleshooting: Network does not work on hi35xx +If network is not working on your hi35xx device after installing OpenIPC (no link), you may have to tune the MII (Media Independent Interface) settings. +For U-Boot, this is done by setting values for `phyaddru`, `phyaddrd` and `mdio_intf`. +Possible values for `phyaddru` and `phyaddrd` are: `0-3`, possible values for `mdio_intf` are: `rmii`, `rgmii`, `gmii`. +For the Linux kernel / OS, values can be set through the `extras` boot variables `hieth.phyaddru`, `hieth.phyaddrd`, `hieth.mdioifu` and `hieth.mdioifd`. + +Often the correct values can be found in your stock firmware. Viewing the boot logs or running [ipctool](https://github.com/OpenIPC/ipctool) on your stock firmware may provide clues. + +Below are some combinations you can try: + +### For ethernet in Linux: + +In Linux console run this: +``` +fw_setenv extras 'hieth.phyaddru=0 hieth.phyaddrd=1' && reboot +``` +If the above settings did not work, try this instead: +``` +fw_setenv extras 'hieth.phyaddru=1 hieth.phyaddrd=0' && reboot +``` +Or: +``` +fw_setenv extras 'hieth.mdioifu=0 hieth.mdioifd=0' && reboot +``` +Or: +``` +fw_setenv extras 'hieth.mdioifu=1 hieth.mdioifd=1' && reboot +``` +Or: +``` +fw_setenv extras hieth.mdioifu=0 hieth.mdioifd=0 hieth.phyaddru=1 hieth.phyaddrd=2 && reboot +``` +Or: +``` +fw_setenv extras hieth.phyaddru=3 hieth.mdioifu=0 && reboot +``` + +*Note: if a certain combination causes your device to fail to boot, you can clear the variable(s) in the U-Boot prompt by calling `setenv `, i.e. set the variable using an empty argument, followed by `saveenv`.* + +### For ethernet in U-boot: + +Set `phyaddru` and `phyaddrd` variables from U-Boot console: +``` +setenv phyaddru 0; setenv phyaddrd 1; saveenv; reset +``` +If the above settings did not work, try this instead +``` +setenv phyaddru 1; setenv phyaddrd 0; saveenv; reset +``` +Or: +``` +setenv phyaddru 0; setenv phyaddrd 0; saveenv; reset +``` +Or: +``` +setenv phyaddru 1; setenv phyaddrd 1; saveenv; reset +``` + +*Note: to initialize and test network connectivity in U-Boot, the `ping` command can be used.* + +Some known combinations for specific boards: + +### XiongMai, HI3518EV100 +*For U-boot network:* +``` + setenv phyaddru 1 + setenv phyaddrd 2 + setenv mdio_intf rmii + saveenv +``` +*For Linux network:* +``` + setenv extras 'hieth.phyaddru=1 hieth.phyaddrd=2' + saveenv +``` + +### XiongMai IPG-53H20AF, HI3516CV100 + +*For Linux network:* +``` + setenv hieth.mdioifu=0 hieth.mdioifd=0 hieth.phyaddru=1 hieth.phyaddrd=2 + saveenv +``` + +### CamHi/HiChip/Xin, HI3518EV200 + +*For U-boot network:* +``` + setenv phyaddru 0 + setenv phyaddrd 1 + saveenv +``` + +### HiWatch, HI3518CV100 + +*For U-boot network:* +``` + setenv phyaddru 3 + saveenv +``` + +*For Linux network:* +``` + setenv extras 'hieth.phyaddru=3 hieth.mdioifu=0' + saveenv +``` + +### Harex (5013A-CF/5020A-FF), HI3516CV100 + +*For U-boot network:* +``` + setenv extras 'hieth.phyaddru=1 hieth.mdioifu=0' + saveenv +``` + +If nothing of the above worked for you, please ask in [our Telegram channel](https://t.me/openipc). diff --git a/en/trouble-network.md b/en/trouble-network.md deleted file mode 100644 index df66edf..0000000 --- a/en/trouble-network.md +++ /dev/null @@ -1,47 +0,0 @@ -# OpenIPC Wiki -[Table of Content](../README.md) - -## Troubleshooting: Network does not work - -Some IP-cameras require additional parameters set to make the network interface work. - -### For recent firmware - -Use `extras` boot variable. In Linux console run this -``` -fw_setenv extras 'hieth.phyaddru=0 hieth.phyaddrd=1' && reboot -``` -If the above settings did not work, try this instead -``` -fw_setenv extras 'hieth.phyaddru=1 hieth.phyaddrd=0' && reboot -``` -If the above settings did not work, try this instead -``` -fw_setenv extras 'hieth.mdioifu=0 hieth.mdioifd=0' && reboot -``` -If the above settings did not work, try this instead -``` -fw_setenv extras 'hieth.mdioifu=1 hieth.mdioifd=1' && reboot -``` -If nothing of the above worked for you, seek help on [our Telegram channel](https://t.me/openipc). - - -### For older firmware - -Set `phyaddru` and `phyaddrd` variables from U-Boot console: -``` -setenv phyaddru 0; setenv phyaddrd 1; saveenv; reset -``` -If the above settings did not work, try this instead -``` -setenv phyaddru 1; setenv phyaddrd 0; saveenv; reset -``` -If the above settings did not work, try this instead -``` -setenv phyaddru 0; setenv phyaddrd 0; saveenv; reset -``` -If the above settings did not work, try this instead -``` -setenv phyaddru 1; setenv phyaddrd 1; saveenv; reset -``` -If nothing of the above worked for you, seek help on [our Telegram channel](https://t.me/openipc).