Hi. guys.
I’m having trouble resolving my U-boot issues. That’s why I keep posting questions. Please understand.
In the end, I’m rereading the manual from the beginning and working through it step by step. The manual I’m currently using is linked below. I also downloaded the source code from that link.
Step 0. environment for cross compiler
Step 0. environment for cross compiler
$> cat set_env.sh
#!/bin/sh
export TEST_BASE=$(cd ../../;pwd)
echo $TEST_BASE
export PATH=$PATH:$TEST_BASE/buildroot/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.3.0_musl/bin/
export CROSS_COMPILE=$TEST_BASE/buildroot/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.3.0_musl/bin/aarch64-openwrt-linux-
export STAGING_DIR=$TEST_BASE/buildroot/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.3.0_musl/
Step 1. Download and build the u-boot source code
$ > git clone https://github.com/mtk-openwrt/u-boot ./25.07
$ > cd 25.07
$ 25.07 > git branch
* mtksoc
$ 25.07 > source ./set_env.sh
$ 25.07 > make mt7622_emmc_rfb_defconfig
$ 25.07 > make
The build went smoothly.
The manual said to create an atf file. So I did it as follows, but I got an error.
Step 2. atf build
$ 25.07 > make -f Makefile PLAT=mt7622 BOOT_DEVICE=emmc DDR3_FLYBY=1 all fip
UPD include/generated/timestamp_autogenerated.h
CC common/version.o
AR common/built-in.a
LDS u-boot.lds
LD u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot-nodtb.bin
RELOC u-boot-nodtb.bin
CAT u-boot-dtb.bin
COPY u-boot.bin
SYM u-boot.sym
OFCHK.config
make: *** No rule to make target 'fip'. Stop.
Why is this like this?