(MIPS 24KEc) MT7688 (LinkIt Smart 7688 Duo)
Build Kernel 5.4.83
編譯:
$ cd $ wget https://github.com/steward-fu/mt7688-duo/releases/download/v1.0/toolchain.tar.gz $ tar xvf toolchain.tar.gz $ sudo mv mt7688 /opt/ $ wget https://github.com/steward-fu/mt7688-duo/releases/download/v1.0/kernel.tar.gz $ tar xvf kernel.tar.gz $ cd kernel $ export ARCH=mips $ export CROSS_COMPILE=mipsel-linux- $ export PATH=utils:/opt/mt7688/bin:$PATH $ make mt7688_defconfig $ make clean $ make all -j4 $ mipsel-linux-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S vmlinux vmlinux.new $ mipsel-linux-cpp -nostdinc -x assembler-with-cpp -Iarch/mips/boot/dts -Iarch/mips/boot/dts/include -Iinclude -undef -D__DTS__ dts/mt7628an_mediatek_linkit-smart-7688.dts -o mt7688.tmp $ ./scripts/dtc/dtc -O dtb -idts mt7688.tmp -o mt7688.dtb $ cp vmlinux.new kernel.bin $ cat mt7688.dtb >> kernel.bin $ ./utils/lzma e kernel.bin -lc1 -lp2 -pb2 kernel.bin.new $ mkimage -A mips -O linux -T kernel -C lzma -a 0x80000000 -e 0x80000000 -n 'MIPS OpenWrt Linux-5.4.83' -d kernel.bin.new kernel.bin.lzma $ cp kernel.bin.lzma lks7688.img $ cat utils/rootfs.squashfs >> lks7688.img $ ./utils/padjffs2 lks7688.img 4 8 16 64 128 256 $ rm -rf vmlinux.new mt7688.tmp mt7688.dtb kernel.bin*
燒錄(請使用USB供電):
1. 格式化USBDisk成FAT32
2. 複製lks7688.img到USBDisk
3. 插入USBDisk到MT7688 USB host port
4. 按住WiFi按鈕
5. 5秒後鬆開WiFi按鈕(第一次WiFi LED滅時)