(MIPS 24KEc) MT7688 (LinkIt Smart 7688)

如何產生LinkIt7688-squashfs-sysupgrade.bin


步驟如下:

$ make CFLAGS="-O2 -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="bash" V='' CC="mipsel-openwrt-linux-uclibc-gcc" all modules
$ mv vmlinux vmlinux_orig
$ mipsel-openwrt-linux-uclibc-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S vmlinux_orig vmlinux
$ mipsel-openwrt-linux-uclibc-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S vmlinux_orig vmlinux.elf
$ dtc -O dtb -o LINKIT7688.dtb dts/LINKIT7688.dts
$ patch-dtb vmlinux LINKIT7688.dtb
$ lzma e vmlinux -lc1 -lp2 -pb2 vmlinux.bin.lzma
$ mkimage -A mips -O linux -T kernel -C lzma -a 0x80000000 -e 0x80000000 -n "MIPS OpenWrt Linux-3.18.44" -d vmlinux.bin.lzma uImage.lzma
$ cp uImage.lzma uImage.bin
$ cat uImage.bin 3.18.44_root.squashfs > lks7688.img
$ padjffs2 lks7688.img 4 8 16 64 128 256


返回上一頁