Hi,
I have another issue with reboot and emmc/sd preloader.
I followed instructions here : https://wiki.fw-web.de/doku.php?id=en:bpi-r64:storage but it seems that emmc preloader boots only when power is switched on and then bootrom tries to sd after successive linux reboots or board toggle resets.
This is really inconvenient and defeats the purpose of emmc boot if you still need sd…
If i u derstand you correctly i have same behaviour on r2 (not tested on r64). Sd/emmc check is only done on poweron and bootdevice stays same on reboot (boot from sd and remove it on reboot still tries to boot from it and not emmc)
Openwrt with kernel 4.19 afaik does not support mt7622 wifi. Mt7615 should be in,but mt7622 was developed later,so i guess you need to include it by yourself
Have you set bootswitch to proper device? Btw.you can modify your sdcard uboot to always boot from emmc just set device/partition where kernel gets loaded and bootargs (cmdline for linux)
Yes, I use position 0 to boot from emmc, it works when power is switched on.
But reboots and resets always uses SD. In practice this means that you cannot remove SD and must have - at least - headers, preloader and u-boot flashed to it.
Ok,it behaves a bit different to r2 where it always boots device accessed on poweron (if emmc booted first,reboot also boots emmc,also if sd is inserted). This behaviour of r64 is odd…maybe @sinovoip can explain cause…i guess it can be sd-preloader which is also in emmc bootchain
In relese brunch set that relese was 5 days ago. I think it don’t contain your patch.
And can you explain how to use it with SD card (I dont want flash eMMC)? In readme you had wrote “you can also install direct to sd-card which makes a backup of kernelfile, here you have to change your uEnv.txt if you use a new filename (by default it’s containing kernelversion)”. But I don’t understand, can you write sep by step manual.
But for R64 there is still reboot issue that prevents the sd to be removed.
@sinovoip Do you know why sd preloader (Build Time: 20180625-214655) is boot when the board is reset instead of emmc preloader (Build Time: 20190927-141930) in /dev/mmcblk0boot0 ? Also why is the SD preloader image necessary in /dev/mmcblk0 offset 2k ? It seems it is not even booted.
I have no openwrt…as far as i know there is still an mtd-problem in 5.4. I had tested mount of emmc in debian which is working with the patch you linked