OPENWRT is an embedded operating system based on Linux, specifically designed for routers and other network devices. It provides an open-source platform that allows users to customize and control various aspects of their network devices. Due to its flexibility and customizability, OPENWRT is widely used in both home and enterprise networks.
1. Download OpenWrt
Official download address:
https://downloads.openwrt.org/
Aliyun open-source mirror download address:
http://mirrors.aliyun.com/openwrt/
Tsinghua University open-source software mirror download address:
https://mirrors.tuna.tsinghua.edu.cn/openwrt/
2. Extract the Image File
Use WinRAR to extract the downloaded file openwrt-23.05.0-x86-64-generic-ext4-combined-efi.img.gz, which is 10.9MB in size, resulting in a 120MB file after extraction.
I previously tried to extract it using 7-ZIP, but it always reported an error: “Extra data after the end of the valid data”.
3. Prepare and Edit WinPE
Download from the WeiPE toolbox https://www.wepe.com.cn/ to create a bootable ISO file WePE_64_V2.1.iso
Use UltraISO_v9.7.6.3860.exe to edit the ISO file, adding “IMG Writing Tool Diskimage.exe” and “openwrt-23.05.0-x86-64-generic-ext4-combined-efi.img”
4. Boot into WinPE, run Diskimage, and write the Image file to the hard drive.
5. After the installation is complete, restart to enter the OpenWrt system
Use the passwd command to change the root user’s password
Use vi /etc/config/network to modify the IP address and other network configuration information
Detailed usage configuration is currently being studied and organized.