# Error: Opcode not supported on the processor: mips2 (mips2) 'sync'

**URL:** <https://forum.openwrt.org/t/error-opcode-not-supported-on-the-processor-mips2-mips2-sync/194406>\
**Category:** For Developers\
**Created:** [April 10, 2024, 11:45am UTC](https://forum.openwrt.org/t/error-opcode-not-supported-on-the-processor-mips2-mips2-sync/194406 "2024-04-10T11:45:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobch](https://forum.openwrt.org/letter_avatar/bobch/32/5_5575768a8748004e209b776fc1b2916d.png) [@bobch](https://forum.openwrt.org/u/bobch)\
**Post date:** [April 10, 2024, 11:45am UTC](https://forum.openwrt.org/t/error-opcode-not-supported-on-the-processor-mips2-mips2-sync/194406/1 "2024-04-10T11:45:19Z")

</div>

Hi,

While compiling the openwrt project, i'm facing the "opcode not supported" errors as seen in the attached image.

FYI - The below changes are already present in the ev.c file.

```plaintext
#define ECB_MEMORY_FENCE __asm__  __volatile__ (".set mips2; 
sync; .set mips0" ::: "memory")

```

 ![opcode-error](https://forum.openwrt.org/uploads/default/original/3X/d/5/d58e3a884536c786a12c91ddfbedd95e99acbe62.png)

Let me know if any other information is required.

Regards,  
Bobby

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 10, 2024, 11:46am UTC](https://forum.openwrt.org/t/error-opcode-not-supported-on-the-processor-mips2-mips2-sync/194406/2 "2024-04-10T11:46:29Z")

</div>

> [@bobch](#):
>
> While compiling the openwrt project,

what does this mean, exactly ?

---

<div class="post-metadata">

**Author:** ![bobch](https://forum.openwrt.org/letter_avatar/bobch/32/5_5575768a8748004e209b776fc1b2916d.png) [@bobch](https://forum.openwrt.org/u/bobch)\
**Post date:** [April 10, 2024, 11:54am UTC](https://forum.openwrt.org/t/error-opcode-not-supported-on-the-processor-mips2-mips2-sync/194406/3 "2024-04-10T11:54:45Z")

</div>

@frollic,

I'm working on the GL-Puli XE300 router based on OpenWrt 22.03 and creating a custom firmware for the router.

I've integrated the custom packages and source files in the build.

---

<div class="post-metadata">

**Author:** ![Wulnut](https://forum.openwrt.org/user_avatar/forum.openwrt.org/wulnut/32/86668_2.png) [@Wulnut](https://forum.openwrt.org/u/Wulnut)\
**Post date:** [April 19, 2024, 8:11am UTC](https://forum.openwrt.org/t/error-opcode-not-supported-on-the-processor-mips2-mips2-sync/194406/4 "2024-04-19T08:11:48Z")

</div>

Did you solve it? I met the same problem.

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [April 19, 2024, 8:38am UTC](https://forum.openwrt.org/t/error-opcode-not-supported-on-the-processor-mips2-mips2-sync/194406/5 "2024-04-19T08:38:41Z")

</div>

OP isn't using proper Openwrt, the replies may not apply to the real thing.

> [@OpenWrt: LAN connectivity issue](https://forum.openwrt.org/t/openwrt-lan-connectivity-issue/194882/):
>
> Hello all, I have installed the OpenWrt 22.03 on the GL-XE300 Puli router. Router has 2 ports (WAN, LAN). WAN cable is connected to the switch for the network and LAN cable is connected to my PC. I am able to get the network for the router from the switch using WAN, but I am not able to get the internet connectivity to the PC connected with the LAN of the router. Can someone help me to resolve this issue? Network configuration for the LAN is as attached: [image] Let me know if you require m…
