LINUX.ORG.RU

Ремонт видеорегистратора

 , ,


0

1

Добрый день. Есть два регистратора, 1 рабочий, на втором сгорел процессор HI3520D. Процессор нашел, перепаял. Но родное яро на нем перестало грузиться. Слил с обоих регеров прошивки, сравнил, идентичные. Левое ядро какое то нашел,залил, работает, но естественно не так как надо. Почему перестало грузиться родное ядро ? Это защита какая то ? Как она реализована ? Лог рабочего:

U-Boot 2010.06 (Dec 05 2013 - 16:53:16)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
Spi(cs1): Block:64KB Chip:32MB Name:"MX25L25635E/735E/635F"
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
32768 KiB hi_sfc at 0:0 is now current device

mmu_enable
<<imgwidth=1024, imgheight=768, linebytes=2048>>
decode success!!!!
dev 0 set background color!
dev 2 set background color!
dev 0 opened!
dev 2 opened!
graphic layer 0 opened!
graphic layer 2 opened!
(Re)start USB...
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
32768 KiB hi_sfc at 0:0 is now current device

## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1567336 Bytes = 1.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (root@sqy-desktop) (gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) ) #81 Fri Oct 17 16:20:03 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: 37338
Kernel command line: mem=147M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=squashfs mtdparts=hi_sfc:320K(uboot),1536K(kernel),4M(rfs),25792K(app),768K(config),256K(logo)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 147MB = 147MB total
Memory: 144904k/144904k available, 5624k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc9800000 - 0xfe000000   ( 840 MB)
    lowmem  : 0xc0000000 - 0xc9300000   ( 147 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0023000   ( 108 kB)
      .text : 0xc0023000 - 0xc03b0000   (3636 kB)
      .data : 0xc03b0000 - 0xc03cbac0   ( 111 kB)
       .bss : 0xc03cbae4 - 0xc0418020   ( 306 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
Console: colour dummy device 80x30
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
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
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer1
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
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
NetWinder Floating Point Emulator V0.97 (double precision)
L2cache cache controller enabled
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.16)
msgmni has been set to 283
encryption fail
no ack
sha204_sn is 1
sha204_sn is 23
sha204_sn is 16
sha204_sn is 86
sha204_sn is 4e
sha204_sn is a9
sha204_sn is 9
sha204_sn is 46
sha204_sn is ee
no ack
count is 255
no ack
no ack
no ack
no ack
no ack
count is 255
no ack
no ack
no ack
no ack
no ack
count is 255
no ack
no ack
no ack
no ack
no ack
count is 255
no ack
no ack
no ack
no ack
no ack
count is 255
no ack
no ack
no ack
no ack
no ack
count is 255
no ack
no ack
no ack
no ack
no ack
count is 255
no ack
no ack
no ack
no ack
sha204_devinfo  is 44 i is 0
sha204_devinfo  is 56 i is 1
sha204_devinfo  is 52 i is 2
sha204_devinfo  is 32 i is 3
sha204_devinfo  is 33 i is 4
sha204_devinfo  is 35 i is 5
sha204_devinfo  is 31 i is 6
sha204_devinfo  is 35 i is 7
sha204_devinfo  is 30 i is 8
sha204_devinfo  is 34 i is 9
sha204_devinfo  is 1 i is 10
sha204_devinfo  is 55 i is 11
sha204_devinfo  is 11 i is 12
g_sha204_delay_time is 20
sha204_sn is 1
sha204_sn is 23
sha204_sn is 16
sha204_sn is 86
sha204_sn is 4e
sha204_sn is a9
sha204_sn is 9
sha204_sn is 46
sha204_sn is ee
sha204_devinfo  is 44 i is 0
sha204_devinfo  is 56 i is 1
sha204_devinfo  is 52 i is 2
sha204_devinfo  is 32 i is 3
sha204_devinfo  is 33 i is 4
sha204_devinfo  is 35 i is 5
sha204_devinfo  is 31 i is 6
sha204_devinfo  is 35 i is 7
sha204_devinfo  is 30 i is 8
sha204_devinfo  is 34 i is 9
sha204_devinfo  is 1 i is 10
sha204_devinfo  is 55 i is 11
sha204_devinfo  is 0 i is 12
sha204_devinfo  is 0 i is 13
sha204_devinfo  is 0 i is 14
sha204_devinfo  is 0 i is 15
TempKey  is 9
TempKey  is 69
TempKey  is 29
TempKey  is 64
TempKey  is b9
TempKey  is 67
TempKey  is 2
TempKey  is 4e
TempKey  is 17
TempKey  is df
TempKey  is a9
TempKey  is 4e
TempKey  is 3d
TempKey  is 6a
TempKey  is f2
TempKey  is ca
TempKey  is be
TempKey  is 22
TempKey  is 2c
TempKey  is 3
TempKey  is 85
TempKey  is ca
TempKey  is 8d
TempKey  is f6
TempKey  is ba
TempKey  is 21
TempKey  is 86
TempKey  is 2c
TempKey  is 1f
TempKey  is 69
TempKey  is 4e
TempKey  is bc
encryption ok
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
loop: 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 0x19 0xC2 0x20 0x19
SPI FLASH start_up_mode is 3 Bytes
Spi(cs1):
Block:64KB
Chip:32MB
Name:"MX25L25635E/735E/635F"
spi size: 0x33554432
chip num: 1
6 cmdlinepart partitions found on MTD device hi_sfc
Creating 6 MTD partitions on "hi_sfc":
0x000000000000-0x000000050000 : "uboot"
0x000000050000-0x0000001d0000 : "kernel"
0x0000001d0000-0x0000005d0000 : "rfs"
0x0000005d0000-0x000001f00000 : "app"
0x000001f00000-0x000001fc0000 : "config"
0x000001fc0000-0x000002000000 : "logo"
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: 42:D5:2B:5E:7B:6C
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_wdm
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
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
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing init memory: 108K

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
[RCS]: /etc/init.d/S01udev
Jan  1 00:00:03 udevd (487): /proc/487/oom_adj is deprecated, please use /proc/487/oom_score_adj instead.
udevd[487]: main: error opening /dev/null: No such file or directory
[RCS]: /etc/init.d/S03ants
init hotplug
start hotplug ok
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01361ba0: 0xc859 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01361ba4: 0x1004 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01361ba8: 0x7d7d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01361bac: 0x0080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01361bb0: 0xa529 instead
SDK_TYPE type is 8d1
Hisilicon Media Memory Zone Manager
hi3520D_base: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
Hisilicon UMAP device driver interface: v3.00
load sys.ko for Hi3520D...OK!
Load tde.ko ...OK!
load venc.ko for Hi3520D...OK!
load group.ko for Hi3520D...OK!
load chnl.ko for Hi3520D...OK!
load h264e.ko for Hi3520D...OK!
load rc.ko for Hi3520D...OK!
load jpege.ko for Hi3520D...OK!
load viu.ko for Hi3520D...OK!
load vou.ko ....OK!
load vpss.ko ....OK!
load vda.ko ....OK!
load region.ko ....OK!
rm: can't remove '/root/DeviceDisplay.xml': No such file or directory
rm: can't remove '/root/res_xml/DeviceDisplay.xml': No such file or directory
rm: can't remove '/root/DeviceDisplay.xml': No such file or directory
load vdec.ko ....OK
load vhd firmware.ko OK
load hdmi.ko ....OK!
Load jpeg6b.ko success.         (SDK_VERSION:[jpeg6bv1.0] Build Time:[Jul 30 2013, 17:13:35])
HISI_IRDA-MF @Hi3520Dv100R00
hiir: init ok. ver=Nov 26 2013, 15:14:13.
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
rtusb init rt2870 --->
usbcore: registered new interface driver rt2870
PPP generic driver version 2.4.2
rm: can't remove '/usr/etc/config.tar.gz': No such file or directory
mkdir: can't create directory '/usr/etc/tmp': File exists
mkdir: can't create directory '/usr/etc/var': File exists
mkdir: can't create directory '/usr/etc/var/run': File exists
mkdir: can't create directory '/usr/etc/var/lock': File exists
mkdir: can't create directory '/usr/etc/ppp': File exists
mkdir: can't create directory '/usr/etc/ppp/peers': File exists
rm: can't remove '/usr/etc/tmp/qtembedded-0/fonts/fontdb': No such file or directory
ln: /usr/etc/web/web: File exists
cp: can't stat '/usr/sbin/wcdma-chat-disconnect': No such file or directory
/etc/init.d/S03ants: line 56: /etc/startusb: not found
[RCS]: /etc/init.d/S80network
Auto login as root ...
Sep 13 09:11:15 login[818]: root login on 'ttyS000'
Welcome to HiLinux.
# begin dvr//////////////////////////////////////////////////////////////
argc 2, argv ./ants_dvr
 open /usr/etc/mycfg.xml

 open /root/res_xml/Keyboard.xml

 open /tmp/qtembedded-0//fonts//fontdb.tmp

 open /usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/gulim_17_50.qpf2

 open /usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/microsoft_sans_serif_12_75.qpf2

 open /usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/yh_17_50.qpf2

DBG[embedded/qscreenlinuxfb_qws.cpp connect▒▒350]       QLinuxFbScreen::connect :0
DBG[embedded/qscreenlinuxfb_qws.cpp connect▒▒379]
 open /dev/fb0

DBG[embedded/qscreenlinuxfb_qws.cpp connect▒▒397]       open device /dev/fb0 success
DBG[embedded/qscreenlinuxfb_qws.cpp connect▒▒425]
 open /usr/etc/mycfg.xml

 open /root/DeviceDisplay.xml
и т.д.
Лог нерабочего:
U-Boot 2010.06 (Dec 05 2013 - 16:53:16)

Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x19 0xC2 0x20 0x19
Spi(cs1): Block:64KB Chip:32MB Name:"MX25L25635E/735E/635F"
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
32768 KiB hi_sfc at 0:0 is now current device

mmu_enable
<<imgwidth=1024, imgheight=768, linebytes=2048>>
decode success!!!!
dev 0 set background color!
dev 2 set background color!
dev 0 opened!
dev 2 opened!
graphic layer 0 opened!
graphic layer 2 opened!
(Re)start USB...

## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1567336 Bytes = 1.5 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (root@sqy-desktop) (gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) ) #81 Fri Oct 17 16:20:03 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: 37338
Kernel command line: mem=147M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=squashfs mtdparts=hi_sfc:320K(uboot),1536K(kernel),4M(rfs),25792K(app),768K(config),256K(logo)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 147MB = 147MB total
Memory: 144904k/144904k available, 5624k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc9800000 - 0xfe000000   ( 840 MB)
    lowmem  : 0xc0000000 - 0xc9300000   ( 147 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0023000   ( 108 kB)
      .text : 0xc0023000 - 0xc03b0000   (3636 kB)
      .data : 0xc03b0000 - 0xc03cbac0   ( 111 kB)
       .bss : 0xc03cbae4 - 0xc0418020   ( 306 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
Console: colour dummy device 80x30
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
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
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer1
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
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
NetWinder Floating Point Emulator V0.97 (double precision)
L2cache cache controller enabled
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.16)
msgmni has been set to 283
encryption fail
count is 0
sha204p_receive_response failed
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0
count is 0

sha204p_receive_response failed

Мне кажется, что трабла где-то здесь. Он пытается что-то опросить, но не получает ответа.

Zhbert ★★★★★
()
Ответ на: комментарий от GrukhvinEV

так вася, у тебя там ещё и sha204 сгорела или ты паялом её закоцал, вот он и тупит.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.