Dafang-Hacks / uboot

Other
23 stars 16 forks source link

Wyze cam Pan/dafang 64mb flash limit #4

Closed hansaya closed 5 years ago

hansaya commented 5 years ago

I cannot modify the flash further than 64Mb. I get ERROR: attempting update past flash size (0x800000) As I understood Wyze cam pan has 128mb of flash and I'm using dafang_128mb_v2.bin

Now why am I trying to modify the flash on u-boot? I lost all the content of the flash trying to recover the uboot and decided to install the dafang hack directly on to the flash (following mem map from https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/unbrick.md). I would appreciate any help I can get.

hansaya commented 5 years ago

Any help? I'm new to u-boot and if anyone could give me a hint or two I can create a pull request.

hansaya commented 5 years ago

I can see that correct spi driver is there https://github.com/Dafang-Hacks/uboot/blob/a1d19316522425d61035a9e897e9d8b0424b7f74/drivers/spi/jz_spi.h#L230 with 128mb defined.

Do we have configuration for t20 wrong? https://github.com/Dafang-Hacks/uboot/blob/f19283dbc19b7387fcd7a8eb03a49916b3b45193/include/configs/isvp_t20.h#L383

hansaya commented 5 years ago

Bump

hansaya commented 5 years ago

Check the issue https://github.com/Dafang-Hacks/uboot/issues/8 for more information.