Восстановление прошивки и сброс пароля XM с помощью USB UART

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

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение dede » 08 окт 2018, 21:58

Да

genn001
Постоянный посетитель
Сообщения: 56
Зарегистрирован: 05 окт 2018, 19:51

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение genn001 » 09 окт 2018, 08:46

Команды выполняются до:

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

bootm 0x81000000 0x82000000
Вроде как заводится и дальше просит ввести логин и пароль.Следующие команды ввести не могу.

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

U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
spi->chipsize:8388608
start_up_mode is 3bite
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi(cs1): 3 addr SPI read:0x1,3B,0xc write:0x0,02,0xc erase:0x0,D8,0xc
num_chip of Spi: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
(Re)start USB search...
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
hisilicon # setenv bootcmd showlogo
hisilicon # startvo 0 36 13
dev 0 opened!
hisilicon # sf probe 0
8192 KiB hi_sfc at 0:0 is now current device
hisilicon # sf read 0x81000000 0xA0000 0x190000

hisilicon # sf read 0x82000000 0x230000 0x1A0000

hisilicon # bootm 0x81000000 0x82000000
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1597248 Bytes = 1.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
## Loading init Ramdisk from Legacy Image at 82000000 ...
   Image Name:   RAM disk
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    1674756 Bytes = 1.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (mrdong@mrdong-desktop) (gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) ) #17 Tue Oct 28 09:48:04 CST 2014
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: hi3520d
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 24384
Kernel command line: mem=96M console=ttyAMA0,115200
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 96MB = 96MB total
Memory: 91468k/91468k available, 6836k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc6800000 - 0xfe000000   ( 888 MB)
    lowmem  : 0xc0000000 - 0xc6000000   (  96 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0024000   ( 112 kB)
      .text : 0xc0024000 - 0xc03c5000   (3716 kB)
      .data : 0xc03c6000 - 0xc03dfa60   ( 103 kB)
       .bss : 0xc03dfa84 - 0xc042f928   ( 320 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:128 nr_irqs:128 128
sched_clock: 32 bits at 82MHz, resolution 12ns, wraps every 52060ms
Calibrating delay loop... 1318.91 BogoMIPS (lpj=6594560)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
update_logo 9
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
uart:2: ttyAMA2 at MMIO 0x200a0000 (irq = 42) is a PL011 rev2
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
update_logo 10
update_logo 11
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 1632K
L2cache cache controller enabled
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 181
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0200 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc sxs boh
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x100 irq 52
ata2: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x180 irq 52
Spi id table Version 1.22
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
SPI FLASH start_up_mode is 3 Bytes
Spi(cs1):
Block:64KB
Chip:8MB
Name:"MX25L6406E"
spi size: 0x8388608
chip num: 1
Creating 0 MTD partitions on "hi_sfc":
Fixed MDIO Bus: probed
ata1: SATA link down (SStatus 0 SControl 300)
himii: probed
ata2: SATA link down (SStatus 0 SControl 300)
Invalid HW-MAC Address: 00:00:00:00:00:00
Set Random MAC address: C2:64:BB:70:77:E3
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
hiusb-ehci hiusb-ehci.0: irq 53, io mem 0x100b0000
hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
hiusb-ohci hiusb-ohci.0: HIUSB OHCI
hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
hiusb-ohci hiusb-ohci.0: irq 54, io mem 0x100a0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
Registering the dns_resolver key type
registered taskstats version 1
RAMDISK: xz image found at block 0
update_logo 12
usb 2-1: new full speed USB device number 2 using hiusb-ohci
input: A4Tech USB Mouse as /devices/platform/hiusb-ohci.0/usb2/2-1/2-1:1.0/input/input0
generic-usb 0003:09DA:0080.0001: input: USB HID v1.11 Mouse [A4Tech USB Mouse] on usb-hiusb-ohci-1/input0
update_logo 13
VFS: Mounted root (ext2 filesystem) on device 1:0.
[RCS]: /etc/init.d/S00devs
[RCS]: /etc/init.d/S01udev
Jan  1 08:00:02 udevd (360): /proc/360/oom_adj is deprecated, please use /proc/360/oom_score_adj instead.
udevd[360]: main: error opening /dev/null: No such file or directory
[RCS]: /etc/init.d/S80network
mount: mounting /dev/mtdblock5 on /etc/conf.d/ failed: No such file or directory
mount: mounting /dev/mtdblock3 on /cramfs_tmp/ failed: No such file or directory
mount: mounting /cramfs_tmp/Cramfs-ko on /usr/ko_hi3520D/ failed: No such file or directory
cat: can't open '/dev/mtdblock4': No such file or directory
mount: mounting /dev/ram1 on /progs/bin/ failed: Invalid argument
mount: mounting /cramfs_tmp/Cramfs-res on /progs/res/ failed: No such file or directory
mount: mounting /cramfs_tmp/Cramfs-ie on /progs/html/ failed: No such file or directory
sh: can't open '/usr/ko_hi3520D/pinmux_8D1_hi3520D.sh'
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x200f005c: 0x00000000 --> 0x00000001
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x200f0060: 0x00000000 --> 0x00000001
[END]
sh: can't open '/usr/ko_hi3520D/crgctrl_8D1_hi3520D.sh'
insmod: can't insert '/usr/ko_hi3520D/extdrv/gpioi2c.ko': No such file or directory
insmod: can't insert '/usr/ko_hi3520D/extdrv/gpioi2c_hdmi.ko': No such file or directory
/etc/init.d/rcS: line 44: /usr/ko_hi3520D/extdrv/i2c_read: not found
sh: fd:54: unknown operand
insmod: can't insert '/usr/ko_hi3520D/extdrv/ad_driver.ko': No such file or directory

setMac err:open /dev/jdvr fail
192.168.1.10
255.255.255.0
192.168.1.1
0
after network.sh
/etc/init.d/rcS: line 62: ./load3520D: not found
insmod: can't insert 'extdrv/jovi_key.ko': No such file or directory
hwclock: can't open '/dev/hi_rtc': No such file or directory
/etc/init.d/rcS: line 80: ./bin/jdvr: not found
(none) login: /etc/init.d/rcS: line 79: ./bin/mySystem: not found
setenv bootargs mem=55M console=ttyAMA0,115200 root=0100 rootfstype=ext2 mtdparts=hi_sfc:640k(boot),1600K(kernel),1664K,2304k,1664k,320ksetenv bootargs mem=55M console=ttyAMA0,115200 root=0100 rootfstype=ext2 mtdparts=hi_sfc:640k(boot),1600K(kernel),1664K,2304k,1664k,320k
(none) login:
Login timed out after 60 seconds
(none) login:
Login timed out after 60 seconds
(none) login:

genn001
Постоянный посетитель
Сообщения: 56
Зарегистрирован: 05 окт 2018, 19:51

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение genn001 » 09 окт 2018, 09:00

dede
Вставляю флешку, подаю питание получаю следующее:

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

U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
spi->chipsize:8388608
start_up_mode is 3bite
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi(cs1): 3 addr SPI read:0x1,3B,0xc write:0x0,02,0xc erase:0x0,D8,0xc
num_chip of Spi: 1
In:    serial
Out:   serial
Err:   serial
(Re)start USB search...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... usb_stor_get_info->1406,blksz:512
1 Storage Device(s) found
** Partition 1 not valid on device 0 **
** Partition 5 not valid on device 0 **

** Unable to use usb 0:5 for fatls **
Hit any key to stop autoboot:  0
saveaddr: 82000000
do_netupdate
Hisilicon ETH net controler
MAC:   00-00-23-34-45-66
Up/Down PHY not link.
8192 KiB hi_sfc at 0:0 is now current device

vo 0,picwh:720 576, addr=0, xywh:40 12 720 576
vo 2,picwh:720 576, addr=0, xywh:0 0 720 576

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

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение dede » 09 окт 2018, 10:04

С флешки удалить все разделы, отформатировать ее в фат32

Наверное вот так надо было, ну или в одинарных попробуете. Всего 4 команды, не должно разделять

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

setenv bootcmd "showlogo;startvo 0 36 13;sf probe 0;sf read 0x81000000 0xA0000 0x190000;sf read 0x82000000 0x230000 0x1A0000;bootm 0x81000000 0x82000000"
setenv bootargs "mem=55M console=ttyAMA0,115200 root=0100 rootfstype=ext2 mtdparts=hi_sfc:640k(boot),1600K(kernel),1664K,2304k,1664k,320k"
setenv machine MBD6004D
saveenv

genn001
Постоянный посетитель
Сообщения: 56
Зарегистрирован: 05 окт 2018, 19:51

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение genn001 » 09 окт 2018, 17:45

Заливаю прошивку. Даю первую команду.

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

setenv bootcmd "showlogo;startvo 0 36 13;sf probe 0;sf read 0x81000000 0xA0000 0x190000;sf read 0x82000000 0x230000 0x1A0000;bootm 0x81000000 0x82000000"
Лог такой

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

U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
spi->chipsize:8388608
start_up_mode is 3bite
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi(cs1): 3 addr SPI read:0x1,3B,0xc write:0x0,02,0xc erase:0x0,D8,0xc
num_chip of Spi: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
(Re)start USB search...
USB:   scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
hisilicon # setenv bootcmd "showlogo;startvo 0 36 13;sf probe 0;sf read 0x81000000 0xA0000 0x190000;sf read 0x82000000 0x230000 0x1A0000;bootm 0x81000000 0x82000000"
dev 0 opened!
8192 KiB hi_sfc at 0:0 is now current device


## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1606924 Bytes = 1.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
## Loading init Ramdisk from Legacy Image at 82000000 ...
   Image Name:   RAM disk
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    1672568 Bytes = 1.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (mrdong@mrdong-desktop) (gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) ) #2 Tue Jun 10 10:38:56 CST 2014
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: hi3520d
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 24384
Kernel command line: mem=96M console=ttyAMA0,115200
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 96MB = 96MB total
Memory: 91444k/91444k available, 6860k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc6800000 - 0xfe000000   ( 888 MB)
    lowmem  : 0xc0000000 - 0xc6000000   (  96 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0024000   ( 112 kB)
      .text : 0xc0024000 - 0xc03cc000   (3744 kB)
      .data : 0xc03cc000 - 0xc03e6c80   ( 108 kB)
       .bss : 0xc03e6ca4 - 0xc0435b68   ( 316 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:128 nr_irqs:128 128
sched_clock: 32 bits at 82MHz, resolution 12ns, wraps every 52060ms
Calibrating delay loop... 1318.91 BogoMIPS (lpj=6594560)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
update_logo 9
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
uart:2: ttyAMA2 at MMIO 0x200a0000 (irq = 42) is a PL011 rev2
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
update_logo 10
update_logo 11
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 1632K
L2cache cache controller enabled
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 181
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0200 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc sxs boh
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x100 irq 52
ata2: SATA max UDMA/133 mmio [mem 0x10080000-0x1008ffff] port 0x180 irq 52
Spi id table Version 1.22
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
SPI FLASH start_up_mode is 3 Bytes
Spi(cs1):
Block:64KB
Chip:8MB
Name:"MX25L6406E"
spi size: 0x8388608
chip num: 1
Creating 0 MTD partitions on "hi_sfc":
Fixed MDIO Bus: probed
ata1: SATA link down (SStatus 0 SControl 300)
himii: probed
ata2: SATA link down (SStatus 0 SControl 300)
Invalid HW-MAC Address: 00:00:00:00:00:00
Set Random MAC address: F6:D9:40:D5:9B:49
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
usbcore: registered new interface driver kaweth
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
cdc_ncm: 04-Aug-2011
usbcore: registered new interface driver cdc_ncm
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
hiusb-ehci hiusb-ehci.0: irq 53, io mem 0x100b0000
hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
hiusb-ohci hiusb-ohci.0: HIUSB OHCI
hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
hiusb-ohci hiusb-ohci.0: irq 54, io mem 0x100a0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver cdc_wdm
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
Registering the dns_resolver key type
registered taskstats version 1
RAMDISK: xz image found at block 0
update_logo 12
update_logo 13
VFS: Mounted root (ext2 filesystem) on device 1:0.
[RCS]: /etc/init.d/S00devs
[RCS]: /etc/init.d/S01udev
Jan  1 08:00:02 udevd (361): /proc/361/oom_adj is deprecated, please use /proc/361/oom_score_adj instead.
udevd[361]: main: error opening /dev/null: No such file or directory
[RCS]: /etc/init.d/S80network
mount: mounting /dev/mtdblock5 on /etc/conf.d/ failed: No such file or directory
mount: mounting /dev/mtdblock3 on /cramfs_tmp/ failed: No such file or directory
mount: mounting /cramfs_tmp/Cramfs-ko on /usr/ko_hi3520D/ failed: No such file or directory
cat: can't open '/dev/mtdblock4': No such file or directory
mount: mounting /dev/ram1 on /progs/bin/ failed: Invalid argument
mount: mounting /cramfs_tmp/Cramfs-res on /progs/res/ failed: No such file or directory
mount: mounting /cramfs_tmp/Cramfs-ie on /progs/html/ failed: No such file or directory
sh: can't open '/usr/ko_hi3520D/pinmux_8D1_hi3520D.sh'
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x200f005c: 0x00000000 --> 0x00000001
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x200f0060: 0x00000000 --> 0x00000001
[END]
sh: can't open '/usr/ko_hi3520D/crgctrl_8D1_hi3520D.sh'
insmod: can't insert '/usr/ko_hi3520D/extdrv/gpioi2c.ko': No such file or directory
insmod: can't insert '/usr/ko_hi3520D/extdrv/gpioi2c_hdmi.ko': No such file or directory
insmod: can't insert '/usr/ko_hi3520D/extdrv/ad_driver.ko': No such file or directory

setMac err:open /dev/jdvr fail
192.168.1.10
255.255.255.0
192.168.1.1
0
after network.sh
/etc/init.d/rcS: line 60: ./load3520D: not found
insmod: can't insert 'showlogo.ko': No such file or directory
rmmod: can't unload 'showlogo': unknown symbol in module, or unknown parameter
insmod: can't insert 'showlogo.ko': No such file or directory
rmmod: can't unload 'showlogo': unknown symbol in module, or unknown parameter
insmod: can't insert 'extdrv/jovi_key.ko': No such file or directory
hwclock: can't open '/dev/hi_rtc': No such file or directory
/etc/init.d/rcS: line 78: ./bin/jdvr: not found
(none) login: /etc/init.d/rcS: line 77: ./bin/mySystem: not found

Login timed out after 60 seconds
(none) login:
Просит ввести логин и пароль. Дальше никакие команды не принимает. На экране зеленый фон.

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

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение dede » 09 окт 2018, 17:51

НУ в одинарных попробуйте, я ж написал сразу. После всех этих команд ничего не должно происходить, просто переход строки для ввода следующей

genn001
Постоянный посетитель
Сообщения: 56
Зарегистрирован: 05 окт 2018, 19:51

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение genn001 » 09 окт 2018, 18:12

В одинарных перед каждой командой нужно прописывать setenv?

genn001
Постоянный посетитель
Сообщения: 56
Зарегистрирован: 05 окт 2018, 19:51

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение genn001 » 09 окт 2018, 18:32

при вводе одинарных команд получается так:

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

U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
spi->chipsize:8388608
start_up_mode is 3bite
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi(cs1): 3 addr SPI read:0x1,3B,0xc write:0x0,02,0xc erase:0x0,D8,0xc
num_chip of Spi: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
(Re)start USB search...
USB:   scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
hisilicon # setenv bootcmd showlogo
hisilicon # setenv startvo 0 36 13
hisilicon # setenv sf probe 0
hisilicon # setenv sf read 0x81000000 0xA0000 0x190000
hisilicon # setenv sf read 0x82000000 0x230000 0x1A0000  
hisilicon # setenv bootm 0x81000000 0x82000000
hisilicon # setenv bootargs mem=55M console=ttyAMA0,115200 root=0100 rootfstype=ext2 mtdparts=hi_sfc:640k(boot),1600K(kernel),1664K,2304k,1664k,320k
hisilicon # setenv machine MBD6004D
hisilicon # saveenv
Saving Environment to SPI Flash...
Erasing SPI flash, offset 0x00050000 size 64K ...done
Writing to SPI flash, offset 0x00050000 size 64K ...done
hisilicon # reset
resetting ...


U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
spi->chipsize:8388608
start_up_mode is 3bite
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi(cs1): 3 addr SPI read:0x1,3B,0xc write:0x0,02,0xc erase:0x0,D8,0xc
num_chip of Spi: 1
In:    serial
Out:   serial
Err:   serial
(Re)start USB search...
USB:   scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
saveaddr: 82000000
do_netupdate
Hisilicon ETH net controler
MAC:   00-00-23-34-45-66
Up/Down PHY not link.
8192 KiB hi_sfc at 0:0 is now current device

vo 0,picwh:720 576, addr=0, xywh:40 12 720 576
vo 2,picwh:720 576, addr=0, xywh:0 0 720 576
что я делаю не так?

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

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение dede » 09 окт 2018, 19:31

Вы что-то не так копируете, там 4 команды, вы в логе 10 показываете
вот это все одна команда, а не 5
setenv bootcmd 'showlogo;startvo 0 36 13;sf probe 0;sf read 0x81000000 0xA0000 0x190000;sf read 0x82000000 0x230000 0x1A0000;bootm 0x81000000 0x82000000'

одинарные кавычки, я имел ввиду, не команды

genn001
Постоянный посетитель
Сообщения: 56
Зарегистрирован: 05 окт 2018, 19:51

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение genn001 » 09 окт 2018, 19:39

Теперь вставляю флешку, подаю питание и получаю следующее:

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

U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
spi->chipsize:8388608
start_up_mode is 3bite
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi(cs1): 3 addr SPI read:0x1,3B,0xc write:0x0,02,0xc erase:0x0,D8,0xc
num_chip of Spi: 1
In:    serial
Out:   serial
Err:   serial
(Re)start USB search...
USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... usb_stor_get_info->1406,blksz:512
1 Storage Device(s) found
reading jdvr-recover-MBD6004D-ver.bin
get jdvr-recover-MBD6004D-ver.bin size=-1
recover mask=ffffffff
reading jdvr-recover-MBD6004D.bin
jpeg decoding ...
<<addr=0x8082d054, size=0x77ff, vobuf=0x83000000>>
mmu_enable
<<imgwidth=320, imgheight=320, linebytes=640>>
decode success!!!!
decode jpeg!
dev 0 set background color!
dev 0 opened!
graphic layer 0 opened!
dev 2 set background color!
dev 2 opened!
graphic layer 2 opened!
reading jdvr-recover-MBD6004D.bin
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
start decrypt...
8192 KiB hi_sfc at 0:0 is now current device
Erasing at 0x800000 -- 100% complete.
Writing at 0x800000 -- 100% complete.
dev 0 closed!
dev 2 closed!
*** Warning - bad CRC, using default environment

hisilicon #
после перезапуска:

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

U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
spi->chipsize:8388608
start_up_mode is 3bite
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi(cs1): 3 addr SPI read:0x1,3B,0xc write:0x0,02,0xc erase:0x0,D8,0xc
num_chip of Spi: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
(Re)start USB search...
USB:   scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
hisilicon #

Что еще можно попробовать?

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

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение dede » 09 окт 2018, 19:41

Делать и энв и флешку, у вас файл прошился, но энв все равно пустой, поэтому там просто нет команд для запуска. Выполняйте мои 4 команды и проверяйте, что после перезапуска у вас printenv их выводит

genn001
Постоянный посетитель
Сообщения: 56
Зарегистрирован: 05 окт 2018, 19:51

Re: Восстановление прошивки и сброс пароля XM с помощью USB

Сообщение genn001 » 09 окт 2018, 20:20

Вот что в printenv после перезапуска:

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

hisilicon # printenv
bootdelay=1
baudrate=115200
ethaddr=00:00:23:34:45:66
ipaddr=192.168.0.10
serverip=192.168.0.2
netmask=255.255.255.0
bootfile="uImage"
bootcmd=showlogo;startvo 0 36 13;sf probe 0;sf read 0x81000000 0xA0000 0x190000;sf read 0x82000000 0x230000 0x1A0000;bootm 0x81000000 0x82000000
bootargs=mem=55M console=ttyAMA0,115200 root=0100 rootfstype=ext2 mtdparts=hi_sfc:640k(boot),1600K(kernel),1664K,2304k,1664k,320k
machine=MBD6004D
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06 (Sep 24 2014 - 11:37:37)

Environment size: 521/65532 bytes
hisilicon #

Ответить

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