On Openwrt Image BUILDER/SDK

Source: Internet
Author: User

Image Builder and SDK can be downloaded from the official web and compiled on their own (make Menuconfig).
Official online download is to help you compile a good, so you can save a lot of time to compile the source code to spend,
These two things are equivalent to semi-finished products, the last thing you want to build yourself.
The development process is as follows:


After the two items of Image Builder and SDK are checked at compile time, they can be compiled.
Of course, can also be downloaded from the official website, but the website compiled by the package only support X64


The bottom two are the Image Builder and SDK.

Then unzip them separately, the name is too long, change the short point:

Here the directory and OpenWrt source package is similar, but image Builder only packaging function, so
There is no need for toolchain, just some tools to package and pre-compiled binary files.

Here the Packages directory and OpenWrt source code is not the same, here is pre-compiled IPK,
The packages directory inside the openwrt is used to store some makefile and patches for the IPK package.

To start packing, first, use make info to view the currently existing profile, which is the predefined model information:

Make info > Info.txt

There are a lot of lines out here, and here are some of the lines you're interested in:

Current Target:"ar71xx (Generic)"Default Packages:Base-files libc libgcc busybox dropbear mtd UCI opkg netifd fstools kmod-gpio-button-hotplug swconfig kmod-ath9k Wpad-mini Ubo Ot-envtools dnsmasq iptables ip6tables PPP Ppp-mod-pppoe kmod-nf-nathelper firewall ODHCPD odhcp6cavailable Profiles:Default:Default profiles (all drivers) Packages:kmod-usb-core KMOD-USB-OHCI KMOD-USB2 kmod-ledtrig-Usbdevminimal:minimal profile (no drivers) Packages:-kmod-ath9k-wpad-Miniath5k:atheros802. 11ABG WiFi (ath5k) Packages:kmod-ath5k-kmod-ATH9KCARAMBOLA2:CARAMBOLA2 Board from8Devices Packages:kmod-usb-core kmod-Usb2alfaap96:alfa Network AP96 Board Packages:kmod-usb-core KMOD-USB-OHCI KMOD-USB2 kmod-rtc-Pcf2123hornetub:alfa Network Hornet-UB Board (8MB Flash, 32MB RAM) Packages:kmod-usb-core KMOD-USB2 kmod-ledtrig-Usbdevhornetubx2:alfa Network Hornet-ub-X2 Board (16MB Flash, 64MB RAM) Packages:kmod-usb-core KMOD-USB2 kmod-ledtrig-Usbdevalfanx:alfa Network N2/N5 Board Packages:TLWA901:TP-link tl-wa901n/ND Packages:TLWDR4300:TP-link tl-wdr3500/3600/4300/4310/mw4350r Packages:kmod-usb-core KMOD-USB2 kmod-ledtrig-USBDEVTLWDR4900V2:TP-link tl-wdr4900v2 Packages:kmod-usb-core KMOD-USB2 kmod-ledtrig-USBDEVTLWR740:TP-link tl-wr740n/ND Packages:TLWR741:TP-link tl-wr741n/ND Packages:TLWR743:TP-link tl-wr743n/ND Packages:TLWR841:TP-link tl-wr841n/ND Packages:

These lists should be extracted from the. Targetinfo below the root directory (the file Manager will hide it)

Where default packages is the IPK that will be compiled into the binaries. Then each of the following models corresponds to the
Packages is the package that I want to add


You can see that there are TLWR740, then start compiling:


Make image profile= "TLWR740"

You can see that a bin folder was generated.

Ready to start the brush machine, the system before the brush machine (Mercury mw150r):

After the brush machine:

The original is not installed Luci.
Telnet success, further explained that has been brushed, but the lack of Luci.

The Luci has been prepared for us here:

So compile these things in:

Make image profile="TLWR740" packages="luci-app-firewall luci-base Luci-lib-ip Luci-lib-nixio luci-mod-admin-full luci-proto-ppp luci-theme-bootstrap Luci"

Now the compiled bin has risen from 2.87MB to 3.3MB:

After brushing the Luci appeared:

Next, use the SDK to make a HelloWorld:

Reference: http://jphome.github.io/blog/2014/03/29/openwrt_sdk.html

After creating the appropriate files and directories, use make v=99 to generate:
Finally get a IPK file

To compile it in:

Make image profile="TLWR740" packages="luci-app-firewall luci-base Luci-lib-ip Luci-lib-nixio luci-mod-admin-full luci-proto-ppp luci-theme-bootstrap Luci HelloWorld"

After brushing the firmware, I found it was already inside.

Then execute the Helloword (there may be a problem with Telnet, H is not shown)

Resources:

Https://cokebar.info/archives/90

Http://demon.tw/hardware/image-generator-image-builder-openwrt.html

http://blog.berry10086.com/Tech/Openwrt/tips-about-customize-openwrt/

Http://www.it165.net/network/html/201303/1004.html

On Openwrt Image BUILDER/SDK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.