# RM65 **Repository Path**: shenyachuan/rm65 ## Basic Information - **Project Name**: RM65 - **Description**: RM65 代码上传 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: openwrt-21.02 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 18 - **Forks**: 24 - **Created**: 2023-07-06 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![OpenWrt logo](include/logo.png) OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned. Sunshine! ## Development To build your own firmware you need a GNU/Linux, BSD or MacOSX system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system. ### Requirements You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the [Build System Setup](https://openwrt.org/docs/guide-developer/build-system/install-buildsystem) documentation. ``` gcc binutils bzip2 flex python3 perl make find grep diff unzip gawk getopt subversion libz-dev libc-dev rsync which ``` ### Quickstart 1. Run `./scripts/feeds update -a` to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default 2. Run `./scripts/feeds install -a` to install symlinks for all obtained packages into package/feeds/ 3. Run `make menuconfig` to select your preferred configuration for the toolchain, target system & firmware packages. 4. Run `make` to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system. ### Related Repositories The main repository uses multiple sub-repositories to manage packages of different categories. All packages are installed via the OpenWrt package manager called `opkg`. If you're looking to develop the web interface or port packages to OpenWrt, please find the fitting repository below. * [LuCI Web Interface](https://github.com/openwrt/luci): Modern and modular interface to control the device via a web browser. * [OpenWrt Packages](https://github.com/openwrt/packages): Community repository of ported packages. * [OpenWrt Routing](https://github.com/openwrt/routing): Packages specifically focused on (mesh) routing. ## Support Information For a list of supported devices see the [OpenWrt Hardware Database](https://openwrt.org/supported_devices) ### Documentation * [Quick Start Guide](https://openwrt.org/docs/guide-quick-start/start) * [User Guide](https://openwrt.org/docs/guide-user/start) * [Developer Documentation](https://openwrt.org/docs/guide-developer/start) * [Technical Reference](https://openwrt.org/docs/techref/start) ### Support Community * [Forum](https://forum.openwrt.org): For usage, projects, discussions and hardware advise. * [Support Chat](https://webchat.oftc.net/#openwrt): Channel `#openwrt` on **oftc.net**. ### Developer Community * [Bug Reports](https://bugs.openwrt.org): Report bugs in OpenWrt * [Dev Mailing List](https://lists.openwrt.org/mailman/listinfo/openwrt-devel): Send patches * [Dev Chat](https://webchat.oftc.net/#openwrt-devel): Channel `#openwrt-devel` on **oftc.net**. ## License OpenWrt is licensed under GPL-2.0 ## 补充说明 编译环境: 系统:ubuntu18.04 64bit ### 新安装系统需要安装的工具: sudo apt-get install make quilt git libncurses5-dev build-essential gawk zlib1g-dev unzip bison ### 固件编译命令: cd rm65; make V=99 首次编译大概需要一个小时 和CPU性能有关。 ### 固件生成路径 RM65默认选择编译的配置是 MediaTek mt7981-spim-nand-rfb 编译的固件在 bin/targets/mediatek/mt7981路径下: 名称:openwrt-mediatek-mt7981-mt7981-spim-nand-rfb-squashfs-sysupgrade.bin ### DTS配置文件路径: target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/ ### 固件配置: make menuconfig ![输入图片说明](menuconfig.png) ### 编译环境搭建: 使用virtualbox 搭建虚拟机编译环境: virtualbox的官网:https://www.virtualbox.org/ ![输入图片说明](virtualbox.org.png) ### 编译虚拟机的硬盘链接: https://pan.baidu.com/s/1FHvDM295itb0cWIVWie_fw?pwd=39in 提取码:39in 虚拟机的用户名 hilink 密码:12345678 ### Uboot uboot源码在uboot目录: uboot-mtk-20220606.tar.xz、atf-20220606-637ba581b.tar.xz 编译方法参考MT7981_Build_SOP_v1.6_20220908.pdf ### 配置pin脚复用 默认配置的DTS文件:target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-spim-nand-rfb.dts 比如 需要配置SPI2的功能脚作为UART功能 可在dts中添加如下: &uart2 { pinctrl-names = "default"; pinctrl-0 = <&uart2_pins>; status = "okay"; }; &pio { ... uart2_pins: uart2-pins-g1 { mux { function = "uart"; groups = "uart2_1"; }; }; } 配置完成,重新编译升级固件后,可以使用/dev/ttyS1设备测试,如果只配置了uart2 串口在linux的枚举设备是/dev/ttyS1 ### 打开支持RM500拨号 (支持RM500Q、RM500U) 已经把移远的拨号工具 queue 添加方法: make menuconfig-> HLK Custom ---> <*> at_trans <*> quectel Kernel modules ---> USB Support ---> -*- kmod-usb-serial-option Quectel USB 5G Support ---> <*> kmod-quectel_wwan_q LUCI----> 5. Protocols ---> <*> luci-proto-mobileconnect 3. Applications ---> <*> luci-app-mobile_app ![输入图片说明](rm500_cofig1.png) ![输入图片说明](rm500_config2.png) ![输入图片说明](rm500_config3.png) 配置完成,重新编译,烧录固件: ![输入图片说明](rm500_web1.png) 在网络设备中 显示: ![输入图片说明](rm500_web2.png) ![输入图片说明](rm500_web3.png) ### 编译RM20固件 RM20硬件上没有WIFI ,需要把WIFI相关配置取消 MTK Properties --->Drivers ---> ![输入图片说明](%E5%8F%96%E6%B6%88wifi%E9%85%8D%E7%BD%AE.png) MTK Properties --->Applications ---> ![输入图片说明](%E5%8F%96%E6%B6%88WIFI%E9%85%8D%E7%BD%AE2.png) LuCI ---> 3. Applications ---> ![输入图片说明](%E5%8F%96%E6%B6%88WIFI-LUCI.png) web首页有个HlkVer 显示版本号 配置参数是在 package/base-files/files/etc/hlk_version中 ![输入图片说明](version.png)