-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add send raw commands and/or cheatsheet menu #110
Comments
Hello, @alejandro-alzate ! |
Wait it does? |
This is very strange. Do you connect the chip to the programmer directly or with alligator clip? |
Direct. I took the chip off of the board. Just this morning tested the alligator with other chip on another board and that did caused issues. The 3.3v was enough to power the processor so it conflicted the SPI bus.. So from now on bare metal connection it is... |
This is correct. Can you post a screenshot of the registers from IMSProg? |
Uh that's gonna be a though one i soldered the thing on the board, I think i saw it on 1 after the flashrom incident... |
But here is my bash history with the flashrom nonsense 2000 pip install spidev
2001 sudo apt-get install bossa-cli
2002 ls /dev/spidev*
2003 modprobe spidev
2004 sudo modprobe spidev
2005 ls /dev/spidev*
2006 uname -r
2007 lsmod | grep spidev
2008 sudo modprobe spi_bcm2835
2009 sudo modprobe spidev
2010 sudo apt-get install build-essential libncurses5-dev bison flex libssl-dev
2011 dmesg | grep spi
2012 zcat /proc/config.gz | grep SPI
2013 CONFIG_SPI_MASTER=y
2014 CONFIG_SPI_SPIDEV=y
2015 ls /dev/spidev*
2016 sudo flashrom -p list
2017 sudo flashrom --programmer=ch431a_spilist
2018 sudo flashrom --programmer=ch431a_spi list
2019 sudo flashrom --programmer=ch341a_spi list
2020 sudo flashrom --programmer=ch341a_spi --help list
2021 flashrom
2022 sudo flashrom --programmer=ch341a_spi
2023 sudo flashrom -L
2024 sudo flashrom -p ch341a_spi
2025 dmesg | grep ch34
2026 cd Desktop/ROMS/HIKVISION/DS-7208HQHI-K1/
2027 ls
2028 sudo flashrom -p ch341a_spi -w ~/Downloads/digicap.dav
2029 binwalk ~/Downloads/digicap.dav
2030 sudo apt install binwalk
2031 binwalk ~/Downloads/digicap.dav
2032 binwalk backup.bin
2033 binwalk -e ~/Downloads/digicap.dav
2034 ls
2035 sudo apt-get install squashfs-tools
2036 mksquashfs _digicap.dav.extracted/ repacked.sqsh
2037 ls
2038 ll
2039 dd if=/dev/zero bs=1M count=1 >> repacked.sqsh
2040 zcat backup.bin > decompressed_file
2041 sudo flashrom -p ch341a_spi -w repacked.sqsh
2042 sudo flashrom -p ch341a_spi -w _digicap.dav.extracted/6C.cramfs
2043 history
2044 cp _digicap.dav.extracted/6C.cramfs ../cramfs.bin
2045 dd if=/dev/zero bs=1M count=1 >> ../cramfs.bin
2046 mv ../cramfs.bin .
2047 ls
2048 ll
2049 ghex cramfs.bin
2050 ghex cramfs.bin&
2051 watch -n .3 ll
2052 which ll
2053 $(which ll)
2054 nano ~/.bashrc
2055 watch -n .3 ls -alF
2056 sudo flashrom -p ch341a_spi -w cramfs.bin
2057 history |
Once again, WEL is not an indicator. It's something else. |
Can you post the chip markings here? |
@alejandro-alzate , thanks! I tested IMSProg with Winbond 25Q16, 25Q32, 25Q64 and 25Q256 chips. |
Please no need to torture the chip and PCB. I will look up the difference between the chips on datasheets. |
Too late mate :/ At least this is like the third time and I have it still with all pads... @bigbigmdm How did it went your quest invoking the ancient runes of the datasheets? |
Hi, @alejandro-alzate ! |
I have a feeling that writing to the status register 0 is not happening. Can you write ones into it, then reading, then write zeros and read? |
Something funny is going on: Screencap zipped bc github can't cope with MKV and vlc won't transcode the video to mp4 correctly |
Then don't. I think this problem will arise again. And then I'll fix it. |
I mean I gave up trying to fix this board some time ago (Clearing DVR password by reflashing the firmware), but i'll help if you need some other tests... |
Description
So I was trying to flash a 16MB winbond rom but i couldn't get it to do it.
Now external sources said that the approach is to send a WREN command to let the chip set the WEL flag which the opcode of the command is
0x06
so it would be cool on those edge cases where the user changes the WEL flag on the properties panel it silently sends that command or having a list of known commands to execute.flashrom
got it although never told me. Since flashrom poked the rom chip IMSprog now can write to it (although saidWEL
flag is still cleared).I don't really exactly what did flashrom that forced that chip to cooperate but threre's that.
Also Just something off topic before I go: if I get time to do it I'll do the Spanish translation for you guys so my homies can use it :)
Usage tips
The text was updated successfully, but these errors were encountered: