I don’t see the repository link in the Wiki
That would be great. Just found the official Mediatek repo/build. But the .img will not be build (maybe to large?) and a sysupdate will also not work with the FIT files.
Can somebody share a working build/repo/image? The pre-installed 21.01-S seems to have some bugs and I want to check and update the kernel and firmware.
Also, not sure about AFT and U-Boot for that …
We also discussed this in the Openwrt forum
Maybe @sinovoip can give us here some more insights.
I was able to build it using the site you posted. This results in .itb files. Following the link at the end of the page, there is also a tutorial on how to flash it.
For eMMC, you have to “Update the partition table by programming GPT_EMMC_mt798x_itb
”. I think, I correctly did this by executing the following python2 (!) script within the arm-trusted-firmware/tools/dev-folder:
python mtk_gpt.py --i example/mt798x-itb-emmc.json --o GPT_EMMC
I also managed to build U-Boot following these instructions (used mt7987_emmc_rfb_defconfig in the configure step) and ATF with “make -f Makefile PLAT=mt7987 BOOT_DEVICE=emmc DRAM_USE_DDR4=1 BL33=u-boot.bin all fip” (since mt7987a does not seem to be available yet) to get the bl2.img and fip.bin.
Following the instructions under Flash the images/ Bootloaders: EMMC Procedure, I could successfully transfer the GPT-info and the bl2.img file using tftp, but the last step (upgrading FIP) fails with
*** FIP initialization failed (-22) *** *** FIP verification failed ***.
I think this is because of the PLAT=mt7987 issue.
Apart from that, I was then able to upgrade the firmware, since after the GPT partitioning, the partition “firmware” exists. But. The following boot fails.
Ah, I noticed a single_img_wrapper-directory in the arm-trusted-firmware/tools/dev-folder but am unable to see, if this works with an itb file right now.
Will test it tomorrow
Tried a lot of stuff but can not generate something which is worth to call stable or at least good enough to test the board properly. In the pre-installed 21.01 version, a lot of bugs and performance issues are present. I just want to use the board without Wi-Fi for now.
I think the U-Boot needs a fresh build too. But I have to dive into that fist. Found something here: https://git01.mediatek.com/plugins/gitiles/?format=HTML
Thanks to @slapstick559 I could build a custom 24.0X image (+U-Boot, +ATF) and it works more stable as the 21. After some tests, I put this thing to production
Hope the board will get part of the Openwrt supported hardware. For now I’m happy!