Skip to content

Kasazaki4090/bl-mt798x

 
 

Repository files navigation

ATF and u-boot for mt798x

About bl-mt798x

Prepare

sudo apt install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev

Build

Usage: SOC=[mt7981|mt7986] BOARD=<board name> MULTI_LAYOUT=[0|1] ./build.sh
eg: SOC=mt7981 BOARD=360t7 ./build.sh
eg: SOC=mt7981 BOARD=wr30u MULTI_LAYOUT=1 ./build.sh
eg: SOC=mt7981 BOARD=cmcc_rax3000m-emmc ./build.sh
eg: SOC=mt7986 BOARD=redmi_ax6000 MULTI_LAYOUT=1 ./build.sh
eg: SOC=mt7986 BOARD=jdcloud_re-cp-03 ./build.sh

Build for bpi r3

Don't copy all code at one time!Remember to copy one line to compile. 不要全部复制,先复制上面一条,生成好了显示fail了,再去atf目录复制对应的代码来生成bl2和fip镜像,懒得改了,将就用吧。

SOC=mt7986a BOARD=bpir3_sd ./build.sh
SOC=mt7986a BOARD=bpir3_emmc ./build.sh
SOC=mt7986a BOARD=bpir3_snand ./build.sh
SOC=mt7986a BOARD=bpir3_nor ./build.sh

This will shows failed,then move to atf root to bulid by yourself

make -f Makefile PLAT=mt7986 CROSS_COMPILE=aarch64-linux-gnu- BOOT_DEVICE=sdmmc BL33=./u-boot.bin DRAM_USE_DDR4=1 all fip
make -f Makefile PLAT=mt7986 CROSS_COMPILE=aarch64-linux-gnu- BOOT_DEVICE=emmc BL33=./u-boot.bin DRAM_USE_DDR4=1 all fip
make -f Makefile PLAT=mt7986 CROSS_COMPILE=aarch64-linux-gnu- BOOT_DEVICE=spim-nand NMBN=1 BL33=./u-boot.bin DRAM_USE_DDR4=1 all fip
make -f Makefile PLAT=mt7986 CROSS_COMPILE=aarch64-linux-gnu- BOOT_DEVICE=nor NMBN=1  BL33=./u-boot.bin DRAM_USE_DDR4=1 all fip

xiaomi-wr30u multi-layout uboot firmware compatibility

Firmware type uboot (default) uboot (immortalwrt-112m) uboot (qwrt)
xiaomi stock mtd8/mtd9 × ×
immortalwrt-mt798x stock × ×
OpenWrt stock × ×
immortalwrt stock × ×
X-Wrt stock × ×
immortalwrt-mt798x 112m × ×
GL.iNet by 237176253 × ×
X-Wrt 112m nmbm × ×
OpenWrt 112m nmbm × ×
immortalwrt 112m nmbm × ×
X-Wrt 112m nmbm × ×
QWRT × ×
OpenWrt ubootmod × × ×
immortalwrt ubootmod × × ×
X-Wrt ubootmod × × ×

redmi-ax6000 multi-layout uboot firmware compatibility

Firmware type uboot (default) uboot (immortalwrt-110m)
xiaomi stock mtd8/mtd9 ×
immortalwrt-mt798x stock ×
OpenWrt stock ×
immortalwrt stock ×
X-Wrt stock ×
immortalwrt-mt798x ×
GL.iNet by 237176253 ×
X-Wrt ubootlayout ×
OpenWrt ubootmod × ×
immortalwrt ubootmod × ×
X-Wrt ubootmod × ×

About

ATF and u-boot for bpi R3

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 93.3%
  • Python 2.8%
  • Assembly 2.0%
  • Makefile 1.2%
  • Perl 0.4%
  • Shell 0.1%
  • Other 0.2%