GL.iNet router flash openwrt 22.03.2 system

GL.iNet router is a system flashing tool with low price, excellent performance and U-boot startup that can flash the system for hundreds of times.
First, install the OpenWrt system. I was a little confused when I first flashed the router system. I didn’t know which system and version to flash! Later, after some exploration, I sorted out a way of thinking. In fact, flashing the router is not as difficult as you think!

A Linux command to check the router CPU chip architecture

How to check the CPU chip architecture of Linux processor? Is the CPU 32-bit or 64-bit? What are arm and mips?
The first step to flash the router firmware is to understand what the router's CPU is, and then find the corresponding version of the firmware to flash it.
For example: Install v2ray software on a router. v2ray is not universal for the entire system. It also distinguishes between CPU chips.