1.. SPDX-License-Identifier: GPL-2.0 2 3mt7621_rfb/mt7621_nand_rfb 4========================== 5 6U-Boot for the MediaTek MT7621 boards 7 8Quick Start 9----------- 10 11- Get the DDR initialization binary blob 12- Configure CPU and DDR parameters 13- Build U-Boot 14 15Get the DDR initialization binary blob 16-------------------------------------- 17 18Download one from: 19 - https://raw.githubusercontent.com/mtk-openwrt/mt7621-lowlevel-preloader/master/mt7621_stage_sram.bin 20 - https://raw.githubusercontent.com/mtk-openwrt/mt7621-lowlevel-preloader/master/mt7621_stage_sram_noprint.bin 21 22mt7621_stage_sram_noprint.bin has removed all output logs. To use this one, 23download and rename it to mt7621_stage_sram.bin 24 25Put the binary blob to the u-boot build directory. 26 27Configure CPU and DDR parameters 28-------------------------------- 29 30menuconfig > MIPS architecture > MediaTek MIPS platforms > CPU & DDR configuration 31 32Select the correct DDR timing parameters for your board. The size shown here 33must match the DDR size of you board. 34 35The frequency of CPU and DDR can also be adjusted. 36 37Build U-Boot 38------------ 39 40.. code-block:: bash 41 42 $ export CROSS_COMPILE=mipsel-linux- 43 $ make O=build mt7621_rfb_defconfig # or mt7621_nand_rfb_defconfig 44 $ cp mt7621_stage_sram.bin ./build/mt7621_stage_sram.bin 45 $ # or cp mt7621_stage_sram_noprint.bin ./build/mt7621_stage_sram.bin 46 $ make O=build 47 48Burn the u-boot-mt7621.bin to the SPI-NOR or NAND flash. 49