BPI-R64 new image : LEDE17 (OpenWRT) image Kernel:4.4.177 SD&eMMC booting 2020-04-09

I have banana pi R64 too. And this image work fine for me. I turn boot switch.

And do you have a working WiFi?? On my it is not available

Yes wi-fi off. In this tread (Bpi-r64 quick start (boot from eMMC)) same lede version but with wifi.

this image have full support BPI-MT7615 wifi module:

http://wiki.banana-pi.org/BPI-MT7615_802.11_ac_wifi_4x4_dual-band_module

i thing y should use rufus.

Hello. I am relatively new to tinkering with the BPI-R64 with MT7615 module. But so far, I have successfully experimented using img or bin files from other forum threads (eg Bpi-r64 quick start (boot from eMMC)) booting with SD card and also flashing images to eMMC through TFTP using U-boot.

For this particular eMMC image that @sinovoip has made available, can you tell me what option I must choose from Uboot to flash the image to eMMC. Do I need to also flash a preloader?

Thanks, Mbk

I think you need see this article.

Thanks @Rim13. I have been able to flash those files to my BPI-R64.

Hello guys.

I’m trying to boot from SD-card (for starters).

First I’ve copied SD card image image with bpi-tools:

sudo bpi-copy 2020-04-09-OpenWRT-mtk-bpi-r64-SD.img /dev/sdb

After plugging the card into BPI-R64 I’m stuck with the following. Seems like U-Boot is loaded but it’s looking for a kernel image on eMMC which is obviously not present.

How should I proceed?

F0: 102B 0000
F5: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 0330 [000F]
Jump to BL

UNIVPLL_CON0 = 0xFE000000!!!
mt_pll_init: Set pll frequency for 25M crystal
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic_init] Preloader Start..................
[pmic_init] MT6380 CHIP Code, reg_val = 0, 1:E2  0:E3
[pmic_init] Done...................
Chip part number:7622A
MT7622 Version: 1.2.7, (iPA) 
SSC OFF
mt_pll_post_init: mt_get_cpu_freq = 1350000Khz
mt_pll_post_init: mt_get_mem_freq = 1600096Khz
mt_pll_post_init: mt_get_bus_freq = 1119920Khz
[PLFM] Init I2C: OK(0)

[BLDR] Build Time: 20180808-141822
==== Dump RGU Reg ========
RGU MODE:     4D
RGU LENGTH:   FFE0
RGU STA:      0
RGU INTERVAL: FFF
RGU SWSYSRST: 8000
==== Dump RGU Reg End ====
RGU: g_rgu_satus:0
 mtk_wdt_mode_config  mode value=10, tmp:22000010
PL P ON
WDT does not trigger reboot
WDT NONRST=0x20000000
WDT IRQ_EN=0x340003
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
[EMI] MDL number = 2
[EMI] DRAMC calibration start

[EMI] DRAMC calibration end

[EMI]rank0 size: 0x40000000
[MEM] complex R/W mem test pass
RAM_CONSOLE wdt status (0x0)=0x0
[mmc_init]: msdc1 start mmc_init_host() in PL...
[msdc_init]: msdc1 Host controller intialization start 
[SD1] Pins mode(1), none(0), down(1), up(2), keep(3)
[SD1] Pins mode(2), none(0), down(1), up(2), keep(3)
[info][msdc_config_clksrc] input clock is 200000kHz
[SD1] Bus Width: 1
[info][msdc_config_clksrc] input clock is 200000kHz
[SD1] SET_CLK(260kHz): SCLK(259kHz) MODE(0) DDR(0) DIV(193) DS(0) RS(0)
[msdc_init]: msdc1 Host controller intialization done
[mmc_init]: msdc1 start mmc_init_card() in PL...
[mmc_init_card]: start
[SD1] Bus Width: 4
[SD1] Size: 15060 MB, Max.Speed: 25000 kHz, blklen(512), nblks(30842880), ro(0)
[mmc_init_mem_card 3140][SD1] Initialized, SD10
before host->cur_bus_clk(259067)
[info][msdc_config_clksrc] input clock is 200000kHz
[SD1] SET_CLK(25000kHz): SCLK(25000kHz) MODE(0) DDR(0) DIV(2) DS(0) RS(0)
host->cur_bus_clk(25000000)
[mmc_init_card]: finish successfully
[PLFM] Init Boot Device: OK(0)
[GPT_PL]Parsing Primary GPT now...
[GPT_PL][0]name=preloader, part_id=8, start_sect=0x100, nr_sects=0x300
[GPT_PL][1]name=tee1, part_id=8, start_sect=0x400, nr_sects=0x200
[GPT_PL][2]name=lk, part_id=8, start_sect=0x600, nr_sects=0x400
[GPT_PL][3]name=nvram, part_id=8, start_sect=0xA00, nr_sects=0x400
[GPT_PL][4]name=rf, part_id=8, start_sect=0xE00, nr_sects=0x200
[GPT_PL][5]name=boot, part_id=8, start_sect=0x1000, nr_sects=0xA000
[GPT_PL][6]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][7]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][8]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][9]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][10]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][11]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][12]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][13]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][14]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][15]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][16]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][17]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][18]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][19]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][20]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][21]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][22]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][23]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][24]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][25]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][26]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][27]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][28]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][29]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][30]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][31]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][32]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][33]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][34]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][35]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][36]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][37]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][38]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][39]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][40]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][41]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][42]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][43]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][44]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][45]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][46]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][47]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][48]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][49]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][50]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][51]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][52]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][53]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][54]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][55]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][56]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][57]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][58]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][59]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][60]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][61]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][62]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][63]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][64]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][65]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][66]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][67]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][68]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][69]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][70]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][71]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][72]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][73]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][74]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][75]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][76]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][77]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][78]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][79]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][80]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][81]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][82]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][83]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][84]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][85]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][86]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][87]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][88]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][89]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][90]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][91]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][92]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][93]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][94]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][95]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][96]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][97]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][98]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][99]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][100]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][101]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][102]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][103]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][104]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][105]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][106]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][107]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][108]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][109]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][110]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][111]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][112]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][113]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][114]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][115]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][116]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][117]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][118]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][119]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][120]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][121]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][122]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][123]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][124]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][125]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][126]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL][127]name=, part_id=8, start_sect=0x0, nr_sects=0x1
[GPT_PL]Success to find valid GPT.

[PART] blksz: 512B
[PART] [0x0000000000020000-0x000000000007FFFF] "preloader" (768 blocks) 
[PART] [0x0000000000080000-0x00000000000BFFFF] "tee1" (512 blocks) 
[PART] [0x00000000000C0000-0x000000000013FFFF] "lk" (1024 blocks) 
[PART] [0x0000000000140000-0x00000000001BFFFF] "nvram" (1024 blocks) 
[PART] [0x00000000001C0000-0x00000000001FFFFF] "rf" (512 blocks) 
[PART] [0x0000000000200000-0x00000000015FFFFF] "boot" (40960 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x0000000000000000-0x00000000000001FF] "" (1 blocks) 
[PART] [0x000000D8CAE4E000-0x000001A393A7BDFF] "unknown" (1701077359 blocks) 

Device APC domain init setup:

Domain Setup (0x0)
Domain Setup (0x0)
Device APC domain after setup:
Domain Setup (0x0)
Domain Setup (0x0)
[get_part] part->nr_sects=768, part->info->name=preloader
[get_part] part->nr_sects=512, part->info->name=tee1
[get_part] part->nr_sects=1024, part->info->name=lk
[PART] Image with part header
[PART] name : U-Boot
[PART] addr : 41E00000h mode : -1
[PART] size : 246424
[PART] magic: 58881688h

[PART] load "lk" from 0x00000000000C0200 (dev) to 0x41E00000 (mem) [SUCCESS]
[PART] load speed: 3437KB/s, 246424 bytes, 70ms
load lk (ret=0)
[get_part] part->nr_sects=768, part->info->name=preloader
[get_part] part->nr_sects=512, part->info->name=tee1
[PART] Image with part header
[PART] name : atf
[PART] addr : FFFFFFFFh mode : -1
[PART] size : 62032
[PART] magic: 58881688h

[PART] load "tee1" from 0x0000000000080200 (dev) to 0x43000DC0 (mem) [SUCCESS]
[PART] load speed: 2883KB/s, 62032 bytes, 21ms
load tee1 (ret=0)
mmc0 is current device
mmc0 operation
dev_num = 0

MMC read: dev # 0, block # 4096, count 1 ... 1 blocks read: OK
[do_read_image_blks] Image format error,neither FIT image nor old image.
Bad Magic Number.
mmc0 operation
dev_num = 0

MMC read: dev # 0, block # 4096, count 0 ... 0 blocks read: OK
bootm flag=0, states=70f
Wrong Image Format for bootm command
ERROR: can't get kernel image!
MT7622>

“version” and “printenv” would be good to find out whats get loaded automatically. If we see whats executed you can look with “ls mmc x:y folder” whats on this storage

I’m sorry I don’t quite get how to list contents of the storage.

Here’s version and printenv output.

MT7622> version

U-Boot 2014.04-rc1 (May 09 2019 - 19:22:09)
arm-linux-gcc (Buildroot 2014.11) 4.9.2
GNU ld (GNU Binutils) 2.24


MT7622> printenv
arch=arm
atf_filename=trustzone.bin
baudrate=115200
board=mt7622_evb
board_name=mt7622_evb
boot0=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename}; bootm
boot1=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename};run boot_wr_img;run boot_rd_img;bootm
boot10=download_setting flashimage;tftpboot ${loadaddr} ${flashimage_filename};run wr_flashimage;invaild_env
boot11=download_setting gpt;tftpboot ${loadaddr} ${gpt_filename};run wr_gpt
boot2=run boot_rd_img;bootm
boot3=download_setting uboot;tftpboot ${loadaddr} ${uboot_filename};run wr_uboot;invaild_env
boot4=loadb;run wr_uboot;invaild_env
boot5=download_setting atf;tftpboot ${loadaddr} ${atf_filename};run wr_atf
boot6=download_setting preloader;tftpboot ${loadaddr} ${preloader_filename};run wr_pl
boot7=download_setting hdr;tftpboot ${loadaddr} ${hdr_filename};run wr_rom_hdr
boot8=download_setting ctp;tftpboot ${loadaddr} ${ctp_filename};run wr_ctp
boot9=run boot_rd_ctp;boot_to_ctp
boot_rd_ctp=mmc device 0;mmc read ${loadaddr} 0x1000 0xa000
boot_rd_img=mmc device 0;mmc read ${loadaddr} 0x1000 1;image_blks 512;mmc read ${loadaddr} 0x1000 ${img_blks}
boot_wr_img=filesize_check 0x1E00000;if test ${filesize_result} = good; then image_blks 512  ${filesize};mmc device 0;mmc write $i
bootcmd=No
bootdelay=3
bootfile=iverson_uImage
bootmenu_0=1. System Load Linux to SDRAM via TFTP.=run boot0
bootmenu_1=2. System Load Linux Kernel then write to Flash via TFTP.=run boot1
bootmenu_10=b. System Load flashimage then write to Flash via TFTP.=run boot10
bootmenu_11=c. System Load partition table then write to Flash via TFTP.=run boot11
bootmenu_2=3. Boot system code via Flash.=run boot2
bootmenu_3=4. System Load U-Boot then write to Flash via TFTP.=run boot3
bootmenu_4=5. System Load U-Boot then write to Flash via Serial.=run boot4
bootmenu_5=6. System Load ATF then write to Flash via TFTP.=run boot5
bootmenu_6=7. System Load Preloader then write to Flash via TFTP.=run boot6
bootmenu_7=8. System Load ROM header then write to Flash via TFTP.=run boot7
bootmenu_8=9. System Load CTP then write to Flash via TFTP.=run boot8
bootmenu_9=a. System Load CTP then Boot to CTP (via Flash).=run boot9
bootmenu_delay=30
cpu=armv7
ctp_filename=ctp.bin
ethact=mtk_eth
ethaddr=00:0C:E7:11:22:33
fdt_high=0x6c000000
flashimage_filename=flashimage.bin
gpt_filename=GPT_EMMC
hdr_filename=hdr.binary
img_blks=0
invaild_env=no
ipaddr=10.10.10.254
kernel_filename=iverson_uImage
loadaddr=0x4007FF28
preloader_filename=preloader_fpga7622_64_ldvt.bin
serverip=10.10.10.3
soc=mt7622
stderr=serial
stdin=serial
stdout=serial
uboot_filename=u-boot-mtk.bin
vendor=mediatek
wr_atf=filesize_check 0x40000;if test ${filesize_result} = good; then mmc device 0;mmc write ${loadaddr} 0x400 0x200;fi
wr_ctp=filesize_check 0x1400000;if test ${filesize_result} = good; then ctp_check;if test ${ctp_result} = good; then mmc device 0i
wr_flashimage=filesize_check 0x1400000;if test ${filesize_result} = good; then mmc device 0;mmc write ${loadaddr} 0x0 0xa000;fi
wr_gpt=filesize_check 0x4400;if test ${filesize_result} = good; then mmc device 0;mmc write ${loadaddr} 0x0 0x22;fi
wr_pl=filesize_check 0x40000;if test ${filesize_result} = good; then mmc device 0; mmc write ${loadaddr} 0x0 0x200 emmc_preloaderi
wr_rom_hdr=filesize_check 0xA000;if test ${filesize_result} = good; then mmc device 0;mmc write ${loadaddr} 0x0 0x50;fi
wr_uboot=filesize_check 0x80000;if test ${filesize_result} = good; then mmc device 0;mmc write ${loadaddr} 0x600 0x400;fi

Environment size: 3712/4092 bytes

I guess 3rd bootmenu-entry is loaded, so running boot2 and then boot_rd_img, which loads “kernel” by loading some sectors from mmc device 0 (should be emmc),but not from a file…directly from specific mmc offset

Yes, it boots from 3rd entry by default. Choosing second one gives me this:

 Please Input new setting /or enter to choose the default setting
        Input kernel file name (iverson_uImage) ==:
        Input server IP (10.10.10.3) ==:
        Input device IP (10.10.10.254) ==:
ETH already turn on and power on flow will be skipped...

 Waitting for RX_DMA_BUSY status Start... done

mt7531: mt7531_sw_init
mt7531: mt7531_core_pll_setup, hwstrap = 000000ff
mt7531: mt7531_mac_port_setup, port = 6
mt7531: mt7531_set_port_sgmii_force_mode, port = 6
mt7531: timeout waiting for SGMII_LINK
mt7531: mt7531_mac_port_setup, PMCR6 = f805633b
 0x1b000014 = 0x00110214
Using mtk_eth device
TFTP from server 10.10.10.3; our IP address is 10.10.10.254
Filename 'iverson_uImage'.
Load address: 0x4007ff28
Loading: T T T T T T T T T T 
Retry count exceeded; starting again

I found out that mmc0 is the internal eMMC and mmc1 is my SD card.

MT7622> mmc init 1
ret2 = 1
ret2 = 1

Partition Map for MMC device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     1               -1              00000000-01     ee
  2     256             600             00000000-02     ef Boot
mmc1 is available
MT7622> mmcinfo 
dev_num = 1
Device: sdcard
Manufacturer ID: 13
OEM: 4b47
Name: SD16G 
Tran Speed: 50000000
Rd Block Len: 512
SD version 1.0
High Capacity: Yes
Capacity: 14.7 GiB
Bus Width: 5-bit
MT7622> mmc init 0
ret2 = 1
ret2 = 1
## Unknown partition table
mmc0 is available
MT7622> mmcinfo
dev_num = 0
Device: emmc
Manufacturer ID: 11
OEM: 100
Name: 008G3 
Tran Speed: 52000000
Rd Block Len: 512
SD version 1.0
High Capacity: Yes
Capacity: 7.3 GiB
Bus Width: 0-bit

But no matter what I execute I can’t get neither filesystem info nor file list on mmc0 or mmc1.

MT7622> mmc init 1
ret2 = 1
ret2 = 1

Partition Map for MMC device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     1               -1              00000000-01     ee
  2     256             600             00000000-02     ef Boot
mmc1 is available

MT7622> fatinfo mmc :2

** Unable to use mmc 1:2 for fatinfo **

Maybe I missed something? Is just flashing 2020-04-09-OpenWRT-mtk-bpi-r64-SD.img not enough? BTW I get same results when flashing other images: the one from this thread for example.

Ok, apart from these jffs2 errors on boot time I’ve got LEDE image running from SD card.

But there is no WiFi: neither internal nor external MTK7615. Even /etc/config/wireless is missing.

root@LEDE:/# ifconfig                                                           
br-lan    Link encap:Ethernet  HWaddr A6:96:22:E5:FF:38                         
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0        
          inet6 addr: fe80::a496:22ff:fee5:ff38/64 Scope:Link                   
          inet6 addr: fda9:dfd1:26c0::1/60 Scope:Global                         
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0                 
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:3344 (3.2 KiB)                           
                                                                                
eth0      Link encap:Ethernet  HWaddr A6:96:22:E5:FF:38                         
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:258 errors:0 dropped:0 overruns:0 carrier:0                
          collisions:0 txqueuelen:1000                                          
          RX bytes:0 (0.0 B)  TX bytes:32926 (32.1 KiB)                         
          Interrupt:251                                                         
                                                                                
eth1      Link encap:Ethernet  HWaddr E2:60:3C:F6:FF:14                         
          inet addr:192.168.2.10  Bcast:192.168.2.255  Mask:255.255.255.0       
          inet6 addr: fe80::e060:3cff:fef6:ff14/64 Scope:Link                   
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                    
          RX packets:5955 errors:0 dropped:0 overruns:0 frame:0                 
          TX packets:408 errors:0 dropped:0 overruns:0 carrier:0                
          collisions:0 txqueuelen:1000                                          
          RX bytes:1733025 (1.6 MiB)  TX bytes:46895 (45.7 KiB)                 
          Interrupt:251                                                         
                                                                                
lo        Link encap:Local Loopback                                             
          inet addr:127.0.0.1  Mask:255.0.0.0                                   
          inet6 addr: ::1/128 Scope:Host                                        
          UP LOOPBACK RUNNING  MTU:65536  Metric:1                              
          RX packets:8535 errors:0 dropped:0 overruns:0 frame:0                 
          TX packets:8535 errors:0 dropped:0 overruns:0 carrier:0               
          collisions:0 txqueuelen:1                                             
          RX bytes:675000 (659.1 KiB)  TX bytes:675000 (659.1 KiB)

UPD: I tried bringing up BPI-MT7615 WiFi interface as described here but after executing ifconfig rai0 up system becomes irresponsive and goes into reboot.

root@LEDE:/# ifconfig rai0 up
[  152.972313] rai0: ===> main_virtual_if_open
[  152.976894] load l1profile succeed!
[  152.980416] driver_own()::Try to Clear FW Own...
[  153.285100] driver_own()::Success to clear FW Own
[  153.290465] APWdsInitialize():WdsEntry Number=4
[  153.295829] RtmpOSFileOpen(): Error 2 opening /etc/Wireless/iNIC/iNIC_ap_5G.dat
[  153.303147] Open file "/etc/Wireless/iNIC/iNIC_ap_5G.dat" failed!
[  153.309552] E2pAccessMode=4
[  153.312589] SSID[0]=MTK_AP2, EdcaIdx=0
[  153.316513] DBDC Mode=0, eDBDC_mode = 0
[  153.320561] BSS0 PhyMode=49
[  153.323362] wmode_band_equal(): Band Equal!
[  153.328103] BandSteering=0
[  153.330842] BndStrgBssIdx=
[  153.333649] [TxPower] BAND0: 100 
[  153.337172] Power Boost (CCK, OFDM): RTMPSetProfileParameters[PowerUpCckOfdm] BAND1: (0)-(0)-(0)-(0)-(0)-(0)-(0)
[  153.347507] Power Boost (HT20): RTMPSetProfileParametersPower Boost (HT40): RTMPSetProfileParametersPower Boost (VHT 
[  153.375593] [BFBACKOFFenable] BAND0: 0 
[  153.379464] CalCacheApply = 0 
[  153.382965] FragThreshold[0]=2346
[  153.388674] DfsZeroWait Support=0/0
[  153.392643] DfsZeroWaitCacTime=255/255
[  153.397110] read_etxbf: ETxBfEnCond = 1
[  153.400942] read_etxbf: BSSID[0]
[  153.404161] read_etxbf: MBSS[0] ETxBfEnCond = 1
[  153.428077] If/wds0 - PeerPhyOpMode=255
[  153.432425] APWdsInitialize():WdsEntry Number=4
[  153.436977] WDS-Enable mode=0
[  153.440016] AndesSendCmdMsg: Could not send in band command due to diablefRTMP_ADAPTER_MCU_SEND_IN_BAND_CMD
[  153.449816] AndesSendCmdMsg: Command type = ed, Extension command type = 48
[  153.458190] HT: WDEV[0] Ext Channel = ABOVE
[  153.462472] HT: greenap_cap = 1
[  153.465689] ChipI=7615, Value=0, pcie_aspm in profile=0
[  153.490377] ICapMode = 0
[  153.496169] WtcSetMaxStaNum: BssidNum:1, MaxStaNum:124 (WdsNum:4, ApcliNum:2, MaxNumChipRept:16), MinMcastWcid:125
[  153.506639] Top Init Done!
[  153.509353] Use dev_alloc_skb
[  153.512873] RX[0] DESC ffffff80092b2000 size = 16384
[  153.518552] RX[1] DESC ffffff80092b7000 size = 8192
[  153.523796] cut_through_init(): ct sw token number = 4095
[  153.529318] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
[  153.537058] cut_through_token_list_init(): ffffffc039282210,ffffffc039282210
[  153.544294] cut_through_token_list_init(): TokenList inited done!id_head/tail=0/4096
[  153.552034] cut_through_token_list_init(): ffffffc039282230,ffffffc039282230
[  153.559108] Hif Init Done!
[  153.561816] ctl->txq = ffffff800a3e08d0
[  153.565648] ctl->rxq = ffffff800a3e08e8
[  153.569481] ctl->ackq = ffffff800a3e0900
[  153.573401] ctl->kickq = ffffff800a3e0918
[  153.577406] ctl->tx_doneq = ffffff800a3e0930
[  153.581672] ctl->rx_doneq = ffffff800a3e0948
[  153.586011] Parsing patch header
[  153.589257]  Built date: 20180518100604a
[  153.593253] 
[  153.594736]  Platform: ALPS
[  153.597550]  HW/SW version: 0x8a108a10
[  153.601344]  Patch version: 0x00000010
[  153.605132]  Target address: 0x80000, length: 11072
[  153.610083] patch is not ready && get semaphore success
[  153.615359] EventGenericEventHandler: CMD Success
[  153.620150] MtCmdPatchFinishReq
[  153.634546] EventGenericEventHandler: CMD Success
[  153.639300] release patch semaphore
[  153.642791] WfMcuHwInit: Before NICLoadFirmware, check ICapMode = 0
[  153.649064] Parsing CPU 0 fw tailer
[  153.652544]  Chip ID: 0x04
[  153.655263]  Eco version: 0x00
[  153.658332]  Region number: 0x00
[  153.661571]  Format version: 0x00
[  153.664897]  Ram version: _reserved_
[  153.668514]  Built date: 20190307015603
[  153.672507]  Common crc: 0x0
[  153.675386] Parsing tailer region 0
[  153.678870]  Feature set: 0x01
[  153.681936]  Target address: 0x84000, Download size: 409600
[  153.687504] Parsing tailer region 1
[  153.690988]  Feature set: 0x01
[  153.694053]  Target address: 0x209c400, Download size: 43328
[  153.699751] EventGenericEventHandler: CMD Success
[  153.708564] EventGenericEventHandler: CMD Success
[  153.713537] MtCmdFwStartReq: override = 0x1, address = 0x84000
[  153.719431] EventGenericEventHandler: CMD Success
[  153.724141] Parsing CPU 1 fw tailer
[  153.727629]  Chip ID: 0x04
[  153.730347]  Eco version: 0x00
[  153.733411]  Region number: 0x00
[  153.736642]  Format version: 0x00
[  153.739967]  Ram version: _reserved_
[  153.743589]  Built date: 20190415154149
[  153.747583]  Common crc: 0x0
[  153.750462] Parsing tailer region 0
[  153.753949]  Feature set: 0x01
[  153.757026]  Target address: 0x90000000, Download size: 122608
[  153.762898] EventGenericEventHandler: CMD Success
[  153.768205] MtCmdFwStartReq: override = 0x4, address = 0x0
[  153.808875] EventGenericEventHandler: CMD Success
[  153.877852] MCU Init Done!
[  153.880561] efuse_probe: efuse = 10000212
[  153.884568] RtmpChipOpsEepromHook::e2p_type=4, inf_Type=5
[  153.889965] RtmpEepromGetDefault::e2p_dafault=1
[  153.894494] RtmpChipOpsEepromHook: E2P type(4), E2pAccessMode = 4, E2P default = 1
[  153.902059] NVM is BIN mode
[  153.904866] rtmp_ee_load_from_bin::bin FileName=/etc_ro/wlan/MT7615E_EEPROM2.bin
[  153.942987] Load EEPROM Buffer from /etc_ro/wlan/MT7615E_EEPROM2.bin
[  153.949369] rtmp_cal_load_from_bin::FileName=/etc_ro/Wireless/iNIC/CALDATA2.bin
[  153.956721] RtmpOSFileOpen(): Error 2 opening /etc_ro/Wireless/iNIC/CALDATA2.bin
[  153.964153]  Run RXDCOC/TXDPD/PRECAL cmds to generate caldata files
[  153.971293] rtmp_ee_bin_init(): bDCOCReloaded = false.
[  153.976436] rtmp_cal_load_from_bin::FileName=/etc_ro/Wireless/iNIC/CALDATA2.bin
[  153.983751] RtmpOSFileOpen(): Error 2 opening /etc_ro/Wireless/iNIC/CALDATA2.bin
[  153.991151]  Run RXDCOC/TXDPD/PRECAL cmds to generate caldata files
[  153.998285] rtmp_ee_bin_init(): bDPDReloaded = false.
[  154.008484] Cal Free IC!!
[  154.017631] NICReadEEPROMParameters: EEPROM 0x52 b300
[  154.023378] NICReadEEPROMParameters: EEPROM 0x52 b300
[  161.507538] Country Region from e2p = 101
[  161.511566] mt7615_antenna_default_reset(): TxPath = 4, RxPath = 4
[  161.517746] mt7615_antenna_default_reset(): DBDC BAND0 TxPath = 2, RxPath = 2
[  161.524878] mt7615_antenna_default_reset(): DBDC BAND1 TxPath = 2, RxPath = 2
[  161.532029] RcRadioInit(): DbdcMode=0, ConcurrentBand=1
[  161.537256] RcRadioInit(): pRadioCtrl=ffffffc03b0e51d8,Band=0,rfcap=3,channel=1,PhyMode=2 extCha=0xf
[  161.546460] MtCmdSetDbdcCtrl:(ret = 0)
[  161.550214] MtSingleSkuLoadParam: RF_LOCKDOWN Feature OFF !!!
[  161.556545] MtBfBackOffLoadParam: RF_LOCKDOWN Feature OFF !!!
[  161.562418] EEPROM Init Done!
[  161.565392] mt_mac_init()-->
[  161.568265] mt7615_init_mac_cr()-->
[  161.571767] mt7615_init_mac_cr(): TMAC_TRCR0=0x82783c8c
[  161.576994] mt7615_init_mac_cr(): TMAC_TRCR1=0x82783c8c
[  161.582243] <--mt_mac_init()
[  161.585250] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[  161.591837] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[  161.598424] CmdRxHdrTransBLUpdateRsp::EventExtCmdResult.u4Status = 0x0
[  161.605109] MAC Init Done!
[  161.607811] MT7615BBPInit():BBP Initialization.....
[  161.612692]  Band 0: valid=1, isDBDC=0, Band=2, CBW=1, CentCh/PrimCh=1/1, prim_ch_idx=0, txStream=2
[  161.621736]  Band 1: valid=0, isDBDC=0, Band=0, CBW=0, CentCh/PrimCh=0/0, prim_ch_idx=0, txStream=0
[  161.630776] MT7615BBPInit() todo
[  161.634015] PHY Init Done!
[  161.637304] MtCmdSetMacTxRx:(ret = 0)
[  161.641097] WifiFwdSet::disabled=0
[  161.644514] ap_ftkd> Initialize FT KDP Module...
[  161.649160] Main bssid = 00:00:00:00:00:00
[  161.653394] MtCmdSetMacTxRx:(ret = 0)
[  161.657229] MtCmdSetMacTxRx:(ret = 0)
[  161.660906] <==== mt_wifi_init, Status=0
[  161.664821] TxBfModuleEnCtrl:It's not DBDC mode
[  161.669410] MtCmdEDCCACtrl: BandIdx: 0, EDCCACtrl: 1
[  161.674398] MtCmdEDCCACtrl: BandIdx: 1, EDCCACtrl: 1
[  161.679475] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[  161.686714] hc_radio_res_request(): wdev=1, hobj is not ready!
[  161.693344] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[  161.700968] hc_radio_res_request(): wdev=2, hobj is not ready!
[  161.708013] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[  161.715356] hc_radio_res_request(): wdev=3, hobj is not ready!
[  161.722001] The new WDS interface MAC = 00:00:00:00:00:00, MacTabMatchWCID = 0
[  161.729422] hc_radio_res_request(): wdev=4, hobj is not ready!
[  161.736188] Total allocated 4 WDS interfaces!
[  161.741505] WtcSetMaxStaNum: BssidNum:1, MaxStaNum:124 (WdsNum:4, ApcliNum:2, MaxNumChipRept:16), MinMcastWcid:125
[  161.782506] RedInit: set CR4/N9 RED Enable to 1.
[  161.787251] RedInit: RED Initiailize Done.
[  161.791472] cp_support_is_enabled: set CR4 CP_SUPPORT to Mode 2.
[  161.797541] RTMP_COM_IoctlHandle -> CMD_RTPRIV_IOCTL_VIRTUAL_INF_UP
[  161.804019] wifi_sys_open(), wdev idx = 0
[  161.808141] wdev_attr_update(): wdevId0 = 00:0c:43:26:60:00
[  161.813997] MtCmdSetDbdcCtrl:(ret = 0)
[  161.817989]  [RadarStateCheck] RD_NORMAL_MODE  
[  161.823848] mt7615_apply_cal_data() : eeprom 0x52 bit 1 is 0, do runtime cal , skip RX reload
[  161.832456] mt7615_apply_cal_data() : eeprom 0x52 bit 0 is 0, do runtime cal , skip TX reload
[  161.841070] MtCmdChannelSwitch: control_chl = 100,control_ch2=0, central_chl = 106 DBDCIdx= 0, Band= 0
[  161.850432] BW = 2,TXStream = 4, RXStream = 4, scan(0)
[  162.550506] [DfsCacNormalStart] Normal start. Enable MAC TX
[  162.556311] [WrapDfsRadarDetectStart]: DfsChBand[0]: 0, DfsChBand[1]: 0
[  162.563185] Caller: wlan_operate_init+0xe8/0x118 [mt_wifi]
[  162.568988] phy_mode=49, ch=100, wdev_type=1
[  162.573292] ht_cap->HtCapInfo: ldpc=1,ch_width=1,gf=0,sgi20=1,sgi40=1,tx_stbc=1,rx_stbc=1,amsdu_size=1
[  162.582677] ht_cap->HtCapParm: mdpu_density=5, ampdu_factor=3
[  162.588655] AP inf up for ra_0(func_idx) OmacIdx=0
[  162.593523] AsicRadioOnOffCtrl(): DbdcIdx=0 RadioOn
[  162.598564] ApAutoChannelAtBootUp----------------->
[  162.603502] ApAutoChannelAtBootUp: AutoChannelBootup = 0
[  162.608872] ApAutoChannelAtBootUp<-----------------
[  162.613800]  ap_run_at_boot() : ACS is disable !!
[  162.619330] [PMF]APPMFInit:: Security is not WPA2/WPA2PSK AES
[  162.625260] [PMF]APPMFInit:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[  162.631198] wifi_sys_linkup(), wdev idx = 0
[  162.635441] wtc_acquire_groupkey_wcid: Found a non-occupied wtbl_idx:127 for WDEV_TYPE:1
[  162.635441]  LinkToOmacIdx = 0, LinkToWdevType = 1
[  162.648528] bssUpdateBmcMngRate (BSS_INFO_BROADCAST_INFO), CmdBssInfoBmcRate.u2BcTransmit= 8192, CmdBssInfoBmcRate.u6
[  162.661448] UpdateBeaconHandler, BCN_UPDATE_INIT, OmacIdx = 0
[  162.667308] APStartUpForMbss: BssIndex = 0 channel = 100
[  162.672755] MtCmdTxPowerDropCtrl: ucPowerDrop: 100, BandIdx: 0
[  162.680619] apidx 0 for WscUUIDInit
[  162.684198] Generate UUID for apidx(0)
[  162.688033] mtk_ppe_dev_register_hook : ineterface rai0 register (2)
root@LEDE:/# [  163.641240] :MtCmdPktBudgetCtrl: bssid(255),wcid(65535),type(0)

I’m not able to flash this image to EMMC. Also from SD image I cannot access luci configuration.

b. System Load flashimage then write to Flash via TFTP gives this:

done
Bytes transferred = 20191432 (13418c8 hex)
get filesize 0x13418c8
mmc1 is current device
mmc1 operation
dev_num = 1

MMC write: dev # 1, block # 0, count 40960 ... 40960 blocks write: OK
dev_num = 1
Writing to MMC(1)... offset=1310720 
size=4096 
mmc->write_bl_len=512
done
invaild env!!!

I get the same invalid env message when trying to write u-boot only. I can write atf, preloader, GPT separately without issues.

Also after this error, SD card image is damaged, and I have to write it again or I get: System halt!

What is going on?

Trying to write only u-boot:

Please Input new setting /or enter to choose the default setting
	Input uboot file name (u-boot-mtk-2020.07-r64.bin) ==:mtk-bpi-r64-uboot-emmc.bin
	Input server IP (192.168.1.145) ==:
	Input device IP (192.168.1.1) ==:
setting changed , saveenv
dev_num = 1
Writing to MMC(1)... offset=1310720 
size=4096 
mmc->write_bl_len=512
done
Using mtk_eth device
TFTP from server 192.168.1.145; our IP address is 192.168.1.1
Filename 'mtk-bpi-r64-uboot-emmc.bin'.
Load address: 0x4007ff28
Loading: #########################
	 3.5 MiB/s
done
Bytes transferred = 365268 (592d4 hex)
get filesize 0x592d4
mmc1 is current device
mmc1 operation
dev_num = 1

MMC write: dev # 1, block # 1536, count 1024 ... 1024 blocks write: OK
dev_num = 1
Writing to MMC(1)... offset=1310720 
size=4096 
mmc->write_bl_len=512
done
invaild env!!!

Mmc 1 is sdcard not emmc (which is 0)…i guess uboot configuration is wrong. I do not have an idea about invalid env…

Maybe uboot is too old and have no emmc-support (early versions had problems with emmc)?

I was able to get it working using another image from this forum.

Now I’m able to build openwrt from development branch (5.4) and write kernel to emmc. The only problem now is that it cannot save configuration after rebooting.

I’ve selected the rootdisk option in menuconfig, but there is no way to use the .bin.gz image and make it work. I’ve tried writing it directly to kernel, tried extracting .bin and writing to kernel, tried sysupgrade from luci as well, none of these options work at all. The only bootable image is initramfs-kernel.

Any ideas how to flash .bin.gz image to emmc? Different partition required?

which configuration do you want to save? from openwrt or from uboot?

maybe you need to replace uboot with one that has emmc-support, but i don’t know if openwrtuses same uboot-location as other images (https://wiki.fw-web.de/doku.php?id=en:bpi-r64:storage u-boot-mtk.bin at 0xC0000) and boot needs to be done from partition 0:x (eMMC) instead of 1:x (SD). maybe you have to adjust cmdline (root=) to be also on emmc

I want to be able to save configuration from openwrt. It gets deleted after each reboot.

https://git.openwrt.org/?p=openwrt/openwrt.git;a=tree;f=target/linux/mediatek/image;h=eb01e0ad9ec0af872e3e9a9f46f0d5105935d7a9;hb=HEAD

gen_mt7622_emmc_img.sh seems to generate the image

i guess you have read-only rootfs and no squash-fs above (or it is not written back to persistent storage).

gen_*.sh does not show uboot location