Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Вопросы по восстановлению, настройке, апгрейду, прошивкам и т.п.
dede
Специалист
Сообщения: 1957
Зарегистрирован: 22 мар 2017, 15:02
Откуда: Луганск

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение dede » 16 янв 2018, 10:27

чистить конфиг теперь

GIVIS7
Новичок
Сообщения: 30
Зарегистрирован: 14 янв 2018, 21:16

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение GIVIS7 » 16 янв 2018, 10:44

Уважаемый, а не подскажите как их почистить? Или ссылку дайте где посмотреть.

GIVIS7
Новичок
Сообщения: 30
Зарегистрирован: 14 янв 2018, 21:16

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение GIVIS7 » 18 янв 2018, 08:26

Команды для очистки конфига эти:
rf -rf /mnt/mtd/
точнее эта
rm /mnt/mtd/* -rf вот вывод при остановленной загрузке

Код: Выделить всё

System startup▒

System startup

U-Boot 2010.06-svn270 (Nov 14 2015 - 10:16:16)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
SPI Nor total size: 16MB
In:    serial
Out:   serial
Err:   serial
PHY 0x02: OUI = 0x1374, Model = 0x07, Rev = 0x02
change register for AR8035
CONFIG RGMII
ETH0: PHY(phyaddr=2, rgmii) not link!
higmac init fail!
Press CTRL-C to abort autoboot in 2 secondshisilicon # <INTERRUPT>
hisilicon # <INTERRUPT>
hisilicon # <INTERRUPT>
hisilicon # <INTERRUPT>
hisilicon # сс<INTERRUPT>
hisilicon # ls
Unknown command 'ls' - try 'help'
hisilicon # help
?       - alias for 'help'
base    - print or set address offset
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
ddr     - ddr training function
decjpg  - jpgd   - decode jpeg picture.

flwrite - SPI flash sub-system
getinfo - print hardware information
go      - start application at address 'addr'
help    - print command description/usage
lload   - lload - load logo file

loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
logoload- logoload  - load binary file from a filesystem image for system boot

loop    - infinite loop on address range
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing address)
mtest   - simple RAM read/write test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
setvobg - setvobg   - set vo backgroud color.
        - setvobg [dev color]
sf      - SPI flash sub-system
squashfsload- fsload  - load binary file from a filesystem image

startgx - startgx   - open graphics layer.
        - startgx [layer addr stride x y w h]

startvl - startvl   - open video layer.
        - startvl [layer addr stride x y w h]

startvo - startvo   - open interface of vo device.
        - startvo [dev type sync]
stopgx  - stopgx   - close graphics layer.
        - stopgx [layer]
stopvl  - stopvl   - close video layer.
        - stopvl [layer]
stopvo  - stopvo   - close interface of vo device.
        - stopvo [dev]
tftp    - tftp  - download or upload image via network using TFTP protocol
version - print monitor version
hisilicon # rm /mnt/mtd/* -rf
Unknown command 'rm' - try 'help'
hisilicon # cd /mnt/mtd/
Unknown command 'cd' - try 'help'
hisilicon # ▒
вот вывод при загрузке ядра
выполнение команды rm /mnt/mtd/* -rf
мои попытки попасть в эту папку и удалить руками

Код: Выделить всё

System startup▒

System startup

U-Boot 2010.06-svn270 (Nov 14 2015 - 10:16:16)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
SPI Nor total size: 16MB
In:    serial
Out:   serial
Err:   serial
PHY 0x02: OUI = 0x1374, Model = 0x07, Rev = 0x02
change register for AR8035
CONFIG RGMII
ETH0: PHY(phyaddr=2, rgmii) not link!
higmac init fail!
Press CTRL-C to abort autoboot in 2 seconds16384 KiB hi_fmc at 0:0 is now current device

CFG_BOOT_ADDR:0x0
### /UbootLogo UbootLogoload comjpeg decoding ...
<<addr=0x5f000000, size=0xb85f9, vobuf=0x5f600000>>
<<imgwidth=800, imgheight=600, linebytes=1600>>
decode success!!!!
decode jpeg success.
decode jpeg!
stMaxRect.u32Width800, stMaxRect.u32Height600.

srcAddr 0x42000000, dstAddr 0x42000000
find_squashfs_file: name bin, start_block 0, offset 2544, type 1
find_squashfs_file: name boot, start_block 0, offset 2648, type 1
read inode: name boot, sb 0, of 2648, type 1
find_squashfs_file: name zImage.img, start_block 0, of, type 2
read inode: name zImage.img, sb 0, of 2576, type 2
### FS load complete: 2564440 bytes loaded to 0x42000000
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   linux
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2564376 Bytes = 2.4 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Auto login as root ...
Welcome to Monitor Tech.
~ # rm /mnt/mtd/* -rf
rm: can't stat '/mnt/mtd/Config/ppp/pap-secrets': Input/output error
rm: can't stat '/mnt/mtd/Config/ppp/3gdigal': Input/output error
rm: can't stat '/mnt/mtd/Config/ppp/pppoe-enable': Input/output error
rm: can't remove '/mnt/mtd/Config/ppp': Directory not empty
rm: can't stat '/mnt/mtd/Config/FlashProtectInfoFile': Input/output error
rm: can't stat '/mnt/mtd/Config/network': Input/output error
rm: can't stat '/mnt/mtd/Config/networkipv6': Input/output error
rm: can't stat '/mnt/mtd/Config/Json/Uart.second': Input/output error
rm: can't stat '/mnt/mtd/Config/Json/SplitMode.second': Input/output error
rm: can't stat '/mnt/mtd/Config/Json/Detect': Input/output error
rm: can't stat '/mnt/mtd/Config/Json/System.second': Input/output error
rm: can't remove '/mnt/mtd/Config/Json': Directory not empty
rm: can't stat '/mnt/mtd/Config/__tempinfo': Input/output error
rm: can't remove '/mnt/mtd/Config': Directory not empty
rm: can't stat '/mnt/mtd/Log/Log': Input/output error
rm: can't stat '/mnt/mtd/Log/macRandNum': Input/output error
rm: can't stat '/mnt/mtd/Log/SysTime': Input/output error
rm: can't remove '/mnt/mtd/Log': Directory not empty
~ # cd /mnt/mtd/
/mnt/mtd # ls
Config  Log
/mnt/mtd # cd Config
/mnt/mtd/Config # ls
ls: ./FlashProtectInfoFile: Input/output error
ls: ./network: Input/output error
ls: ./networkipv6: Input/output error
ls: ./__tempinfo: Input/output error
Json  ppp
/mnt/mtd/Config # rm * -rf
rm: can't stat 'FlashProtectInfoFile': Input/output error
rm: can't stat 'Json/Uart.second': Input/output error
rm: can't stat 'Json/SplitMode.second': Input/output error
rm: can't stat 'Json/Detect': Input/output error
rm: can't stat 'Json/System.second': Input/output error
rm: can't remove 'Json': Directory not empty
rm: can't stat '__tempinfo': Input/output error
rm: can't stat 'network': Input/output error
rm: can't stat 'networkipv6': Input/output error
rm: can't stat 'ppp/pap-secrets': Input/output error
rm: can't stat 'ppp/3gdigal': Input/output error
rm: can't stat 'ppp/pppoe-enable': Input/output error
rm: can't remove 'ppp': Directory not empty
/mnt/mtd/Config #

какие еще команды нужны?
или я не там смотрю :cry:

Аватара пользователя
VirtualLink
Специалист
Сообщения: 1846
Зарегистрирован: 09 апр 2016, 12:38

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение VirtualLink » 18 янв 2018, 12:35

Считать дамп и выгрузить его по tfto
sf probe 0
sf read ....
fftp ...

Определить адреса области конфига и потом попытаться затереть
sf probe 0
sf erase ...

Ranger
Новичок
Сообщения: 37
Зарегистрирован: 22 дек 2017, 23:29

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение Ranger » 18 янв 2018, 20:31

ты лучше скажи, у тебя сохраняются в spi переменные после команды saveenv? или каждый раз вводишь setenv?, если не сохраняются, то поможет только программатор

GIVIS7
Новичок
Сообщения: 30
Зарегистрирован: 14 янв 2018, 21:16

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение GIVIS7 » 19 янв 2018, 10:28

spi это посмотреть командой printenv
то вот вывод

Код: Выделить всё

System startup▒

System startup

U-Boot 2010.06-svn270 (Nov 14 2015 - 10:16:16)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
SPI Nor total size: 16MB
In:    serial
Out:   serial
Err:   serial
PHY 0x02: OUI = 0x1374, Model = 0x07, Rev = 0x02
change register for AR8035
CONFIG RGMII
ETH0: PHY(phyaddr=2, rgmii) not link!
higmac init fail!
Press CTRL-C to abort autoboot in 2 secondshisilicon # <INTERRUPT>
hisilicon # <INTERRUPT>
hisilicon # cc<INTERRUPT>
hisilicon # ccccc<INTERRUPT>
hisilicon # <INTERRUPT>
hisilicon # c<INTERRUPT>
hisilicon # printenv
bootcmd=sf probe 0;sf read 0x44000000 0xf60000 0x20000;logoload 0x44000000;decjpg;run gpio;sf read 0x42000000 0x50000 0x500000;squashfsload 42000000;bootm 0x42000000
bootdelay=1
baudrate=115200
ethaddr=00:0b:3f:00:00:01
netmask=255.255.0.0
bootfile="uImage"
gpio=mw 0x120f02d4 0x0;mw 0x12230400 0x1;mw 0x12230004 0x1
da=mw.b 0x42000000 ff 1000000;tftp 0x42000000 u-boot.bin.img;sf probe 0;flwrite
du=mw.b 0x42000000 ff 1000000;tftp 0x42000000 user-x.cramfs.img;sf probe 0;flwrite
dr=mw.b 0x42000000 ff 1000000;tftp 0x42000000 romfs-x.cramfs.img;sf probe 0;flwrite
dw=mw.b 0x42000000 ff 1000000;tftp 0x42000000 web-x.cramfs.img;sf probe 0;flwrite
dl=mw.b 0x42000000 ff 1000000;tftp 0x42000000 logo-x.cramfs.img;sf probe 0;flwrite
dc=mw.b 0x42000000 ff 1000000;tftp 0x42000000 custom-x.cramfs.img;sf probe 0;flwrite
up=mw.b 0x42000000 ff 1000000;tftp 0x42000000 update.img;sf probe 0;flwrite
tk=mw.b 0x42000000 ff 1000000;tftp 0x42000000 zImage.img; bootm 0x42000000
dd=mw.b 0x42000000 ff 1000000;tftp 0x42000000 mtd-x.jffs2.img;sf probe 0;flwrite
appVideoStandard=PAL
appSystemLanguage=Russian
bootargs=mem=150M console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=squashfs mtdparts=hi_sfc:320K(boot),3968K(romfs),7104K(usr),1536K(web),2816K(custom),128K(logo),512K(mtd) coherent_pool=2M
serverip=192.168.1.12
ipaddr=192.168.1.11
gatewayip=192.168.1.1
subnetmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06-svn270 (Nov 14 2015 - 10:16:16)

Environment size: 1478/65532 bytes
hisilicon #
данные которые я вводил раннее сохранились.

GIVIS7
Новичок
Сообщения: 30
Зарегистрирован: 14 янв 2018, 21:16

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение GIVIS7 » 01 фев 2018, 09:24

sf probe 0
вывод 16384 KiB hi_fmc at 0:0 is now current device
sf read ... какой то адрес это случаем не вот это ???
sf read 0x44000000 0xf60000 0x20000;logoload 0x44000000;decjpg;run gpio;sf read 0x42000000 0x50000 0x500000;squashfsload 42000000;bootm 0x42000000

sf read 0x44000000 0xf60000 0x20000 вот это?
logoload 0x44000000;decjpg;run gpio
sf read 0x42000000 0x50000 0x500000 вот это?
squashfsload 42000000;bootm 0x42000000

fftp ... это адрес TFTP сервера? serverip=192.168.1.12 ?

Аватара пользователя
VirtualLink
Специалист
Сообщения: 1846
Зарегистрирован: 09 апр 2016, 12:38

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение VirtualLink » 01 фев 2018, 13:39

GIVIS7 писал(а):sf probe 0
вывод 16384 KiB hi_fmc at 0:0 is now current device
sf read ... какой то адрес это случаем не вот это ???
sf read 0x44000000 0xf60000 0x20000;logoload 0x44000000;decjpg;run gpio;sf read 0x42000000 0x50000 0x500000;squashfsload 42000000;bootm 0x42000000

sf read 0x44000000 0xf60000 0x20000 вот это?
logoload 0x44000000;decjpg;run gpio
sf read 0x42000000 0x50000 0x500000 вот это?
squashfsload 42000000;bootm 0x42000000

fftp ... это адрес TFTP сервера? serverip=192.168.1.12 ?
Можно попробовать разные адреса

sf probe 0
sf read 0x82000000 0x0 0x1000000
tftp 0x82000000 flash.dat 0x1000000

Если tftp поддерживает такое, то при правильно настроенном TFTP программном сервере на ПК, можно будет получить файл.
Предварительно надо настроить локальный адрес и указать адрес ПК через serverip

GIVIS7
Новичок
Сообщения: 30
Зарегистрирован: 14 янв 2018, 21:16

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение GIVIS7 » 05 фев 2018, 06:53

Добрый день. Уважаемый гуру. Сделал по этому методу.
"Можно попробовать разные адреса
sf probe 0
sf read 0x82000000 0x0 0x1000000
tftp 0x82000000 flash.dat 0x1000000"
Вроде как слил дамп, что теперь делать? Как в дампе посмотреть адреса.
Получился файл flash.dat 16,0 МБ (16 777 216 байт).

GIVIS7
Новичок
Сообщения: 30
Зарегистрирован: 14 янв 2018, 21:16

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение GIVIS7 » 05 фев 2018, 12:14

Этот дамп не могу открыть, архиватор его не открывает говорит битый файл.
Как его просмотреть?

Аватара пользователя
fobos
Специалист
Сообщения: 1116
Зарегистрирован: 21 июн 2014, 18:15

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение fobos » 05 фев 2018, 12:30

GIVIS7 писал(а):Этот дамп не могу открыть, архиватор его не открывает говорит битый файл.
Как его просмотреть?
правильно говорит...это же не архив, а дамп...посмотреть - смотря что вы там хотите увидеть...хекс-редактор для начала.

GIVIS7
Новичок
Сообщения: 30
Зарегистрирован: 14 янв 2018, 21:16

Re: Восстановление регистратора 24AHD(32IP) ADVR7024E-M-V2

Сообщение GIVIS7 » 05 фев 2018, 13:14

Считать дамп и выгрузить его по tfto
sf probe 0
sf read ....
fftp ...

Определить адреса области конфига и потом попытаться затереть
sf probe 0
sf erase ...

считал дамп, теперь надо определить адреса области mtd,
так понимаю и затереть её, а вот эти данные из лога что могут дать?
mtdparts=hi_sfc:320K(boot),3968K(romfs),7104K(usr),1536K(web),2816K(custom),128K(logo),512K(mtd)
размер области hi_sfc:320K(boot) hex адрес=??? например 0x82000000 0x0 0x1000000???
как найти адрес 512K(mtd)???
так ( 320K+3968K+7104K+1536K+2816K+128K = 15872К (??16252928 Б??) это смещение к концу флешки?)
как это все должно быть хекс-редакторе?

Ответить

Вернуться в «Восстановление и настройка»