Ok I have added this commit and recompiled again and I received that compile error I mentioned in the post yesterday. It seems this commit causes the compilation failure.
Something in this patch target/linux/mediatek/patches-4.14/0066-dts-mt7623-add-pcie.patch conflicts with the OpenWRT trunk.
It’s not “conflict” - it’s just the duplication. Relevant PCIe controllers definition hadn’t made it into 18.06.x branch while it had landed to upstream trunk. I can see that there are some additional changes missing in upstream patch:
So you will need to check if missing parts were already introduced into trunk by some other patch and if they are - then drop patches-4.14/0066-dts-mt7623-add-pcie.patch from my fork entirely. If they are not - then strip out from this patch parts that were already included upstream.
Truth is I’m a bit more concentrated on toying with R2 WiFi driver trying to fix problems Frank hit when trying to port it to kernel 5.4 . But hope is not lost for syncing, it’s currently second on the list of my priorities.
Yesterday I have applied with success @lexa2 patches to Openwrt trunk and build a test image but for now I have the git repo locally only it’s not uploaded anywhere.
Nice job, congrats! Wanted to mention that it makes me slightly uncomfortable when people mention “lexa2 patches”. I want to clarify that those are in fact a collective effort - as it typical for OSS world. I’ve done my small bit of job arranging things like building u-boot package for R2 or creating script to produce SD images. Other than that the only thing I’ve done was to rearrange other people work and provide configuration/scripts to make it all come together. Let’s call it “lexa2 fork” or “patches from lexa2 fork” - this way I don’t get credit for the things I didn’t do.
For eMMC you will have to do some manual work: install preloader to boot0 eMMC hardware partition and then upload generated SD card image to the board and dd it to the main hardware partition of eMMC. IIRC that’s enough to make it fly, i.e. shutdown your board then, remove SD card, power it back on. Due to the way board works there’s a small chance it will stuck failing to find preloader, press “reset” button in this case while continuing to keep power button pressed. A fair warning: I’m writing this from the top of my head being like 300km away from my testing R2 board right now. Give above suggestions a try and report back your results, we will help you to figure things out from there on.
Just copy first 512byte from your sd-image (dd) and reboot /reload partitions e.g. with fsdisk,then create filesystems. Or just copy full sd-image and change needed parts (like uboot config and fstab if it exist on openwrt)
Right and wrong :-). For eMMC there are two “types” of partitions: (a) hardware-defined ones that are mandated by the eMMC embedded in chip controller - these are what you posted in the message I’m replying to and (b) ordinary “software” partitions that you can create using usual end-user tools line fdisk or parted. R2 is designed in a way so when it boots from eMMC it looks for preloader in the boot0 hardware partition of eMMC chip and then preloader is hard-coded to look for u-boot on the either “main” hardware partition of eMMC or on the SD card. And then u-boot is configured in a way to look for kernel on the first ms-dos mbr style partition which is expected to be formatted as FAT. By writing image to the main hw partition of your eMMC you had “partitioned” it - ms-dos mbr partition table in included into the SD image.