If the camera responds in the terminal and responds to keystrokes - there is hope to restore a little blood. Everything is quite simple (with straight hands)
1. disassemble the camera
2. Find on the main UART board. in our camera, these are three unsealed contacts near the flash drive slot. closest to the GND slot, then TX and RX. *
3. connect to the computer through the adapter. There are a lot of adapters on the network: home-made ones, from old phones, self-assembly kits, ready-made ones on the same Ali.
4. On the computer, run the terminal. On Windows "native" HyperTerminal, Linuxsoids usually recommend PuTTY. there is no difference - the whole thing is a habit. I personally liked Terminal by Bray ++ - all the settings in front of you are in the main window and you can change them on the fly
4.1 HyperTerminal from XP.
hypertrm.rar(21.23 KB)
5. We expose for communication the port that our adapter has become, the speed is 115200, 8bit, none, 1, none. start a session
6. turn on the power to the camera and see what it writes to the terminal.
7. if at least the initial boot goes fine - we start working with it.
* For starters, we connect only to GND and TX. After making sure that the output is on, we also connect RX.
Explanation: With some adapters, the camera may not start with an RX connected. in this case, connect the RX through a 4.7k resistor.
about UART adaptersThe simplest COM-TTL converterexample of probes for connection. the diameter of the sting should be no more than 0.5mm, otherwise they will not hold.
At the moment, at least three firmware options are known. Two of them are poorly compatible with each other, although they have the same U-boot. The third one (with kernel Jun 2 12:28:35 CST 2017) is not compatible with the U-boot from the previous ones and requires editing startup parameters. For this reason, the information previously published here has become irrelevant and may lead to a result opposite to what was expected.
Show the boot log and printenv in U-boot. Further actions depend on what you have and what you want to receive.
Outdated Information
Often the camera stops working due to a rally of settings.
we check, for this we enter env print in the terminal and check
The correct settings log
isvp # env print
baudrate = 115200
bootargs = console = ttyS1,115200n8 mem = 39M @ 0x0 ispmem = 5M @ 0x2700000 rmem = 20M @ 0x2C00000 init / linuxrc rootfstype = squashfs init = / linuxrc rootfstype = squashfs root = / dev / mtdblock2 rwztds boot) , 2176k (kernel), 3584k (rootfs), 2176k (system) quiet
bootcmd = sf probe; sf read 0x80600000 0x40000 0x280000; bootm 0x80600000
bootdelay = 1
ethact = Jz4775-9161
ethaddr = 00: 11: 22: 33: 44: 55
gatewayip = 193.169.4.1
ipaddr = 193.169.4.81
loads_echo = 1
netmask = 255.255.255.0
serverip = 193.169.4.2
stderr = serial
stdin = serial
stdout = serial
here we are interested
bootargs. the sizes of some areas may vary depending on the firmware. this is normal.
ethaddr, gatewayip, ipaddr, serveripnot important.
If a
bootargsdifferent - restore:
setenv bootargs console = ttyS1,115200n8 mem = 39M @ 0x0 ispmem = 5M @ 0x2700000 rmem = 20M @ 0x2C00000 init / linuxrc rootfstype = squashfs init = / linuxrc rootfstype = squashfs root = / dev / mtdblocks rk mbbparts 256 = , 2176k (kernel), 3584k (rootfs), 2176k (system) quiet
you need to dial by hand and without errors: the camera does not understand the clipboard, it does not always respond adequately to backspace.
if you make a mistake, erase the entire line, press Enter and repeat the entry. after that we write printenv and make sure that the boot line is accepted and we haven’t messed up anywhere. if everything is OK -
env saveand
bootmust start.
Do not start? We enter such a line
setenv bootargs console = ttyS1,115200n8 mem = 39M @ 0x0 ispmem = 5M @ 0x2700000 rmem = 20M @ 0x2C00000 init / linuxrc rootfstype = squashfs init = / linuxrc rootfstype = squashfs root = / dev / mtdblocks rk mbbparts 256 = , 2176k (kernel), 3584k (rootfs), 2176k (system) init = / bin / sh
check, boot, wait a couple of minutes, distort the food. If it doesn’t help, go to the next spoiler.
If everything is OK - disconnect from the computer, collect the camera and enjoy life))