(MIPS 24KEc) MT7688 (LinkIt Smart 7688)

Build Kernel 3.18.44


編譯:

$ cd
$ wget https://github.com/steward-fu/mt7688/releases/download/v1.0/toolchain.tar.gz
$ tar xvf toolchain.tar.gz
$ sudo mv mt7688 /opt/

$ wget https://github.com/steward-fu/mt7688/releases/download/v1.0/kernel.tar.gz
$ tar xvf kernel.tar.gz
$ cd kernel

$ export ARCH=mips
$ export CROSS_COMPILE=mipsel-linux-
$ export PATH=$PATH:/opt/mt7688/bin

$ make mt7688_defconfig
$ make clean
$ make all -j4

$ cp vmlinux vmlinux_orig
$ mipsel-linux-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S vmlinux_orig vmlinux
$ mipsel-linux-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S vmlinux_orig vmlinux.elf
$ ./utils/dtc -O dtb -o LINKIT7688.dtb dts/LINKIT7688.dts
$ ./utils/patch-dtb vmlinux LINKIT7688.dtb
$ ./utils/lzma e vmlinux -lc1 -lp2 -pb2 vmlinux.bin.lzma
$ mkimage -A mips -O linux -T kernel -C lzma -a 0x80000000 -e 0x80000000 -n "MT7688" -d vmlinux.bin.lzma uImage.lzma
$ cp uImage.lzma uImage.bin
$ cat uImage.bin utils/rootfs.squashfs > lks7688.img
$ ./utils/padjffs2 lks7688.img 4 8 16 64 128 256
$ rm -rf uImage* vmlinux* LINKIT7688.dtb

燒錄(請使用USB供電):
1. 格式化USBDisk成FAT32
2. 複製lks7688.img到USBDisk
3. 插入USBDisk到MT7688 USB host port
4. 按住WiFi按鈕
5. 5秒後鬆開WiFi按鈕(第一次WiFi LED滅時)


返回上一頁