Support for Mikrotik Hap AC2

Got some help from a friend with a little steadier hands and got flash desoldered, read.
You can find full dump here, hapac2_dump.

On the hard config partition found this string:

15 00 04 00 05 40 28 08

changed to:
...
15 00 04 00 00 40 28 08
...
And got serial working:

22:02:49:375] S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00096␍␊
[22:02:49:380] S - IMAGE_VARIANT_STRING=DAABANAZA␍␊
[22:02:49:386] S - OEM_IMAGE_VERSION_STRING=CRM␍␊
[22:02:49:386] S - Boot Config, 0x00000020␍␊
[22:02:49:395] S - Core 0 Frequency, 0 MHz␍␊
[22:02:49:395] B -       262 - PBL, Start␍␊
[22:02:49:395] B -      1343 - bootable_media_detect_entry, Start␍␊
[22:02:49:400] B -      1688 - bootable_media_detect_success, Start␍␊
[22:02:49:405] B -      1702 - elf_loader_entry, Start␍␊
[22:02:49:405] B -      5148 - auth_hash_seg_entry, Start␍␊
[22:02:49:411] B -      7332 - auth_hash_seg_exit, Start␍␊
[22:02:49:416] B -    585100 - elf_segs_hash_verify_entry, Start␍␊
[22:02:49:425] B -    702298 - PBL, End␍␊
[22:02:49:425] B -    702323 - SBL1, Start␍␊
[22:02:49:435] B -    790902 - pm_device_init, Start␍␊
[22:02:49:435] D -         6 - pm_device_init, Delta␍␊
[22:02:49:444] B -    792433 - boot_flash_init, Start␍␊
[22:02:49:480] D -     46255 - boot_flash_init, Delta␍␊
[22:02:49:485] B -    842893 - boot_config_data_table_init, Start␍␊
[22:02:49:490] D -      3892 - boot_config_data_table_init, Delta - (419 Bytes)␍␊
[22:02:49:500] B -    850114 - clock_init, Start␍␊
[22:02:49:500] D -      7574 - clock_init, Delta␍␊
[22:02:49:514] B -    862220 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0␍␊
[22:02:49:514] B -    865709 - sbl1_ddr_set_params, Start␍␊
[22:02:49:514] B -    870697 - cpr_init, Start␍␊
[22:02:49:526] D -         2 - cpr_init, Delta␍␊
[22:02:49:526] B -    875189 - Pre_DDR_clock_init, Start␍␊
[22:02:49:526] D -         4 - Pre_DDR_clock_init, Delta␍␊
[22:02:49:526] D -     13148 - sbl1_ddr_set_params, Delta␍␊
[22:02:49:536] B -    888891 - pm_driver_init, Start␍␊
[22:02:49:536] D -         2 - pm_driver_init, Delta␍␊
[22:02:49:598] B -    960002 - sbl1_wait_for_ddr_training, Start␍␊
[22:02:49:604] D -        30 - sbl1_wait_for_ddr_training, Delta␍␊
[22:02:49:613] B -    975622 - Image Load, Start␍␊
[22:02:49:757] D -    143582 - QSEE Image Loaded, Delta - (267732 Bytes)␍␊
[22:02:49:762] B -   1119700 - Image Load, Start␍␊
[22:02:49:770] D -      1445 - SEC Image Loaded, Delta - (2048 Bytes)␍␊
[22:02:49:773] B -   1130118 - Image Load, Start␍␊
[22:02:49:784] D -     15845 - APPSBL Image Loaded, Delta - (27608 Bytes)␍␊
[22:02:49:789] B -   1146383 - QSEE Execution, Start␍␊
[22:02:49:792] D -        58 - QSEE Execution, Delta␍␊
[22:02:49:796] B -   1152507 - SBL1, End␍␊
[22:02:49:798] D -    452295 - SBL1, Delta␍␊
[22:02:49:801] S - Flash Throughput, 1852 KB/s  (297807 Bytes,  160736 us)␍␊
[22:02:49:806] S - DDR Frequency, 537 MHz␍␊
[22:02:50:151] ␍␊
[22:02:50:155] ␍␊
[22:02:50:155] RouterBOOT booter 6.43.4␍␊
[22:02:50:155] ␍␊
[22:02:50:155] RouterBOARD D52G-5HacD2HnD-TC␍␊
[22:02:50:158] ␍␊
[22:02:50:158] CPU frequency: 716 MHz␍␊
[22:02:50:161]   Memory size: 128 MiB␍␊
[22:02:50:164]  Storage size:  16 MiB␍␊
[22:02:52:156] ␍␊
[22:02:52:157] Press any key within 2 seconds to enter setup..␍␊
[22:02:54:169] ␍␊
[22:02:54:169] loading kernel... OK␍␊
[22:02:58:375] setting up elf image... OK␍␊
[22:02:58:573] jumping to kernel code␍␊
[22:03:17:503] Starting...␍␊
[22:03:18:943] Starting services...␍␊
[22:03:23:621] <0x1b>[1;1H<0x1b>[H<0x1b>[J<0x1b>cMikroTik 6.44 (stable)␍␍␊
[22:03:23:624] MikroTik Login: admin␍␊
[22:04:19:092] Password: ␍␊
[22:04:20:663] ␍␍␊
[22:04:20:664] ␍␍␊
[22:04:20:664] ␍␍␊
[22:04:20:664] ␍␍␊
[22:04:20:664] ␍␍␊
[22:04:20:664] ␍␍␊
[22:04:20:667] ␍␍␊
[22:04:20:667] ␍␊
[22:04:20:667] ␍  MMM      MMM       KKK                          TTTTTTTTTTT      KKK␍␊
[22:04:20:671] ␍  MMMM    MMMM       KKK                          TTTTTTTTTTT      KKK␍␊
[22:04:20:678] ␍  MMM MMMM MMM  III  KKK  KKK  RRRRRR     OOOOOO      TTT     III  KKK  KKK␍␊
[22:04:20:684] ␍  MMM  MM  MMM  III  KKKKK     RRR  RRR  OOO  OOO     TTT     III  KKKKK␍␊
[22:04:20:691] ␍  MMM      MMM  III  KKK KKK   RRRRRR    OOO  OOO     TTT     III  KKK KKK␍␊
[22:04:20:698] ␍  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     III  KKK  KKK␍␊
[22:04:20:706] ␍␍␊
[22:04:20:706] ␍  MikroTik RouterOS 6.44 (c) 1999-2019       http://www.mikrotik.com/␍␊
[22:04:20:711] ␍␍␊
[22:04:20:713] [?]             Gives the list of available commands␍␊
[22:04:20:716] ␍command [?]     Gives help on the command and list of arguments␍␊
[22:04:20:722] ␍␍␊
[22:04:20:724] ␍[Tab]           Completes the command/word. If the input is ambiguous,␍␊
[22:04:20:728] ␍                a second [Tab] gives possible options␍␊
[22:04:20:735] ␍␍␊
[22:04:20:735] ␍/               Move up to base level␍␊
[22:04:20:738] ␍..              Move up one level␍␊
[22:04:20:741] ␍/command        Use command at the base level␍␊
[22:04:20:745] ␍<0x1b>[9999B␍<0x1b>[9999B<0x1b>Z  <0x1b>[6n␍␍␍␍[admin@MikroTik] >                                                             ␍[admin@MikroTik] >
1 Like