openwrt build log.

make shows:

 make[1] world
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] package/cleanup
 make[2] package/compile
 make[3] -C package/opkg host-compile
 make[3] -C package/base-files compile
 make[3] -C package/busybox compile
 make[3] -C package/button-hotplug compile
 make[3] -C package/libnl-tiny compile
 make[3] -C package/iw compile
 make[3] -C package/wireless-tools compile
 make[3] -C package/mac80211 compile
 make[3] -C package/crda compile
 make[3] -C package/dnsmasq compile
 make[3] -C package/dropbear compile
 make[3] -C package/iptables compile
 make[3] -C package/firewall compile
 make[3] -C package/libreadline compile
 make[3] -C package/ncurses compile
 make[3] -C package/ncurses compile
 make[3] -C package/gdb compile
 make[3] -C package/hostapd compile
 make[3] -C package/hotplug2 compile
 make[3] -C package/kernel compile
 make[3] -C package/mtd compile
 make[3] -C package/opkg compile
 make[3] -C package/libpcap compile
 make[3] -C package/linux-atm compile
 make[3] -C package/ppp compile
 make[3] -C package/resolveip compile
 make[3] -C package/pptp compile
 make[3] -C package/lua compile
 make[3] -C package/uci compile
 make[3] -C package/swconfig compile
 make[3] -C package/uboot-ar71xx compile
 make[2] package/install
 make[3] -C package/busybox install
 make[3] -C package/button-hotplug install
 make[3] -C package/crda install
 make[3] -C package/dnsmasq install
 make[3] -C package/dropbear install
 make[3] -C package/firewall install
 make[3] -C package/hostapd install
 make[3] -C package/hotplug2 install
 make[3] -C package/iptables install
 make[3] -C package/iw install
 make[3] -C package/kernel install
 make[3] -C package/libnl-tiny install
 make[3] -C package/mac80211 install
 make[3] -C package/mtd install
 make[3] -C package/opkg install
 make[3] -C package/ppp install
 make[3] -C package/pptp install
 make[3] -C package/resolveip install
 make[3] -C package/swconfig install
 make[3] -C package/uboot-ar71xx install
 make[3] -C package/uci install
 make[3] -C package/wireless-tools install
 make[3] -C package/base-files install
 make[2] package/rootfs-prepare
 make[3] package/preconfig
 make[2] target/install
 make[3] -C target/linux install
 make[3] -C target/sdk install
 make[3] -C target/toolchain install
 make[2] package/index

to build a single package:
make package/xxx/compile

these are steps that generate binary for my router:
vmlinux:

mips-openwrt-linux-uclibc-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/linux-2.6.39.2/vmlinux /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux
 
cp /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux-tl-wr841nd-v7
/ow/openwrt/trunk/staging_dir/host/bin/patch-cmdline /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux-tl-wr841nd-v7 'board=TL-WR741ND console=ttyS0,115200'
gzip -9 -c /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux-tl-wr841nd-v7 > /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux-tl-wr841nd-v7.bin.gz

root filesystem:

/ow/openwrt/trunk/staging_dir/host/bin/mksquashfs4 /ow/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/root-ar71xx /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -processors 1
 
cp /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/root.squashfs /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/root.squashfs-64k
 
/ow/openwrt/trunk/staging_dir/host/bin/padjffs2 /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/root.squashfs-64k 4 8 64
padding image to 00164000
padding image to 00170000
 
cp /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/root.squashfs-64k /ow/openwrt/trunk/bin/ar71xx/openwrt-ar71xx-generic-root.squashfs-64k

generates final binary:

/ow/openwrt/trunk/staging_dir/host/bin/mktplinkfw -B TL-WR841NDv7 -N OpenWrt -V r27929    -k /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux-tl-wr841nd-v7.bin.gz -r /ow/openwrt/trunk/bin/ar71xx/openwrt-ar71xx-generic-root.squashfs-64k -o /ow/openwrt/trunk/bin/ar71xx/openwrt-ar71xx-generic-tl-wr841nd-v7-squashfs-factory.bin
/ow/openwrt/trunk/staging_dir/host/bin/mktplinkfw -B TL-WR841NDv7 -N OpenWrt -V r27929 -s -k /ow/openwrt/trunk/build_dir/linux-ar71xx_generic/vmlinux-tl-wr841nd-v7.bin.gz -r /ow/openwrt/trunk/bin/ar71xx/openwrt-ar71xx-generic-root.squashfs-64k -o /ow/openwrt/trunk/bin/ar71xx/openwrt-ar71xx-generic-tl-wr841nd-v7-squashfs-sysupgrade.bin
此条目发表在linux分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

*