Re: failed to build u-boot mt7621_rfb_defconfig

2023-10-18 Thread Xiaobo Liu
Thank you


Re: failed to build u-boot mt7621_rfb_defconfig

2023-10-17 Thread Fabio Estevam
[Please keep the list on Cc]

On Mon, Oct 16, 2023 at 11:14 PM Xiaobo Liu  wrote:
>
> Hi
>
> I found the nand rfb u-boot mt7621_stage_sram.bin, no spi-nor version was 
> found.
>
> https://u-boot.readthedocs.io/en/latest/board/mediatek/mt7621.html
>
> Where can I find a version of the mt7621 spi-nor?

I am not familiar with the Mediatek chips, but mt7621_stage_sram.bin
seems to be generic, independent of the boot medium.

https://u-boot.readthedocs.io/en/latest/board/mediatek/mt7621.html
shows the same procedure for generating the binary.

Then the last line says: "Burn the u-boot-mt7621.bin to the SPI-NOR or
NAND flash."

Adding the Mediatek maintainers on Cc.


Re: failed to build u-boot mt7621_rfb_defconfig

2023-10-16 Thread Fabio Estevam
Hi Xiaobo,

On Mon, Oct 16, 2023 at 8:49 AM Xiaobo Liu  wrote:

> Image 'u-boot-spl-ddr' is missing external blobs and is non-functional:
> stage_bin
>
> /binman/u-boot-spl-ddr/stage_bin (mt7621_stage_sram.bin):
>Missing blob
>
> Some images are invalid
> make: *** [Makefile:1115: .binman_stamp] Error 103
> ```
>
> Is there a step I'm missing that's causing this?

Yes, you need to provide mt7621_stage_sram.bin.

Please follow the instructions from doc/board/mediatek/mt7621.rst


failed to build u-boot mt7621_rfb_defconfig

2023-10-16 Thread Xiaobo Liu
I checkout u-boot tag: v2023.10

https://github.com/u-boot/u-boot/tree/v2023.10

run build:

```shell
export
STAGING_DIR=/home/foo/openwrt-toolchain-22.03.4-ramips-mt7621_gcc-11.2.0_musl.Linux-x86_64/

make mt7621_rfb_defconfig
make
CROSS_COMPILE=/home/foo/openwrt-toolchain-22.03.4-ramips-mt7621_gcc-11.2.0_musl.Linux-x86_64/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-
```

build failed:

```shell
  CC  spl/common/spl/spl.o
  AR  spl/common/spl/built-in.o
  LD  spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPYspl/u-boot-spl.bin
  SYM spl/u-boot-spl.sym
  MKIMAGE u-boot.img
  MKIMAGE u-boot-dtb.img
  LZMAu-boot.bin.lzma
  MKIMAGE u-boot-lzma.img
  BINMAN  .binman_stamp
Image 'u-boot-spl-ddr' is missing external blobs and is non-functional:
stage_bin

/binman/u-boot-spl-ddr/stage_bin (mt7621_stage_sram.bin):
   Missing blob

Some images are invalid
make: *** [Makefile:1115: .binman_stamp] Error 103
```

Is there a step I'm missing that's causing this?