Прошу подсказки вот в таком вопросе:
После аварийного (и "дерганного") отключения электропитания перестал загружаться регистратор Hunter 8108L,
на базе платы XM AHB8008R-LME.
Подключил UART:
Код: Выделить всё
System startup..........
System startup
U-Boot 2010.06-svn1344 (Oct 16 2019 - 13:14:32)
Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xb 0x40 0x18
eFlashType: 25.
Flash Name: XM_XT25F128B{0xB4018), 0x1000000.
@hifmc_spi_nor_probe(), XmSpiNor_ProtMgr_probe(): OK.
@XmSpiNor_enableQuadMode(), Quad was Disabled, SRx: [2, 0x0].
@XmSpiNor_enable4ByteAddrMode(), isn't support 4-byte mode.
Block:64KB Chip:16MB Name:"XM_XT25F128B"
CONFIG_CLOSE_SPI_8PIN_4IO = y.
read->iftype[0: STD, 1: DUAL, 2: DIO, 3: QUAD, 4: QIO]: 1.
Current level[6], lock_level_max:7.
at xm_get_locked_range() sr:0x18, level:6.
lk[6 => 0x800000]
SRx val: {[1, 0x38], [1, 0x0], [0, 0x0], [0, 0x0]}.
SPI Nor total size: 16MB
In: serial
Out: serial
Err: serial
USB: scanning bus for devices... 1 USB Device(s) found
0 Storage Device(s) found
i:0, No usb storage device found!
Press CTRL-C to abort autoboot in 2 seconds16384 KiB hi_fmc at 0:0 is now current device
CFG_BOOT_ADDR:0x0 argc 2 argv[0] logoload
### h264dvr.jpg UbootLogoload complete:bytes oadaddr0x84000000 loaded to 0x9f900000
### h264dvr.jpg UbootLogoload complete: 84101 bytes loaded to 0x9f900000
jpeg decoding ...
<<addr=0x9f900000, size=0xb85f9, vobuf=0x9f950000>>
<<imgwidth=800, imgheight=600, linebytes=1600>>
decode success!!!!
decode jpeg success.
decode jpeg!
stMaxRect.u32Width:800, stMaxRect.u32Height:600.
HDMI_INFO:DispFmt2HdmiTiming[419] ,Non CEA video timing:16
HDMI_INFO:Hdmi_PixelFreqSearch[163] ,u32Fmt16.
stMaxRect.u32Width:720, stMaxRect.u32Height:576.
srcAddr 0x82000000, dstAddr 0x82000000
find_squashfs_file: name bin, start_block 0, offset 2684, type 1
find_squashfs_file: name boot, start_block 0, offset 2784, type 1
read inode: name boot, sb 0, of 2784, type 1
find_squashfs_file: name zImage.img, start_block 0, offset 2716, type 2
read inode: name zImage.img, sb 0, of 2716, type 2
### FS load complete: 2332832 bytes loaded to 0x82000000
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.18.20
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2332768 Bytes = 2.2 MiB
Load Address: 80008000
Entry Point: 80008000
Loading Kernel Image ... OK
OK
Starting kernel ..
И тишина...
Вывод help и printenv
Код: Выделить всё
hisilicon # help
? - alias for 'help'
base - print or set address offset
bitwait - bit compare and wait for equal
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
clearenv- clear env partition.
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
ddr - ddr training function
decjpg - jpgd - decode jpeg picture.
dispaddr- display the value of 'addr'
dispenv - display the value of 'env_var'
dispver - display the uboot version
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
flwrite - SPI flash sub-system
getinfo - print hardware information
go - start application at address 'addr'
help - print command description/usage
lip - lip - set local ip address but not save to flash
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
mac - mac - set mac address and save to flash
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
sip - sip - set server ip address but not save to flash
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
usb - USB sub-system
usbboot - boot from USB device
version - print monitor version
waitus - wait for n us
hisilicon # printenv
bootcmd=sf probe 0;sf read 0x84000000 0xf60000 0x20000;logoload 0x84000000;decjpg;sf read 0x82000000 0x50000 0x500000;squashfsload 82000000;bootm 0x82000000
bootdelay=1
baudrate=115200
ethaddr=00:0b:3f:00:00:01
ipaddr=192.168.1.10
serverip=192.168.1.1
netmask=255.255.0.0
bootfile="uImage"
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
de=mw.b 0x82000000 ff 1000000;tftp 0x82000000 u-boot.env.bin.img;sf probe 0;flwrite
bootargs=mem=140M 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
appCloudExAbility=xxxxxxxxx=
appSystemLanguage=Russian
appVideoStandard=PAL
appRunningOut3Days=Dm8Hxy71
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06-svn1344 (Oct 16 2019 - 13:14:32)
Environment size: 1506/65532 bytes
Команды run dc, run du, run dr бодро рапортовали об успехе, но ничего не дали, run da я вводить не рискнул.
Спецы по решению таких проблем, что можете посоветовать? А лучше носом ткните, а то уже голова кругом из-за количества инфы от прочитанного нf форумах, но ясности в понимании проблемы не принесшей. Старею наверное:)