# Bringup MangoH Red \[wp76xx\] Board interface on anther platform

**URL:** <https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686>\
**Category:** mangOH Red\
**Created:** [June 18, 2020, 11:35am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686 "2020-06-18T11:35:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 18, 2020, 11:35am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/1 "2020-06-18T11:35:57Z")

</div>

Hi,

I want to get Mangoh red [wp76xx] board interface on another platform other than PC.  
Currently, i have tested the R12 release image on the MangoH red board with PC.

Now i want to get the interface up on another platform. Can you guide me on what all interfaces or changes needs to be done at the MangoH source end.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 18, 2020, 2:33pm UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/2 "2020-06-18T14:33:24Z")

</div>

If not interacting with PC, what will be the platform to communicate with mangoh board?

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 19, 2020, 5:38am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/3 "2020-06-19T05:38:03Z")

</div>

Its a Qualcomm based chipset, which has Android running on it.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 19, 2020, 5:54am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/4 "2020-06-19T05:54:12Z")

</div>

You can ssh via uart, usb, ethernet port.

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 19, 2020, 6:24am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/5 "2020-06-19T06:24:27Z")

</div>

I did try to ssh, but i dont get the port at all 192.168.2.2 does not come up

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 19, 2020, 6:36am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/6 "2020-06-19T06:36:30Z")

</div>

do you have USB ECM driver on your platform?

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 19, 2020, 7:48am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/7 "2020-06-19T07:48:28Z")

</div>

Since its android i am hoping it supports.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 19, 2020, 8:08am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/8 "2020-06-19T08:08:37Z")

</div>

You need to check dmesg and see if the usb ecm driver has been loaded.

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 19, 2020, 10:06am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/9 "2020-06-19T10:06:09Z")

</div>

When i connect the MangoH red board to customized board, i get the below dmesg :

\<6\>[1476.259022] cdc\_ether 1-1.4:1.19 usb0: register ‘cdc\_ether’ at usb-msm\_hsusb\_host-1.4, CDC Ethernet Device, b2:fb:8f:f9:c4:2f  
\<14\>[1476.272717] avc: denied { set } for property=dhcp.usb0.result scontext=u:r:system\_server:s0 tcontext=u:object\_r:radio\_prop:s0 tclass=property\_service  
\<11\>[1476.273972] init: no such service ‘dhcpcd\_usb0:-f /system/etc/dhcpcd/dhcpcd.conf -h android-e6d87b06dbbba3ff usb0’

Is there something that needs to be in the dhcpcd.conf file ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 19, 2020, 10:21am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/10 "2020-06-19T10:21:15Z")

</div>

No idea, you should consult your platform vendor.  
Maybe you can just do “ifconfig usb0 192.168.2.3”

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 22, 2020, 2:17pm UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/11 "2020-06-22T14:17:14Z")

</div>

Ok here are few steps we tried.

On the MangoH red board : [All steps go through - No errors]  
iptables -t nat -A POSTROUTING --out-interface rmnet\_data0 -j MASQUERADE  
iptables -A FORWARD -o ecm0 -i rmnet\_data0 -m state --state RELATED,ESTABLISHED -j ACCEPT  
iptables -A FORWARD -i ecm0 -o rmnet\_data0 -j ACCEPT

iptables -t nat -A POSTROUTING --out-interface rmnet\_data0 -j MASQUERADE  
iptables -A FORWARD -o bridge0 -i rmnet\_data0 -m state --state RELATED,ESTABLISHED -j ACCEPT  
iptables -A FORWARD -i bridge0 -o rmnet\_data0 -j ACCEPT

echo 1 \> /proc/sys/net/ipv4/ip\_forward

On the customized hardware running Android :  
ifconfig usb0 192.168.2.3

I am able to ping 192.168.2.2.

But when tried to telnet the address no response.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 22, 2020, 2:52pm UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/12 "2020-06-22T14:52:27Z")

</div>

You might also set the following to shut down the firewall on module:  
iptables -I INPUT -j ACCEPT

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 23, 2020, 6:37am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/13 "2020-06-23T06:37:41Z")

</div>

After shutting down the firewall, i get connection refused from my custom board.

root@kite:/ # telnet 192.168.2.2  
telnet: can’t connect to remote host (192.168.2.2): Connection refused

|root@kite:/ # dmesg  
\<3\>[682.171854] wlan: [1044:E :HDP] hdd\_tx\_rx\_pkt\_cnt\_stat\_timer\_handler: Disable split scan  
root@kite:/ # ping 192.168.2.2

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 23, 2020, 6:53am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/14 "2020-06-23T06:53:10Z")

</div>

Maybe you can again do “ifconfig usb0 192.168.2.3” on module

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 23, 2020, 1:09pm UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/15 "2020-06-23T13:09:28Z")

</div>

Tried doing that but no luck.

Should there be some telnetd running on the MangoH board ?\>

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 23, 2020, 1:34pm UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/16 "2020-06-23T13:34:34Z")

</div>

You can verify by trying on pc first

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 24, 2020, 9:16am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/17 "2020-06-24T09:16:52Z")

</div>

ok so when i connect to the PC and boot MangoH red board for the first time i get the IP 192.168.2.2. After sometime it looses the ip.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 24, 2020, 9:22am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/18 "2020-06-24T09:22:17Z")

</div>

which one loses the IP?  
PC or module?  
If PC loses the IP, you can type “sudo ifconfig usb0 192.168.2.3”  
If module loses the IP, you can type “ifconfig ecm0 192.168.2.2”

---

<div class="post-metadata">

**Author:** ![tejaswisj](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@tejaswisj](https://mangoh.discourse.group/u/tejaswisj)\
**Post date:** [June 24, 2020, 9:28am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/19 "2020-06-24T09:28:00Z")

</div>

The PC loses the ip. The interface is also not usb0 but enp0s29u1u4i19.

so “sudo ifconfig enp0s29u1u4i19 192.168.2.3” command worked for some time like a min or 2 but after that PC loses the IP.

Can this be issue as it is not coming up as usb0 ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 24, 2020, 9:39am UTC](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686/20 "2020-06-24T09:39:08Z")

</div>

you need to check dmesg.  
I guess the network manager will change the name of usb0 to enp0s29u1u4i19

[Next page](https://mangoh.discourse.group/t/bringup-mangoh-red-wp76xx-board-interface-on-anther-platform/4686.md?page=2)
