{"id":900,"date":"2024-03-11T13:34:17","date_gmt":"2024-03-11T13:34:17","guid":{"rendered":"https:\/\/wodatherm.com\/?p=900"},"modified":"2024-06-12T12:20:21","modified_gmt":"2024-06-12T10:20:21","slug":"mt-7916-porting-guide-for-openwrt","status":"publish","type":"post","link":"https:\/\/wodatherm.com\/de\/mt-7916-porting-guide-for-openwrt\/","title":{"rendered":"MT 7916 porting guide for OpenWRT"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><br>MT 7916 porting guide for OpenWRT on AP7621 platform<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.524wifi.com\/media\/wysiwyg\/mt7916onAP.PNG\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Compile OpenWRT<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>1-1. Host Enviromnemt<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OS: Ubuntu 22.4.1 LTS<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>1-2. Install utilities for compiling<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Execute following command in terminal:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><em>sudo apt update<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>sudo apt&nbsp;<strong>upgrade<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>sudo apt install build-essential clang flex g++ gawk gcc-multilib gettext git<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev pkg-config<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1-3. Clone Source Code and Update<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Clone the main branch and update it<br><em>git&nbsp;<strong>clone https<\/strong>:\/\/git.openwrt.org\/openwrt\/openwrt.git<\/em><br><em>cd openwrt<\/em><br><em>.\/scripts\/feeds update -a<\/em><br><em>.\/scripts\/feeds install -a<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>1-4. Menuconfig Setting<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><em><strong>make menuconfig<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Select the following setting:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Target System:&nbsp;<strong>MediaTek Ralink MIPS<\/strong><br>Subtarget:&nbsp;<strong>MT7621 based boards<\/strong><br>Target Profile:&nbsp;<strong>AP7621-001<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.524wifi.com\/media\/wysiwyg\/openwrt-config1.PNG\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Include the following features:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Kernel modules\/Wireless drivers\/kmod-mt7916-firmware<br>Kernel modules\/Wireless drivers\/kmod-mt76x2<br>Kernel modules\/Wireless drivers\/kmod-mt7915e<br>Kernel modules\/Wireless Drivers\/kmod-cfg80211<br>Kernel modules\/Wireless Drivers\/kmod-mac80211<br>(*optional for ap)Network\/WirelessAPD\/wpad<br>(*optional for ap)Network\/WirelessAPD\/hostapd-common<br>(*optional for iw tools)Base system\/wireless-tools<br>(*optional for web server)LuCI\/Collections\/luci<br>(*optional for web server)LuCI\/Collections\/luci-ssl<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.524wifi.com\/media\/wysiwyg\/openwrt-config2.PNG\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.524wifi.com\/media\/wysiwyg\/openwrt-config3.PNG\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1-5. (*optional) Turn on wireless ap in default<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><\/strong><br>Revise the file \/openwrt\/package\/kernel\/mac80211\/files\/lib\/wifi\/mac80211.sh<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><em>set wireless.${name}.disabled=0<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save and compile.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.524wifi.com\/media\/wysiwyg\/openwrt-config4.PNG\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1-6. Compile<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><\/strong><br><em>make -j $(nproc) kernel_menuconfig<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>make -j $(nproc) defconfig download clean world V=s<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Starting AP7621 platform for verify<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><\/strong><br>After burning and booting your AP7621, you can check the interface on OpenWRT by the command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>ifconfig -a<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.524wifi.com\/media\/wysiwyg\/openwrt-config5.PNG\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">and test the connection by ping.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.524wifi.com\/media\/wysiwyg\/openwrt-config6.PNG\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.524wifi.com\/index.php\/tag\/list\/\">View All Tags<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MT 7916 porting guide for OpenWRT on AP7621 platform 1. Compile OpenWRT 1-1. Host Enviromnemt OS: Ubuntu 22.4.1 LTS 1-2. Install utilities for compiling Execute following command in terminal: sudo apt update sudo apt&nbsp;upgrade sudo apt install build-essential clang flex g++ gawk gcc-multilib gettext git libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev pkg-config 1-3. Clone Source [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":903,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[53,55],"tags":[878,1011,356,1012],"class_list":["post-900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-applications-and-news","category-instalation-support","tag-guide","tag-mt7916","tag-openwrt","tag-porting"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/posts\/900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/comments?post=900"}],"version-history":[{"count":0,"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/media\/903"}],"wp:attachment":[{"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wodatherm.com\/de\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}