Flashing OpenWrt on Linksys mx5300

I am trying to fix Linksys mx5300 that is bricked. I got it from a friend that tried to flash OpenWrt and now it bootloops. I have connected it trough UART, but I cant interrupt the boot process.

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00147
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B -       201 - PBL, Start
B -      2735 - bootable_media_detect_entry, Start
B -      3441 - bootable_media_detect_success, Start
B -      3446 - elf_loader_entry, Start
B -      6107 - auth_hash_seg_entry, Start
B -      6350 - auth_hash_seg_exit, Start
B -     68413 - elf_segs_hash_verify_entry, Start
B -    131108 - PBL, End
B -    215665 - SBL1, Start
B -    294294 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B -         0 - Debug Log
B -         0 - GCC_RST=0:r2=59E47A15:r3=7F969F81:r4=30490599:r5=DA8B53DB:r6=F946D6F6:r7=FFBE5713:r8=F7F3B531:r9=70BD162:r10=53017553:r11=85533C4:
B -    373991 - pm_device_init, Start
B -    553636 - PM_SET_VAL:Skip
D -    178577 - pm_device_init, Delta
B -    555893 - pm_driver_init, Start
D -      5307 - pm_driver_init, Delta
B -    562389 - clock_init, Start
D -      2074 - clock_init, Delta
B -    566385 - boot_flash_init, Start
D -     12718 - boot_flash_init, Delta
B -    582855 - boot_config_data_table_init, Start
B -    585142 - CDT Partition Loading Failed. Trying Alternate CDT Partition...
B -    592706 - Error: CDT is not programmed

You don't appear to be reaching the boot loader....

Is there a way to fix the error with CDT or bypass it?

Flash writer, I'd say.

Thanks frollic.
I am going to de solder the chip. It's Fidelix FMND4G08S3J-ID and I am curious as to how I am going to reprogram it. And i wounder where can i find a replacement if i screw things up. I wouldn't mind a dump of a working router if possible.