openfang icon indicating copy to clipboard operation
openfang copied to clipboard

Flash openfang with raspberry pi1 SPI

Open chopin94 opened this issue 4 years ago • 1 comments

Hi guys, I want to hack my cam SXJ02ZM.

I have opened the cam, i separed Vcc pin and I connected the pin of chip to my raspberry pi1. I have used flashrom for backup the stock firmware and it's working. (flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=51 2 -r backup.bin) Then I erase the memory and i've tried to write te bootloader (flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -w /home/pi/Desktop/u-boot-lzo-with-spl_t20_64M.bin), but i received this error:

Found Winbond flash chip "W25Q128.V" (16384 kB, SPI) on linux_spi. Error: Image size (215873 B) doesn't match the flash chip's size (16777216 B)!

I've used a compiled bootloader that i found in one of this issue, beacouse i don't know how to compile it.

Anyone can help me to resolve this problem without buy CH341A?

a

photo_2020-10-18_02-21-01 photo_2020-10-18_02-20-57

chopin94 avatar Oct 18 '20 00:10 chopin94

I have flashed finally the boot but now the led orange is on without blink. have i break?

chopin94 avatar Oct 18 '20 03:10 chopin94