對於這三種格式的產生方式 以及 所需要的檔案 ,終於有時間可以把他抓出來了解一下了
bin
( dd if=openwrt/build_dir/target-***/linux-ar71xx_generic/tmp/vmlinux-wzr-hp-ag300h.uImage bs=${bs} conv=sync; cat openwrt/build_dir/target-***/linux-ar71xx_generic/root.squashfs-raw ) > openwrt/bin/ar71xx/openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin; |
penwrt/staging_dir/host/bin/trx -o openwrt/build_dir/target-***/linux-bcm53xx/tmp/openwrt-bcm53xx-asus-rt-n18u-squashfs.trx -m 33554432 -f openwrt/build_dir/target-***/linux-bcm53xx/asus-rt-n18u-kernel.bin -a 0x20000 -b 0x400000 -f openwrt/build_dir/target-***/linux-bcm53xx/root-block-0x20000-min-0x800.ubi -A openwrt/build_dir/target-***/linux-bcm53xx/ubi_mark -a 0x20000 |
(cd "openwrt/build_dir/target-***/linux-ar71xx_nand/tmp"; tar cvf "openwrt/bin/ar71xx/openwrt-ar71xx-nand-nbg6716-squashfs-sysupgrade.tar" sysupgrade-nbg6716) 把openwrt/build_dir/target-***/linux-ar71xx_nand/tmp/sysupgrade-nbg6716 用tar打包成openwrt/bin/ar71xx/openwrt-ar71xx-nand-nbg6716-squashfs-sysupgrade.tar sysupgrade-nbg6716/ sysupgrade-nbg6716/root sysupgrade-nbg6716/kernel sysupgrade-nbg6716/CONTROL |