Камера HFW-2431RP-ZS-IRE6 после перенапряжения

Seem

Active member
похоже на проблему flash памяти. я бы попробовал на программаторе записать дамп и перезалить id данные через uart. Старый дамп нужно обязательно сохранить!
Проблема связи с TFTP была в фаревол-е , на родной микросхеме памяти не получилось восстановить, переписал содержимое в новую микросхему программатором, сделал восстановление и все заработало, таким же способом по-пробую восстановить еще пару камер которые работают не корректно
Большое спасибо за помощь!!!
 

Seem

Active member
еще одна проблема при записи,микросхема памяти не причем, менял, направьте пожалуйсто в какую сторону копать

U-Boot 2010.06-svn5733 (Aug 12 2018 - 00:33:23)
I2C: ready
DRAM: 118 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc21920c2
partition file version 2
rootfstype squashfs root /dev/mtdblock5
gParameter[0]:node=bootargs, parameter=console=ttyS0,115200 mem=118M root=/dev/m
tdblock5 rootfstype=squashfs init=/linuxrc.
TEXT_BASE:01000000
Net: Detected MACID:38:af:29:c9:22:c5
PHY:0x001cc816,addr:0x00
s3l phy RTL8201 init

partition file version 2
rootfstype squashfs root /dev/mtdblock5
MMC: sdmmc init
Hit any key to stop autoboot: 0
Saving Environment to SPI Flash...
Erasing SPI flash...
Writing to SPI flash...
setenv serverip 192.168.1.104
setenv ipaddr 192.168.1.108
run up
Using ambarella mac device
TFTP from server 192.168.1.104; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 25730628 (1889e44 hex)
Erasing update flag partition.
partition file version 2
rootfstype squashfs root /dev/mtdblock5
Fail to write spi flash from :1a70100 in 0 chip.
fail to set pos message

## Checking Image at 02000040 ...
Legacy image found
Image Name: romfs
Created: 2020-06-04 18:25:44 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4104192 Bytes = 3.9 MiB
Load Address: 01b80000
Entry Point: 01fd0000
Verifying Checksum ... OK
Programing start at: 0x01b80000
SPI probe: 32768 KiB MX25L25645G at 0:1 is now current device
write : 0%__do_write_flashSpi: error!
flwrite error 2!
 

Seem

Active member
Наверное это было написано для меня:
положите файлы в папку tftp и выполните
run da
потом перезагрузка
run up
dhboot.bin.img

нету ли здесь ошибки??? run da

U-Boot 2010.06-svn4707 (Jul 20 2017 - 11:37:30)
I2C: ready
DRAM: 118 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc21920c2
partition file version 2
rootfstype squashfs root /dev/mtdblock5
gParameter[0]:node=bootargs, parameter=console=ttyS0,115200 mem=118M root=/dev/m
tdblock5 rootfstype=squashfs init=/linuxrc.
TEXT_BASE:01000000
Net: Detected MACID:e0:50:8b:d2:3b:e6
PHY:0x001cc816,addr:0x00
s3l phy RTL8201 init

MMC: sdmmc init
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending throu
gh gateway 192.168.1.1
Download Filename 'upgrade_info_7db780a713a4.txt'.
Download to address: 0x5000000
Downloading: *
Retry count exceeded; starting again
Try again use backup_serverip
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending throu
gh gateway 192.168.1.1
Download Filename 'upgrade_info_7db780a713a4.txt'.
Download to address: 0x5000000
Downloading: *
Retry count exceeded; starting again
string value is 0
AUF_getValidLine, the end of file
Failed to get a Line;Crc check error!
PreProcess data error!
Init error!
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending throu
gh gateway 192.168.1.1
Download Filename 'failed.txt'.
Download to address: 0x2000000
Downloading: *
Retry count exceeded; starting again
Support backupVer:255
state:ff,err_count:01
Fail to write spi flash from :1a80000 in 0 chip.
set error count failed, ret=-1, writeSize=0x40, wrLen=0x0
Fail to write spi flash from :1a80040 in 0 chip.
SPI probe: 32768 KiB MX25L25645G at 0:0 is now current device
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-3.10.73
Created: 2017-07-20 2:53:26 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1532308 Bytes = 1.5 MiB
Load Address: 00208000
Entry Point: 00208000
Verifying Checksum ... OK
Loading Kernel Image ...

U-Boot 2010.06-svn4707 (Jul 20 2017 - 11:37:30)
I2C: ready
DRAM: 118 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc21920c2
partition file version 2
rootfstype squashfs root /dev/mtdblock5
gParameter[0]:node=bootargs, parameter=console=ttyS0,115200 mem=118M root=/dev/m
tdblock5 rootfstype=squashfs init=/linuxrc.
TEXT_BASE:01000000
Net: Detected MACID:e0:50:8b:d2:3b:e6
PHY:0x001cc816,addr:0x00
s3l phy RTL8201 init

MMC: sdmmc init
Hit any key to stop autoboot: 0
Using ambarella mac device
TFTP from server 192.168.1.1; our IP address is 192.168.1.108
Download Filename 'dhboot.bin.img'.
Download to address: 0x2000000
Downloading: T T T T T T T T T T T T T T T T T T T T
Retry count exceeded; starting again
U-Boot 2010.06-svn4707 (Jul 20 2017 - 11:37:30)
I2C: ready
DRAM: 118 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc21920c2
partition file version 2
rootfstype squashfs root /dev/mtdblock5
gParameter[0]:node=bootargs, parameter=console=ttyS0,115200 mem=118M root=/dev/m
tdblock5 rootfstype=squashfs init=/linuxrc.
TEXT_BASE:01000000
Net: Detected MACID:e0:50:8b:d2:3b:e6
PHY:0x001cc816,addr:0x00
s3l phy RTL8201 init

MMC: sdmmc init
Hit any key to stop autoboot: 0
Using ambarella mac device
TFTP from server 192.168.1.1; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: T T T T T T T T T T T T T T T T T T T T
Retry count exceeded; starting again
Saving Environment to SPI Flash...
Erasing SPI flash...
Writing to SPI flash...
setenv serverip 192.168.1.104
setenv ipaddr 192.168.1.108
run up
Using ambarella mac device
TFTP from server 192.168.1.104; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 25730628 (1889e44 hex)
Erasing update flag partition.
Fail to write spi flash from :1a70100 in 0 chip.
fail to set pos message

## Checking Image at 02000040 ...
Legacy image found
Image Name: romfs
Created: 2020-06-04 18:25:44 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4104192 Bytes = 3.9 MiB
Load Address: 01b80000
Entry Point: 01fd0000
Verifying Checksum ... OK
Programing start at: 0x01b80000
SPI probe: 32768 KiB MX25L25645G at 0:1 is now current device
write : 0%__do_write_flashSpi: error!
flwrite error 2!
 

Seem

Active member
видимо, при выполнении run da у вас неправильно выставлен ip адрес тфтп сервера
Лог снят в одном подключении, ниже видно как камера забрала информацию с тфтп сервера
Using ambarella mac device
TFTP from server 192.168.1.104; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 25730628 (1889e44 hex)
 

Максим Шелест

специалист компании VIDIMOST
Using ambarella mac device
TFTP from server 192.168.1.1; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: T T T T T T T T T T T T T T T T T T T T
Retry count exceeded; starting again

Using ambarella mac device
TFTP from server 192.168.1.104; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 25730628 (1889e44 hex)


Вы видите отличия?
 

Seem

Active member
TFTP from server 192.168.1.1; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: T T T T T T T T T T T T T T T T T T T T

Using ambarella mac device
TFTP from server 192.168.1.104; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 25730628 (1889e44 hex)


Вы видите отличия?
Теперь увидел,
При "run da " почему-то хочет скачать с 192,168,1,1 , как указать чтобы забирал с 192,168,1,104?
Наверное так :
**
setenv dh_keyboard 0
savee
setenv serverip 192.168.1.104
setenv ipaddr 192.168.1.108
run da
restart
run up
 

Seem

Active member
Вроде сделал но все равно ошибка
uboot magic is not match.


U-Boot 2010.06-svn4707 (Jul 20 2017 - 11:37:30)
I2C: ready
DRAM: 118 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc21920c2
*** Warning - bad CRC, using default environment

Fail to get uboot hd.
partition file version 2
rootfstype squashfs root /dev/mtdblock5
fail to parse HWID
fail to parse bootargsParametersV2.text info
fail to init bootargsParametersV2
TEXT_BASE:01000000
Net: Detected MACID:00:12:34:56:78:9a
PHY:0x001cc816,addr:0x00
s3l phy RTL8201 init

sd update init:HWID is missing!
Hit any key to stop autoboot: 0
Saving Environment to SPI Flash...
Erasing SPI flash...
Writing to SPI flash...
setenv serverip 192.168.1.104
setenv ipaddr 192.168.1.108
run da
Using ambarella mac device
TFTP from server 192.168.1.104; our IP address is 192.168.1.108
Download Filename 'dhboot.bin.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 121080 (1d8f8 hex)

## Checking Image at 02000000 ...
Legacy image found
Image Name: boot
Created: 2020-06-04 18:12:32 UTC
Image Type: ARM Linux Firmware (uncompressed)
Data Size: 121016 Bytes = 118.2 KiB
Load Address: 00080000
Entry Point: 000c0000
Verifying Checksum ... OK
Programing start at: 0x00080000
SPI probe: 32768 KiB MX25L25645G at 0:0 is now current device
write : 0%__do_write_flashSpi: error!
flwrite error 1!

U-Boot 2010.06-svn4707 (Jul 20 2017 - 11:37:30)
I2C: ready
DRAM: 118 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc21920c2
*** Warning - bad CRC, using default environment

Fail to get uboot hd.
partition file version 2
rootfstype squashfs root /dev/mtdblock5
fail to parse HWID
fail to parse bootargsParametersV2.text info
fail to init bootargsParametersV2
TEXT_BASE:01000000
Net: Detected MACID:00:12:34:56:78:9a
PHY:0x001cc816,addr:0x00
s3l phy RTL8201 init

sd update init:HWID is missing!
Hit any key to stop autoboot: 0
Saving Environment to SPI Flash...
Erasing SPI flash...
Writing to SPI flash...
setenv serverip 192.168.1.104
setenv ipaddr 192.168.1.108
run up
Using ambarella mac device
TFTP from server 192.168.1.104; our IP address is 192.168.1.108
Download Filename 'update.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 25730628 (1889e44 hex)
Erasing update flag partition.
Fail to write spi flash from :1a70100 in 0 chip.
fail to set pos message

## Checking Image at 02000040 ...
Legacy image found
Image Name: romfs
Created: 2020-06-04 18:25:44 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4104192 Bytes = 3.9 MiB
Load Address: 01b80000
Entry Point: 01fd0000
Verifying Checksum ... OK
Programing start at: 0x01b80000
SPI probe: 32768 KiB MX25L25645G at 0:1 is now current device
write : 0%__do_write_flashSpi: error!
flwrite error 2!
 

Seem

Active member
это тоже 2431? покажите вывод printenv
извиняюсь за задержку с ответом ,я к сожалению потерял ту прошивку, на которой вылезала ошибка,
когда прописал прошивку с другой камеры, на которой процессор как печка греется, камера востановилась без проблем
 
Вверх