Hi Sm00shed thank you for replying!
I actually followed the wiki instructions here are my exact steps:
- I used Tiny PXE server to TFTP boot into the initramfs image. That was successful and i was able to login to luci.
After that, the first thing i did was to login to the router via winscp and transfer u-boot.elf and openwrt-24.10.5-mvebu-cortexa72-mikrotik_rb5009-squashfs-sysupgrade.bin into /tmp.
-
After the files uploaded, I logged in via ssh and loaded . /lib/functions.sh.
-
I confirmed that the flash layout was ok by running cat /proc/mtd.
I got:
mtd0: 00800000 00020000 "YAFFS"
mtd1: 00010000 00020000 "ubi"
mtd2: 00fe0000 00010000 "MikroTik"
mtd3: 00001000 00010000 "hard_config"
mtd4: 00001000 00010000 "soft_config"
mtd5: 000059f4 00010000 "dtb_config"
mtd6: 00010000 00010000 "RouterBoot-primary"
mtd7: 00020000 00010000 "u-boot-env"
so then i went ahead and run
yafut -d /dev/mtd$(find_mtd_index "YAFFS") -w -i /tmp/u-boot.elf -o kernel -T
That gave no output, just as the wiki states.
- I went ahead and formatted the NAND partition for UBI using
ubiformat /dev/mtd$(find_mtd_index "ubi") -y
that produced a large output:
ubiformat: mtd1 (nand), size 1065353216 bytes (1016.0 MiB), 8128 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 8127 -- 100 % complete
ubiformat: 8009 eraseblocks are supposedly empty
ubiformat: 8 bad eraseblocks found, numbers: 8120, 8121, 8122, 8123, 8124, 8125, 8126, 8127
ubiformat: warning!: 111 of 8120 eraseblocks contain non-UBI data
ubiformat: warning!: only 0 of 8120 eraseblocks have valid erase counter
ubiformat: erase counter 0 will be used for all eraseblocks
ubiformat: note, arbitrary erase counter value may be specified using -e option
ubiformat: use erase counter 0 for all eraseblocks
ubiformat: formatting eraseblock 8127 -- 100 % complete
The wiki says there won't be any output. In my case there are clearly some warnings, but the format was completed 100% so i moved on.
- The last step according to the wiki was to run
sysupgrade /tmp/openwrt-24.10.5-mvebu-cortexa72-mikrotik_rb5009-squashfs-sysupgrade.bin
So i actually did that, and it logged me out of the ssh session.
After that i expected the router to restart and boot into openwrt.
Instead it was stuck in a bootloop. 
So then i used Netinstall to reinstall RouterOS.
That worked ok and now the router boots into RouterOS.
Do you maybe see something i did wrong that i missed?
I will try again with 25.12.0 and post the results here.