XM AHD7004t-LM-V3 Firmware req / flashing issue

lgdolman

n3wb
Joined
Jun 18, 2020
Messages
1
Reaction score
0
Location
england
I'm looking for replacement firmware for this unit KKMOON XF-9404NF-LM S388B-UK. Edited rc$ to enable telnet but now the dvr sits on logo at boot. Tried to reflash the firmware i have for 00000191 which does nothing as i still have shell access over uart and nothing has changed when i cat rc$. Took a photo of the original info screen which I can't access now as no GUI.

UART BOOT
Code:
Check spi flash controller v350... Found
Spi(cs1) ID: 0xC2 0x20 0x17 0xC2 0x20 0x17
Spi(cs1): Block:64KB Chip:8MB Name:"MX25L6406E"
Spi is locked. lock address[0x0 => 0x800000]
Set lock level: 2, start of bottom address
Spi is locked. lock address[0x0 => 0x20000]
envcrc 0x880c65e8
ENV_SIZE = 0xfffc
In:    serial
Out:   serial
Err:   serial
USB:   scanning bus for devices... 1 USB Device(s) found
0 Storage Device(s) found
Press CTRL-C to abort autoboot in 0 seconds8192 KiB hi_sfc at 0:0 is now current device

CFG_BOOT_ADDR:0x0
0ff:0x84000000
### /UbootLogo UbootLogoload complete: 21986 bytes loaded to 0x8e800000
jpeg decoding ...
<<addr=0x8e800000, size=0xb85f9, vobuf=0x8e800000>>
<<imgwidth=800, imgheight=600, linebytes=1600>>
decode success!!!!
decode jpeg success.
decode jpeg!

srcAddr 0x82000000, dstAddr 0x82000000
find_squashfs_file: name bin, start_block 0, offset 1378, type 1
find_squashfs_file: name boot, start_block 0, offset 1534, type 1
read inode: name boot, sb 0, of 1534, type 1
find_squashfs_file: name zImage.img, start_block 0, offset 1410, type 2
read inode: name zImage.img, sb 0, of 1410, type 2
### FS load complete: 1448352 bytes loaded to 0x82000000
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   linux
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1448288 Bytes = 1.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Reflashing throws no errors but there is no effect as there is no changes to the file system.

Code:
mw.b 0x82000000 ff 1000000 ;tftp 0x82000000 /tftpboot/romfs-x.cramfs.img;sf probe 0;flwrite
Hisilicon ETH net controler
miiphy_register: non unique device name '0:3'
miiphy_register: non unique device name '0:2'
MAC:   00-0B-3F-00-00-01
UP_PORT : phy status change : LINK=UP : DUPLEX=FULL : SPEED=100M
TFTP from server 192.168.1.1; our IP address is 192.168.1.10
Download Filename '/tftpboot/romfs-x.cramfs.img'.
Download to address: 0x82000000
Downloading: #################################################
done
Bytes transferred = 1859648 (1c6040 hex)
8192 KiB hi_sfc at 0:0 is now current device

## Checking Image at 0x82000000 ...
   Header CRC Checking ... OK
   Image Name:   linux
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    1859584 Bytes = 1.8 MiB
   Load Address: 00030000
   Entry Point:  00220000
   Data CRC Checking ... OK
Programing start at: 0x00030000
Programing end at: 0x00220000
Erasing at 0x220000 -- 100% complete.
done.
Erased sectors.
Saving Image to Flash ...
Writing at 0x220000 -- 100% complete.
done.
hisilicon #
Printenv
Code:
hisilicon # printenv 
bootcmd=sf probe 0;sf read 84000000 7a0000 10000;logoload 84000000;decjpg;sf read 82000000 30000 400000;squashfsload 82000000;bootm 0x82000000
bootdelay=1
baudrate=115200
bootfile="uImage"
restore=1
da=mw.b 0x82000000 ff 1000000;tftp 0x82000000 u-boot.bin.img;sf probe 0;flwrite
du=mw.b 0x82000000 ff 1000000;tftp 0x82000000 user-x.cramfs.img;sf probe 0;flwrite
dr=mw.b 0x82000000 ff 1000000;tftp 0x82000000 romfs-x.cramfs.img;sf probe 0;flwrite
dw=mw.b 0x82000000 ff 1000000;tftp 0x82000000 web-x.cramfs.img;sf probe 0;flwrite
dl=mw.b 0x82000000 ff 1000000;tftp 0x82000000 logo-x.cramfs.img;sf probe 0;flwrite
dc=mw.b 0x82000000 ff 1000000;tftp 0x82000000 custom-x.cramfs.img;sf probe 0;flwrite
up=mw.b 0x82000000 ff 1000000;tftp 0x82000000 update.img;sf probe 0;flwrite
tk=mw.b 0x82000000 ff 1000000;tftp 0x82000000 zImage.img; bootm 0x82000000
dd=mw.b 0x82000000 ff 1000000;tftp 0x82000000 mtd-x.jffs2.img;sf probe 0;flwrite
ipaddr=192.168.1.10
serverip=192.168.1.1
netmask=255.255.255.0
gatewayip=192.168.0.1
ethaddr=00:0b:3f:00:00:01
appSystemLanguage=English
appVideoStandard=PAL
bootargs=mem=132M console=ttyAMA0,115200 root=1f01 rootfstype=squashfs mtdparts=hi_sfc:192K(boot),1984K(romfs),3968K(usr),1664K(custom),64K(logo),320K(mtd)
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06-svn494 (Apr 18 2017 - 14:44:23)

Environment size: 1343/65532 bytes
hisilicon #
 

Attachments

Top