xobs / fernly

Fernvale research OS
BSD 2-Clause "Simplified" License
141 stars 52 forks source link

"FERNLY_USB_LOADER_ADDR" is wrong for the MT6261 branch. #38

Open userse31 opened 6 months ago

userse31 commented 6 months ago

Well, at the very least it's wrong for my two specimens.

"FERNLY_USB_LOADER_ADDR" should be defined as $1000a5b0, not $7000c000. How do I know this?

Well, I spent the entirety of last night messing with these two smart watches. What I SHOULD have been doing was inspecting the inside of my eyelids but whatever...

Anyway, I had my CH431a hooked up to one of them, so I got to capture the serial output from the bootloader.

F1: 0000 0000 V0: 0000 0000 [0001] 00: 0000 0000 U0: 0000 0001 [0000] G0: 0002 0000 [0000] T0: 0000 00BB Jump to BL


**===================================================**

Bye bye bootloader, jump to=0x1000a5b0
-

I read your reply to another issue regarding the MT6261 and addresses. Sure enough, the boot process progresses somewhat farther!

Still hangs though, but I think I can fix that.

userse31 commented 6 months ago

WAIT! NONONONONO! DON'T DO THIS!

WRITING THERE OVERWRITES THE FIRMWARE!

userse31 commented 6 months ago

...Maybe. My watch still boots.

xobs commented 6 months ago

It's been a while, but I thought 7000c000 was the address of PSRAM or something along those lines. Perhaps your device hasn't initialized it yet.

I hope the device hasn't been bricked. Please do keep us updated.

userse31 commented 6 months ago

Turns out I was accidentally using the wrong branch oops! Watch wasn't bricked, so that's nice!

userse31 commented 6 months ago

Alright, I think I'll close my mistake.