Closed aguaviva closed 1 year ago
Hi, I am still trying and I feel I am very close :) do I need to compile bootrom and use it somehow?
Just documenting my steps in case this helps others...
I compiled bootrom (it was not easy to find a working compiler for it), I renamed it to mt7628.bootrom
as it seems to be referenced this way by the source code, and I am hoping this way it will be picked up by qemu, still no luck.
Santa Madonna I made it work!!!
I ran it like this:
/home/raul/repos/qemu/build/qemu-system-mipsel -M mt7628 -nographic -serial file:ser1.txt -serial file:ser2.txt -serial file:ser3.txt -drive if=mtd,file=camara.bin,format=raw --trace "memory_region_ops_*"
Then noticed qemu was running the same instructions over and over, it is the damn calibration loop. I disassembled it
and using hexedit
I patched the jump with 0x00000000, I ran it again and then I got the u-boot output.
Patching this was compulsory, otherwise it will never boot (as opposed to taking a long time as the author claimed)
This is awesome!
I got a DLINK wireless camera that recently DLINK decided to brick by turning off some cloud services. (https://support.dlink.com/resource/PRODUCTS/DCS-5030L/REVA/DCS-5030L_END_OF_SUPPORT_NOTICE.pdf) I am determined to bring back to life as it is a terrible thing to dispose something that works! :)
I dumped the 8MB SPI flash and I modified the source so it takes a 8MB spi_flash
and used it as you explain
but I have been waiting 10 minutes or so for something to come out from the serial ports... How could I debug this?
just in case this is the output of
binwalk
Thanks for this, I am having a lot of fun with it!