{"id":495,"date":"2017-02-27T11:28:04","date_gmt":"2017-02-27T02:28:04","guid":{"rendered":"http:\/\/manatails.net\/blog\/?p=495"},"modified":"2022-04-03T13:48:54","modified_gmt":"2022-04-03T04:48:54","slug":"installing-openwrt-build-environment","status":"publish","type":"post","link":"https:\/\/manatails.net\/blog\/2017\/02\/installing-openwrt-build-environment\/","title":{"rendered":"Installing OpenWRT Build Environment"},"content":{"rendered":"<p>Here are the procedures and required packages for installing an OpenWRT build environment on Ubuntu.<\/p>\n<p>Consult the OpenWRT Wiki first then issue the commands.<\/p>\n<p><code><br \/>\nsudo apt-get install git openssl libssl-dev unzip build-essential binutils flex bison autoconf gettext texinfo sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk python<br \/>\n<\/code><\/p>\n<p>git clone git:\/\/git.openwrt.org\/15.05\/openwrt.git<\/p>\n<p>NEW: git clone https:\/\/github.com\/openwrt\/openwrt<\/p>\n<p>.\/scripts\/feeds update -a<\/p>\n<p>.\/scripts\/feeds install -a<\/p>\n<p>wget -O .config https:\/\/downloads.openwrt.org\/chaos_calmer\/15.05.1\/ar71xx\/generic\/config.diff<\/p>\n<p>make defconfig<\/p>\n<p>make menuconfig<\/p>\n<p>make prereq<\/p>\n<p>and we have 2 ways to reduce the build time:<br \/>\n<code><br \/>\nsed --in-place=.bak -e 's\/=m$\/=n\/g' .config<br \/>\n<\/code><\/p>\n<p>to disable all optional modules in the beginning<\/p>\n<p>or<\/p>\n<p><code><br \/>\nmake -j4 V=s IGNORE_ERRORS=m<br \/>\n<\/code><\/p>\n<p>to ignore all broken packages while building.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are the procedures and required packages for installing an OpenWRT build environment on Ubuntu. Consult the OpenWRT Wiki first then issue the commands. sudo apt-get install git openssl libssl-dev unzip build-essential binutils flex bison autoconf gettext texinfo sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk python git clone git:\/\/git.openwrt.org\/15.05\/openwrt.git NEW: git clone https:\/\/github.com\/openwrt\/openwrt .\/scripts\/feeds update -a &hellip; <a href=\"https:\/\/manatails.net\/blog\/2017\/02\/installing-openwrt-build-environment\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing OpenWRT Build Environment<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[14,67],"class_list":["post-495","post","type-post","status-publish","format-standard","hentry","category-computer","tag-linux","tag-openwrt"],"_links":{"self":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":7,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/posts\/495\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manatails.net\/blog\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}